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='$CC -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_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5338 test -z "$ac_dir" && ac_dir=.
5339 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341 # Check to see if the nm accepts a BSD-compat flag.
5342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343 # nm: unknown option "B" ignored
5344 # Tru64's nm complains that /dev/null is an invalid object file
5345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346 */dev/null* | *'Invalid file or object type'*)
5347 lt_cv_path_NM="$tmp_nm -B"
5351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5353 lt_cv_path_NM="$tmp_nm -p"
5357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358 continue # so that we can try to find one that supports BSD flags
5365 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5368 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5369 echo "${ECHO_T}$lt_cv_path_NM" >&6
5372 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5373 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5374 if test "${lt_cv_deplibs_check_method+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 lt_cv_file_magic_cmd='$MAGIC_CMD'
5378 lt_cv_file_magic_test_file=
5379 lt_cv_deplibs_check_method='unknown'
5380 # Need to set the preceding variable on all platforms that support
5381 # interlibrary dependencies.
5382 # 'none' -- dependencies not supported.
5383 # `unknown' -- same as none, but documents that we really don't know.
5384 # 'pass_all' -- all dependencies passed with no checks.
5385 # 'test_compile' -- check by making test program.
5386 # 'file_magic [[regex]]' -- check by looking for files in library path
5387 # which responds to the $file_magic_cmd with a given extended regex.
5388 # If you have `file' or equivalent on your system and you're not sure
5389 # whether `pass_all' will *always* work, you probably want this one.
5393 lt_cv_deplibs_check_method=pass_all
5397 lt_cv_deplibs_check_method=pass_all
5401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5402 lt_cv_file_magic_cmd='/usr/bin/file -L'
5403 lt_cv_file_magic_test_file=/shlib/libc.so
5407 # func_win32_libid is a shell function defined in ltmain.sh
5408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5409 lt_cv_file_magic_cmd='func_win32_libid'
5413 # Base MSYS/MinGW do not provide the 'file' command needed by
5414 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5415 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5416 lt_cv_file_magic_cmd='$OBJDUMP -f'
5419 darwin* | rhapsody*)
5420 lt_cv_deplibs_check_method=pass_all
5423 freebsd* | kfreebsd*-gnu | dragonfly*)
5424 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5427 # Not sure whether the presence of OpenBSD here was a mistake.
5428 # Let's accept both of them until this is cleared up.
5429 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5435 lt_cv_deplibs_check_method=pass_all
5440 lt_cv_deplibs_check_method=pass_all
5443 hpux10.20* | hpux11*)
5444 lt_cv_file_magic_cmd=/usr/bin/file
5447 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5448 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5451 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]'
5452 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5456 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5461 irix5* | irix6* | nonstopux*)
5463 *-32|*"-32 ") libmagic=32-bit;;
5464 *-n32|*"-n32 ") libmagic=N32;;
5465 *-64|*"-64 ") libmagic=64-bit;;
5466 *) libmagic=never-match;;
5468 lt_cv_deplibs_check_method=pass_all
5471 # This must be Linux ELF.
5473 lt_cv_deplibs_check_method=pass_all
5476 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5486 lt_cv_file_magic_cmd=/usr/bin/file
5487 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5491 lt_cv_deplibs_check_method=unknown
5495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5502 osf3* | osf4* | osf5*)
5503 lt_cv_deplibs_check_method=pass_all
5507 lt_cv_deplibs_check_method=pass_all
5511 lt_cv_deplibs_check_method=pass_all
5514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5515 case $host_vendor in
5517 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]'
5518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5521 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_file_magic_cmd='/bin/file'
5525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5528 lt_cv_file_magic_cmd='/bin/file'
5529 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5530 lt_cv_file_magic_test_file=/lib/libc.so
5533 lt_cv_deplibs_check_method=pass_all
5538 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5539 lt_cv_deplibs_check_method=pass_all
5544 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5545 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5546 file_magic_cmd=$lt_cv_file_magic_cmd
5547 deplibs_check_method=$lt_cv_deplibs_check_method
5548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5553 # If no C compiler was specified, use CC.
5556 # Allow CC to be a program name with arguments.
5559 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5560 if test "${enable_libtool_lock+set}" = set; then
5561 enableval="$enable_libtool_lock"
5564 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5566 # Some flags need to be propagated to the compiler or linker for good
5570 # Find out which ABI we are using.
5571 echo 'int i;' > conftest.$ac_ext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; then
5577 case `/usr/bin/file conftest.$ac_objext` in
5589 # Find out which ABI we are using.
5590 echo '#line 5590 "configure"' > conftest.$ac_ext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; then
5596 if test "$lt_cv_prog_gnu_ld" = yes; then
5597 case `/usr/bin/file conftest.$ac_objext` in
5599 LD="${LD-ld} -melf32bsmip"
5602 LD="${LD-ld} -melf32bmipn32"
5605 LD="${LD-ld} -melf64bmip"
5609 case `/usr/bin/file conftest.$ac_objext` in
5625 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5626 # Find out which ABI we are using.
5627 echo 'int i;' > conftest.$ac_ext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; then
5633 case `/usr/bin/file conftest.o` in
5637 LD="${LD-ld} -m elf_i386"
5639 ppc64-*linux*|powerpc64-*linux*)
5640 LD="${LD-ld} -m elf32ppclinux"
5643 LD="${LD-ld} -m elf_s390"
5646 LD="${LD-ld} -m elf32_sparc"
5653 LD="${LD-ld} -m elf_x86_64"
5655 ppc*-*linux*|powerpc*-*linux*)
5656 LD="${LD-ld} -m elf64ppc"
5659 LD="${LD-ld} -m elf64_s390"
5662 LD="${LD-ld} -m elf64_sparc"
5672 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5673 SAVE_CFLAGS="$CFLAGS"
5674 CFLAGS="$CFLAGS -belf"
5675 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5676 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5677 if test "${lt_cv_cc_needs_belf+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; } &&
5716 { ac_try='test -s conftest$ac_exeext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 lt_cv_cc_needs_belf=yes
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 lt_cv_cc_needs_belf=no
5729 rm -f conftest.err conftest.$ac_objext \
5730 conftest$ac_exeext conftest.$ac_ext
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5739 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5742 CFLAGS="$SAVE_CFLAGS"
5748 need_locks="$enable_libtool_lock"
5752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5754 if test "${ac_cv_header_stdc+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_header_stdc=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 ac_cv_header_stdc=no
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 if test $ac_cv_header_stdc = yes; then
5807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5818 $EGREP "memchr" >/dev/null 2>&1; then
5821 ac_cv_header_stdc=no
5827 if test $ac_cv_header_stdc = yes; then
5828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5829 cat >conftest.$ac_ext <<_ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839 $EGREP "free" >/dev/null 2>&1; then
5842 ac_cv_header_stdc=no
5848 if test $ac_cv_header_stdc = yes; then
5849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5850 if test "$cross_compiling" = yes; then
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5860 #if ((' ' & 0x0FF) == 0x020)
5861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5864 # define ISLOWER(c) \
5865 (('a' <= (c) && (c) <= 'i') \
5866 || ('j' <= (c) && (c) <= 'r') \
5867 || ('s' <= (c) && (c) <= 'z'))
5868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5876 for (i = 0; i < 256; i++)
5877 if (XOR (islower (i), ISLOWER (i))
5878 || toupper (i) != TOUPPER (i))
5883 rm -f conftest$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 echo "$as_me: program exited with status $ac_status" >&5
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_cv_header_stdc=no
5903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5907 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5908 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5909 if test $ac_cv_header_stdc = yes; then
5911 cat >>confdefs.h <<\_ACEOF
5912 #define STDC_HEADERS 1
5917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5928 inttypes.h stdint.h unistd.h
5930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 echo "$as_me:$LINENO: checking for $ac_header" >&5
5932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5944 #include <$ac_header>
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 eval "$as_ac_Header=yes"
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 eval "$as_ac_Header=no"
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5979 cat >>confdefs.h <<_ACEOF
5980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5989 for ac_header in dlfcn.h
5991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo "$as_me:$LINENO: checking for $ac_header" >&5
5994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6001 # Is the header compilable?
6002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6004 cat >conftest.$ac_ext <<_ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 $ac_includes_default
6011 #include <$ac_header>
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_header_compiler=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_compiler=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <$ac_header>
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev/null; then
6064 if test -s conftest.err; then
6065 ac_cpp_err=$ac_c_preproc_warn_flag
6066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 if test -z "$ac_cpp_err"; then
6074 ac_header_preproc=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_header_preproc=no
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6085 # So? What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6092 ac_header_preproc=yes
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6109 ## ------------------------------- ##
6110 ## Report this to nfs@lists.sf.net ##
6111 ## ------------------------------- ##
6114 sed "s/^/$as_me: WARNING: /" >&2
6117 echo "$as_me:$LINENO: checking for $ac_header" >&5
6118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 eval "$as_ac_Header=\$ac_header_preproc"
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129 cat >>confdefs.h <<_ACEOF
6130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6140 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6141 (test "X$CXX" != "Xg++"))) ; then
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6148 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6149 if test -z "$CXXCPP"; then
6150 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 # Double quotes because CXXCPP needs to be expanded
6154 for CXXCPP in "$CXX -E" "/lib/cpp"
6157 for ac_cxx_preproc_warn_flag in '' yes
6159 # Use a header file that comes with gcc, so configuring glibc
6160 # with a fresh cross-compiler works.
6161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 # <limits.h> exists even on freestanding compilers.
6163 # On the NeXT, cc -E runs the code through the compiler's parser,
6164 # not just through cpp. "Syntax error" is here to catch this case.
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 # include <limits.h>
6174 # include <assert.h>
6178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null; then
6186 if test -s conftest.err; then
6187 ac_cpp_err=$ac_cxx_preproc_warn_flag
6188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6195 if test -z "$ac_cpp_err"; then
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 # Broken: fails on valid input.
6204 rm -f conftest.err conftest.$ac_ext
6206 # OK, works on sane cases. Now check whether non-existent headers
6207 # can be detected and how.
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 #include <ac_nonexistent.h>
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null; then
6224 if test -s conftest.err; then
6225 ac_cpp_err=$ac_cxx_preproc_warn_flag
6226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6233 if test -z "$ac_cpp_err"; then
6234 # Broken: success on invalid input.
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 # Passes both tests.
6244 rm -f conftest.err conftest.$ac_ext
6247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6248 rm -f conftest.err conftest.$ac_ext
6249 if $ac_preproc_ok; then
6254 ac_cv_prog_CXXCPP=$CXXCPP
6257 CXXCPP=$ac_cv_prog_CXXCPP
6259 ac_cv_prog_CXXCPP=$CXXCPP
6261 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6262 echo "${ECHO_T}$CXXCPP" >&6
6264 for ac_cxx_preproc_warn_flag in '' yes
6266 # Use a header file that comes with gcc, so configuring glibc
6267 # with a fresh cross-compiler works.
6268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6269 # <limits.h> exists even on freestanding compilers.
6270 # On the NeXT, cc -E runs the code through the compiler's parser,
6271 # not just through cpp. "Syntax error" is here to catch this case.
6272 cat >conftest.$ac_ext <<_ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6279 # include <limits.h>
6281 # include <assert.h>
6285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } >/dev/null; then
6293 if test -s conftest.err; then
6294 ac_cpp_err=$ac_cxx_preproc_warn_flag
6295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6302 if test -z "$ac_cpp_err"; then
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 # Broken: fails on valid input.
6311 rm -f conftest.err conftest.$ac_ext
6313 # OK, works on sane cases. Now check whether non-existent headers
6314 # can be detected and how.
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <ac_nonexistent.h>
6323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null; then
6331 if test -s conftest.err; then
6332 ac_cpp_err=$ac_cxx_preproc_warn_flag
6333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6340 if test -z "$ac_cpp_err"; then
6341 # Broken: success on invalid input.
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 # Passes both tests.
6351 rm -f conftest.err conftest.$ac_ext
6354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6355 rm -f conftest.err conftest.$ac_ext
6356 if $ac_preproc_ok; then
6359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6360 See \`config.log' for more details." >&5
6361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6362 See \`config.log' for more details." >&2;}
6363 { (exit 1); exit 1; }; }
6367 ac_cpp='$CXXCPP $CPPFLAGS'
6368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6376 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6377 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6379 if test -n "$ac_tool_prefix"; then
6380 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6384 echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386 if test "${ac_cv_prog_F77+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$F77"; then
6390 ac_cv_prog_F77="$F77" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 if test -n "$F77"; then
6410 echo "$as_me:$LINENO: result: $F77" >&5
6411 echo "${ECHO_T}$F77" >&6
6413 echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6
6417 test -n "$F77" && break
6420 if test -z "$F77"; then
6422 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6424 # Extract the first word of "$ac_prog", so it can be a program name with args.
6425 set dummy $ac_prog; ac_word=$2
6426 echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 if test -n "$ac_ct_F77"; then
6432 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_F77="$ac_prog"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6451 if test -n "$ac_ct_F77"; then
6452 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6453 echo "${ECHO_T}$ac_ct_F77" >&6
6455 echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6459 test -n "$ac_ct_F77" && break
6466 # Provide some information about the compiler.
6467 echo "$as_me:6467:" \
6468 "checking for Fortran 77 compiler version" >&5
6469 ac_compiler=`set X $ac_compile; echo $2`
6470 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6471 (eval $ac_compiler --version </dev/null >&5) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }
6475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6476 (eval $ac_compiler -v </dev/null >&5) 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }
6480 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6481 (eval $ac_compiler -V </dev/null >&5) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }
6487 # If we don't use `.F' as extension, the preprocessor is not run on the
6488 # input file. (Note that this only needs to work for GNU compilers.)
6491 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6492 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6493 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 cat >conftest.$ac_ext <<_ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6536 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6537 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6539 ac_test_FFLAGS=${FFLAGS+set}
6540 ac_save_FFLAGS=$FFLAGS
6542 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6543 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6544 if test "${ac_cv_prog_f77_g+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_prog_f77_g=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6586 if test "$ac_test_FFLAGS" = set; then
6587 FFLAGS=$ac_save_FFLAGS
6588 elif test $ac_cv_prog_f77_g = yes; then
6589 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6595 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6602 G77=`test $ac_compiler_gnu = yes && echo yes`
6604 ac_cpp='$CPP $CPPFLAGS'
6605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6613 # find the maximum length of command line arguments
6614 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6615 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6616 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 # On DJGPP, this test can blow up pretty badly due to problems in libc
6625 # (any single argument exceeding 2000 bytes causes a buffer overrun
6626 # during glob expansion). Even if it were fixed, the result of this
6627 # check would be larger than it should be.
6628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6632 # Under GNU Hurd, this test is not required because there is
6633 # no limit to the length of command line arguments.
6634 # Libtool will interpret -1 as no limit whatsoever
6635 lt_cv_sys_max_cmd_len=-1;
6639 # On Win9x/ME, this test blows up -- it succeeds, but takes
6640 # about 5 minutes as the teststring grows exponentially.
6641 # Worse, since 9x/ME are not pre-emptively multitasking,
6642 # you end up with a "frozen" computer, even though with patience
6643 # the test eventually succeeds (with a max line length of 256k).
6644 # Instead, let's just punt: use the minimum linelength reported by
6645 # all of the supported platforms: 8192 (on NT/2K/XP).
6646 lt_cv_sys_max_cmd_len=8192;
6650 # On AmigaOS with pdksh, this test takes hours, literally.
6651 # So we just punt and use a minimum line length of 8192.
6652 lt_cv_sys_max_cmd_len=8192;
6655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6656 # This has been around since 386BSD, at least. Likely further.
6657 if test -x /sbin/sysctl; then
6658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6659 elif test -x /usr/sbin/sysctl; then
6660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6662 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6664 # And add a safety zone
6665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6669 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6670 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6671 # nice to cause kernel panics so lets avoid the loop below.
6672 # First set a reasonable default.
6673 lt_cv_sys_max_cmd_len=16384
6675 if test -x /sbin/sysconfig; then
6676 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6677 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6682 # If test is not a shell built-in, we'll probably end up computing a
6683 # maximum length that is only half of the actual maximum length, but
6685 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6686 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6687 = "XX$teststring") >/dev/null 2>&1 &&
6688 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6689 lt_cv_sys_max_cmd_len=$new_result &&
6690 test $i != 17 # 1/2 MB should be enough
6693 teststring=$teststring$teststring
6696 # Add a significant safety factor because C++ compilers can tack on massive
6697 # amounts of additional arguments before passing them to the linker.
6698 # It appears as though 1/2 is a usable value.
6699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6705 if test -n $lt_cv_sys_max_cmd_len ; then
6706 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6707 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6709 echo "$as_me:$LINENO: result: none" >&5
6710 echo "${ECHO_T}none" >&6
6716 # Check for command to grab the raw symbol name followed by C symbol from nm.
6717 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6718 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 # These are sane defaults that work on at least a few old systems.
6724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6726 # Character class describing NM global symbol codes.
6727 symcode='[BCDEGRST]'
6729 # Regexp to match symbols that can be accessed directly from C.
6730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6732 # Transform an extracted symbol line into a proper C declaration
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 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'"
6738 # Define system-specific variables.
6743 cygwin* | mingw* | pw32*)
6744 symcode='[ABCDGISTW]'
6746 hpux*) # Its linker distinguishes data from code symbols
6747 if test "$host_cpu" = ia64; then
6748 symcode='[ABCDEGRST]'
6750 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6751 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'"
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDGIRSTW]'
6756 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6757 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'"
6761 symcode='[BCDEGRST]'
6764 symcode='[BCDEGQRST]'
6774 # Handle CRLF in mingw tool chain
6778 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6782 # If we're using GNU nm, then use its standard symbol codes.
6783 case `$NM -V 2>&1` in
6784 *GNU* | *'with BFD'*)
6785 symcode='[ABCDGIRSTW]' ;;
6788 # Try without a prefix undercore, then with it.
6789 for ac_symprfx in "" "_"; do
6791 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6792 symxfrm="\\1 $ac_symprfx\\2 \\2"
6794 # Write the raw and C identifiers.
6795 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6797 # Check to see that the pipe works correctly.
6801 cat > conftest.$ac_ext <<EOF
6806 void nm_test_func(){}
6810 int main(){nm_test_var='a';nm_test_func();return(0);}
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; then
6818 # Now try to grab the symbols.
6820 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6821 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && test -s "$nlist"; then
6825 # Try sorting and uniquifying the output.
6826 if sort "$nlist" | uniq > "$nlist"T; then
6827 mv -f "$nlist"T "$nlist"
6832 # Make sure that we snagged all the symbols we need.
6833 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6834 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6835 cat <<EOF > conftest.$ac_ext
6841 # Now generate the symbol file.
6842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6844 cat <<EOF >> conftest.$ac_ext
6845 #if defined (__STDC__) && __STDC__
6846 # define lt_ptr_t void *
6848 # define lt_ptr_t char *
6852 /* The mapping between symbol names and symbols. */
6857 lt_preloaded_symbols[] =
6860 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6861 cat <<\EOF >> conftest.$ac_ext
6869 # Now try linking the two files.
6870 mv conftest.$ac_objext conftstm.$ac_objext
6871 lt_save_LIBS="$LIBS"
6872 lt_save_CFLAGS="$CFLAGS"
6873 LIBS="conftstm.$ac_objext"
6874 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6882 LIBS="$lt_save_LIBS"
6883 CFLAGS="$lt_save_CFLAGS"
6885 echo "cannot find nm_test_func in $nlist" >&5
6888 echo "cannot find nm_test_var in $nlist" >&5
6891 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6894 echo "$progname: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 rm -f conftest* conftst*
6899 # Do not use the global_symbol_pipe unless it works.
6900 if test "$pipe_works" = yes; then
6903 lt_cv_sys_global_symbol_pipe=
6909 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6910 lt_cv_sys_global_symbol_to_cdecl=
6912 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6913 echo "$as_me:$LINENO: result: failed" >&5
6914 echo "${ECHO_T}failed" >&6
6916 echo "$as_me:$LINENO: result: ok" >&5
6917 echo "${ECHO_T}ok" >&6
6920 echo "$as_me:$LINENO: checking for objdir" >&5
6921 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6922 if test "${lt_cv_objdir+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 rm -f .libs 2>/dev/null
6926 mkdir .libs 2>/dev/null
6927 if test -d .libs; then
6930 # MS-DOS does not allow filenames that begin with a dot.
6933 rmdir .libs 2>/dev/null
6935 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6936 echo "${ECHO_T}$lt_cv_objdir" >&6
6937 objdir=$lt_cv_objdir
6945 # AIX sometimes has problems with the GCC collect2 program. For some
6946 # reason, if we set the COLLECT_NAMES environment variable, the problems
6947 # vanish in a puff of smoke.
6948 if test "X${COLLECT_NAMES+set}" != Xset; then
6950 export COLLECT_NAMES
6955 # Sed substitution that helps us do robust quoting. It backslashifies
6956 # metacharacters that are still active within double-quoted strings.
6957 Xsed='sed -e 1s/^X//'
6958 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6960 # Same as above, but do not quote variable references.
6961 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6963 # Sed substitution to delay expansion of an escaped shell variable in a
6964 # double_quote_subst'ed string.
6965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6967 # Sed substitution to avoid accidental globbing in evaled expressions
6968 no_glob_subst='s/\*/\\\*/g'
6974 default_ofile=libtool
6975 can_build_shared=yes
6977 # All known linkers require a `.a' archive for static linking (except MSVC,
6978 # which needs '.lib').
6980 ltmain="$ac_aux_dir/ltmain.sh"
6981 ofile="$default_ofile"
6982 with_gnu_ld="$lt_cv_prog_gnu_ld"
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}ar; ac_word=$2
6987 echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989 if test "${ac_cv_prog_AR+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$AR"; then
6993 ac_cv_prog_AR="$AR" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_AR="${ac_tool_prefix}ar"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 if test -n "$AR"; then
7013 echo "$as_me:$LINENO: result: $AR" >&5
7014 echo "${ECHO_T}$AR" >&6
7016 echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7021 if test -z "$ac_cv_prog_AR"; then
7023 # Extract the first word of "ar", so it can be a program name with args.
7024 set dummy ar; ac_word=$2
7025 echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 if test -n "$ac_ct_AR"; then
7031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_AR="ar"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7051 if test -n "$ac_ct_AR"; then
7052 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7053 echo "${ECHO_T}$ac_ct_AR" >&6
7055 echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7067 echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069 if test "${ac_cv_prog_RANLIB+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 if test -n "$RANLIB"; then
7073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 RANLIB=$ac_cv_prog_RANLIB
7092 if test -n "$RANLIB"; then
7093 echo "$as_me:$LINENO: result: $RANLIB" >&5
7094 echo "${ECHO_T}$RANLIB" >&6
7096 echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6
7101 if test -z "$ac_cv_prog_RANLIB"; then
7102 ac_ct_RANLIB=$RANLIB
7103 # Extract the first word of "ranlib", so it can be a program name with args.
7104 set dummy ranlib; ac_word=$2
7105 echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$ac_ct_RANLIB"; then
7111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_RANLIB="ranlib"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7131 if test -n "$ac_ct_RANLIB"; then
7132 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7133 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7135 echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6
7139 RANLIB=$ac_ct_RANLIB
7141 RANLIB="$ac_cv_prog_RANLIB"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}strip; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_STRIP+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test -n "$STRIP"; then
7153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 STRIP=$ac_cv_prog_STRIP
7172 if test -n "$STRIP"; then
7173 echo "$as_me:$LINENO: result: $STRIP" >&5
7174 echo "${ECHO_T}$STRIP" >&6
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7181 if test -z "$ac_cv_prog_STRIP"; then
7183 # Extract the first word of "strip", so it can be a program name with args.
7184 set dummy strip; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 if test -n "$ac_ct_STRIP"; then
7191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_STRIP="strip"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7211 if test -n "$ac_ct_STRIP"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7213 echo "${ECHO_T}$ac_ct_STRIP" >&6
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7221 STRIP="$ac_cv_prog_STRIP"
7226 old_CFLAGS="$CFLAGS"
7228 # Set sane defaults for various variables
7229 test -z "$AR" && AR=ar
7230 test -z "$AR_FLAGS" && AR_FLAGS=cru
7231 test -z "$AS" && AS=as
7232 test -z "$CC" && CC=cc
7233 test -z "$LTCC" && LTCC=$CC
7234 test -z "$DLLTOOL" && DLLTOOL=dlltool
7235 test -z "$LD" && LD=ld
7236 test -z "$LN_S" && LN_S="ln -s"
7237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7238 test -z "$NM" && NM=nm
7239 test -z "$SED" && SED=sed
7240 test -z "$OBJDUMP" && OBJDUMP=objdump
7241 test -z "$RANLIB" && RANLIB=:
7242 test -z "$STRIP" && STRIP=:
7243 test -z "$ac_objext" && ac_objext=o
7245 # Determine commands to create old-style static archives.
7246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7247 old_postinstall_cmds='chmod 644 $oldlib'
7248 old_postuninstall_cmds=
7250 if test -n "$RANLIB"; then
7253 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7256 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7262 for cc_temp in $compiler""; do
7264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7273 # Only perform the check for file, if the check method requires it
7274 case $deplibs_check_method in
7276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7277 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7287 lt_save_MAGIC_CMD="$MAGIC_CMD"
7288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7290 for ac_dir in $ac_dummy; do
7292 test -z "$ac_dir" && ac_dir=.
7293 if test -f $ac_dir/${ac_tool_prefix}file; then
7294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7295 if test -n "$file_magic_test_file"; then
7296 case $deplibs_check_method in
7298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7301 $EGREP "$file_magic_regex" > /dev/null; then
7306 *** Warning: the command libtool uses to detect shared libraries,
7307 *** $file_magic_cmd, produces output that libtool cannot recognize.
7308 *** The result is that libtool may fail to recognize shared libraries
7309 *** as such. This will affect the creation of libtool libraries that
7310 *** depend on shared libraries, but programs linked with such libtool
7311 *** libraries will work regardless of this problem. Nevertheless, you
7312 *** may want to report the problem to your system manager and/or to
7313 *** bug-libtool@gnu.org
7323 MAGIC_CMD="$lt_save_MAGIC_CMD"
7328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7329 if test -n "$MAGIC_CMD"; then
7330 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7331 echo "${ECHO_T}$MAGIC_CMD" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7337 if test -z "$lt_cv_path_MAGIC_CMD"; then
7338 if test -n "$ac_tool_prefix"; then
7339 echo "$as_me:$LINENO: checking for file" >&5
7340 echo $ECHO_N "checking for file... $ECHO_C" >&6
7341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7349 lt_save_MAGIC_CMD="$MAGIC_CMD"
7350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352 for ac_dir in $ac_dummy; do
7354 test -z "$ac_dir" && ac_dir=.
7355 if test -f $ac_dir/file; then
7356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7357 if test -n "$file_magic_test_file"; then
7358 case $deplibs_check_method in
7360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363 $EGREP "$file_magic_regex" > /dev/null; then
7368 *** Warning: the command libtool uses to detect shared libraries,
7369 *** $file_magic_cmd, produces output that libtool cannot recognize.
7370 *** The result is that libtool may fail to recognize shared libraries
7371 *** as such. This will affect the creation of libtool libraries that
7372 *** depend on shared libraries, but programs linked with such libtool
7373 *** libraries will work regardless of this problem. Nevertheless, you
7374 *** may want to report the problem to your system manager and/or to
7375 *** bug-libtool@gnu.org
7385 MAGIC_CMD="$lt_save_MAGIC_CMD"
7390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391 if test -n "$MAGIC_CMD"; then
7392 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7393 echo "${ECHO_T}$MAGIC_CMD" >&6
7395 echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7411 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7412 if test "${enable_libtool_lock+set}" = set; then
7413 enableval="$enable_libtool_lock"
7416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7419 # Check whether --with-pic or --without-pic was given.
7420 if test "${with_pic+set}" = set; then
7426 test -z "$pic_mode" && pic_mode=default
7428 # Use C for the default configuration in the libtool script
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438 # Source file extension for C test sources.
7441 # Object file extension for compiled C test sources.
7445 # Code to be used in simple compile tests
7446 lt_simple_compile_test_code="int some_variable = 0;\n"
7448 # Code to be used in simple link tests
7449 lt_simple_link_test_code='int main(){return(0);}\n'
7452 # If no C compiler was specified, use CC.
7455 # Allow CC to be a program name with arguments.
7459 # save warnings/boilerplate of simple test code
7460 ac_outfile=conftest.$ac_objext
7461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7463 _lt_compiler_boilerplate=`cat conftest.err`
7466 ac_outfile=conftest.$ac_objext
7467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7469 _lt_linker_boilerplate=`cat conftest.err`
7474 # Check for any special shared library compilation flags.
7477 if test "$GCC" = no; then
7480 lt_prog_cc_shlib='-belf'
7484 if test -n "$lt_prog_cc_shlib"; then
7485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7487 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7491 lt_cv_prog_cc_can_build_shared=no
7497 # Check to make sure the static flag actually works.
7499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7501 if test "${lt_prog_compiler_static_works+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 lt_prog_compiler_static_works=no
7505 save_LDFLAGS="$LDFLAGS"
7506 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7507 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7509 # The linker can only warn and ignore the option if not recognized
7510 # So say no if there are warnings
7511 if test -s conftest.err; then
7512 # Append any errors to the config.log.
7513 cat conftest.err 1>&5
7514 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7515 $SED '/^$/d' conftest.err >conftest.er2
7516 if diff conftest.exp conftest.er2 >/dev/null; then
7517 lt_prog_compiler_static_works=yes
7520 lt_prog_compiler_static_works=yes
7524 LDFLAGS="$save_LDFLAGS"
7527 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7528 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7530 if test x"$lt_prog_compiler_static_works" = xyes; then
7533 lt_prog_compiler_static=
7539 lt_prog_compiler_no_builtin_flag=
7541 if test "$GCC" = yes; then
7542 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7545 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 lt_cv_prog_compiler_rtti_exceptions=no
7551 ac_outfile=conftest.$ac_objext
7552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 lt_compiler_flag="-fno-rtti -fno-exceptions"
7554 # Insert the option either (1) after the last *FLAGS variable, or
7555 # (2) before a word containing "conftest.", or (3) at the end.
7556 # Note that $ac_compile itself does not contain backslashes and begins
7557 # with a dollar sign (not a hyphen), so the echo should work correctly.
7558 # The option is referenced via a variable to avoid confusing sed.
7559 lt_compile=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>conftest.err)
7566 cat conftest.err >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s "$ac_outfile"; then
7569 # The compiler can only warn and ignore the option if not recognized
7570 # So say no if there are warnings other than the usual output.
7571 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7572 $SED '/^$/d' conftest.err >conftest.er2
7573 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7574 lt_cv_prog_compiler_rtti_exceptions=yes
7580 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7591 lt_prog_compiler_wl=
7592 lt_prog_compiler_pic=
7593 lt_prog_compiler_static=
7595 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7596 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7598 if test "$GCC" = yes; then
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_static='-static'
7604 # All AIX code is PIC.
7605 if test "$host_cpu" = ia64; then
7606 # AIX 5 now supports IA64 processor
7607 lt_prog_compiler_static='-Bstatic'
7612 # FIXME: we need at least 68020 code to build shared libraries, but
7613 # adding the `-m68020' flag to GCC prevents building anything better,
7615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7618 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7619 # PIC is the default for these OSes.
7622 mingw* | pw32* | os2*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 lt_prog_compiler_pic='-DDLL_EXPORT'
7628 darwin* | rhapsody*)
7629 # PIC is the default on this platform
7630 # Common symbols not allowed in MH_DYLIB files
7631 lt_prog_compiler_pic='-fno-common'
7635 # Just because we use GCC doesn't mean we suddenly get shared libraries
7636 # on systems that don't support them.
7637 lt_prog_compiler_can_build_shared=no
7642 if test -d /usr/nec; then
7643 lt_prog_compiler_pic=-Kconform_pic
7648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7655 lt_prog_compiler_pic='-fPIC'
7661 lt_prog_compiler_pic='-fPIC'
7665 # PORTME Check for flag to pass linker flags through the system compiler.
7668 lt_prog_compiler_wl='-Wl,'
7669 if test "$host_cpu" = ia64; then
7670 # AIX 5 now supports IA64 processor
7671 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7677 # PIC is the default on this platform
7678 # Common symbols not allowed in MH_DYLIB files
7679 case $cc_basename in
7681 lt_prog_compiler_pic='-qnocommon'
7682 lt_prog_compiler_wl='-Wl,'
7687 mingw* | pw32* | os2*)
7688 # This hack is so that the source file can tell whether it is being
7689 # built for inclusion in a dll (and should export symbols for example).
7690 lt_prog_compiler_pic='-DDLL_EXPORT'
7693 hpux9* | hpux10* | hpux11*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7702 lt_prog_compiler_pic='+Z'
7705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706 lt_prog_compiler_static='${wl}-a ${wl}archive'
7709 irix5* | irix6* | nonstopux*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC (with -KPIC) is the default.
7712 lt_prog_compiler_static='-non_shared'
7716 lt_prog_compiler_pic='-KPIC'
7717 lt_prog_compiler_static='-Bstatic'
7721 case $cc_basename in
7723 lt_prog_compiler_wl='-Wl,'
7724 lt_prog_compiler_pic='-KPIC'
7725 lt_prog_compiler_static='-static'
7727 pgcc* | pgf77* | pgf90* | pgf95*)
7728 # Portland Group compilers (*not* the Pentium gcc compiler,
7729 # which looks to be a dead project)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-fpic'
7732 lt_prog_compiler_static='-Bstatic'
7735 lt_prog_compiler_wl='-Wl,'
7736 # All Alpha code is PIC.
7737 lt_prog_compiler_static='-non_shared'
7742 osf3* | osf4* | osf5*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # All OSF/1 code is PIC.
7745 lt_prog_compiler_static='-non_shared'
7749 lt_prog_compiler_pic='-Kpic'
7750 lt_prog_compiler_static='-dn'
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 case $cc_basename in
7758 lt_prog_compiler_wl='-Qoption ld ';;
7760 lt_prog_compiler_wl='-Wl,';;
7765 lt_prog_compiler_wl='-Qoption ld '
7766 lt_prog_compiler_pic='-PIC'
7767 lt_prog_compiler_static='-Bstatic'
7770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7777 if test -d /usr/nec ;then
7778 lt_prog_compiler_pic='-Kconform_pic'
7779 lt_prog_compiler_static='-Bstatic'
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_can_build_shared=no
7789 lt_prog_compiler_pic='-pic'
7790 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_can_build_shared=no
7799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7803 # Check to make sure the PIC flag actually works.
7805 if test -n "$lt_prog_compiler_pic"; then
7807 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7808 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7809 if test "${lt_prog_compiler_pic_works+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 lt_prog_compiler_pic_works=no
7813 ac_outfile=conftest.$ac_objext
7814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7815 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7816 # Insert the option either (1) after the last *FLAGS variable, or
7817 # (2) before a word containing "conftest.", or (3) at the end.
7818 # Note that $ac_compile itself does not contain backslashes and begins
7819 # with a dollar sign (not a hyphen), so the echo should work correctly.
7820 # The option is referenced via a variable to avoid confusing sed.
7821 lt_compile=`echo "$ac_compile" | $SED \
7822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824 -e 's:$: $lt_compiler_flag:'`
7825 (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7826 (eval "$lt_compile" 2>conftest.err)
7828 cat conftest.err >&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 if (exit $ac_status) && test -s "$ac_outfile"; then
7831 # The compiler can only warn and ignore the option if not recognized
7832 # So say no if there are warnings other than the usual output.
7833 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7834 $SED '/^$/d' conftest.err >conftest.er2
7835 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7836 lt_prog_compiler_pic_works=yes
7842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7843 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7845 if test x"$lt_prog_compiler_pic_works" = xyes; then
7846 case $lt_prog_compiler_pic in
7848 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7851 lt_prog_compiler_pic=
7852 lt_prog_compiler_can_build_shared=no
7857 # For platforms which do not support PIC, -DPIC is meaningless:
7859 lt_prog_compiler_pic=
7862 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 lt_cv_prog_compiler_c_o=no
7872 $rm -r conftest 2>/dev/null
7876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="-o out/conftest2.$ac_objext"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 lt_compile=`echo "$ac_compile" | $SED \
7884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886 -e 's:$: $lt_compiler_flag:'`
7887 (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7888 (eval "$lt_compile" 2>out/conftest.err)
7890 cat out/conftest.err >&5
7891 echo "$as_me:7891: \$? = $ac_status" >&5
7892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings
7896 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7897 $SED '/^$/d' out/conftest.err >out/conftest.er2
7898 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_c_o=yes
7904 # SGI C++ compiler will create directory out/ii_files/ for
7905 # template instantiation
7906 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7907 $rm out/* && rmdir out
7913 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7917 hard_links="nottested"
7918 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7919 # do not overwrite the value of need_locks provided by the user
7920 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7921 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7926 ln conftest.a conftest.b 2>&5 || hard_links=no
7927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7928 echo "$as_me:$LINENO: result: $hard_links" >&5
7929 echo "${ECHO_T}$hard_links" >&6
7930 if test "$hard_links" = no; then
7931 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7932 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7939 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7940 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7943 allow_undefined_flag=
7944 enable_shared_with_static_runtimes=no
7946 archive_expsym_cmds=
7947 old_archive_From_new_cmds=
7948 old_archive_from_expsyms_cmds=
7949 export_dynamic_flag_spec=
7950 whole_archive_flag_spec=
7951 thread_safe_flag_spec=
7952 hardcode_libdir_flag_spec=
7953 hardcode_libdir_flag_spec_ld=
7954 hardcode_libdir_separator=
7957 hardcode_shlibpath_var=unsupported
7958 link_all_deplibs=unknown
7959 hardcode_automatic=no
7962 always_export_symbols=no
7963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7964 # include_expsyms should be a list of space-separated symbols to be *always*
7965 # included in the symbol list
7967 # exclude_expsyms can be an extended regexp of symbols to exclude
7968 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7969 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7970 # as well as any symbol that contains `d'.
7971 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7973 # platforms (ab)use it in PIC code, but their linkers get confused if
7974 # the symbol is explicitly referenced. Since portable code cannot
7975 # rely on this symbol name, it's probably fine to never include it in
7976 # preloaded symbol tables.
7977 extract_expsyms_cmds=
7978 # Just being paranoid about ensuring that cc_basename is set.
7979 for cc_temp in $compiler""; do
7981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7990 cygwin* | mingw* | pw32*)
7991 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7992 # When not using gcc, we currently assume that we are using
7993 # Microsoft Visual C++.
7994 if test "$GCC" != yes; then
8004 if test "$with_gnu_ld" = yes; then
8005 # If archive_cmds runs LD, not CC, wlarc should be empty
8008 # Set some defaults for GNU ld with shared library support. These
8009 # are reset later if shared libraries are not supported. Putting them
8010 # here allows them to be overridden if necessary.
8011 runpath_var=LD_RUN_PATH
8012 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8013 export_dynamic_flag_spec='${wl}--export-dynamic'
8014 # ancient GNU ld didn't support --whole-archive et. al.
8015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8016 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8018 whole_archive_flag_spec=
8020 supports_anon_versioning=no
8021 case `$LD -v 2>/dev/null` in
8022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8025 *\ 2.11.*) ;; # other 2.11 versions
8026 *) supports_anon_versioning=yes ;;
8029 # See if GNU ld supports shared libraries.
8031 aix3* | aix4* | aix5*)
8032 # On AIX/PPC, the GNU linker is very broken
8033 if test "$host_cpu" != ia64; then
8037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8038 *** to be unable to reliably create shared libraries on AIX.
8039 *** Therefore, libtool is disabling shared libraries support. If you
8040 *** really care for shared libraries, you may want to modify your PATH
8041 *** so that a non-GNU linker is found, and then restart.
8048 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)'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_minus_L=yes
8052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8053 # that the semantics of dynamic libraries on AmigaOS, at least up
8054 # to version 4, is to share data among multiple programs linked
8055 # with the same dynamic library. Since this doesn't match the
8056 # behavior of shared libraries on other platforms, we can't use
8062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8063 allow_undefined_flag=unsupported
8064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8065 # support --undefined. This deserves some investigation. FIXME
8066 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072 cygwin* | mingw* | pw32*)
8073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8074 # as there is no search path for DLLs.
8075 hardcode_libdir_flag_spec='-L$libdir'
8076 allow_undefined_flag=unsupported
8077 always_export_symbols=no
8078 enable_shared_with_static_runtimes=yes
8079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8083 # If the export-symbols file already is a .def file (1st line
8084 # is EXPORTS), use it as is; otherwise, prepend...
8085 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8086 cp $export_symbols $output_objdir/$soname.def;
8088 echo EXPORTS > $output_objdir/$soname.def;
8089 cat $export_symbols >> $output_objdir/$soname.def;
8091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100 case $cc_basename,$host_cpu in
8101 pgcc*) # Portland Group C compiler
8102 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'
8103 tmp_addflag=' $pic_flag'
8105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8106 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'
8107 tmp_addflag=' $pic_flag -Mnomain' ;;
8108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8109 tmp_addflag=' -i_dynamic' ;;
8110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8111 tmp_addflag=' -i_dynamic -nofor_main' ;;
8112 ifc* | ifort*) # Intel Fortran compiler
8113 tmp_addflag=' -nofor_main' ;;
8115 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8117 if test $supports_anon_versioning = yes; then
8118 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8120 $echo "local: *; };" >> $output_objdir/$libname.ver~
8121 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8129 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8140 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8145 *** create shared libraries on Solaris systems. Therefore, libtool
8146 *** is disabling shared libraries support. We urge you to upgrade GNU
8147 *** binutils to release 2.9.1 or newer. Another option is to modify
8148 *** your PATH or compiler configuration so that the native linker is
8149 *** used, and then restart.
8152 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8161 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8164 hardcode_shlibpath_var=no
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8177 if test "$ld_shlibs" = no; then
8179 hardcode_libdir_flag_spec=
8180 export_dynamic_flag_spec=
8181 whole_archive_flag_spec=
8184 # PORTME fill in a description of your system's linker (not GNU ld)
8187 allow_undefined_flag=unsupported
8188 always_export_symbols=yes
8189 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'
8190 # Note: this linker hardcodes the directories in LIBPATH if there
8191 # are no directories specified by -L.
8192 hardcode_minus_L=yes
8193 if test "$GCC" = yes && test -z "$link_static_flag"; then
8194 # Neither direct hardcoding nor static linking is supported with a
8196 hardcode_direct=unsupported
8201 if test "$host_cpu" = ia64; then
8202 # On IA64, the linker does run time linking by default, so we don't
8203 # have to do anything special.
8204 aix_use_runtimelinking=no
8205 exp_sym_flag='-Bexport'
8208 # If we're using GNU nm, then we don't want the "-C" option.
8209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8210 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8211 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'
8213 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'
8215 aix_use_runtimelinking=no
8217 # Test if we are trying to use run time linking or normal
8218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8219 # need to do runtime linking.
8220 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8221 for ld_flag in $LDFLAGS; do
8222 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8223 aix_use_runtimelinking=yes
8229 exp_sym_flag='-bexport'
8230 no_entry_flag='-bnoentry'
8233 # When large executables or shared objects are built, AIX ld can
8234 # have problems creating the table of contents. If linking a library
8235 # or program results in "error TOC overflow" add -mminimal-toc to
8236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8241 hardcode_libdir_separator=':'
8242 link_all_deplibs=yes
8244 if test "$GCC" = yes; then
8245 case $host_os in aix4.[012]|aix4.[012].*)
8246 # We only want to do this on AIX 4.2 and lower, the check
8247 # below for broken collect2 doesn't work under 4.3+
8248 collect2name=`${CC} -print-prog-name=collect2`
8249 if test -f "$collect2name" && \
8250 strings "$collect2name" | grep resolve_lib_name >/dev/null
8252 # We have reworked collect2
8255 # We have old collect2
8256 hardcode_direct=unsupported
8257 # It fails to find uninstalled libraries when the uninstalled
8258 # path is not listed in the libpath. Setting hardcode_minus_L
8259 # to unsupported forces relinking
8260 hardcode_minus_L=yes
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_libdir_separator=
8265 shared_flag='-shared'
8266 if test "$aix_use_runtimelinking" = yes; then
8267 shared_flag="$shared_flag "'${wl}-G'
8271 if test "$host_cpu" = ia64; then
8272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8273 # chokes on -Wl,-G. The following line is correct:
8276 if test "$aix_use_runtimelinking" = yes; then
8277 shared_flag='${wl}-G'
8279 shared_flag='${wl}-bM:SRE'
8284 # It seems that -bexpall does not export symbols beginning with
8285 # underscore (_), so it is better to generate a list of symbols to export.
8286 always_export_symbols=yes
8287 if test "$aix_use_runtimelinking" = yes; then
8288 # Warning - without using the other runtime loading flags (-brtl),
8289 # -berok will link without error, but may produce a broken library.
8290 allow_undefined_flag='-berok'
8291 # Determine the default libpath from the value encoded in an empty executable.
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8331 # Check for a 64-bit object if we didn't find anything.
8332 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; }
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8339 rm -f conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8344 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8346 if test "$host_cpu" = ia64; then
8347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8348 allow_undefined_flag="-z nodefs"
8349 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8351 # Determine the default libpath from the value encoded in an empty executable.
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8391 # Check for a 64-bit object if we didn't find anything.
8392 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; }
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8399 rm -f conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 # Warning - without using the other run time loading flags,
8405 # -berok will link without error, but may produce a broken library.
8406 no_undefined_flag=' ${wl}-bernotok'
8407 allow_undefined_flag=' ${wl}-berok'
8408 # -bexpall does not export symbols beginning with underscore (_)
8409 always_export_symbols=yes
8410 # Exported symbols can be pulled into shared objects from archives
8411 whole_archive_flag_spec=' '
8412 archive_cmds_need_lc=yes
8413 # This is similar to how AIX traditionally builds its shared libraries.
8414 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8420 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)'
8421 hardcode_libdir_flag_spec='-L$libdir'
8422 hardcode_minus_L=yes
8423 # see comment about different semantics on the GNU ld section
8428 export_dynamic_flag_spec=-rdynamic
8431 cygwin* | mingw* | pw32*)
8432 # When not using gcc, we currently assume that we are using
8433 # Microsoft Visual C++.
8434 # hardcode_libdir_flag_spec is actually meaningless, as there is
8435 # no search path for DLLs.
8436 hardcode_libdir_flag_spec=' '
8437 allow_undefined_flag=unsupported
8438 # Tell ltmain to make .lib files, not .a files.
8440 # Tell ltmain to make .dll files, not .so files.
8442 # FIXME: Setting linknames here is a bad hack.
8443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8444 # The linker will automatically build a .lib file if we build a DLL.
8445 old_archive_From_new_cmds='true'
8446 # FIXME: Should let the user specify the lib program.
8447 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8448 fix_srcfile_path='`cygpath -w "$srcfile"`'
8449 enable_shared_with_static_runtimes=yes
8452 darwin* | rhapsody*)
8454 rhapsody* | darwin1.[012])
8455 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8458 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8459 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8461 case ${MACOSX_DEPLOYMENT_TARGET} in
8463 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8466 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8472 archive_cmds_need_lc=no
8474 hardcode_automatic=yes
8475 hardcode_shlibpath_var=unsupported
8476 whole_archive_flag_spec=''
8477 link_all_deplibs=yes
8478 if test "$GCC" = yes ; then
8479 output_verbose_link_cmd='echo'
8480 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8481 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8482 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8483 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}'
8484 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}'
8486 case $cc_basename in
8488 output_verbose_link_cmd='echo'
8489 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8492 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}'
8493 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}'
8503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_shlibpath_var=no
8512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8513 # support. Future versions do this automatically, but an explicit c++rt0.o
8514 # does not break anything, and helps significantly (at the cost of a little
8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8518 hardcode_libdir_flag_spec='-R$libdir'
8520 hardcode_shlibpath_var=no
8523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8527 hardcode_minus_L=yes
8528 hardcode_shlibpath_var=no
8531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8532 freebsd* | kfreebsd*-gnu | dragonfly*)
8533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8534 hardcode_libdir_flag_spec='-R$libdir'
8536 hardcode_shlibpath_var=no
8540 if test "$GCC" = yes; then
8541 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'
8543 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'
8545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8546 hardcode_libdir_separator=:
8549 # hardcode_minus_L: Not really in the search PATH,
8550 # but as the default location of the library.
8551 hardcode_minus_L=yes
8552 export_dynamic_flag_spec='${wl}-E'
8556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8568 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8575 if test "$with_gnu_ld" = no; then
8578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579 hardcode_libdir_flag_spec_ld='+b $libdir'
8580 hardcode_libdir_separator=:
8582 hardcode_shlibpath_var=no
8585 hardcode_libdir_flag_spec='-L$libdir'
8587 hardcode_shlibpath_var=no
8589 # hardcode_minus_L: Not really in the search PATH,
8590 # but as the default location of the library.
8591 hardcode_minus_L=yes
8594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595 hardcode_libdir_separator=:
8597 export_dynamic_flag_spec='${wl}-E'
8599 # hardcode_minus_L: Not really in the search PATH,
8600 # but as the default location of the library.
8601 hardcode_minus_L=yes
8607 irix5* | irix6* | nonstopux*)
8608 if test "$GCC" = yes; then
8609 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'
8611 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'
8612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8615 hardcode_libdir_separator=:
8616 link_all_deplibs=yes
8619 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8625 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_shlibpath_var=no
8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634 hardcode_libdir_separator=:
8635 hardcode_shlibpath_var=no
8640 hardcode_shlibpath_var=no
8641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645 export_dynamic_flag_spec='${wl}-E'
8648 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_libdir_flag_spec='-R$libdir'
8653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_minus_L=yes
8663 allow_undefined_flag=unsupported
8664 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'
8665 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8669 if test "$GCC" = yes; then
8670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671 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'
8673 allow_undefined_flag=' -expect_unresolved \*'
8674 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'
8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677 hardcode_libdir_separator=:
8680 osf4* | osf5*) # as osf3* with the addition of -msym flag
8681 if test "$GCC" = yes; then
8682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683 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'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 allow_undefined_flag=' -expect_unresolved \*'
8687 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'
8688 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8689 $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'
8691 # Both c and cxx compiler support -rpath directly
8692 hardcode_libdir_flag_spec='-rpath $libdir'
8694 hardcode_libdir_separator=:
8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_shlibpath_var=no
8700 export_dynamic_flag_spec='${wl}-Bexport'
8701 runpath_var=LD_RUN_PATH
8702 hardcode_runpath_var=yes
8706 no_undefined_flag=' -z text'
8707 if test "$GCC" = yes; then
8709 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8714 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8718 hardcode_libdir_flag_spec='-R$libdir'
8719 hardcode_shlibpath_var=no
8721 solaris2.[0-5] | solaris2.[0-5].*) ;;
8723 # The compiler driver will combine linker options so we
8724 # cannot just pass the convience library names through
8725 # without $wl, iff we do not link with $LD.
8726 # Luckily, gcc supports the same syntax we need for Sun Studio.
8727 # Supported since Solaris 2.6 (maybe 2.5.1?)
8730 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8732 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' ;;
8735 link_all_deplibs=yes
8739 if test "x$host_vendor" = xsequent; then
8740 # Use $CC to link under sequent, because it throws in some extra .o
8741 # files that make .init and .fini sections work.
8742 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_libdir_flag_spec='-L$libdir'
8748 hardcode_minus_L=yes
8749 hardcode_shlibpath_var=no
8753 case $host_vendor in
8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_direct=yes # is this really true???
8759 ## LD is ld it makes a PLAMLIB
8760 ## CC just makes a GrossModule.
8761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8762 reload_cmds='$CC -r -o $output$reload_objs'
8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8770 runpath_var='LD_RUN_PATH'
8771 hardcode_shlibpath_var=no
8775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_shlibpath_var=no
8777 export_dynamic_flag_spec='-Bexport'
8781 if test -d /usr/nec; then
8782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_shlibpath_var=no
8784 runpath_var=LD_RUN_PATH
8785 hardcode_runpath_var=yes
8791 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_shlibpath_var=no
8795 hardcode_runpath_var=yes
8796 runpath_var=LD_RUN_PATH
8799 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8800 no_undefined_flag='${wl}-z ${wl}text'
8801 if test "$GCC" = yes; then
8802 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 runpath_var='LD_RUN_PATH'
8807 hardcode_shlibpath_var=no
8811 no_undefined_flag=' -z text'
8812 # $CC -shared without GNU ld will not create a library from C++
8813 # object files and a static libstdc++, better avoid it by now
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'
8817 hardcode_libdir_flag_spec=
8818 hardcode_shlibpath_var=no
8819 runpath_var='LD_RUN_PATH'
8823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_shlibpath_var=no
8834 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8835 echo "${ECHO_T}$ld_shlibs" >&6
8836 test "$ld_shlibs" = no && can_build_shared=no
8838 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8839 if test "$GCC" = yes; then
8840 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8844 # Do we need to explicitly link libc?
8846 case "x$archive_cmds_need_lc" in
8848 # Assume -lc should be added
8849 archive_cmds_need_lc=yes
8851 if test "$enable_shared" = yes && test "$GCC" = yes; then
8852 case $archive_cmds in
8854 # FIXME: we may have to deal with multi-command sequences.
8857 # Test whether the compiler implicitly links with -lc since on some
8858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8859 # to ld, don't add -lc before -lgcc.
8860 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8861 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866 (eval $ac_compile) 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } 2>conftest.err; then
8872 libobjs=conftest.$ac_objext
8874 wl=$lt_prog_compiler_wl
8880 lt_save_allow_undefined_flag=$allow_undefined_flag
8881 allow_undefined_flag=
8882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8883 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }
8888 archive_cmds_need_lc=no
8890 archive_cmds_need_lc=yes
8892 allow_undefined_flag=$lt_save_allow_undefined_flag
8894 cat conftest.err 1>&5
8897 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8898 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8905 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8906 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8908 libname_spec='lib$name'
8916 shlibpath_overrides_runpath=unknown
8918 dynamic_linker="$host_os ld.so"
8919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8920 if test "$GCC" = yes; then
8921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8922 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8923 # if the path contains ";" then we assume it to be the separator
8924 # otherwise default to the standard path separator (i.e. ":") - it is
8925 # assumed that no part of a normal pathname contains ";" but that should
8926 # okay in the real world where ";" in dirpaths is itself problematic.
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8934 need_lib_prefix=unknown
8935 hardcode_into_libs=no
8937 # when you set need_version to no, make sure it does not cause -set_version
8938 # flags to be left without arguments
8939 need_version=unknown
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8945 shlibpath_var=LIBPATH
8947 # AIX 3 has no versioning support, so we append a major version to the name.
8948 soname_spec='${libname}${release}${shared_ext}$major'
8955 hardcode_into_libs=yes
8956 if test "$host_cpu" = ia64; then
8957 # AIX 5 supports IA64
8958 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8959 shlibpath_var=LD_LIBRARY_PATH
8961 # With GCC up to 2.95.x, collect2 would create an import file
8962 # for dependence libraries. The import file would start with
8963 # the line `#! .'. This would cause the generated library to
8964 # depend on `.', always an invalid library. This was fixed in
8965 # development snapshots of GCC prior to 3.0.
8967 aix4 | aix4.[01] | aix4.[01].*)
8968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8970 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8977 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8978 # soname into executable. Probably we can add versioning support to
8979 # collect2, so additional links can be useful in future.
8980 if test "$aix_use_runtimelinking" = yes; then
8981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8982 # instead of lib<name>.a to let people know that these are not
8983 # typical AIX shared libraries.
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 # We preserve .a as extension for shared libraries through AIX4.2
8987 # and later when we are not doing run time linking.
8988 library_names_spec='${libname}${release}.a $libname.a'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8991 shlibpath_var=LIBPATH
8996 library_names_spec='$libname.ixlibrary $libname.a'
8997 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8998 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'
9002 library_names_spec='${libname}${shared_ext}'
9003 dynamic_linker="$host_os ld.so"
9004 shlibpath_var=LIBRARY_PATH
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9016 # the default ld.so.conf also contains /usr/contrib/lib and
9017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9018 # libtool to hard-code these into programs
9021 cygwin* | mingw* | pw32*)
9022 version_type=windows
9027 case $GCC,$host_os in
9028 yes,cygwin* | yes,mingw* | yes,pw32*)
9029 library_names_spec='$libname.dll.a'
9030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9031 postinstall_cmds='base_file=`basename \${file}`~
9032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9033 dldir=$destdir/`dirname \$dlpath`~
9034 test -d \$dldir || mkdir -p \$dldir~
9035 $install_prog $dir/$dlname \$dldir/$dlname~
9036 chmod a+x \$dldir/$dlname'
9037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9038 dlpath=$dir/\$dldll~
9040 shlibpath_overrides_runpath=yes
9044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9045 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9049 # MinGW DLLs use traditional 'lib' prefix
9050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9053 # It is most probably a Windows format PATH printed by
9054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9055 # path with ; separators, and with drive letters. We can handle the
9056 # drive letters (cygwin fileutils understands them), so leave them,
9057 # especially as we might pass files found there to a mingw objdump,
9058 # which wouldn't understand a cygwinified path. Ahh.
9059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9065 # pw32 DLLs use 'pw' prefix rather than 'lib'
9066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9075 dynamic_linker='Win32 ld.exe'
9076 # FIXME: first we should search . and the directory the executable is in
9080 darwin* | rhapsody*)
9081 dynamic_linker="$host_os dyld"
9085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9086 soname_spec='${libname}${release}${major}$shared_ext'
9087 shlibpath_overrides_runpath=yes
9088 shlibpath_var=DYLD_LIBRARY_PATH
9089 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9090 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9091 if test "$GCC" = yes; then
9092 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"`
9094 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 dynamic_linker='GNU ld.so'
9124 freebsd* | dragonfly*)
9125 # DragonFly does not have aout. When/if they implement a new
9126 # versioning mechanism, adjust this.
9127 if test -x /usr/bin/objformat; then
9128 objformat=`/usr/bin/objformat`
9131 freebsd[123]*) objformat=aout ;;
9135 version_type=freebsd-$objformat
9136 case $version_type in
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9147 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9152 freebsd3.[01]* | freebsdelf3.[01]*)
9153 shlibpath_overrides_runpath=yes
9154 hardcode_into_libs=yes
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 hardcode_into_libs=yes
9173 hpux9* | hpux10* | hpux11*)
9174 # Give a soname corresponding to the major version so that dld.sl refuses to
9175 # link against other versions.
9182 hardcode_into_libs=yes
9183 dynamic_linker="$host_os dld.so"
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 if test "X$HPUX_IA64_MODE" = X32; then
9189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9197 hardcode_into_libs=yes
9198 dynamic_linker="$host_os dld.sl"
9199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9208 dynamic_linker="$host_os dld.sl"
9209 shlibpath_var=SHLIB_PATH
9210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9215 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9216 postinstall_cmds='chmod 555 $lib'
9219 irix5* | irix6* | nonstopux*)
9221 nonstopux*) version_type=nonstopux ;;
9223 if test "$lt_cv_prog_gnu_ld" = yes; then
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9234 irix5* | nonstopux*)
9238 case $LD in # libtool.m4 will add one of these switches to LD
9239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9240 libsuff= shlibsuff= libmagic=32-bit;;
9241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9242 libsuff=32 shlibsuff=N32 libmagic=N32;;
9243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9245 *) libsuff= shlibsuff= libmagic=never-match;;
9249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9250 shlibpath_overrides_runpath=no
9251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9253 hardcode_into_libs=yes
9256 # No shared lib support for Linux oldld, aout, or coff.
9257 linux*oldld* | linux*aout* | linux*coff*)
9261 # This must be Linux ELF.
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=no
9271 # This implies no fast_install, which is unacceptable.
9272 # Some rework will be needed to allow for fast_install
9273 # before this can be enabled.
9274 hardcode_into_libs=yes
9276 # Append ld.so.conf contents to the search path
9277 if test -f /etc/ld.so.conf; then
9278 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' ' '`
9279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9282 # We used to test for /lib/ld.so.1 and disable shared libraries on
9283 # powerpc, because MkLinux only supported shared libraries with the
9284 # GNU dynamic linker. Since this was broken with cross compilers,
9285 # most powerpc-linux boxes support dynamic linking these days and
9286 # people can always --disable-shared, the test was removed, and we
9287 # assume the GNU/Linux dynamic linker is in use.
9288 dynamic_linker='GNU/Linux ld.so'
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=no
9299 hardcode_into_libs=yes
9300 dynamic_linker='NetBSD ld.elf_so'
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9308 soname_spec='${libname}${release}${shared_ext}$major'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=no
9311 hardcode_into_libs=yes
9312 dynamic_linker='GNU ld.so'
9319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9322 dynamic_linker='NetBSD (a.out) ld.so'
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 dynamic_linker='NetBSD ld.elf_so'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 hardcode_into_libs=yes
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 shlibpath_overrides_runpath=yes
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 shlibpath_overrides_runpath=yes
9353 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9355 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9356 *) need_version=no ;;
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9363 openbsd2.[89] | openbsd2.[89].*)
9364 shlibpath_overrides_runpath=no
9367 shlibpath_overrides_runpath=yes
9371 shlibpath_overrides_runpath=yes
9376 libname_spec='$name'
9379 library_names_spec='$libname${shared_ext} $libname.a'
9380 dynamic_linker='OS/2 ld.exe'
9381 shlibpath_var=LIBPATH
9384 osf3* | osf4* | osf5*)
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9392 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 shlibpath_var=LD_LIBRARY_PATH
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=yes
9410 hardcode_into_libs=yes
9411 # ldd complains unless libraries are executable
9412 postinstall_cmds='chmod +x $lib'
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=yes
9421 if test "$with_gnu_ld" = yes; then
9427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 case $host_vendor in
9434 shlibpath_overrides_runpath=no
9436 export_dynamic_flag_spec='${wl}-Blargedynsym'
9437 runpath_var=LD_RUN_PATH
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9452 if test -d /usr/nec ;then
9454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9455 soname_spec='$libname${shared_ext}.$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9471 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9472 echo "${ECHO_T}$dynamic_linker" >&6
9473 test "$dynamic_linker" = no && can_build_shared=no
9475 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9476 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9478 if test -n "$hardcode_libdir_flag_spec" || \
9479 test -n "$runpath_var" || \
9480 test "X$hardcode_automatic" = "Xyes" ; then
9482 # We can hardcode non-existant directories.
9483 if test "$hardcode_direct" != no &&
9484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9485 # have to relink, otherwise we might link with an installed library
9486 # when we should be linking with a yet-to-be-installed one
9487 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9488 test "$hardcode_minus_L" != no; then
9489 # Linking always hardcodes the temporary library directory.
9490 hardcode_action=relink
9492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9493 hardcode_action=immediate
9496 # We cannot hardcode anything, or else we can only hardcode existing
9498 hardcode_action=unsupported
9500 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9501 echo "${ECHO_T}$hardcode_action" >&6
9503 if test "$hardcode_action" = relink; then
9504 # Fast installation is not supported
9505 enable_fast_install=no
9506 elif test "$shlibpath_overrides_runpath" = yes ||
9507 test "$enable_shared" = no; then
9508 # Fast installation is not necessary
9509 enable_fast_install=needless
9514 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9515 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9516 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9517 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9518 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9519 echo "$as_me:$LINENO: result: yes" >&5
9520 echo "${ECHO_T}yes" >&6
9522 # FIXME - insert some real tests, host_os isn't really good enough
9525 if test -n "$STRIP" ; then
9526 striplib="$STRIP -x"
9527 echo "$as_me:$LINENO: result: yes" >&5
9528 echo "${ECHO_T}yes" >&6
9530 echo "$as_me:$LINENO: result: no" >&5
9531 echo "${ECHO_T}no" >&6
9535 echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6
9541 if test "x$enable_dlopen" != xyes; then
9542 enable_dlopen=unknown
9543 enable_dlopen_self=unknown
9544 enable_dlopen_self_static=unknown
9551 lt_cv_dlopen="load_add_on"
9553 lt_cv_dlopen_self=yes
9557 lt_cv_dlopen="LoadLibrary"
9562 lt_cv_dlopen="dlopen"
9567 # if libdl is installed we need to link against it
9568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 ac_check_lib_save_LIBS=$LIBS
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9582 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_dl_dlopen=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_lib_dl_dlopen=no
9625 rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_lib_save_LIBS
9629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9631 if test $ac_cv_lib_dl_dlopen = yes; then
9632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9637 lt_cv_dlopen_self=yes
9644 echo "$as_me:$LINENO: checking for shl_load" >&5
9645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9646 if test "${ac_cv_func_shl_load+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9657 #define shl_load innocuous_shl_load
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char shl_load (); below.
9661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662 <limits.h> exists even on freestanding compilers. */
9665 # include <limits.h>
9667 # include <assert.h>
9672 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9680 /* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9686 char (*f) () = shl_load;
9695 return f != shl_load;
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702 (eval $ac_link) 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_func_shl_load=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_cv_func_shl_load=no
9728 rm -f conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9733 if test $ac_cv_func_shl_load = yes; then
9734 lt_cv_dlopen="shl_load"
9736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_check_lib_save_LIBS=$LIBS
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9750 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_lib_dld_shl_load=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_lib_dld_shl_load=no
9793 rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9799 if test $ac_cv_lib_dld_shl_load = yes; then
9800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9802 echo "$as_me:$LINENO: checking for dlopen" >&5
9803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9804 if test "${ac_cv_func_dlopen+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9815 #define dlopen innocuous_dlopen
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char dlopen (); below.
9819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820 <limits.h> exists even on freestanding compilers. */
9823 # include <limits.h>
9825 # include <assert.h>
9830 /* Override any gcc2 internal prototype to avoid an error. */
9835 /* We use char because int might match the return type of a gcc2
9836 builtin and then its argument prototype would still apply. */
9838 /* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9844 char (*f) () = dlopen;
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_func_dlopen=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_func_dlopen=no
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9891 if test $ac_cv_func_dlopen = yes; then
9892 lt_cv_dlopen="dlopen"
9894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any gcc2 internal prototype to avoid an error. */
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925 (eval $ac_link) 2>conftest.er1
9927 grep -v '^ *+' conftest.er1 >conftest.err
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_lib_dl_dlopen=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_lib_dl_dlopen=no
9951 rm -f conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9957 if test $ac_cv_lib_dl_dlopen = yes; then
9958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_check_lib_save_LIBS=$LIBS
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_lib_svld_dlopen=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_lib_svld_dlopen=no
10017 rm -f conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10023 if test $ac_cv_lib_svld_dlopen = yes; then
10024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 ac_check_lib_save_LIBS=$LIBS
10033 cat >conftest.$ac_ext <<_ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_dld_dld_link=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_dld_dld_link=no
10083 rm -f conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10089 if test $ac_cv_lib_dld_dld_link = yes; then
10090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10111 if test "x$lt_cv_dlopen" != xno; then
10117 case $lt_cv_dlopen in
10119 save_CPPFLAGS="$CPPFLAGS"
10120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10122 save_LDFLAGS="$LDFLAGS"
10123 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10126 LIBS="$lt_cv_dlopen_libs $LIBS"
10128 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10130 if test "${lt_cv_dlopen_self+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 if test "$cross_compiling" = yes; then :
10134 lt_cv_dlopen_self=cross
10136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10137 lt_status=$lt_dlunknown
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10139 "configure"
10140 #include "confdefs.h"
10149 # define LT_DLGLOBAL RTLD_GLOBAL
10152 # define LT_DLGLOBAL DL_GLOBAL
10154 # define LT_DLGLOBAL 0
10158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10159 find out it does not work in some platform. */
10160 #ifndef LT_DLLAZY_OR_NOW
10162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10165 # define LT_DLLAZY_OR_NOW DL_LAZY
10168 # define LT_DLLAZY_OR_NOW RTLD_NOW
10171 # define LT_DLLAZY_OR_NOW DL_NOW
10173 # define LT_DLLAZY_OR_NOW 0
10181 extern "C" void exit (int);
10184 void fnord() { int i=42;}
10187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10188 int status = $lt_dlunknown;
10192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10194 /* dlclose (self); */
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10205 (./conftest; exit; ) >&5 2>/dev/null
10207 case x$lt_status in
10208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10210 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10213 # compilation failed
10214 lt_cv_dlopen_self=no
10221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10224 if test "x$lt_cv_dlopen_self" = xyes; then
10225 LDFLAGS="$LDFLAGS $link_static_flag"
10226 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10228 if test "${lt_cv_dlopen_self_static+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 if test "$cross_compiling" = yes; then :
10232 lt_cv_dlopen_self_static=cross
10234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235 lt_status=$lt_dlunknown
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10247 # define LT_DLGLOBAL RTLD_GLOBAL
10250 # define LT_DLGLOBAL DL_GLOBAL
10252 # define LT_DLGLOBAL 0
10256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257 find out it does not work in some platform. */
10258 #ifndef LT_DLLAZY_OR_NOW
10260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10263 # define LT_DLLAZY_OR_NOW DL_LAZY
10266 # define LT_DLLAZY_OR_NOW RTLD_NOW
10269 # define LT_DLLAZY_OR_NOW DL_NOW
10271 # define LT_DLLAZY_OR_NOW 0
10279 extern "C" void exit (int);
10282 void fnord() { int i=42;}
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10303 (./conftest; exit; ) >&5 2>/dev/null
10305 case x$lt_status in
10306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10308 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10311 # compilation failed
10312 lt_cv_dlopen_self_static=no
10319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10323 CPPFLAGS="$save_CPPFLAGS"
10324 LDFLAGS="$save_LDFLAGS"
10329 case $lt_cv_dlopen_self in
10330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10331 *) enable_dlopen_self=unknown ;;
10334 case $lt_cv_dlopen_self_static in
10335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10336 *) enable_dlopen_self_static=unknown ;;
10341 # Report which librarie types wil actually be built
10342 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10343 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10344 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10345 echo "${ECHO_T}$can_build_shared" >&6
10347 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10348 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10349 test "$can_build_shared" = "no" && enable_shared=no
10351 # On AIX, shared libraries and static libraries use the same namespace, and
10352 # are all built from PIC.
10355 test "$enable_shared" = yes && enable_static=no
10356 if test -n "$RANLIB"; then
10357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10358 postinstall_cmds='$RANLIB $lib'
10363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10364 test "$enable_shared" = yes && enable_static=no
10368 echo "$as_me:$LINENO: result: $enable_shared" >&5
10369 echo "${ECHO_T}$enable_shared" >&6
10371 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10372 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10373 # Make sure either enable_shared or enable_static is yes.
10374 test "$enable_shared" = yes || enable_static=yes
10375 echo "$as_me:$LINENO: result: $enable_static" >&5
10376 echo "${ECHO_T}$enable_static" >&6
10378 # The else clause should only fire when bootstrapping the
10379 # libtool distribution, otherwise you forgot to ship ltmain.sh
10380 # with your package, and you will get complaints that there are
10381 # no rules to generate ltmain.sh.
10382 if test -f "$ltmain"; then
10383 # See if we are running on zsh, and set the options which allow our commands through
10384 # without removal of \ escapes.
10385 if test -n "${ZSH_VERSION+set}" ; then
10386 setopt NO_GLOB_SUBST
10388 # Now quote all the things that may contain metacharacters while being
10389 # careful not to overquote the AC_SUBSTed values. We take copies of the
10390 # variables and quote the copies for generation of the libtool script.
10391 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10393 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10394 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10395 deplibs_check_method reload_flag reload_cmds need_locks \
10396 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10397 lt_cv_sys_global_symbol_to_c_name_address \
10398 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10399 old_postinstall_cmds old_postuninstall_cmds \
10403 lt_prog_compiler_wl \
10404 lt_prog_compiler_pic \
10405 lt_prog_compiler_static \
10406 lt_prog_compiler_no_builtin_flag \
10407 export_dynamic_flag_spec \
10408 thread_safe_flag_spec \
10409 whole_archive_flag_spec \
10410 enable_shared_with_static_runtimes \
10412 old_archive_from_new_cmds \
10417 compiler_lib_search_path \
10419 archive_expsym_cmds \
10421 postuninstall_cmds \
10422 old_archive_from_expsyms_cmds \
10423 allow_undefined_flag \
10424 no_undefined_flag \
10425 export_symbols_cmds \
10426 hardcode_libdir_flag_spec \
10427 hardcode_libdir_flag_spec_ld \
10428 hardcode_libdir_separator \
10429 hardcode_automatic \
10431 module_expsym_cmds \
10432 lt_cv_prog_compiler_c_o \
10434 include_expsyms; do
10437 old_archive_cmds | \
10438 old_archive_from_new_cmds | \
10440 archive_expsym_cmds | \
10442 module_expsym_cmds | \
10443 old_archive_from_expsyms_cmds | \
10444 export_symbols_cmds | \
10445 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10446 postinstall_cmds | postuninstall_cmds | \
10447 old_postinstall_cmds | old_postuninstall_cmds | \
10448 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10449 # Double-quote double-evaled strings.
10450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10459 *'\$0 --fallback-echo"')
10460 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10464 cfgfile="${ofile}T"
10465 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10467 { echo "$as_me:$LINENO: creating $ofile" >&5
10468 echo "$as_me: creating $ofile" >&6;}
10470 cat <<__EOF__ >> "$cfgfile"
10473 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10474 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10478 # Free Software Foundation, Inc.
10480 # This file is part of GNU Libtool:
10481 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10483 # This program is free software; you can redistribute it and/or modify
10484 # it under the terms of the GNU General Public License as published by
10485 # the Free Software Foundation; either version 2 of the License, or
10486 # (at your option) any later version.
10488 # This program is distributed in the hope that it will be useful, but
10489 # WITHOUT ANY WARRANTY; without even the implied warranty of
10490 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10491 # General Public License for more details.
10493 # You should have received a copy of the GNU General Public License
10494 # along with this program; if not, write to the Free Software
10495 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10497 # As a special exception to the GNU General Public License, if you
10498 # distribute this file as part of a program that contains a
10499 # configuration script generated by Autoconf, you may include it under
10500 # the same distribution terms that you use for the rest of that program.
10502 # A sed program that does not truncate output.
10505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10506 Xsed="$SED -e 1s/^X//"
10508 # The HP-UX ksh and POSIX shell print the target directory to stdout
10509 # if CDPATH is set.
10510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10512 # The names of the tagged configurations supported by this script.
10515 # ### BEGIN LIBTOOL CONFIG
10517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10519 # Shell to use when invoking shell scripts.
10522 # Whether or not to build shared libraries.
10523 build_libtool_libs=$enable_shared
10525 # Whether or not to build static libraries.
10526 build_old_libs=$enable_static
10528 # Whether or not to add -lc for building shared libraries.
10529 build_libtool_need_lc=$archive_cmds_need_lc
10531 # Whether or not to disallow shared libs when runtime libs are static
10532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10534 # Whether or not to optimize for fast installation.
10535 fast_install=$enable_fast_install
10538 host_alias=$host_alias
10542 # The build system.
10543 build_alias=$build_alias
10547 # An echo program that does not interpret backslashes.
10552 AR_FLAGS=$lt_AR_FLAGS
10557 # A language-specific compiler.
10560 # Is the compiler the GNU C compiler?
10566 # The linker used to build libraries.
10569 # Whether we need hard or soft links.
10572 # A BSD-compatible nm program.
10575 # A symbol stripping program
10578 # Used to examine libraries when file_magic_cmd begins "file"
10579 MAGIC_CMD=$MAGIC_CMD
10581 # Used on cygwin: DLL creation program.
10584 # Used on cygwin: object dumper.
10587 # Used on cygwin: assembler.
10590 # The name of the directory that contains temporary libtool files.
10593 # How to create reloadable object files.
10594 reload_flag=$lt_reload_flag
10595 reload_cmds=$lt_reload_cmds
10597 # How to pass a linker flag through the compiler.
10598 wl=$lt_lt_prog_compiler_wl
10600 # Object file suffix (normally "o").
10601 objext="$ac_objext"
10603 # Old archive suffix (normally "a").
10606 # Shared library suffix (normally ".so").
10607 shrext_cmds='$shrext_cmds'
10609 # Executable file suffix (normally "").
10612 # Additional compiler flags for building library objects.
10613 pic_flag=$lt_lt_prog_compiler_pic
10616 # What is the maximum length of a command?
10617 max_cmd_len=$lt_cv_sys_max_cmd_len
10619 # Does compiler simultaneously support -c and -o options?
10620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10622 # Must we lock files when doing compilation?
10623 need_locks=$lt_need_locks
10625 # Do we need the lib prefix for modules?
10626 need_lib_prefix=$need_lib_prefix
10628 # Do we need a version for libraries?
10629 need_version=$need_version
10631 # Whether dlopen is supported.
10632 dlopen_support=$enable_dlopen
10634 # Whether dlopen of programs is supported.
10635 dlopen_self=$enable_dlopen_self
10637 # Whether dlopen of statically linked programs is supported.
10638 dlopen_self_static=$enable_dlopen_self_static
10640 # Compiler flag to prevent dynamic linking.
10641 link_static_flag=$lt_lt_prog_compiler_static
10643 # Compiler flag to turn off builtin functions.
10644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10646 # Compiler flag to allow reflexive dlopens.
10647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10649 # Compiler flag to generate shared objects directly from archives.
10650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10652 # Compiler flag to generate thread-safe objects.
10653 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10655 # Library versioning type.
10656 version_type=$version_type
10658 # Format of library name prefix.
10659 libname_spec=$lt_libname_spec
10661 # List of archive names. First name is the real one, the rest are links.
10662 # The last name is the one that the linker finds with -lNAME.
10663 library_names_spec=$lt_library_names_spec
10665 # The coded name of the library, if different from the real name.
10666 soname_spec=$lt_soname_spec
10668 # Commands used to build and install an old-style archive.
10670 old_archive_cmds=$lt_old_archive_cmds
10671 old_postinstall_cmds=$lt_old_postinstall_cmds
10672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10674 # Create an old-style archive from a shared archive.
10675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10677 # Create a temporary old-style archive to link instead of a shared archive.
10678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10680 # Commands used to build and install a shared archive.
10681 archive_cmds=$lt_archive_cmds
10682 archive_expsym_cmds=$lt_archive_expsym_cmds
10683 postinstall_cmds=$lt_postinstall_cmds
10684 postuninstall_cmds=$lt_postuninstall_cmds
10686 # Commands used to build a loadable module (assumed same as above if empty)
10687 module_cmds=$lt_module_cmds
10688 module_expsym_cmds=$lt_module_expsym_cmds
10690 # Commands to strip libraries.
10691 old_striplib=$lt_old_striplib
10692 striplib=$lt_striplib
10694 # Dependencies to place before the objects being linked to create a
10696 predep_objects=$lt_predep_objects
10698 # Dependencies to place after the objects being linked to create a
10700 postdep_objects=$lt_postdep_objects
10702 # Dependencies to place before the objects being linked to create a
10704 predeps=$lt_predeps
10706 # Dependencies to place after the objects being linked to create a
10708 postdeps=$lt_postdeps
10710 # The library search path used internally by the compiler when linking
10711 # a shared library.
10712 compiler_lib_search_path=$lt_compiler_lib_search_path
10714 # Method to check whether dependent libraries are shared objects.
10715 deplibs_check_method=$lt_deplibs_check_method
10717 # Command to use when deplibs_check_method == file_magic.
10718 file_magic_cmd=$lt_file_magic_cmd
10720 # Flag that allows shared libraries with undefined symbols to be built.
10721 allow_undefined_flag=$lt_allow_undefined_flag
10723 # Flag that forces no undefined symbols.
10724 no_undefined_flag=$lt_no_undefined_flag
10726 # Commands used to finish a libtool library installation in a directory.
10727 finish_cmds=$lt_finish_cmds
10729 # Same as above, but a single script fragment to be evaled but not shown.
10730 finish_eval=$lt_finish_eval
10732 # Take the output of nm and produce a listing of raw symbols and C names.
10733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10735 # Transform the output of nm in a proper C declaration
10736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10738 # Transform the output of nm in a C name address pair
10739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10741 # This is the shared library runtime path variable.
10742 runpath_var=$runpath_var
10744 # This is the shared library path variable.
10745 shlibpath_var=$shlibpath_var
10747 # Is shlibpath searched before the hard-coded library search path?
10748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10750 # How to hardcode a shared library path into an executable.
10751 hardcode_action=$hardcode_action
10753 # Whether we should hardcode library paths into libraries.
10754 hardcode_into_libs=$hardcode_into_libs
10756 # Flag to hardcode \$libdir into a binary during linking.
10757 # This must work even if \$libdir does not exist.
10758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10760 # If ld is used when linking, flag to hardcode \$libdir into
10761 # a binary during linking. This must work even if \$libdir does
10763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10765 # Whether we need a single -rpath flag with a separated argument.
10766 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10768 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10769 # resulting binary.
10770 hardcode_direct=$hardcode_direct
10772 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10773 # resulting binary.
10774 hardcode_minus_L=$hardcode_minus_L
10776 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10777 # the resulting binary.
10778 hardcode_shlibpath_var=$hardcode_shlibpath_var
10780 # Set to yes if building a shared library automatically hardcodes DIR into the library
10781 # and all subsequent libraries and executables linked against it.
10782 hardcode_automatic=$hardcode_automatic
10784 # Variables whose values should be saved in libtool wrapper scripts and
10785 # restored at relink time.
10786 variables_saved_for_relink="$variables_saved_for_relink"
10788 # Whether libtool must link a program against all its dependency libraries.
10789 link_all_deplibs=$link_all_deplibs
10791 # Compile-time system search path for libraries
10792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10794 # Run-time system search path for libraries
10795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10797 # Fix the shell variable \$srcfile for the compiler.
10798 fix_srcfile_path="$fix_srcfile_path"
10800 # Set to yes if exported symbols are required.
10801 always_export_symbols=$always_export_symbols
10803 # The commands to list exported symbols.
10804 export_symbols_cmds=$lt_export_symbols_cmds
10806 # The commands to extract the exported symbol list from a shared archive.
10807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10809 # Symbols that should not be listed in the preloaded symbols.
10810 exclude_expsyms=$lt_exclude_expsyms
10812 # Symbols that must always be exported.
10813 include_expsyms=$lt_include_expsyms
10815 # ### END LIBTOOL CONFIG
10822 cat <<\EOF >> "$cfgfile"
10824 # AIX sometimes has problems with the GCC collect2 program. For some
10825 # reason, if we set the COLLECT_NAMES environment variable, the problems
10826 # vanish in a puff of smoke.
10827 if test "X${COLLECT_NAMES+set}" != Xset; then
10829 export COLLECT_NAMES
10835 # We use sed instead of cat because bash on DJGPP gets confused if
10836 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10837 # text mode, it properly converts lines to CR/LF. This bash problem
10838 # is reportedly fixed, but why not run on old versions too?
10839 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10841 mv -f "$cfgfile" "$ofile" || \
10842 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10846 # If there is no Makefile yet, we rely on a make rule to execute
10847 # `config.status --recheck' to rerun these tests and create the
10848 # libtool script then.
10849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10850 if test -f "$ltmain_in"; then
10851 test -f Makefile && make "$ltmain"
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10865 # Check whether --with-tags or --without-tags was given.
10866 if test "${with_tags+set}" = set; then
10867 withval="$with_tags"
10868 tagnames="$withval"
10871 if test -f "$ltmain" && test -n "$tagnames"; then
10872 if test ! -f "${ofile}"; then
10873 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10874 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10877 if test -z "$LTCC"; then
10878 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10879 if test -z "$LTCC"; then
10880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10881 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10884 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10888 # Extract list of available tagged configurations in $ofile.
10889 # Note that this assumes the entire list is on one line.
10890 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10893 for tagname in $tagnames; do
10895 # Check whether tagname contains only valid characters
10896 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10898 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10899 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10900 { (exit 1); exit 1; }; }
10904 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10906 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10907 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10908 { (exit 1); exit 1; }; }
10911 # Update the list of available tags.
10912 if test -n "$tagname"; then
10913 echo appending configuration tag \"$tagname\" to $ofile
10917 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10918 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10919 (test "X$CXX" != "Xg++"))) ; then
10921 ac_cpp='$CXXCPP $CPPFLAGS'
10922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10929 archive_cmds_need_lc_CXX=no
10930 allow_undefined_flag_CXX=
10931 always_export_symbols_CXX=no
10932 archive_expsym_cmds_CXX=
10933 export_dynamic_flag_spec_CXX=
10934 hardcode_direct_CXX=no
10935 hardcode_libdir_flag_spec_CXX=
10936 hardcode_libdir_flag_spec_ld_CXX=
10937 hardcode_libdir_separator_CXX=
10938 hardcode_minus_L_CXX=no
10939 hardcode_automatic_CXX=no
10941 module_expsym_cmds_CXX=
10942 link_all_deplibs_CXX=unknown
10943 old_archive_cmds_CXX=$old_archive_cmds
10944 no_undefined_flag_CXX=
10945 whole_archive_flag_spec_CXX=
10946 enable_shared_with_static_runtimes_CXX=no
10948 # Dependencies to place before and after the object being linked:
10949 predep_objects_CXX=
10950 postdep_objects_CXX=
10953 compiler_lib_search_path_CXX=
10955 # Source file extension for C++ test sources.
10958 # Object file extension for compiled C++ test sources.
10962 # Code to be used in simple compile tests
10963 lt_simple_compile_test_code="int some_variable = 0;\n"
10965 # Code to be used in simple link tests
10966 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10970 # If no C compiler was specified, use CC.
10973 # Allow CC to be a program name with arguments.
10977 # save warnings/boilerplate of simple test code
10978 ac_outfile=conftest.$ac_objext
10979 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10981 _lt_compiler_boilerplate=`cat conftest.err`
10984 ac_outfile=conftest.$ac_objext
10985 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10987 _lt_linker_boilerplate=`cat conftest.err`
10991 # Allow CC to be a program name with arguments.
10996 lt_save_with_gnu_ld=$with_gnu_ld
10997 lt_save_path_LD=$lt_cv_path_LD
10998 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10999 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11001 unset lt_cv_prog_gnu_ld
11003 if test -n "${lt_cv_path_LDCXX+set}"; then
11004 lt_cv_path_LD=$lt_cv_path_LDCXX
11006 unset lt_cv_path_LD
11008 test -z "${LDCXX+set}" || LD=$LDCXX
11012 for cc_temp in $compiler""; do
11014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11023 # We don't want -fno-exception wen compiling C++ code, so set the
11024 # no_builtin_flag separately
11025 if test "$GXX" = yes; then
11026 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11028 lt_prog_compiler_no_builtin_flag_CXX=
11031 if test "$GXX" = yes; then
11032 # Set up default GNU C++ configuration
11035 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11036 if test "${with_gnu_ld+set}" = set; then
11037 withval="$with_gnu_ld"
11038 test "$withval" = no || with_gnu_ld=yes
11043 if test "$GCC" = yes; then
11044 # Check if gcc -print-prog-name=ld gives a path.
11045 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11046 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11049 # gcc leaves a trailing carriage return which upsets mingw
11050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11055 # Accept absolute paths.
11057 re_direlt='/[^/][^/]*/\.\./'
11058 # Canonicalize the pathname of ld
11059 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11061 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11063 test -z "$LD" && LD="$ac_prog"
11066 # If it fails, then pretend we aren't using GCC.
11070 # If it is relative, then search for the first ld in PATH.
11071 with_gnu_ld=unknown
11074 elif test "$with_gnu_ld" = yes; then
11075 echo "$as_me:$LINENO: checking for GNU ld" >&5
11076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11078 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11081 if test "${lt_cv_path_LD+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 if test -z "$LD"; then
11085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11086 for ac_dir in $PATH; do
11088 test -z "$ac_dir" && ac_dir=.
11089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11090 lt_cv_path_LD="$ac_dir/$ac_prog"
11091 # Check to see if the program is GNU ld. I'd rather use --version,
11092 # but apparently some variants of GNU ld only accept -v.
11093 # Break only if it was the GNU/non-GNU ld that we prefer.
11094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11095 *GNU* | *'with BFD'*)
11096 test "$with_gnu_ld" != no && break
11099 test "$with_gnu_ld" != yes && break
11106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11110 LD="$lt_cv_path_LD"
11111 if test -n "$LD"; then
11112 echo "$as_me:$LINENO: result: $LD" >&5
11113 echo "${ECHO_T}$LD" >&6
11115 echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11118 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11119 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11120 { (exit 1); exit 1; }; }
11121 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11122 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11123 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11127 case `$LD -v 2>&1 </dev/null` in
11128 *GNU* | *'with BFD'*)
11129 lt_cv_prog_gnu_ld=yes
11132 lt_cv_prog_gnu_ld=no
11136 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11137 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11138 with_gnu_ld=$lt_cv_prog_gnu_ld
11142 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11143 # archiving commands below assume that GNU ld is being used.
11144 if test "$with_gnu_ld" = yes; then
11145 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11146 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'
11148 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11151 # If archive_cmds runs LD, not CC, wlarc should be empty
11152 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11153 # investigate it a little bit more. (MM)
11156 # ancient GNU ld didn't support --whole-archive et. al.
11157 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11158 grep 'no-whole-archive' > /dev/null; then
11159 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11161 whole_archive_flag_spec_CXX=
11167 # A generic and very simple default shared library creation
11168 # command for GNU C++ for the case where it uses the native
11169 # linker, instead of GNU ld. If possible, this setting should
11170 # overridden to take advantage of the native linker features on
11171 # the platform it is being used on.
11172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11175 # Commands to make compiler produce verbose output that lists
11176 # what "hidden" libraries, object files and flags are used when
11177 # linking a shared library.
11178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11186 # PORTME: fill in a description of your system's C++ link characteristics
11187 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11188 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11192 # FIXME: insert proper C++ library support
11196 if test "$host_cpu" = ia64; then
11197 # On IA64, the linker does run time linking by default, so we don't
11198 # have to do anything special.
11199 aix_use_runtimelinking=no
11200 exp_sym_flag='-Bexport'
11203 aix_use_runtimelinking=no
11205 # Test if we are trying to use run time linking or normal
11206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11207 # need to do runtime linking.
11208 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11209 for ld_flag in $LDFLAGS; do
11212 aix_use_runtimelinking=yes
11219 exp_sym_flag='-bexport'
11220 no_entry_flag='-bnoentry'
11223 # When large executables or shared objects are built, AIX ld can
11224 # have problems creating the table of contents. If linking a library
11225 # or program results in "error TOC overflow" add -mminimal-toc to
11226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11229 archive_cmds_CXX=''
11230 hardcode_direct_CXX=yes
11231 hardcode_libdir_separator_CXX=':'
11232 link_all_deplibs_CXX=yes
11234 if test "$GXX" = yes; then
11235 case $host_os in aix4.[012]|aix4.[012].*)
11236 # We only want to do this on AIX 4.2 and lower, the check
11237 # below for broken collect2 doesn't work under 4.3+
11238 collect2name=`${CC} -print-prog-name=collect2`
11239 if test -f "$collect2name" && \
11240 strings "$collect2name" | grep resolve_lib_name >/dev/null
11242 # We have reworked collect2
11243 hardcode_direct_CXX=yes
11245 # We have old collect2
11246 hardcode_direct_CXX=unsupported
11247 # It fails to find uninstalled libraries when the uninstalled
11248 # path is not listed in the libpath. Setting hardcode_minus_L
11249 # to unsupported forces relinking
11250 hardcode_minus_L_CXX=yes
11251 hardcode_libdir_flag_spec_CXX='-L$libdir'
11252 hardcode_libdir_separator_CXX=
11255 shared_flag='-shared'
11256 if test "$aix_use_runtimelinking" = yes; then
11257 shared_flag="$shared_flag "'${wl}-G'
11261 if test "$host_cpu" = ia64; then
11262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11263 # chokes on -Wl,-G. The following line is correct:
11266 if test "$aix_use_runtimelinking" = yes; then
11267 shared_flag='${wl}-G'
11269 shared_flag='${wl}-bM:SRE'
11274 # It seems that -bexpall does not export symbols beginning with
11275 # underscore (_), so it is better to generate a list of symbols to export.
11276 always_export_symbols_CXX=yes
11277 if test "$aix_use_runtimelinking" = yes; then
11278 # Warning - without using the other runtime loading flags (-brtl),
11279 # -berok will link without error, but may produce a broken library.
11280 allow_undefined_flag_CXX='-berok'
11281 # Determine the default libpath from the value encoded in an empty executable.
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11321 # Check for a 64-bit object if we didn't find anything.
11322 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; }
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11329 rm -f conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11333 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11335 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11337 if test "$host_cpu" = ia64; then
11338 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11339 allow_undefined_flag_CXX="-z nodefs"
11340 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11342 # Determine the default libpath from the value encoded in an empty executable.
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11362 grep -v '^ *+' conftest.er1 >conftest.err
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11382 # Check for a 64-bit object if we didn't find anything.
11383 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; }
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11390 rm -f conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11395 # Warning - without using the other run time loading flags,
11396 # -berok will link without error, but may produce a broken library.
11397 no_undefined_flag_CXX=' ${wl}-bernotok'
11398 allow_undefined_flag_CXX=' ${wl}-berok'
11399 # -bexpall does not export symbols beginning with underscore (_)
11400 always_export_symbols_CXX=yes
11401 # Exported symbols can be pulled into shared objects from archives
11402 whole_archive_flag_spec_CXX=' '
11403 archive_cmds_need_lc_CXX=yes
11404 # This is similar to how AIX traditionally builds its shared libraries.
11405 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11410 case $cc_basename in
11412 # FIXME: insert proper C++ library support
11419 cygwin* | mingw* | pw32*)
11420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11421 # as there is no search path for DLLs.
11422 hardcode_libdir_flag_spec_CXX='-L$libdir'
11423 allow_undefined_flag_CXX=unsupported
11424 always_export_symbols_CXX=no
11425 enable_shared_with_static_runtimes_CXX=yes
11427 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11429 # If the export-symbols file already is a .def file (1st line
11430 # is EXPORTS), use it as is; otherwise, prepend...
11431 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11432 cp $export_symbols $output_objdir/$soname.def;
11434 echo EXPORTS > $output_objdir/$soname.def;
11435 cat $export_symbols >> $output_objdir/$soname.def;
11437 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11442 darwin* | rhapsody*)
11444 rhapsody* | darwin1.[012])
11445 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11448 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11449 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11451 case ${MACOSX_DEPLOYMENT_TARGET} in
11453 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11456 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11462 archive_cmds_need_lc_CXX=no
11463 hardcode_direct_CXX=no
11464 hardcode_automatic_CXX=yes
11465 hardcode_shlibpath_var_CXX=unsupported
11466 whole_archive_flag_spec_CXX=''
11467 link_all_deplibs_CXX=yes
11469 if test "$GXX" = yes ; then
11470 lt_int_apple_cc_single_mod=no
11471 output_verbose_link_cmd='echo'
11472 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11473 lt_int_apple_cc_single_mod=yes
11475 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11476 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11478 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'
11480 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11482 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11483 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}'
11485 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}'
11487 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}'
11489 case $cc_basename in
11491 output_verbose_link_cmd='echo'
11492 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'
11493 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11495 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}'
11496 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}'
11506 case $cc_basename in
11508 # FIXME: insert proper C++ library support
11512 # Green Hills C++ Compiler
11513 # FIXME: insert proper C++ library support
11517 # FIXME: insert proper C++ library support
11523 # C++ shared libraries reported to be fairly broken before switch to ELF
11527 archive_cmds_need_lc_CXX=no
11529 freebsd* | kfreebsd*-gnu | dragonfly*)
11530 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11537 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11538 hardcode_libdir_separator_CXX=:
11539 export_dynamic_flag_spec_CXX='${wl}-E'
11540 hardcode_direct_CXX=yes
11541 hardcode_minus_L_CXX=yes # Not in the search PATH,
11542 # but as the default
11543 # location of the library.
11545 case $cc_basename in
11547 # FIXME: insert proper C++ library support
11551 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'
11552 # Commands to make compiler produce verbose output that lists
11553 # what "hidden" libraries, object files and flags are used when
11554 # linking a shared library.
11556 # There doesn't appear to be a way to prevent this compiler from
11557 # explicitly linking system object files so we need to strip them
11558 # from the output so that they don't get included in the library
11560 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'
11563 if test "$GXX" = yes; then
11564 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'
11566 # FIXME: insert proper C++ library support
11573 if test $with_gnu_ld = no; then
11576 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11577 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11578 hardcode_libdir_separator_CXX=:
11581 hardcode_libdir_flag_spec_CXX='-L$libdir'
11584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11586 export_dynamic_flag_spec_CXX='${wl}-E'
11592 hardcode_direct_CXX=no
11593 hardcode_shlibpath_var_CXX=no
11596 hardcode_direct_CXX=no
11597 hardcode_shlibpath_var_CXX=no
11598 hardcode_minus_L_CXX=yes # Not in the search PATH,
11599 # but as the default
11600 # location of the library.
11603 hardcode_direct_CXX=yes
11604 hardcode_minus_L_CXX=yes # Not in the search PATH,
11605 # but as the default
11606 # location of the library.
11610 case $cc_basename in
11612 # FIXME: insert proper C++ library support
11618 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11624 # Commands to make compiler produce verbose output that lists
11625 # what "hidden" libraries, object files and flags are used when
11626 # linking a shared library.
11628 # There doesn't appear to be a way to prevent this compiler from
11629 # explicitly linking system object files so we need to strip them
11630 # from the output so that they don't get included in the library
11632 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'
11635 if test "$GXX" = yes; then
11636 if test $with_gnu_ld = no; then
11639 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11642 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'
11647 # FIXME: insert proper C++ library support
11654 case $cc_basename in
11657 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'
11659 # Archives containing C++ object files must be created using
11660 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11661 # necessary to make sure instantiated templates are included
11663 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11666 if test "$GXX" = yes; then
11667 if test "$with_gnu_ld" = no; then
11668 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'
11670 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'
11673 link_all_deplibs_CXX=yes
11676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11677 hardcode_libdir_separator_CXX=:
11680 case $cc_basename in
11682 # Kuck and Associates, Inc. (KAI) C++ Compiler
11684 # KCC will only create a shared library if the output file
11685 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11686 # to its proper name (with version) after linking.
11687 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'
11688 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'
11689 # Commands to make compiler produce verbose output that lists
11690 # what "hidden" libraries, object files and flags are used when
11691 # linking a shared library.
11693 # There doesn't appear to be a way to prevent this compiler from
11694 # explicitly linking system object files so we need to strip them
11695 # from the output so that they don't get included in the library
11697 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'
11699 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11700 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11702 # Archives containing C++ object files must be created using
11703 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11704 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11709 # version 8.0 and above of icpc choke on multiply defined symbols
11710 # if we add $predep_objects and $postdep_objects, however 7.1 and
11711 # earlier do not add the objects themselves.
11712 case `$CC -V 2>&1` in
11714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11715 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'
11717 *) # Version 8.0 or newer
11720 ia64*) tmp_idyn=' -i_dynamic';;
11722 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11723 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'
11726 archive_cmds_need_lc_CXX=no
11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11729 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11732 # Portland Group C++ compiler
11733 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11734 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'
11736 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11738 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'
11742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743 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'
11745 runpath_var=LD_RUN_PATH
11746 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11747 hardcode_libdir_separator_CXX=:
11749 # Commands to make compiler produce verbose output that lists
11750 # what "hidden" libraries, object files and flags are used when
11751 # linking a shared library.
11753 # There doesn't appear to be a way to prevent this compiler from
11754 # explicitly linking system object files so we need to strip them
11755 # from the output so that they don't get included in the library
11757 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'
11762 # FIXME: insert proper C++ library support
11766 # FIXME: insert proper C++ library support
11770 case $cc_basename in
11772 # FIXME: insert proper C++ library support
11776 # FIXME: insert proper C++ library support
11781 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11783 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11785 hardcode_libdir_flag_spec_CXX='-R$libdir'
11786 hardcode_direct_CXX=yes
11787 hardcode_shlibpath_var_CXX=no
11789 # Workaround some broken pre-1.5 toolchains
11790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11793 # C++ shared libraries are fairly broken
11797 hardcode_direct_CXX=yes
11798 hardcode_shlibpath_var_CXX=no
11799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11802 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11803 export_dynamic_flag_spec_CXX='${wl}-E'
11804 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11806 output_verbose_link_cmd='echo'
11809 case $cc_basename in
11811 # Kuck and Associates, Inc. (KAI) C++ Compiler
11813 # KCC will only create a shared library if the output file
11814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11815 # to its proper name (with version) after linking.
11816 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'
11818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819 hardcode_libdir_separator_CXX=:
11821 # Archives containing C++ object files must be created using
11822 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11827 # Rational C++ 2.4.1
11828 # FIXME: insert proper C++ library support
11832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833 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'
11835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836 hardcode_libdir_separator_CXX=:
11838 # Commands to make compiler produce verbose output that lists
11839 # what "hidden" libraries, object files and flags are used when
11840 # linking a shared library.
11842 # There doesn't appear to be a way to prevent this compiler from
11843 # explicitly linking system object files so we need to strip them
11844 # from the output so that they don't get included in the library
11846 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'
11849 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851 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'
11853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854 hardcode_libdir_separator_CXX=:
11856 # Commands to make compiler produce verbose output that lists
11857 # what "hidden" libraries, object files and flags are used when
11858 # linking a shared library.
11859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11862 # FIXME: insert proper C++ library support
11869 case $cc_basename in
11871 # Kuck and Associates, Inc. (KAI) C++ Compiler
11873 # KCC will only create a shared library if the output file
11874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875 # to its proper name (with version) after linking.
11876 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'
11878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879 hardcode_libdir_separator_CXX=:
11881 # Archives containing C++ object files must be created using
11882 # the KAI C++ compiler.
11883 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11886 # Rational C++ 2.4.1
11887 # FIXME: insert proper C++ library support
11891 allow_undefined_flag_CXX=' -expect_unresolved \*'
11892 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'
11893 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894 echo "-hidden">> $lib.exp~
11895 $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~
11898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899 hardcode_libdir_separator_CXX=:
11901 # Commands to make compiler produce verbose output that lists
11902 # what "hidden" libraries, object files and flags are used when
11903 # linking a shared library.
11905 # There doesn't appear to be a way to prevent this compiler from
11906 # explicitly linking system object files so we need to strip them
11907 # from the output so that they don't get included in the library
11909 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'
11912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914 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'
11916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917 hardcode_libdir_separator_CXX=:
11919 # Commands to make compiler produce verbose output that lists
11920 # what "hidden" libraries, object files and flags are used when
11921 # linking a shared library.
11922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11925 # FIXME: insert proper C++ library support
11932 # FIXME: insert proper C++ library support
11936 archive_cmds_need_lc_CXX=no
11937 case $cc_basename in
11939 # FIXME: insert proper C++ library support
11943 # FIXME: insert proper C++ library support
11949 case $cc_basename in
11952 # FIXME: insert proper C++ library support
11957 # FIXME: insert proper C++ library support
11961 # FIXME: insert proper C++ library support
11967 case $cc_basename in
11969 # Sun C++ 4.2, 5.x and Centerline C++
11970 archive_cmds_need_lc_CXX=yes
11971 no_undefined_flag_CXX=' -zdefs'
11972 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11974 $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'
11976 hardcode_libdir_flag_spec_CXX='-R$libdir'
11977 hardcode_shlibpath_var_CXX=no
11979 solaris2.[0-5] | solaris2.[0-5].*) ;;
11981 # The C++ compiler is used as linker so we must use $wl
11982 # flag to pass the commands to the underlying system
11983 # linker. We must also pass each convience library through
11984 # to the system linker between allextract/defaultextract.
11985 # The C++ compiler will combine linker options so we
11986 # cannot just pass the convience library names through
11988 # Supported since Solaris 2.6 (maybe 2.5.1?)
11989 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'
11992 link_all_deplibs_CXX=yes
11994 output_verbose_link_cmd='echo'
11996 # Archives containing C++ object files must be created using
11997 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11998 # necessary to make sure instantiated templates are included
12000 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12003 # Green Hills C++ Compiler
12004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12006 # The C++ compiler must be used to create the archive.
12007 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12010 # GNU C++ compiler with Solaris linker
12011 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12012 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12013 if $CC --version | grep -v '^2\.7' > /dev/null; then
12014 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12015 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12016 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12018 # Commands to make compiler produce verbose output that lists
12019 # what "hidden" libraries, object files and flags are used when
12020 # linking a shared library.
12021 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12023 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12025 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12026 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12027 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12029 # Commands to make compiler produce verbose output that lists
12030 # what "hidden" libraries, object files and flags are used when
12031 # linking a shared library.
12032 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12035 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12040 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12041 archive_cmds_need_lc_CXX=no
12044 case $cc_basename in
12046 # NonStop-UX NCC 3.20
12047 # FIXME: insert proper C++ library support
12051 # FIXME: insert proper C++ library support
12057 # FIXME: insert proper C++ library support
12061 # FIXME: insert proper C++ library support
12065 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12066 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12067 test "$ld_shlibs_CXX" = no && can_build_shared=no
12073 cat > conftest.$ac_ext <<EOF
12077 Foo (void) { a = 0; }
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; then
12088 # Parse the compiler output and extract the necessary
12089 # objects, libraries and library flags.
12091 # Sentinel used to keep track of whether or not we are before
12092 # the conftest object file.
12093 pre_test_object_deps_done=no
12095 # The `*' in the case matches for architectures that use `case' in
12096 # $output_verbose_cmd can trigger glob expansion during the loop
12097 # eval without this substitution.
12098 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12100 for p in `eval $output_verbose_link_cmd`; do
12104 # Some compilers place space between "-{L,R}" and the path.
12105 # Remove the space.
12106 if test $p = "-L" \
12107 || test $p = "-R"; then
12114 if test "$pre_test_object_deps_done" = no; then
12117 # Internal compiler library paths should come after those
12118 # provided the user. The postdeps already come after the
12119 # user supplied libs so there is no need to process them.
12120 if test -z "$compiler_lib_search_path_CXX"; then
12121 compiler_lib_search_path_CXX="${prev}${p}"
12123 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12126 # The "-l" case would never come before the object being
12127 # linked, so don't bother handling this case.
12130 if test -z "$postdeps_CXX"; then
12131 postdeps_CXX="${prev}${p}"
12133 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12139 # This assumes that the test object file only shows up
12140 # once in the compiler output.
12141 if test "$p" = "conftest.$objext"; then
12142 pre_test_object_deps_done=yes
12146 if test "$pre_test_object_deps_done" = no; then
12147 if test -z "$predep_objects_CXX"; then
12148 predep_objects_CXX="$p"
12150 predep_objects_CXX="$predep_objects_CXX $p"
12153 if test -z "$postdep_objects_CXX"; then
12154 postdep_objects_CXX="$p"
12156 postdep_objects_CXX="$postdep_objects_CXX $p"
12161 *) ;; # Ignore the rest.
12169 echo "libtool.m4: error: problem compiling CXX test program"
12172 $rm -f confest.$objext
12174 # PORTME: override above test on systems where it is broken
12177 case $cc_basename in
12179 # Adding this requires a known-good setup of shared libraries for
12180 # Sun compiler versions before 5.6, else PIC objects from an old
12181 # archive will be linked into the output, leading to subtle bugs.
12182 postdeps_CXX='-lCstd -lCrun'
12188 case " $postdeps_CXX " in
12189 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12192 lt_prog_compiler_wl_CXX=
12193 lt_prog_compiler_pic_CXX=
12194 lt_prog_compiler_static_CXX=
12196 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12199 # C++ specific cases for pic, static, wl, etc.
12200 if test "$GXX" = yes; then
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_static_CXX='-static'
12206 # All AIX code is PIC.
12207 if test "$host_cpu" = ia64; then
12208 # AIX 5 now supports IA64 processor
12209 lt_prog_compiler_static_CXX='-Bstatic'
12213 # FIXME: we need at least 68020 code to build shared libraries, but
12214 # adding the `-m68020' flag to GCC prevents building anything better,
12216 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12219 # PIC is the default for these OSes.
12221 mingw* | os2* | pw32*)
12222 # This hack is so that the source file can tell whether it is being
12223 # built for inclusion in a dll (and should export symbols for example).
12224 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12226 darwin* | rhapsody*)
12227 # PIC is the default on this platform
12228 # Common symbols not allowed in MH_DYLIB files
12229 lt_prog_compiler_pic_CXX='-fno-common'
12232 # DJGPP does not support shared libraries at all
12233 lt_prog_compiler_pic_CXX=
12236 if test -d /usr/nec; then
12237 lt_prog_compiler_pic_CXX=-Kconform_pic
12241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12242 # not for PA HP-UX.
12247 lt_prog_compiler_pic_CXX='-fPIC'
12252 lt_prog_compiler_pic_CXX='-fPIC'
12258 # All AIX code is PIC.
12259 if test "$host_cpu" = ia64; then
12260 # AIX 5 now supports IA64 processor
12261 lt_prog_compiler_static_CXX='-Bstatic'
12263 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12267 case $cc_basename in
12269 # Green Hills C++ Compiler
12270 # _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"
12275 # PIC is the default on this platform
12276 # Common symbols not allowed in MH_DYLIB files
12277 case $cc_basename in
12279 lt_prog_compiler_pic_CXX='-qnocommon'
12280 lt_prog_compiler_wl_CXX='-Wl,'
12285 case $cc_basename in
12287 lt_prog_compiler_pic_CXX='-KPIC'
12290 # Green Hills C++ Compiler
12291 lt_prog_compiler_pic_CXX='-pic'
12297 freebsd* | kfreebsd*-gnu | dragonfly*)
12298 # FreeBSD uses GNU C++
12300 hpux9* | hpux10* | hpux11*)
12301 case $cc_basename in
12303 lt_prog_compiler_wl_CXX='-Wl,'
12304 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12305 if test "$host_cpu" != ia64; then
12306 lt_prog_compiler_pic_CXX='+Z'
12310 lt_prog_compiler_wl_CXX='-Wl,'
12311 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12317 lt_prog_compiler_pic_CXX='+Z'
12325 irix5* | irix6* | nonstopux*)
12326 case $cc_basename in
12328 lt_prog_compiler_wl_CXX='-Wl,'
12329 lt_prog_compiler_static_CXX='-non_shared'
12330 # CC pic flag -KPIC is the default.
12337 case $cc_basename in
12340 lt_prog_compiler_wl_CXX='--backend -Wl,'
12341 lt_prog_compiler_pic_CXX='-fPIC'
12345 lt_prog_compiler_wl_CXX='-Wl,'
12346 lt_prog_compiler_pic_CXX='-KPIC'
12347 lt_prog_compiler_static_CXX='-static'
12350 # Portland Group C++ compiler.
12351 lt_prog_compiler_wl_CXX='-Wl,'
12352 lt_prog_compiler_pic_CXX='-fpic'
12353 lt_prog_compiler_static_CXX='-Bstatic'
12357 # Make sure the PIC flag is empty. It appears that all Alpha
12358 # Linux and Compaq Tru64 Unix objects are PIC.
12359 lt_prog_compiler_pic_CXX=
12360 lt_prog_compiler_static_CXX='-non_shared'
12371 case $cc_basename in
12373 lt_prog_compiler_pic_CXX='-W c,exportall'
12379 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12381 osf3* | osf4* | osf5*)
12382 case $cc_basename in
12384 lt_prog_compiler_wl_CXX='--backend -Wl,'
12387 # Rational C++ 2.4.1
12388 lt_prog_compiler_pic_CXX='-pic'
12391 # Digital/Compaq C++
12392 lt_prog_compiler_wl_CXX='-Wl,'
12393 # Make sure the PIC flag is empty. It appears that all Alpha
12394 # Linux and Compaq Tru64 Unix objects are PIC.
12395 lt_prog_compiler_pic_CXX=
12396 lt_prog_compiler_static_CXX='-non_shared'
12405 case $cc_basename in
12407 lt_prog_compiler_pic_CXX='-fPIC'
12414 case $cc_basename in
12416 # Sun C++ 4.2, 5.x and Centerline C++
12417 lt_prog_compiler_pic_CXX='-KPIC'
12418 lt_prog_compiler_static_CXX='-Bstatic'
12419 lt_prog_compiler_wl_CXX='-Qoption ld '
12422 # Green Hills C++ Compiler
12423 lt_prog_compiler_pic_CXX='-PIC'
12430 case $cc_basename in
12433 lt_prog_compiler_pic_CXX='-pic'
12434 lt_prog_compiler_static_CXX='-Bstatic'
12438 lt_prog_compiler_pic_CXX='-pic'
12445 case $cc_basename in
12447 # NonStop-UX NCC 3.20
12448 lt_prog_compiler_pic_CXX='-KPIC'
12459 lt_prog_compiler_can_build_shared_CXX=no
12464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12465 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12468 # Check to make sure the PIC flag actually works.
12470 if test -n "$lt_prog_compiler_pic_CXX"; then
12472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12474 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 lt_prog_compiler_pic_works_CXX=no
12478 ac_outfile=conftest.$ac_objext
12479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12480 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12481 # Insert the option either (1) after the last *FLAGS variable, or
12482 # (2) before a word containing "conftest.", or (3) at the end.
12483 # Note that $ac_compile itself does not contain backslashes and begins
12484 # with a dollar sign (not a hyphen), so the echo should work correctly.
12485 # The option is referenced via a variable to avoid confusing sed.
12486 lt_compile=`echo "$ac_compile" | $SED \
12487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12489 -e 's:$: $lt_compiler_flag:'`
12490 (eval echo "\"\$as_me:12490: $lt_compile\"" >&5)
12491 (eval "$lt_compile" 2>conftest.err)
12493 cat conftest.err >&5
12494 echo "$as_me:12494: \$? = $ac_status" >&5
12495 if (exit $ac_status) && test -s "$ac_outfile"; then
12496 # The compiler can only warn and ignore the option if not recognized
12497 # So say no if there are warnings other than the usual output.
12498 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12499 $SED '/^$/d' conftest.err >conftest.er2
12500 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12501 lt_prog_compiler_pic_works_CXX=yes
12507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12508 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12510 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12511 case $lt_prog_compiler_pic_CXX in
12513 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12516 lt_prog_compiler_pic_CXX=
12517 lt_prog_compiler_can_build_shared_CXX=no
12522 # For platforms which do not support PIC, -DPIC is meaningless:
12524 lt_prog_compiler_pic_CXX=
12527 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12531 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12533 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 lt_cv_prog_compiler_c_o_CXX=no
12537 $rm -r conftest 2>/dev/null
12541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12543 lt_compiler_flag="-o out/conftest2.$ac_objext"
12544 # Insert the option either (1) after the last *FLAGS variable, or
12545 # (2) before a word containing "conftest.", or (3) at the end.
12546 # Note that $ac_compile itself does not contain backslashes and begins
12547 # with a dollar sign (not a hyphen), so the echo should work correctly.
12548 lt_compile=`echo "$ac_compile" | $SED \
12549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551 -e 's:$: $lt_compiler_flag:'`
12552 (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
12553 (eval "$lt_compile" 2>out/conftest.err)
12555 cat out/conftest.err >&5
12556 echo "$as_me:12556: \$? = $ac_status" >&5
12557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12559 # The compiler can only warn and ignore the option if not recognized
12560 # So say no if there are warnings
12561 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12562 $SED '/^$/d' out/conftest.err >out/conftest.er2
12563 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12564 lt_cv_prog_compiler_c_o_CXX=yes
12569 # SGI C++ compiler will create directory out/ii_files/ for
12570 # template instantiation
12571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12572 $rm out/* && rmdir out
12578 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12582 hard_links="nottested"
12583 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12584 # do not overwrite the value of need_locks provided by the user
12585 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591 ln conftest.a conftest.b 2>&5 || hard_links=no
12592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12593 echo "$as_me:$LINENO: result: $hard_links" >&5
12594 echo "${ECHO_T}$hard_links" >&6
12595 if test "$hard_links" = no; then
12596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12610 # If we're using GNU nm, then we don't want the "-C" option.
12611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12613 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'
12615 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'
12619 export_symbols_cmds_CXX="$ltdll_cmds"
12622 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'
12625 link_all_deplibs_CXX=no
12628 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12632 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12633 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12634 test "$ld_shlibs_CXX" = no && can_build_shared=no
12636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12637 if test "$GCC" = yes; then
12638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12642 # Do we need to explicitly link libc?
12644 case "x$archive_cmds_need_lc_CXX" in
12646 # Assume -lc should be added
12647 archive_cmds_need_lc_CXX=yes
12649 if test "$enable_shared" = yes && test "$GCC" = yes; then
12650 case $archive_cmds_CXX in
12652 # FIXME: we may have to deal with multi-command sequences.
12655 # Test whether the compiler implicitly links with -lc since on some
12656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12657 # to ld, don't add -lc before -lgcc.
12658 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } 2>conftest.err; then
12670 libobjs=conftest.$ac_objext
12672 wl=$lt_prog_compiler_wl_CXX
12678 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12679 allow_undefined_flag_CXX=
12680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12681 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }
12686 archive_cmds_need_lc_CXX=no
12688 archive_cmds_need_lc_CXX=yes
12690 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12692 cat conftest.err 1>&5
12695 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12696 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12703 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12705 library_names_spec=
12706 libname_spec='lib$name'
12710 postuninstall_cmds=
12714 shlibpath_overrides_runpath=unknown
12716 dynamic_linker="$host_os ld.so"
12717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12718 if test "$GCC" = yes; then
12719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12721 # if the path contains ";" then we assume it to be the separator
12722 # otherwise default to the standard path separator (i.e. ":") - it is
12723 # assumed that no part of a normal pathname contains ";" but that should
12724 # okay in the real world where ";" in dirpaths is itself problematic.
12725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12732 need_lib_prefix=unknown
12733 hardcode_into_libs=no
12735 # when you set need_version to no, make sure it does not cause -set_version
12736 # flags to be left without arguments
12737 need_version=unknown
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12743 shlibpath_var=LIBPATH
12745 # AIX 3 has no versioning support, so we append a major version to the name.
12746 soname_spec='${libname}${release}${shared_ext}$major'
12753 hardcode_into_libs=yes
12754 if test "$host_cpu" = ia64; then
12755 # AIX 5 supports IA64
12756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12757 shlibpath_var=LD_LIBRARY_PATH
12759 # With GCC up to 2.95.x, collect2 would create an import file
12760 # for dependence libraries. The import file would start with
12761 # the line `#! .'. This would cause the generated library to
12762 # depend on `.', always an invalid library. This was fixed in
12763 # development snapshots of GCC prior to 3.0.
12765 aix4 | aix4.[01] | aix4.[01].*)
12766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12771 can_build_shared=no
12775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12776 # soname into executable. Probably we can add versioning support to
12777 # collect2, so additional links can be useful in future.
12778 if test "$aix_use_runtimelinking" = yes; then
12779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12780 # instead of lib<name>.a to let people know that these are not
12781 # typical AIX shared libraries.
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784 # We preserve .a as extension for shared libraries through AIX4.2
12785 # and later when we are not doing run time linking.
12786 library_names_spec='${libname}${release}.a $libname.a'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12789 shlibpath_var=LIBPATH
12794 library_names_spec='$libname.ixlibrary $libname.a'
12795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12796 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'
12800 library_names_spec='${libname}${shared_ext}'
12801 dynamic_linker="$host_os ld.so"
12802 shlibpath_var=LIBRARY_PATH
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12814 # the default ld.so.conf also contains /usr/contrib/lib and
12815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12816 # libtool to hard-code these into programs
12819 cygwin* | mingw* | pw32*)
12820 version_type=windows
12825 case $GCC,$host_os in
12826 yes,cygwin* | yes,mingw* | yes,pw32*)
12827 library_names_spec='$libname.dll.a'
12828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12829 postinstall_cmds='base_file=`basename \${file}`~
12830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12831 dldir=$destdir/`dirname \$dlpath`~
12832 test -d \$dldir || mkdir -p \$dldir~
12833 $install_prog $dir/$dlname \$dldir/$dlname~
12834 chmod a+x \$dldir/$dlname'
12835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12836 dlpath=$dir/\$dldll~
12838 shlibpath_overrides_runpath=yes
12842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12847 # MinGW DLLs use traditional 'lib' prefix
12848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12851 # It is most probably a Windows format PATH printed by
12852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12853 # path with ; separators, and with drive letters. We can handle the
12854 # drive letters (cygwin fileutils understands them), so leave them,
12855 # especially as we might pass files found there to a mingw objdump,
12856 # which wouldn't understand a cygwinified path. Ahh.
12857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12863 # pw32 DLLs use 'pw' prefix rather than 'lib'
12864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12873 dynamic_linker='Win32 ld.exe'
12874 # FIXME: first we should search . and the directory the executable is in
12878 darwin* | rhapsody*)
12879 dynamic_linker="$host_os dyld"
12880 version_type=darwin
12883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12884 soname_spec='${libname}${release}${major}$shared_ext'
12885 shlibpath_overrides_runpath=yes
12886 shlibpath_var=DYLD_LIBRARY_PATH
12887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12889 if test "$GCC" = yes; then
12890 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"`
12892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12902 soname_spec='${libname}${release}${shared_ext}$major'
12903 shlibpath_var=LD_LIBRARY_PATH
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=no
12918 hardcode_into_libs=yes
12919 dynamic_linker='GNU ld.so'
12922 freebsd* | dragonfly*)
12923 # DragonFly does not have aout. When/if they implement a new
12924 # versioning mechanism, adjust this.
12925 if test -x /usr/bin/objformat; then
12926 objformat=`/usr/bin/objformat`
12929 freebsd[123]*) objformat=aout ;;
12930 *) objformat=elf ;;
12933 version_type=freebsd-$objformat
12934 case $version_type in
12936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12945 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes
12950 freebsd3.[01]* | freebsdelf3.[01]*)
12951 shlibpath_overrides_runpath=yes
12952 hardcode_into_libs=yes
12955 shlibpath_overrides_runpath=no
12956 hardcode_into_libs=yes
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 hardcode_into_libs=yes
12971 hpux9* | hpux10* | hpux11*)
12972 # Give a soname corresponding to the major version so that dld.sl refuses to
12973 # link against other versions.
12980 hardcode_into_libs=yes
12981 dynamic_linker="$host_os dld.so"
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 if test "X$HPUX_IA64_MODE" = X32; then
12987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12995 hardcode_into_libs=yes
12996 dynamic_linker="$host_os dld.sl"
12997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 soname_spec='${libname}${release}${shared_ext}$major'
13001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13006 dynamic_linker="$host_os dld.sl"
13007 shlibpath_var=SHLIB_PATH
13008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13013 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13014 postinstall_cmds='chmod 555 $lib'
13017 irix5* | irix6* | nonstopux*)
13019 nonstopux*) version_type=nonstopux ;;
13021 if test "$lt_cv_prog_gnu_ld" = yes; then
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13032 irix5* | nonstopux*)
13033 libsuff= shlibsuff=
13036 case $LD in # libtool.m4 will add one of these switches to LD
13037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13038 libsuff= shlibsuff= libmagic=32-bit;;
13039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13040 libsuff=32 shlibsuff=N32 libmagic=N32;;
13041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13043 *) libsuff= shlibsuff= libmagic=never-match;;
13047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13048 shlibpath_overrides_runpath=no
13049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13051 hardcode_into_libs=yes
13054 # No shared lib support for Linux oldld, aout, or coff.
13055 linux*oldld* | linux*aout* | linux*coff*)
13059 # This must be Linux ELF.
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath=no
13069 # This implies no fast_install, which is unacceptable.
13070 # Some rework will be needed to allow for fast_install
13071 # before this can be enabled.
13072 hardcode_into_libs=yes
13074 # Append ld.so.conf contents to the search path
13075 if test -f /etc/ld.so.conf; then
13076 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' ' '`
13077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13080 # We used to test for /lib/ld.so.1 and disable shared libraries on
13081 # powerpc, because MkLinux only supported shared libraries with the
13082 # GNU dynamic linker. Since this was broken with cross compilers,
13083 # most powerpc-linux boxes support dynamic linking these days and
13084 # people can always --disable-shared, the test was removed, and we
13085 # assume the GNU/Linux dynamic linker is in use.
13086 dynamic_linker='GNU/Linux ld.so'
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13094 soname_spec='${libname}${release}${shared_ext}$major'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 shlibpath_overrides_runpath=no
13097 hardcode_into_libs=yes
13098 dynamic_linker='NetBSD ld.elf_so'
13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13106 soname_spec='${libname}${release}${shared_ext}$major'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 shlibpath_overrides_runpath=no
13109 hardcode_into_libs=yes
13110 dynamic_linker='GNU ld.so'
13117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13120 dynamic_linker='NetBSD (a.out) ld.so'
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 dynamic_linker='NetBSD ld.elf_so'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 shlibpath_overrides_runpath=yes
13128 hardcode_into_libs=yes
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 shlibpath_overrides_runpath=yes
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 shlibpath_overrides_runpath=yes
13151 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13153 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13154 *) need_version=no ;;
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13158 shlibpath_var=LD_LIBRARY_PATH
13159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13161 openbsd2.[89] | openbsd2.[89].*)
13162 shlibpath_overrides_runpath=no
13165 shlibpath_overrides_runpath=yes
13169 shlibpath_overrides_runpath=yes
13174 libname_spec='$name'
13177 library_names_spec='$libname${shared_ext} $libname.a'
13178 dynamic_linker='OS/2 ld.exe'
13179 shlibpath_var=LIBPATH
13182 osf3* | osf4* | osf5*)
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13190 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13195 soname_spec='${libname}${release}${shared_ext}$major'
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 shlibpath_var=LD_LIBRARY_PATH
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 shlibpath_var=LD_LIBRARY_PATH
13207 shlibpath_overrides_runpath=yes
13208 hardcode_into_libs=yes
13209 # ldd complains unless libraries are executable
13210 postinstall_cmds='chmod +x $lib'
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=yes
13219 if test "$with_gnu_ld" = yes; then
13225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 case $host_vendor in
13232 shlibpath_overrides_runpath=no
13234 export_dynamic_flag_spec='${wl}-Blargedynsym'
13235 runpath_var=LD_RUN_PATH
13243 shlibpath_overrides_runpath=no
13244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13250 if test -d /usr/nec ;then
13252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13253 soname_spec='$libname${shared_ext}.$major'
13254 shlibpath_var=LD_LIBRARY_PATH
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 shlibpath_var=LD_LIBRARY_PATH
13269 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13270 echo "${ECHO_T}$dynamic_linker" >&6
13271 test "$dynamic_linker" = no && can_build_shared=no
13273 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13274 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13275 hardcode_action_CXX=
13276 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13277 test -n "$runpath_var_CXX" || \
13278 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13280 # We can hardcode non-existant directories.
13281 if test "$hardcode_direct_CXX" != no &&
13282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283 # have to relink, otherwise we might link with an installed library
13284 # when we should be linking with a yet-to-be-installed one
13285 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13286 test "$hardcode_minus_L_CXX" != no; then
13287 # Linking always hardcodes the temporary library directory.
13288 hardcode_action_CXX=relink
13290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291 hardcode_action_CXX=immediate
13294 # We cannot hardcode anything, or else we can only hardcode existing
13296 hardcode_action_CXX=unsupported
13298 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13299 echo "${ECHO_T}$hardcode_action_CXX" >&6
13301 if test "$hardcode_action_CXX" = relink; then
13302 # Fast installation is not supported
13303 enable_fast_install=no
13304 elif test "$shlibpath_overrides_runpath" = yes ||
13305 test "$enable_shared" = no; then
13306 # Fast installation is not necessary
13307 enable_fast_install=needless
13312 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13314 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13315 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13316 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13317 echo "$as_me:$LINENO: result: yes" >&5
13318 echo "${ECHO_T}yes" >&6
13320 # FIXME - insert some real tests, host_os isn't really good enough
13323 if test -n "$STRIP" ; then
13324 striplib="$STRIP -x"
13325 echo "$as_me:$LINENO: result: yes" >&5
13326 echo "${ECHO_T}yes" >&6
13328 echo "$as_me:$LINENO: result: no" >&5
13329 echo "${ECHO_T}no" >&6
13333 echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6
13339 if test "x$enable_dlopen" != xyes; then
13340 enable_dlopen=unknown
13341 enable_dlopen_self=unknown
13342 enable_dlopen_self_static=unknown
13349 lt_cv_dlopen="load_add_on"
13351 lt_cv_dlopen_self=yes
13355 lt_cv_dlopen="LoadLibrary"
13360 lt_cv_dlopen="dlopen"
13365 # if libdl is installed we need to link against it
13366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_check_lib_save_LIBS=$LIBS
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13380 /* Override any gcc2 internal prototype to avoid an error. */
13384 /* We use char because int might match the return type of a gcc2
13385 builtin and then its argument prototype would still apply. */
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_dl_dlopen=yes
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_cv_lib_dl_dlopen=no
13423 rm -f conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13428 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13429 if test $ac_cv_lib_dl_dlopen = yes; then
13430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13433 lt_cv_dlopen="dyld"
13435 lt_cv_dlopen_self=yes
13442 echo "$as_me:$LINENO: checking for shl_load" >&5
13443 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13444 if test "${ac_cv_func_shl_load+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13455 #define shl_load innocuous_shl_load
13457 /* System header to define __stub macros and hopefully few prototypes,
13458 which can conflict with char shl_load (); below.
13459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460 <limits.h> exists even on freestanding compilers. */
13463 # include <limits.h>
13465 # include <assert.h>
13470 /* Override any gcc2 internal prototype to avoid an error. */
13475 /* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13478 /* The GNU C library defines this for functions which it implements
13479 to always fail with ENOSYS. Some functions are actually named
13480 something starting with __ and the normal name is an alias. */
13481 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13484 char (*f) () = shl_load;
13493 return f != shl_load;
13498 rm -f conftest.$ac_objext conftest$ac_exeext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13500 (eval $ac_link) 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest$ac_exeext'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_func_shl_load=yes
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13524 ac_cv_func_shl_load=no
13526 rm -f conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13529 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13530 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13531 if test $ac_cv_func_shl_load = yes; then
13532 lt_cv_dlopen="shl_load"
13534 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13535 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13536 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 ac_check_lib_save_LIBS=$LIBS
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 /* Override any gcc2 internal prototype to avoid an error. */
13552 /* We use char because int might match the return type of a gcc2
13553 builtin and then its argument prototype would still apply. */
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_lib_dld_shl_load=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_lib_dld_shl_load=no
13591 rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13595 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13597 if test $ac_cv_lib_dld_shl_load = yes; then
13598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13600 echo "$as_me:$LINENO: checking for dlopen" >&5
13601 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13602 if test "${ac_cv_func_dlopen+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13613 #define dlopen innocuous_dlopen
13615 /* System header to define __stub macros and hopefully few prototypes,
13616 which can conflict with char dlopen (); below.
13617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13618 <limits.h> exists even on freestanding compilers. */
13621 # include <limits.h>
13623 # include <assert.h>
13628 /* Override any gcc2 internal prototype to avoid an error. */
13633 /* We use char because int might match the return type of a gcc2
13634 builtin and then its argument prototype would still apply. */
13636 /* The GNU C library defines this for functions which it implements
13637 to always fail with ENOSYS. Some functions are actually named
13638 something starting with __ and the normal name is an alias. */
13639 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13642 char (*f) () = dlopen;
13651 return f != dlopen;
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13658 (eval $ac_link) 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_func_dlopen=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_cv_func_dlopen=no
13684 rm -f conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13687 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13688 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13689 if test $ac_cv_func_dlopen = yes; then
13690 lt_cv_dlopen="dlopen"
13692 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13693 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13694 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 ac_check_lib_save_LIBS=$LIBS
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 /* Override any gcc2 internal prototype to avoid an error. */
13710 /* We use char because int might match the return type of a gcc2
13711 builtin and then its argument prototype would still apply. */
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_lib_dl_dlopen=yes
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_cv_lib_dl_dlopen=no
13749 rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13753 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13755 if test $ac_cv_lib_dl_dlopen = yes; then
13756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13758 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13759 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13760 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lsvld $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any gcc2 internal prototype to avoid an error. */
13776 /* We use char because int might match the return type of a gcc2
13777 builtin and then its argument prototype would still apply. */
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789 (eval $ac_link) 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_lib_svld_dlopen=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_lib_svld_dlopen=no
13815 rm -f conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13819 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13820 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13821 if test $ac_cv_lib_svld_dlopen = yes; then
13822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13824 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13825 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 ac_check_lib_save_LIBS=$LIBS
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13838 /* Override any gcc2 internal prototype to avoid an error. */
13842 /* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_lib_dld_dld_link=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_lib_dld_dld_link=no
13881 rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13886 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13887 if test $ac_cv_lib_dld_dld_link = yes; then
13888 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13909 if test "x$lt_cv_dlopen" != xno; then
13915 case $lt_cv_dlopen in
13917 save_CPPFLAGS="$CPPFLAGS"
13918 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13920 save_LDFLAGS="$LDFLAGS"
13921 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13924 LIBS="$lt_cv_dlopen_libs $LIBS"
13926 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13927 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13928 if test "${lt_cv_dlopen_self+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 if test "$cross_compiling" = yes; then :
13932 lt_cv_dlopen_self=cross
13934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13935 lt_status=$lt_dlunknown
13936 cat > conftest.$ac_ext <<EOF
13937 #line 13937 "configure"
13938 #include "confdefs.h"
13947 # define LT_DLGLOBAL RTLD_GLOBAL
13950 # define LT_DLGLOBAL DL_GLOBAL
13952 # define LT_DLGLOBAL 0
13956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13957 find out it does not work in some platform. */
13958 #ifndef LT_DLLAZY_OR_NOW
13960 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13963 # define LT_DLLAZY_OR_NOW DL_LAZY
13966 # define LT_DLLAZY_OR_NOW RTLD_NOW
13969 # define LT_DLLAZY_OR_NOW DL_NOW
13971 # define LT_DLLAZY_OR_NOW 0
13979 extern "C" void exit (int);
13982 void fnord() { int i=42;}
13985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13986 int status = $lt_dlunknown;
13990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13992 /* dlclose (self); */
13998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999 (eval $ac_link) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14003 (./conftest; exit; ) >&5 2>/dev/null
14005 case x$lt_status in
14006 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14007 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14008 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14011 # compilation failed
14012 lt_cv_dlopen_self=no
14019 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14020 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14022 if test "x$lt_cv_dlopen_self" = xyes; then
14023 LDFLAGS="$LDFLAGS $link_static_flag"
14024 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14025 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14026 if test "${lt_cv_dlopen_self_static+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 if test "$cross_compiling" = yes; then :
14030 lt_cv_dlopen_self_static=cross
14032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14033 lt_status=$lt_dlunknown
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14045 # define LT_DLGLOBAL RTLD_GLOBAL
14048 # define LT_DLGLOBAL DL_GLOBAL
14050 # define LT_DLGLOBAL 0
14054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14055 find out it does not work in some platform. */
14056 #ifndef LT_DLLAZY_OR_NOW
14058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14061 # define LT_DLLAZY_OR_NOW DL_LAZY
14064 # define LT_DLLAZY_OR_NOW RTLD_NOW
14067 # define LT_DLLAZY_OR_NOW DL_NOW
14069 # define LT_DLLAZY_OR_NOW 0
14077 extern "C" void exit (int);
14080 void fnord() { int i=42;}
14083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14084 int status = $lt_dlunknown;
14088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14090 /* dlclose (self); */
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14101 (./conftest; exit; ) >&5 2>/dev/null
14103 case x$lt_status in
14104 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14105 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14106 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14109 # compilation failed
14110 lt_cv_dlopen_self_static=no
14117 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14118 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14121 CPPFLAGS="$save_CPPFLAGS"
14122 LDFLAGS="$save_LDFLAGS"
14127 case $lt_cv_dlopen_self in
14128 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14129 *) enable_dlopen_self=unknown ;;
14132 case $lt_cv_dlopen_self_static in
14133 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14134 *) enable_dlopen_self_static=unknown ;;
14139 # The else clause should only fire when bootstrapping the
14140 # libtool distribution, otherwise you forgot to ship ltmain.sh
14141 # with your package, and you will get complaints that there are
14142 # no rules to generate ltmain.sh.
14143 if test -f "$ltmain"; then
14144 # See if we are running on zsh, and set the options which allow our commands through
14145 # without removal of \ escapes.
14146 if test -n "${ZSH_VERSION+set}" ; then
14147 setopt NO_GLOB_SUBST
14149 # Now quote all the things that may contain metacharacters while being
14150 # careful not to overquote the AC_SUBSTed values. We take copies of the
14151 # variables and quote the copies for generation of the libtool script.
14152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14156 deplibs_check_method reload_flag reload_cmds need_locks \
14157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14158 lt_cv_sys_global_symbol_to_c_name_address \
14159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14160 old_postinstall_cmds old_postuninstall_cmds \
14164 lt_prog_compiler_wl_CXX \
14165 lt_prog_compiler_pic_CXX \
14166 lt_prog_compiler_static_CXX \
14167 lt_prog_compiler_no_builtin_flag_CXX \
14168 export_dynamic_flag_spec_CXX \
14169 thread_safe_flag_spec_CXX \
14170 whole_archive_flag_spec_CXX \
14171 enable_shared_with_static_runtimes_CXX \
14172 old_archive_cmds_CXX \
14173 old_archive_from_new_cmds_CXX \
14174 predep_objects_CXX \
14175 postdep_objects_CXX \
14178 compiler_lib_search_path_CXX \
14180 archive_expsym_cmds_CXX \
14181 postinstall_cmds_CXX \
14182 postuninstall_cmds_CXX \
14183 old_archive_from_expsyms_cmds_CXX \
14184 allow_undefined_flag_CXX \
14185 no_undefined_flag_CXX \
14186 export_symbols_cmds_CXX \
14187 hardcode_libdir_flag_spec_CXX \
14188 hardcode_libdir_flag_spec_ld_CXX \
14189 hardcode_libdir_separator_CXX \
14190 hardcode_automatic_CXX \
14192 module_expsym_cmds_CXX \
14193 lt_cv_prog_compiler_c_o_CXX \
14194 exclude_expsyms_CXX \
14195 include_expsyms_CXX; do
14198 old_archive_cmds_CXX | \
14199 old_archive_from_new_cmds_CXX | \
14200 archive_cmds_CXX | \
14201 archive_expsym_cmds_CXX | \
14202 module_cmds_CXX | \
14203 module_expsym_cmds_CXX | \
14204 old_archive_from_expsyms_cmds_CXX | \
14205 export_symbols_cmds_CXX | \
14206 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14207 postinstall_cmds | postuninstall_cmds | \
14208 old_postinstall_cmds | old_postuninstall_cmds | \
14209 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14210 # Double-quote double-evaled strings.
14211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14220 *'\$0 --fallback-echo"')
14221 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14227 cat <<__EOF__ >> "$cfgfile"
14228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14232 # Shell to use when invoking shell scripts.
14235 # Whether or not to build shared libraries.
14236 build_libtool_libs=$enable_shared
14238 # Whether or not to build static libraries.
14239 build_old_libs=$enable_static
14241 # Whether or not to add -lc for building shared libraries.
14242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14244 # Whether or not to disallow shared libs when runtime libs are static
14245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14247 # Whether or not to optimize for fast installation.
14248 fast_install=$enable_fast_install
14251 host_alias=$host_alias
14255 # The build system.
14256 build_alias=$build_alias
14260 # An echo program that does not interpret backslashes.
14265 AR_FLAGS=$lt_AR_FLAGS
14270 # A language-specific compiler.
14271 CC=$lt_compiler_CXX
14273 # Is the compiler the GNU C compiler?
14279 # The linker used to build libraries.
14282 # Whether we need hard or soft links.
14285 # A BSD-compatible nm program.
14288 # A symbol stripping program
14291 # Used to examine libraries when file_magic_cmd begins "file"
14292 MAGIC_CMD=$MAGIC_CMD
14294 # Used on cygwin: DLL creation program.
14297 # Used on cygwin: object dumper.
14300 # Used on cygwin: assembler.
14303 # The name of the directory that contains temporary libtool files.
14306 # How to create reloadable object files.
14307 reload_flag=$lt_reload_flag
14308 reload_cmds=$lt_reload_cmds
14310 # How to pass a linker flag through the compiler.
14311 wl=$lt_lt_prog_compiler_wl_CXX
14313 # Object file suffix (normally "o").
14314 objext="$ac_objext"
14316 # Old archive suffix (normally "a").
14319 # Shared library suffix (normally ".so").
14320 shrext_cmds='$shrext_cmds'
14322 # Executable file suffix (normally "").
14325 # Additional compiler flags for building library objects.
14326 pic_flag=$lt_lt_prog_compiler_pic_CXX
14329 # What is the maximum length of a command?
14330 max_cmd_len=$lt_cv_sys_max_cmd_len
14332 # Does compiler simultaneously support -c and -o options?
14333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14335 # Must we lock files when doing compilation?
14336 need_locks=$lt_need_locks
14338 # Do we need the lib prefix for modules?
14339 need_lib_prefix=$need_lib_prefix
14341 # Do we need a version for libraries?
14342 need_version=$need_version
14344 # Whether dlopen is supported.
14345 dlopen_support=$enable_dlopen
14347 # Whether dlopen of programs is supported.
14348 dlopen_self=$enable_dlopen_self
14350 # Whether dlopen of statically linked programs is supported.
14351 dlopen_self_static=$enable_dlopen_self_static
14353 # Compiler flag to prevent dynamic linking.
14354 link_static_flag=$lt_lt_prog_compiler_static_CXX
14356 # Compiler flag to turn off builtin functions.
14357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14359 # Compiler flag to allow reflexive dlopens.
14360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14362 # Compiler flag to generate shared objects directly from archives.
14363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14365 # Compiler flag to generate thread-safe objects.
14366 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14368 # Library versioning type.
14369 version_type=$version_type
14371 # Format of library name prefix.
14372 libname_spec=$lt_libname_spec
14374 # List of archive names. First name is the real one, the rest are links.
14375 # The last name is the one that the linker finds with -lNAME.
14376 library_names_spec=$lt_library_names_spec
14378 # The coded name of the library, if different from the real name.
14379 soname_spec=$lt_soname_spec
14381 # Commands used to build and install an old-style archive.
14383 old_archive_cmds=$lt_old_archive_cmds_CXX
14384 old_postinstall_cmds=$lt_old_postinstall_cmds
14385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14387 # Create an old-style archive from a shared archive.
14388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14390 # Create a temporary old-style archive to link instead of a shared archive.
14391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14393 # Commands used to build and install a shared archive.
14394 archive_cmds=$lt_archive_cmds_CXX
14395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14396 postinstall_cmds=$lt_postinstall_cmds
14397 postuninstall_cmds=$lt_postuninstall_cmds
14399 # Commands used to build a loadable module (assumed same as above if empty)
14400 module_cmds=$lt_module_cmds_CXX
14401 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14403 # Commands to strip libraries.
14404 old_striplib=$lt_old_striplib
14405 striplib=$lt_striplib
14407 # Dependencies to place before the objects being linked to create a
14409 predep_objects=$lt_predep_objects_CXX
14411 # Dependencies to place after the objects being linked to create a
14413 postdep_objects=$lt_postdep_objects_CXX
14415 # Dependencies to place before the objects being linked to create a
14417 predeps=$lt_predeps_CXX
14419 # Dependencies to place after the objects being linked to create a
14421 postdeps=$lt_postdeps_CXX
14423 # The library search path used internally by the compiler when linking
14424 # a shared library.
14425 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14427 # Method to check whether dependent libraries are shared objects.
14428 deplibs_check_method=$lt_deplibs_check_method
14430 # Command to use when deplibs_check_method == file_magic.
14431 file_magic_cmd=$lt_file_magic_cmd
14433 # Flag that allows shared libraries with undefined symbols to be built.
14434 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14436 # Flag that forces no undefined symbols.
14437 no_undefined_flag=$lt_no_undefined_flag_CXX
14439 # Commands used to finish a libtool library installation in a directory.
14440 finish_cmds=$lt_finish_cmds
14442 # Same as above, but a single script fragment to be evaled but not shown.
14443 finish_eval=$lt_finish_eval
14445 # Take the output of nm and produce a listing of raw symbols and C names.
14446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14448 # Transform the output of nm in a proper C declaration
14449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14451 # Transform the output of nm in a C name address pair
14452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14454 # This is the shared library runtime path variable.
14455 runpath_var=$runpath_var
14457 # This is the shared library path variable.
14458 shlibpath_var=$shlibpath_var
14460 # Is shlibpath searched before the hard-coded library search path?
14461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14463 # How to hardcode a shared library path into an executable.
14464 hardcode_action=$hardcode_action_CXX
14466 # Whether we should hardcode library paths into libraries.
14467 hardcode_into_libs=$hardcode_into_libs
14469 # Flag to hardcode \$libdir into a binary during linking.
14470 # This must work even if \$libdir does not exist.
14471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14473 # If ld is used when linking, flag to hardcode \$libdir into
14474 # a binary during linking. This must work even if \$libdir does
14476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14478 # Whether we need a single -rpath flag with a separated argument.
14479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14482 # resulting binary.
14483 hardcode_direct=$hardcode_direct_CXX
14485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14486 # resulting binary.
14487 hardcode_minus_L=$hardcode_minus_L_CXX
14489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14490 # the resulting binary.
14491 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14493 # Set to yes if building a shared library automatically hardcodes DIR into the library
14494 # and all subsequent libraries and executables linked against it.
14495 hardcode_automatic=$hardcode_automatic_CXX
14497 # Variables whose values should be saved in libtool wrapper scripts and
14498 # restored at relink time.
14499 variables_saved_for_relink="$variables_saved_for_relink"
14501 # Whether libtool must link a program against all its dependency libraries.
14502 link_all_deplibs=$link_all_deplibs_CXX
14504 # Compile-time system search path for libraries
14505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14507 # Run-time system search path for libraries
14508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14510 # Fix the shell variable \$srcfile for the compiler.
14511 fix_srcfile_path="$fix_srcfile_path_CXX"
14513 # Set to yes if exported symbols are required.
14514 always_export_symbols=$always_export_symbols_CXX
14516 # The commands to list exported symbols.
14517 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14519 # The commands to extract the exported symbol list from a shared archive.
14520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14522 # Symbols that should not be listed in the preloaded symbols.
14523 exclude_expsyms=$lt_exclude_expsyms_CXX
14525 # Symbols that must always be exported.
14526 include_expsyms=$lt_include_expsyms_CXX
14528 # ### END LIBTOOL TAG CONFIG: $tagname
14534 # If there is no Makefile yet, we rely on a make rule to execute
14535 # `config.status --recheck' to rerun these tests and create the
14536 # libtool script then.
14537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14538 if test -f "$ltmain_in"; then
14539 test -f Makefile && make "$ltmain"
14545 ac_cpp='$CPP $CPPFLAGS'
14546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14554 with_gnu_ldcxx=$with_gnu_ld
14555 with_gnu_ld=$lt_save_with_gnu_ld
14556 lt_cv_path_LDCXX=$lt_cv_path_LD
14557 lt_cv_path_LD=$lt_save_path_LD
14558 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14559 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14567 if test -n "$F77" && test "X$F77" != "Xno"; then
14570 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14571 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14575 archive_cmds_need_lc_F77=no
14576 allow_undefined_flag_F77=
14577 always_export_symbols_F77=no
14578 archive_expsym_cmds_F77=
14579 export_dynamic_flag_spec_F77=
14580 hardcode_direct_F77=no
14581 hardcode_libdir_flag_spec_F77=
14582 hardcode_libdir_flag_spec_ld_F77=
14583 hardcode_libdir_separator_F77=
14584 hardcode_minus_L_F77=no
14585 hardcode_automatic_F77=no
14587 module_expsym_cmds_F77=
14588 link_all_deplibs_F77=unknown
14589 old_archive_cmds_F77=$old_archive_cmds
14590 no_undefined_flag_F77=
14591 whole_archive_flag_spec_F77=
14592 enable_shared_with_static_runtimes_F77=no
14594 # Source file extension for f77 test sources.
14597 # Object file extension for compiled f77 test sources.
14601 # Code to be used in simple compile tests
14602 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14604 # Code to be used in simple link tests
14605 lt_simple_link_test_code=" program t\n end\n"
14607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14609 # If no C compiler was specified, use CC.
14612 # Allow CC to be a program name with arguments.
14616 # save warnings/boilerplate of simple test code
14617 ac_outfile=conftest.$ac_objext
14618 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14620 _lt_compiler_boilerplate=`cat conftest.err`
14623 ac_outfile=conftest.$ac_objext
14624 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14626 _lt_linker_boilerplate=`cat conftest.err`
14630 # Allow CC to be a program name with arguments.
14635 for cc_temp in $compiler""; do
14637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14646 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14648 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14649 echo "${ECHO_T}$can_build_shared" >&6
14651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14653 test "$can_build_shared" = "no" && enable_shared=no
14655 # On AIX, shared libraries and static libraries use the same namespace, and
14656 # are all built from PIC.
14659 test "$enable_shared" = yes && enable_static=no
14660 if test -n "$RANLIB"; then
14661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14662 postinstall_cmds='$RANLIB $lib'
14666 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14667 test "$enable_shared" = yes && enable_static=no
14671 echo "$as_me:$LINENO: result: $enable_shared" >&5
14672 echo "${ECHO_T}$enable_shared" >&6
14674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14676 # Make sure either enable_shared or enable_static is yes.
14677 test "$enable_shared" = yes || enable_static=yes
14678 echo "$as_me:$LINENO: result: $enable_static" >&5
14679 echo "${ECHO_T}$enable_static" >&6
14681 test "$ld_shlibs_F77" = no && can_build_shared=no
14686 lt_prog_compiler_wl_F77=
14687 lt_prog_compiler_pic_F77=
14688 lt_prog_compiler_static_F77=
14690 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14691 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14693 if test "$GCC" = yes; then
14694 lt_prog_compiler_wl_F77='-Wl,'
14695 lt_prog_compiler_static_F77='-static'
14699 # All AIX code is PIC.
14700 if test "$host_cpu" = ia64; then
14701 # AIX 5 now supports IA64 processor
14702 lt_prog_compiler_static_F77='-Bstatic'
14707 # FIXME: we need at least 68020 code to build shared libraries, but
14708 # adding the `-m68020' flag to GCC prevents building anything better,
14710 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14713 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14714 # PIC is the default for these OSes.
14717 mingw* | pw32* | os2*)
14718 # This hack is so that the source file can tell whether it is being
14719 # built for inclusion in a dll (and should export symbols for example).
14720 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14723 darwin* | rhapsody*)
14724 # PIC is the default on this platform
14725 # Common symbols not allowed in MH_DYLIB files
14726 lt_prog_compiler_pic_F77='-fno-common'
14730 # Just because we use GCC doesn't mean we suddenly get shared libraries
14731 # on systems that don't support them.
14732 lt_prog_compiler_can_build_shared_F77=no
14737 if test -d /usr/nec; then
14738 lt_prog_compiler_pic_F77=-Kconform_pic
14743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14744 # not for PA HP-UX.
14750 lt_prog_compiler_pic_F77='-fPIC'
14756 lt_prog_compiler_pic_F77='-fPIC'
14760 # PORTME Check for flag to pass linker flags through the system compiler.
14763 lt_prog_compiler_wl_F77='-Wl,'
14764 if test "$host_cpu" = ia64; then
14765 # AIX 5 now supports IA64 processor
14766 lt_prog_compiler_static_F77='-Bstatic'
14768 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14772 # PIC is the default on this platform
14773 # Common symbols not allowed in MH_DYLIB files
14774 case $cc_basename in
14776 lt_prog_compiler_pic_F77='-qnocommon'
14777 lt_prog_compiler_wl_F77='-Wl,'
14782 mingw* | pw32* | os2*)
14783 # This hack is so that the source file can tell whether it is being
14784 # built for inclusion in a dll (and should export symbols for example).
14785 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14788 hpux9* | hpux10* | hpux11*)
14789 lt_prog_compiler_wl_F77='-Wl,'
14790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14791 # not for PA HP-UX.
14797 lt_prog_compiler_pic_F77='+Z'
14800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14801 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14804 irix5* | irix6* | nonstopux*)
14805 lt_prog_compiler_wl_F77='-Wl,'
14806 # PIC (with -KPIC) is the default.
14807 lt_prog_compiler_static_F77='-non_shared'
14811 lt_prog_compiler_pic_F77='-KPIC'
14812 lt_prog_compiler_static_F77='-Bstatic'
14816 case $cc_basename in
14818 lt_prog_compiler_wl_F77='-Wl,'
14819 lt_prog_compiler_pic_F77='-KPIC'
14820 lt_prog_compiler_static_F77='-static'
14822 pgcc* | pgf77* | pgf90* | pgf95*)
14823 # Portland Group compilers (*not* the Pentium gcc compiler,
14824 # which looks to be a dead project)
14825 lt_prog_compiler_wl_F77='-Wl,'
14826 lt_prog_compiler_pic_F77='-fpic'
14827 lt_prog_compiler_static_F77='-Bstatic'
14830 lt_prog_compiler_wl_F77='-Wl,'
14831 # All Alpha code is PIC.
14832 lt_prog_compiler_static_F77='-non_shared'
14837 osf3* | osf4* | osf5*)
14838 lt_prog_compiler_wl_F77='-Wl,'
14839 # All OSF/1 code is PIC.
14840 lt_prog_compiler_static_F77='-non_shared'
14844 lt_prog_compiler_pic_F77='-Kpic'
14845 lt_prog_compiler_static_F77='-dn'
14849 lt_prog_compiler_pic_F77='-KPIC'
14850 lt_prog_compiler_static_F77='-Bstatic'
14851 case $cc_basename in
14852 f77* | f90* | f95*)
14853 lt_prog_compiler_wl_F77='-Qoption ld ';;
14855 lt_prog_compiler_wl_F77='-Wl,';;
14860 lt_prog_compiler_wl_F77='-Qoption ld '
14861 lt_prog_compiler_pic_F77='-PIC'
14862 lt_prog_compiler_static_F77='-Bstatic'
14865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14866 lt_prog_compiler_wl_F77='-Wl,'
14867 lt_prog_compiler_pic_F77='-KPIC'
14868 lt_prog_compiler_static_F77='-Bstatic'
14872 if test -d /usr/nec ;then
14873 lt_prog_compiler_pic_F77='-Kconform_pic'
14874 lt_prog_compiler_static_F77='-Bstatic'
14879 lt_prog_compiler_wl_F77='-Wl,'
14880 lt_prog_compiler_can_build_shared_F77=no
14884 lt_prog_compiler_pic_F77='-pic'
14885 lt_prog_compiler_static_F77='-Bstatic'
14889 lt_prog_compiler_can_build_shared_F77=no
14894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14895 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14898 # Check to make sure the PIC flag actually works.
14900 if test -n "$lt_prog_compiler_pic_F77"; then
14902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14904 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 lt_prog_compiler_pic_works_F77=no
14908 ac_outfile=conftest.$ac_objext
14909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14910 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14911 # Insert the option either (1) after the last *FLAGS variable, or
14912 # (2) before a word containing "conftest.", or (3) at the end.
14913 # Note that $ac_compile itself does not contain backslashes and begins
14914 # with a dollar sign (not a hyphen), so the echo should work correctly.
14915 # The option is referenced via a variable to avoid confusing sed.
14916 lt_compile=`echo "$ac_compile" | $SED \
14917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14919 -e 's:$: $lt_compiler_flag:'`
14920 (eval echo "\"\$as_me:14920: $lt_compile\"" >&5)
14921 (eval "$lt_compile" 2>conftest.err)
14923 cat conftest.err >&5
14924 echo "$as_me:14924: \$? = $ac_status" >&5
14925 if (exit $ac_status) && test -s "$ac_outfile"; then
14926 # The compiler can only warn and ignore the option if not recognized
14927 # So say no if there are warnings other than the usual output.
14928 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14929 $SED '/^$/d' conftest.err >conftest.er2
14930 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14931 lt_prog_compiler_pic_works_F77=yes
14937 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14938 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14940 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14941 case $lt_prog_compiler_pic_F77 in
14943 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14946 lt_prog_compiler_pic_F77=
14947 lt_prog_compiler_can_build_shared_F77=no
14952 # For platforms which do not support PIC, -DPIC is meaningless:
14954 lt_prog_compiler_pic_F77=
14957 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14961 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14962 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14963 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 lt_cv_prog_compiler_c_o_F77=no
14967 $rm -r conftest 2>/dev/null
14971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14973 lt_compiler_flag="-o out/conftest2.$ac_objext"
14974 # Insert the option either (1) after the last *FLAGS variable, or
14975 # (2) before a word containing "conftest.", or (3) at the end.
14976 # Note that $ac_compile itself does not contain backslashes and begins
14977 # with a dollar sign (not a hyphen), so the echo should work correctly.
14978 lt_compile=`echo "$ac_compile" | $SED \
14979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981 -e 's:$: $lt_compiler_flag:'`
14982 (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
14983 (eval "$lt_compile" 2>out/conftest.err)
14985 cat out/conftest.err >&5
14986 echo "$as_me:14986: \$? = $ac_status" >&5
14987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14989 # The compiler can only warn and ignore the option if not recognized
14990 # So say no if there are warnings
14991 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14992 $SED '/^$/d' out/conftest.err >out/conftest.er2
14993 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14994 lt_cv_prog_compiler_c_o_F77=yes
14999 # SGI C++ compiler will create directory out/ii_files/ for
15000 # template instantiation
15001 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15002 $rm out/* && rmdir out
15008 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15009 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15012 hard_links="nottested"
15013 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15014 # do not overwrite the value of need_locks provided by the user
15015 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15016 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15021 ln conftest.a conftest.b 2>&5 || hard_links=no
15022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15023 echo "$as_me:$LINENO: result: $hard_links" >&5
15024 echo "${ECHO_T}$hard_links" >&6
15025 if test "$hard_links" = no; then
15026 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15027 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15034 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15035 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15038 allow_undefined_flag_F77=
15039 enable_shared_with_static_runtimes_F77=no
15041 archive_expsym_cmds_F77=
15042 old_archive_From_new_cmds_F77=
15043 old_archive_from_expsyms_cmds_F77=
15044 export_dynamic_flag_spec_F77=
15045 whole_archive_flag_spec_F77=
15046 thread_safe_flag_spec_F77=
15047 hardcode_libdir_flag_spec_F77=
15048 hardcode_libdir_flag_spec_ld_F77=
15049 hardcode_libdir_separator_F77=
15050 hardcode_direct_F77=no
15051 hardcode_minus_L_F77=no
15052 hardcode_shlibpath_var_F77=unsupported
15053 link_all_deplibs_F77=unknown
15054 hardcode_automatic_F77=no
15056 module_expsym_cmds_F77=
15057 always_export_symbols_F77=no
15058 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15059 # include_expsyms should be a list of space-separated symbols to be *always*
15060 # included in the symbol list
15061 include_expsyms_F77=
15062 # exclude_expsyms can be an extended regexp of symbols to exclude
15063 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15064 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15065 # as well as any symbol that contains `d'.
15066 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15067 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15068 # platforms (ab)use it in PIC code, but their linkers get confused if
15069 # the symbol is explicitly referenced. Since portable code cannot
15070 # rely on this symbol name, it's probably fine to never include it in
15071 # preloaded symbol tables.
15072 extract_expsyms_cmds=
15073 # Just being paranoid about ensuring that cc_basename is set.
15074 for cc_temp in $compiler""; do
15076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15082 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15085 cygwin* | mingw* | pw32*)
15086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15087 # When not using gcc, we currently assume that we are using
15088 # Microsoft Visual C++.
15089 if test "$GCC" != yes; then
15099 if test "$with_gnu_ld" = yes; then
15100 # If archive_cmds runs LD, not CC, wlarc should be empty
15103 # Set some defaults for GNU ld with shared library support. These
15104 # are reset later if shared libraries are not supported. Putting them
15105 # here allows them to be overridden if necessary.
15106 runpath_var=LD_RUN_PATH
15107 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15108 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15109 # ancient GNU ld didn't support --whole-archive et. al.
15110 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15111 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15113 whole_archive_flag_spec_F77=
15115 supports_anon_versioning=no
15116 case `$LD -v 2>/dev/null` in
15117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15120 *\ 2.11.*) ;; # other 2.11 versions
15121 *) supports_anon_versioning=yes ;;
15124 # See if GNU ld supports shared libraries.
15126 aix3* | aix4* | aix5*)
15127 # On AIX/PPC, the GNU linker is very broken
15128 if test "$host_cpu" != ia64; then
15132 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15133 *** to be unable to reliably create shared libraries on AIX.
15134 *** Therefore, libtool is disabling shared libraries support. If you
15135 *** really care for shared libraries, you may want to modify your PATH
15136 *** so that a non-GNU linker is found, and then restart.
15143 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)'
15144 hardcode_libdir_flag_spec_F77='-L$libdir'
15145 hardcode_minus_L_F77=yes
15147 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15148 # that the semantics of dynamic libraries on AmigaOS, at least up
15149 # to version 4, is to share data among multiple programs linked
15150 # with the same dynamic library. Since this doesn't match the
15151 # behavior of shared libraries on other platforms, we can't use
15157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158 allow_undefined_flag_F77=unsupported
15159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15160 # support --undefined. This deserves some investigation. FIXME
15161 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15167 cygwin* | mingw* | pw32*)
15168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15169 # as there is no search path for DLLs.
15170 hardcode_libdir_flag_spec_F77='-L$libdir'
15171 allow_undefined_flag_F77=unsupported
15172 always_export_symbols_F77=no
15173 enable_shared_with_static_runtimes_F77=yes
15174 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15176 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15177 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15178 # If the export-symbols file already is a .def file (1st line
15179 # is EXPORTS), use it as is; otherwise, prepend...
15180 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15181 cp $export_symbols $output_objdir/$soname.def;
15183 echo EXPORTS > $output_objdir/$soname.def;
15184 cat $export_symbols >> $output_objdir/$soname.def;
15186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15195 case $cc_basename,$host_cpu in
15196 pgcc*) # Portland Group C compiler
15197 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'
15198 tmp_addflag=' $pic_flag'
15200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15201 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'
15202 tmp_addflag=' $pic_flag -Mnomain' ;;
15203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15204 tmp_addflag=' -i_dynamic' ;;
15205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15206 tmp_addflag=' -i_dynamic -nofor_main' ;;
15207 ifc* | ifort*) # Intel Fortran compiler
15208 tmp_addflag=' -nofor_main' ;;
15210 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 if test $supports_anon_versioning = yes; then
15213 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15215 $echo "local: *; };" >> $output_objdir/$libname.ver~
15216 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15218 link_all_deplibs_F77=no
15224 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15226 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15240 *** create shared libraries on Solaris systems. Therefore, libtool
15241 *** is disabling shared libraries support. We urge you to upgrade GNU
15242 *** binutils to release 2.9.1 or newer. Another option is to modify
15243 *** your PATH or compiler configuration so that the native linker is
15244 *** used, and then restart.
15247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_direct_F77=yes
15259 hardcode_shlibpath_var_F77=no
15263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15272 if test "$ld_shlibs_F77" = no; then
15274 hardcode_libdir_flag_spec_F77=
15275 export_dynamic_flag_spec_F77=
15276 whole_archive_flag_spec_F77=
15279 # PORTME fill in a description of your system's linker (not GNU ld)
15282 allow_undefined_flag_F77=unsupported
15283 always_export_symbols_F77=yes
15284 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'
15285 # Note: this linker hardcodes the directories in LIBPATH if there
15286 # are no directories specified by -L.
15287 hardcode_minus_L_F77=yes
15288 if test "$GCC" = yes && test -z "$link_static_flag"; then
15289 # Neither direct hardcoding nor static linking is supported with a
15291 hardcode_direct_F77=unsupported
15296 if test "$host_cpu" = ia64; then
15297 # On IA64, the linker does run time linking by default, so we don't
15298 # have to do anything special.
15299 aix_use_runtimelinking=no
15300 exp_sym_flag='-Bexport'
15303 # If we're using GNU nm, then we don't want the "-C" option.
15304 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15305 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15306 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'
15308 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'
15310 aix_use_runtimelinking=no
15312 # Test if we are trying to use run time linking or normal
15313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15314 # need to do runtime linking.
15315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15316 for ld_flag in $LDFLAGS; do
15317 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15318 aix_use_runtimelinking=yes
15324 exp_sym_flag='-bexport'
15325 no_entry_flag='-bnoentry'
15328 # When large executables or shared objects are built, AIX ld can
15329 # have problems creating the table of contents. If linking a library
15330 # or program results in "error TOC overflow" add -mminimal-toc to
15331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15334 archive_cmds_F77=''
15335 hardcode_direct_F77=yes
15336 hardcode_libdir_separator_F77=':'
15337 link_all_deplibs_F77=yes
15339 if test "$GCC" = yes; then
15340 case $host_os in aix4.[012]|aix4.[012].*)
15341 # We only want to do this on AIX 4.2 and lower, the check
15342 # below for broken collect2 doesn't work under 4.3+
15343 collect2name=`${CC} -print-prog-name=collect2`
15344 if test -f "$collect2name" && \
15345 strings "$collect2name" | grep resolve_lib_name >/dev/null
15347 # We have reworked collect2
15348 hardcode_direct_F77=yes
15350 # We have old collect2
15351 hardcode_direct_F77=unsupported
15352 # It fails to find uninstalled libraries when the uninstalled
15353 # path is not listed in the libpath. Setting hardcode_minus_L
15354 # to unsupported forces relinking
15355 hardcode_minus_L_F77=yes
15356 hardcode_libdir_flag_spec_F77='-L$libdir'
15357 hardcode_libdir_separator_F77=
15360 shared_flag='-shared'
15361 if test "$aix_use_runtimelinking" = yes; then
15362 shared_flag="$shared_flag "'${wl}-G'
15366 if test "$host_cpu" = ia64; then
15367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15368 # chokes on -Wl,-G. The following line is correct:
15371 if test "$aix_use_runtimelinking" = yes; then
15372 shared_flag='${wl}-G'
15374 shared_flag='${wl}-bM:SRE'
15379 # It seems that -bexpall does not export symbols beginning with
15380 # underscore (_), so it is better to generate a list of symbols to export.
15381 always_export_symbols_F77=yes
15382 if test "$aix_use_runtimelinking" = yes; then
15383 # Warning - without using the other runtime loading flags (-brtl),
15384 # -berok will link without error, but may produce a broken library.
15385 allow_undefined_flag_F77='-berok'
15386 # Determine the default libpath from the value encoded in an empty executable.
15387 cat >conftest.$ac_ext <<_ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394 (eval $ac_link) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest$ac_exeext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15416 # Check for a 64-bit object if we didn't find anything.
15417 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; }
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15424 rm -f conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15428 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15429 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15431 if test "$host_cpu" = ia64; then
15432 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15433 allow_undefined_flag_F77="-z nodefs"
15434 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15436 # Determine the default libpath from the value encoded in an empty executable.
15437 cat >conftest.$ac_ext <<_ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15444 (eval $ac_link) 2>conftest.er1
15446 grep -v '^ *+' conftest.er1 >conftest.err
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15466 # Check for a 64-bit object if we didn't find anything.
15467 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; }
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15474 rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15478 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15479 # Warning - without using the other run time loading flags,
15480 # -berok will link without error, but may produce a broken library.
15481 no_undefined_flag_F77=' ${wl}-bernotok'
15482 allow_undefined_flag_F77=' ${wl}-berok'
15483 # -bexpall does not export symbols beginning with underscore (_)
15484 always_export_symbols_F77=yes
15485 # Exported symbols can be pulled into shared objects from archives
15486 whole_archive_flag_spec_F77=' '
15487 archive_cmds_need_lc_F77=yes
15488 # This is similar to how AIX traditionally builds its shared libraries.
15489 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15495 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)'
15496 hardcode_libdir_flag_spec_F77='-L$libdir'
15497 hardcode_minus_L_F77=yes
15498 # see comment about different semantics on the GNU ld section
15503 export_dynamic_flag_spec_F77=-rdynamic
15506 cygwin* | mingw* | pw32*)
15507 # When not using gcc, we currently assume that we are using
15508 # Microsoft Visual C++.
15509 # hardcode_libdir_flag_spec is actually meaningless, as there is
15510 # no search path for DLLs.
15511 hardcode_libdir_flag_spec_F77=' '
15512 allow_undefined_flag_F77=unsupported
15513 # Tell ltmain to make .lib files, not .a files.
15515 # Tell ltmain to make .dll files, not .so files.
15517 # FIXME: Setting linknames here is a bad hack.
15518 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15519 # The linker will automatically build a .lib file if we build a DLL.
15520 old_archive_From_new_cmds_F77='true'
15521 # FIXME: Should let the user specify the lib program.
15522 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15523 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15524 enable_shared_with_static_runtimes_F77=yes
15527 darwin* | rhapsody*)
15529 rhapsody* | darwin1.[012])
15530 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15536 case ${MACOSX_DEPLOYMENT_TARGET} in
15538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15547 archive_cmds_need_lc_F77=no
15548 hardcode_direct_F77=no
15549 hardcode_automatic_F77=yes
15550 hardcode_shlibpath_var_F77=unsupported
15551 whole_archive_flag_spec_F77=''
15552 link_all_deplibs_F77=yes
15553 if test "$GCC" = yes ; then
15554 output_verbose_link_cmd='echo'
15555 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558 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}'
15559 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}'
15561 case $cc_basename in
15563 output_verbose_link_cmd='echo'
15564 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15565 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15567 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}'
15568 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}'
15578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_libdir_flag_spec_F77='-L$libdir'
15580 hardcode_shlibpath_var_F77=no
15587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15588 # support. Future versions do this automatically, but an explicit c++rt0.o
15589 # does not break anything, and helps significantly (at the cost of a little
15592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15593 hardcode_libdir_flag_spec_F77='-R$libdir'
15594 hardcode_direct_F77=yes
15595 hardcode_shlibpath_var_F77=no
15598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15601 hardcode_direct_F77=yes
15602 hardcode_minus_L_F77=yes
15603 hardcode_shlibpath_var_F77=no
15606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15607 freebsd* | kfreebsd*-gnu | dragonfly*)
15608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15609 hardcode_libdir_flag_spec_F77='-R$libdir'
15610 hardcode_direct_F77=yes
15611 hardcode_shlibpath_var_F77=no
15615 if test "$GCC" = yes; then
15616 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'
15618 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'
15620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator_F77=:
15622 hardcode_direct_F77=yes
15624 # hardcode_minus_L: Not really in the search PATH,
15625 # but as the default location of the library.
15626 hardcode_minus_L_F77=yes
15627 export_dynamic_flag_spec_F77='${wl}-E'
15631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15650 if test "$with_gnu_ld" = no; then
15653 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15655 hardcode_libdir_separator_F77=:
15656 hardcode_direct_F77=no
15657 hardcode_shlibpath_var_F77=no
15660 hardcode_libdir_flag_spec_F77='-L$libdir'
15661 hardcode_direct_F77=no
15662 hardcode_shlibpath_var_F77=no
15664 # hardcode_minus_L: Not really in the search PATH,
15665 # but as the default location of the library.
15666 hardcode_minus_L_F77=yes
15669 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15670 hardcode_libdir_separator_F77=:
15671 hardcode_direct_F77=yes
15672 export_dynamic_flag_spec_F77='${wl}-E'
15674 # hardcode_minus_L: Not really in the search PATH,
15675 # but as the default location of the library.
15676 hardcode_minus_L_F77=yes
15682 irix5* | irix6* | nonstopux*)
15683 if test "$GCC" = yes; then
15684 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'
15686 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'
15687 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15690 hardcode_libdir_separator_F77=:
15691 link_all_deplibs_F77=yes
15694 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15698 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15700 hardcode_libdir_flag_spec_F77='-R$libdir'
15701 hardcode_direct_F77=yes
15702 hardcode_shlibpath_var_F77=no
15706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_direct_F77=yes
15708 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15709 hardcode_libdir_separator_F77=:
15710 hardcode_shlibpath_var_F77=no
15714 hardcode_direct_F77=yes
15715 hardcode_shlibpath_var_F77=no
15716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15717 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15718 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15719 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15720 export_dynamic_flag_spec_F77='${wl}-E'
15723 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_libdir_flag_spec_F77='-R$libdir'
15728 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15736 hardcode_libdir_flag_spec_F77='-L$libdir'
15737 hardcode_minus_L_F77=yes
15738 allow_undefined_flag_F77=unsupported
15739 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'
15740 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15744 if test "$GCC" = yes; then
15745 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15746 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'
15748 allow_undefined_flag_F77=' -expect_unresolved \*'
15749 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'
15751 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15752 hardcode_libdir_separator_F77=:
15755 osf4* | osf5*) # as osf3* with the addition of -msym flag
15756 if test "$GCC" = yes; then
15757 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15758 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'
15759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15761 allow_undefined_flag_F77=' -expect_unresolved \*'
15762 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'
15763 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~
15764 $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'
15766 # Both c and cxx compiler support -rpath directly
15767 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15769 hardcode_libdir_separator_F77=:
15773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_shlibpath_var_F77=no
15775 export_dynamic_flag_spec_F77='${wl}-Bexport'
15776 runpath_var=LD_RUN_PATH
15777 hardcode_runpath_var=yes
15781 no_undefined_flag_F77=' -z text'
15782 if test "$GCC" = yes; then
15784 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15789 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15793 hardcode_libdir_flag_spec_F77='-R$libdir'
15794 hardcode_shlibpath_var_F77=no
15796 solaris2.[0-5] | solaris2.[0-5].*) ;;
15798 # The compiler driver will combine linker options so we
15799 # cannot just pass the convience library names through
15800 # without $wl, iff we do not link with $LD.
15801 # Luckily, gcc supports the same syntax we need for Sun Studio.
15802 # Supported since Solaris 2.6 (maybe 2.5.1?)
15805 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15807 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' ;;
15810 link_all_deplibs_F77=yes
15814 if test "x$host_vendor" = xsequent; then
15815 # Use $CC to link under sequent, because it throws in some extra .o
15816 # files that make .init and .fini sections work.
15817 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_libdir_flag_spec_F77='-L$libdir'
15822 hardcode_direct_F77=yes
15823 hardcode_minus_L_F77=yes
15824 hardcode_shlibpath_var_F77=no
15828 case $host_vendor in
15830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 hardcode_direct_F77=yes # is this really true???
15834 ## LD is ld it makes a PLAMLIB
15835 ## CC just makes a GrossModule.
15836 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15837 reload_cmds_F77='$CC -r -o $output$reload_objs'
15838 hardcode_direct_F77=no
15841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15845 runpath_var='LD_RUN_PATH'
15846 hardcode_shlibpath_var_F77=no
15850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_shlibpath_var_F77=no
15852 export_dynamic_flag_spec_F77='-Bexport'
15856 if test -d /usr/nec; then
15857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_shlibpath_var_F77=no
15859 runpath_var=LD_RUN_PATH
15860 hardcode_runpath_var=yes
15866 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_direct_F77=yes
15868 hardcode_minus_L_F77=no
15869 hardcode_shlibpath_var_F77=no
15870 hardcode_runpath_var=yes
15871 runpath_var=LD_RUN_PATH
15874 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15875 no_undefined_flag_F77='${wl}-z ${wl}text'
15876 if test "$GCC" = yes; then
15877 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15881 runpath_var='LD_RUN_PATH'
15882 hardcode_shlibpath_var_F77=no
15886 no_undefined_flag_F77=' -z text'
15887 # $CC -shared without GNU ld will not create a library from C++
15888 # object files and a static libstdc++, better avoid it by now
15889 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15892 hardcode_libdir_flag_spec_F77=
15893 hardcode_shlibpath_var_F77=no
15894 runpath_var='LD_RUN_PATH'
15898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_libdir_flag_spec_F77='-L$libdir'
15900 hardcode_shlibpath_var_F77=no
15909 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15910 echo "${ECHO_T}$ld_shlibs_F77" >&6
15911 test "$ld_shlibs_F77" = no && can_build_shared=no
15913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15914 if test "$GCC" = yes; then
15915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15919 # Do we need to explicitly link libc?
15921 case "x$archive_cmds_need_lc_F77" in
15923 # Assume -lc should be added
15924 archive_cmds_need_lc_F77=yes
15926 if test "$enable_shared" = yes && test "$GCC" = yes; then
15927 case $archive_cmds_F77 in
15929 # FIXME: we may have to deal with multi-command sequences.
15932 # Test whether the compiler implicitly links with -lc since on some
15933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15934 # to ld, don't add -lc before -lgcc.
15935 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15936 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941 (eval $ac_compile) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } 2>conftest.err; then
15947 libobjs=conftest.$ac_objext
15949 wl=$lt_prog_compiler_wl_F77
15955 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15956 allow_undefined_flag_F77=
15957 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15958 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }
15963 archive_cmds_need_lc_F77=no
15965 archive_cmds_need_lc_F77=yes
15967 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15969 cat conftest.err 1>&5
15972 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15973 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15980 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15981 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15982 library_names_spec=
15983 libname_spec='lib$name'
15987 postuninstall_cmds=
15991 shlibpath_overrides_runpath=unknown
15993 dynamic_linker="$host_os ld.so"
15994 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15995 if test "$GCC" = yes; then
15996 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15997 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15998 # if the path contains ";" then we assume it to be the separator
15999 # otherwise default to the standard path separator (i.e. ":") - it is
16000 # assumed that no part of a normal pathname contains ";" but that should
16001 # okay in the real world where ";" in dirpaths is itself problematic.
16002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16009 need_lib_prefix=unknown
16010 hardcode_into_libs=no
16012 # when you set need_version to no, make sure it does not cause -set_version
16013 # flags to be left without arguments
16014 need_version=unknown
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16020 shlibpath_var=LIBPATH
16022 # AIX 3 has no versioning support, so we append a major version to the name.
16023 soname_spec='${libname}${release}${shared_ext}$major'
16030 hardcode_into_libs=yes
16031 if test "$host_cpu" = ia64; then
16032 # AIX 5 supports IA64
16033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16034 shlibpath_var=LD_LIBRARY_PATH
16036 # With GCC up to 2.95.x, collect2 would create an import file
16037 # for dependence libraries. The import file would start with
16038 # the line `#! .'. This would cause the generated library to
16039 # depend on `.', always an invalid library. This was fixed in
16040 # development snapshots of GCC prior to 3.0.
16042 aix4 | aix4.[01] | aix4.[01].*)
16043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16045 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16048 can_build_shared=no
16052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16053 # soname into executable. Probably we can add versioning support to
16054 # collect2, so additional links can be useful in future.
16055 if test "$aix_use_runtimelinking" = yes; then
16056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16057 # instead of lib<name>.a to let people know that these are not
16058 # typical AIX shared libraries.
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 # We preserve .a as extension for shared libraries through AIX4.2
16062 # and later when we are not doing run time linking.
16063 library_names_spec='${libname}${release}.a $libname.a'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16066 shlibpath_var=LIBPATH
16071 library_names_spec='$libname.ixlibrary $libname.a'
16072 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16073 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'
16077 library_names_spec='${libname}${shared_ext}'
16078 dynamic_linker="$host_os ld.so"
16079 shlibpath_var=LIBRARY_PATH
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16091 # the default ld.so.conf also contains /usr/contrib/lib and
16092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16093 # libtool to hard-code these into programs
16096 cygwin* | mingw* | pw32*)
16097 version_type=windows
16102 case $GCC,$host_os in
16103 yes,cygwin* | yes,mingw* | yes,pw32*)
16104 library_names_spec='$libname.dll.a'
16105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16106 postinstall_cmds='base_file=`basename \${file}`~
16107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16108 dldir=$destdir/`dirname \$dlpath`~
16109 test -d \$dldir || mkdir -p \$dldir~
16110 $install_prog $dir/$dlname \$dldir/$dlname~
16111 chmod a+x \$dldir/$dlname'
16112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16113 dlpath=$dir/\$dldll~
16115 shlibpath_overrides_runpath=yes
16119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16124 # MinGW DLLs use traditional 'lib' prefix
16125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16128 # It is most probably a Windows format PATH printed by
16129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16130 # path with ; separators, and with drive letters. We can handle the
16131 # drive letters (cygwin fileutils understands them), so leave them,
16132 # especially as we might pass files found there to a mingw objdump,
16133 # which wouldn't understand a cygwinified path. Ahh.
16134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16140 # pw32 DLLs use 'pw' prefix rather than 'lib'
16141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16150 dynamic_linker='Win32 ld.exe'
16151 # FIXME: first we should search . and the directory the executable is in
16155 darwin* | rhapsody*)
16156 dynamic_linker="$host_os dyld"
16157 version_type=darwin
16160 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16161 soname_spec='${libname}${release}${major}$shared_ext'
16162 shlibpath_overrides_runpath=yes
16163 shlibpath_var=DYLD_LIBRARY_PATH
16164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16165 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16166 if test "$GCC" = yes; then
16167 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"`
16169 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=no
16195 hardcode_into_libs=yes
16196 dynamic_linker='GNU ld.so'
16199 freebsd* | dragonfly*)
16200 # DragonFly does not have aout. When/if they implement a new
16201 # versioning mechanism, adjust this.
16202 if test -x /usr/bin/objformat; then
16203 objformat=`/usr/bin/objformat`
16206 freebsd[123]*) objformat=aout ;;
16207 *) objformat=elf ;;
16210 version_type=freebsd-$objformat
16211 case $version_type in
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16222 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=yes
16227 freebsd3.[01]* | freebsdelf3.[01]*)
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16232 shlibpath_overrides_runpath=no
16233 hardcode_into_libs=yes
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 hardcode_into_libs=yes
16248 hpux9* | hpux10* | hpux11*)
16249 # Give a soname corresponding to the major version so that dld.sl refuses to
16250 # link against other versions.
16257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.so"
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 if test "X$HPUX_IA64_MODE" = X32; then
16264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 hardcode_into_libs=yes
16273 dynamic_linker="$host_os dld.sl"
16274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16283 dynamic_linker="$host_os dld.sl"
16284 shlibpath_var=SHLIB_PATH
16285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291 postinstall_cmds='chmod 555 $lib'
16294 irix5* | irix6* | nonstopux*)
16296 nonstopux*) version_type=nonstopux ;;
16298 if test "$lt_cv_prog_gnu_ld" = yes; then
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16309 irix5* | nonstopux*)
16310 libsuff= shlibsuff=
16313 case $LD in # libtool.m4 will add one of these switches to LD
16314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315 libsuff= shlibsuff= libmagic=32-bit;;
16316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317 libsuff=32 shlibsuff=N32 libmagic=N32;;
16318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320 *) libsuff= shlibsuff= libmagic=never-match;;
16324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325 shlibpath_overrides_runpath=no
16326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328 hardcode_into_libs=yes
16331 # No shared lib support for Linux oldld, aout, or coff.
16332 linux*oldld* | linux*aout* | linux*coff*)
16336 # This must be Linux ELF.
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
16346 # This implies no fast_install, which is unacceptable.
16347 # Some rework will be needed to allow for fast_install
16348 # before this can be enabled.
16349 hardcode_into_libs=yes
16351 # Append ld.so.conf contents to the search path
16352 if test -f /etc/ld.so.conf; then
16353 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' ' '`
16354 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16357 # We used to test for /lib/ld.so.1 and disable shared libraries on
16358 # powerpc, because MkLinux only supported shared libraries with the
16359 # GNU dynamic linker. Since this was broken with cross compilers,
16360 # most powerpc-linux boxes support dynamic linking these days and
16361 # people can always --disable-shared, the test was removed, and we
16362 # assume the GNU/Linux dynamic linker is in use.
16363 dynamic_linker='GNU/Linux ld.so'
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=no
16374 hardcode_into_libs=yes
16375 dynamic_linker='NetBSD ld.elf_so'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=no
16386 hardcode_into_libs=yes
16387 dynamic_linker='GNU ld.so'
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 dynamic_linker='NetBSD (a.out) ld.so'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 dynamic_linker='NetBSD ld.elf_so'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 hardcode_into_libs=yes
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16431 *) need_version=no ;;
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16438 openbsd2.[89] | openbsd2.[89].*)
16439 shlibpath_overrides_runpath=no
16442 shlibpath_overrides_runpath=yes
16446 shlibpath_overrides_runpath=yes
16451 libname_spec='$name'
16454 library_names_spec='$libname${shared_ext} $libname.a'
16455 dynamic_linker='OS/2 ld.exe'
16456 shlibpath_var=LIBPATH
16459 osf3* | osf4* | osf5*)
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 shlibpath_var=LD_LIBRARY_PATH
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 hardcode_into_libs=yes
16486 # ldd complains unless libraries are executable
16487 postinstall_cmds='chmod +x $lib'
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 if test "$with_gnu_ld" = yes; then
16502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 case $host_vendor in
16509 shlibpath_overrides_runpath=no
16511 export_dynamic_flag_spec='${wl}-Blargedynsym'
16512 runpath_var=LD_RUN_PATH
16520 shlibpath_overrides_runpath=no
16521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16527 if test -d /usr/nec ;then
16529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530 soname_spec='$libname${shared_ext}.$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16546 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16547 echo "${ECHO_T}$dynamic_linker" >&6
16548 test "$dynamic_linker" = no && can_build_shared=no
16550 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16552 hardcode_action_F77=
16553 if test -n "$hardcode_libdir_flag_spec_F77" || \
16554 test -n "$runpath_var_F77" || \
16555 test "X$hardcode_automatic_F77" = "Xyes" ; then
16557 # We can hardcode non-existant directories.
16558 if test "$hardcode_direct_F77" != no &&
16559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16560 # have to relink, otherwise we might link with an installed library
16561 # when we should be linking with a yet-to-be-installed one
16562 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16563 test "$hardcode_minus_L_F77" != no; then
16564 # Linking always hardcodes the temporary library directory.
16565 hardcode_action_F77=relink
16567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16568 hardcode_action_F77=immediate
16571 # We cannot hardcode anything, or else we can only hardcode existing
16573 hardcode_action_F77=unsupported
16575 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16576 echo "${ECHO_T}$hardcode_action_F77" >&6
16578 if test "$hardcode_action_F77" = relink; then
16579 # Fast installation is not supported
16580 enable_fast_install=no
16581 elif test "$shlibpath_overrides_runpath" = yes ||
16582 test "$enable_shared" = no; then
16583 # Fast installation is not necessary
16584 enable_fast_install=needless
16589 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16591 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16592 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16593 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16594 echo "$as_me:$LINENO: result: yes" >&5
16595 echo "${ECHO_T}yes" >&6
16597 # FIXME - insert some real tests, host_os isn't really good enough
16600 if test -n "$STRIP" ; then
16601 striplib="$STRIP -x"
16602 echo "$as_me:$LINENO: result: yes" >&5
16603 echo "${ECHO_T}yes" >&6
16605 echo "$as_me:$LINENO: result: no" >&5
16606 echo "${ECHO_T}no" >&6
16610 echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6
16618 # The else clause should only fire when bootstrapping the
16619 # libtool distribution, otherwise you forgot to ship ltmain.sh
16620 # with your package, and you will get complaints that there are
16621 # no rules to generate ltmain.sh.
16622 if test -f "$ltmain"; then
16623 # See if we are running on zsh, and set the options which allow our commands through
16624 # without removal of \ escapes.
16625 if test -n "${ZSH_VERSION+set}" ; then
16626 setopt NO_GLOB_SUBST
16628 # Now quote all the things that may contain metacharacters while being
16629 # careful not to overquote the AC_SUBSTed values. We take copies of the
16630 # variables and quote the copies for generation of the libtool script.
16631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16635 deplibs_check_method reload_flag reload_cmds need_locks \
16636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16637 lt_cv_sys_global_symbol_to_c_name_address \
16638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16639 old_postinstall_cmds old_postuninstall_cmds \
16643 lt_prog_compiler_wl_F77 \
16644 lt_prog_compiler_pic_F77 \
16645 lt_prog_compiler_static_F77 \
16646 lt_prog_compiler_no_builtin_flag_F77 \
16647 export_dynamic_flag_spec_F77 \
16648 thread_safe_flag_spec_F77 \
16649 whole_archive_flag_spec_F77 \
16650 enable_shared_with_static_runtimes_F77 \
16651 old_archive_cmds_F77 \
16652 old_archive_from_new_cmds_F77 \
16653 predep_objects_F77 \
16654 postdep_objects_F77 \
16657 compiler_lib_search_path_F77 \
16659 archive_expsym_cmds_F77 \
16660 postinstall_cmds_F77 \
16661 postuninstall_cmds_F77 \
16662 old_archive_from_expsyms_cmds_F77 \
16663 allow_undefined_flag_F77 \
16664 no_undefined_flag_F77 \
16665 export_symbols_cmds_F77 \
16666 hardcode_libdir_flag_spec_F77 \
16667 hardcode_libdir_flag_spec_ld_F77 \
16668 hardcode_libdir_separator_F77 \
16669 hardcode_automatic_F77 \
16671 module_expsym_cmds_F77 \
16672 lt_cv_prog_compiler_c_o_F77 \
16673 exclude_expsyms_F77 \
16674 include_expsyms_F77; do
16677 old_archive_cmds_F77 | \
16678 old_archive_from_new_cmds_F77 | \
16679 archive_cmds_F77 | \
16680 archive_expsym_cmds_F77 | \
16681 module_cmds_F77 | \
16682 module_expsym_cmds_F77 | \
16683 old_archive_from_expsyms_cmds_F77 | \
16684 export_symbols_cmds_F77 | \
16685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16686 postinstall_cmds | postuninstall_cmds | \
16687 old_postinstall_cmds | old_postuninstall_cmds | \
16688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16689 # Double-quote double-evaled strings.
16690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16699 *'\$0 --fallback-echo"')
16700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16706 cat <<__EOF__ >> "$cfgfile"
16707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16711 # Shell to use when invoking shell scripts.
16714 # Whether or not to build shared libraries.
16715 build_libtool_libs=$enable_shared
16717 # Whether or not to build static libraries.
16718 build_old_libs=$enable_static
16720 # Whether or not to add -lc for building shared libraries.
16721 build_libtool_need_lc=$archive_cmds_need_lc_F77
16723 # Whether or not to disallow shared libs when runtime libs are static
16724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16726 # Whether or not to optimize for fast installation.
16727 fast_install=$enable_fast_install
16730 host_alias=$host_alias
16734 # The build system.
16735 build_alias=$build_alias
16739 # An echo program that does not interpret backslashes.
16744 AR_FLAGS=$lt_AR_FLAGS
16749 # A language-specific compiler.
16750 CC=$lt_compiler_F77
16752 # Is the compiler the GNU C compiler?
16758 # The linker used to build libraries.
16761 # Whether we need hard or soft links.
16764 # A BSD-compatible nm program.
16767 # A symbol stripping program
16770 # Used to examine libraries when file_magic_cmd begins "file"
16771 MAGIC_CMD=$MAGIC_CMD
16773 # Used on cygwin: DLL creation program.
16776 # Used on cygwin: object dumper.
16779 # Used on cygwin: assembler.
16782 # The name of the directory that contains temporary libtool files.
16785 # How to create reloadable object files.
16786 reload_flag=$lt_reload_flag
16787 reload_cmds=$lt_reload_cmds
16789 # How to pass a linker flag through the compiler.
16790 wl=$lt_lt_prog_compiler_wl_F77
16792 # Object file suffix (normally "o").
16793 objext="$ac_objext"
16795 # Old archive suffix (normally "a").
16798 # Shared library suffix (normally ".so").
16799 shrext_cmds='$shrext_cmds'
16801 # Executable file suffix (normally "").
16804 # Additional compiler flags for building library objects.
16805 pic_flag=$lt_lt_prog_compiler_pic_F77
16808 # What is the maximum length of a command?
16809 max_cmd_len=$lt_cv_sys_max_cmd_len
16811 # Does compiler simultaneously support -c and -o options?
16812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16814 # Must we lock files when doing compilation?
16815 need_locks=$lt_need_locks
16817 # Do we need the lib prefix for modules?
16818 need_lib_prefix=$need_lib_prefix
16820 # Do we need a version for libraries?
16821 need_version=$need_version
16823 # Whether dlopen is supported.
16824 dlopen_support=$enable_dlopen
16826 # Whether dlopen of programs is supported.
16827 dlopen_self=$enable_dlopen_self
16829 # Whether dlopen of statically linked programs is supported.
16830 dlopen_self_static=$enable_dlopen_self_static
16832 # Compiler flag to prevent dynamic linking.
16833 link_static_flag=$lt_lt_prog_compiler_static_F77
16835 # Compiler flag to turn off builtin functions.
16836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16838 # Compiler flag to allow reflexive dlopens.
16839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16841 # Compiler flag to generate shared objects directly from archives.
16842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16844 # Compiler flag to generate thread-safe objects.
16845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16847 # Library versioning type.
16848 version_type=$version_type
16850 # Format of library name prefix.
16851 libname_spec=$lt_libname_spec
16853 # List of archive names. First name is the real one, the rest are links.
16854 # The last name is the one that the linker finds with -lNAME.
16855 library_names_spec=$lt_library_names_spec
16857 # The coded name of the library, if different from the real name.
16858 soname_spec=$lt_soname_spec
16860 # Commands used to build and install an old-style archive.
16862 old_archive_cmds=$lt_old_archive_cmds_F77
16863 old_postinstall_cmds=$lt_old_postinstall_cmds
16864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16866 # Create an old-style archive from a shared archive.
16867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16869 # Create a temporary old-style archive to link instead of a shared archive.
16870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16872 # Commands used to build and install a shared archive.
16873 archive_cmds=$lt_archive_cmds_F77
16874 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16875 postinstall_cmds=$lt_postinstall_cmds
16876 postuninstall_cmds=$lt_postuninstall_cmds
16878 # Commands used to build a loadable module (assumed same as above if empty)
16879 module_cmds=$lt_module_cmds_F77
16880 module_expsym_cmds=$lt_module_expsym_cmds_F77
16882 # Commands to strip libraries.
16883 old_striplib=$lt_old_striplib
16884 striplib=$lt_striplib
16886 # Dependencies to place before the objects being linked to create a
16888 predep_objects=$lt_predep_objects_F77
16890 # Dependencies to place after the objects being linked to create a
16892 postdep_objects=$lt_postdep_objects_F77
16894 # Dependencies to place before the objects being linked to create a
16896 predeps=$lt_predeps_F77
16898 # Dependencies to place after the objects being linked to create a
16900 postdeps=$lt_postdeps_F77
16902 # The library search path used internally by the compiler when linking
16903 # a shared library.
16904 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16906 # Method to check whether dependent libraries are shared objects.
16907 deplibs_check_method=$lt_deplibs_check_method
16909 # Command to use when deplibs_check_method == file_magic.
16910 file_magic_cmd=$lt_file_magic_cmd
16912 # Flag that allows shared libraries with undefined symbols to be built.
16913 allow_undefined_flag=$lt_allow_undefined_flag_F77
16915 # Flag that forces no undefined symbols.
16916 no_undefined_flag=$lt_no_undefined_flag_F77
16918 # Commands used to finish a libtool library installation in a directory.
16919 finish_cmds=$lt_finish_cmds
16921 # Same as above, but a single script fragment to be evaled but not shown.
16922 finish_eval=$lt_finish_eval
16924 # Take the output of nm and produce a listing of raw symbols and C names.
16925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16927 # Transform the output of nm in a proper C declaration
16928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16930 # Transform the output of nm in a C name address pair
16931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16933 # This is the shared library runtime path variable.
16934 runpath_var=$runpath_var
16936 # This is the shared library path variable.
16937 shlibpath_var=$shlibpath_var
16939 # Is shlibpath searched before the hard-coded library search path?
16940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16942 # How to hardcode a shared library path into an executable.
16943 hardcode_action=$hardcode_action_F77
16945 # Whether we should hardcode library paths into libraries.
16946 hardcode_into_libs=$hardcode_into_libs
16948 # Flag to hardcode \$libdir into a binary during linking.
16949 # This must work even if \$libdir does not exist.
16950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16952 # If ld is used when linking, flag to hardcode \$libdir into
16953 # a binary during linking. This must work even if \$libdir does
16955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16957 # Whether we need a single -rpath flag with a separated argument.
16958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16961 # resulting binary.
16962 hardcode_direct=$hardcode_direct_F77
16964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16965 # resulting binary.
16966 hardcode_minus_L=$hardcode_minus_L_F77
16968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16969 # the resulting binary.
16970 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16972 # Set to yes if building a shared library automatically hardcodes DIR into the library
16973 # and all subsequent libraries and executables linked against it.
16974 hardcode_automatic=$hardcode_automatic_F77
16976 # Variables whose values should be saved in libtool wrapper scripts and
16977 # restored at relink time.
16978 variables_saved_for_relink="$variables_saved_for_relink"
16980 # Whether libtool must link a program against all its dependency libraries.
16981 link_all_deplibs=$link_all_deplibs_F77
16983 # Compile-time system search path for libraries
16984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16986 # Run-time system search path for libraries
16987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16989 # Fix the shell variable \$srcfile for the compiler.
16990 fix_srcfile_path="$fix_srcfile_path_F77"
16992 # Set to yes if exported symbols are required.
16993 always_export_symbols=$always_export_symbols_F77
16995 # The commands to list exported symbols.
16996 export_symbols_cmds=$lt_export_symbols_cmds_F77
16998 # The commands to extract the exported symbol list from a shared archive.
16999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17001 # Symbols that should not be listed in the preloaded symbols.
17002 exclude_expsyms=$lt_exclude_expsyms_F77
17004 # Symbols that must always be exported.
17005 include_expsyms=$lt_include_expsyms_F77
17007 # ### END LIBTOOL TAG CONFIG: $tagname
17013 # If there is no Makefile yet, we rely on a make rule to execute
17014 # `config.status --recheck' to rerun these tests and create the
17015 # libtool script then.
17016 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17017 if test -f "$ltmain_in"; then
17018 test -f Makefile && make "$ltmain"
17024 ac_cpp='$CPP $CPPFLAGS'
17025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17037 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17041 # Source file extension for Java test sources.
17044 # Object file extension for compiled Java test sources.
17048 # Code to be used in simple compile tests
17049 lt_simple_compile_test_code="class foo {}\n"
17051 # Code to be used in simple link tests
17052 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17056 # If no C compiler was specified, use CC.
17059 # Allow CC to be a program name with arguments.
17063 # save warnings/boilerplate of simple test code
17064 ac_outfile=conftest.$ac_objext
17065 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17067 _lt_compiler_boilerplate=`cat conftest.err`
17070 ac_outfile=conftest.$ac_objext
17071 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17073 _lt_linker_boilerplate=`cat conftest.err`
17077 # Allow CC to be a program name with arguments.
17082 for cc_temp in $compiler""; do
17084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17093 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17094 archive_cmds_need_lc_GCJ=no
17096 old_archive_cmds_GCJ=$old_archive_cmds
17099 lt_prog_compiler_no_builtin_flag_GCJ=
17101 if test "$GCC" = yes; then
17102 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17105 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17106 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17107 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 lt_cv_prog_compiler_rtti_exceptions=no
17111 ac_outfile=conftest.$ac_objext
17112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17113 lt_compiler_flag="-fno-rtti -fno-exceptions"
17114 # Insert the option either (1) after the last *FLAGS variable, or
17115 # (2) before a word containing "conftest.", or (3) at the end.
17116 # Note that $ac_compile itself does not contain backslashes and begins
17117 # with a dollar sign (not a hyphen), so the echo should work correctly.
17118 # The option is referenced via a variable to avoid confusing sed.
17119 lt_compile=`echo "$ac_compile" | $SED \
17120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122 -e 's:$: $lt_compiler_flag:'`
17123 (eval echo "\"\$as_me:17123: $lt_compile\"" >&5)
17124 (eval "$lt_compile" 2>conftest.err)
17126 cat conftest.err >&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 if (exit $ac_status) && test -s "$ac_outfile"; then
17129 # The compiler can only warn and ignore the option if not recognized
17130 # So say no if there are warnings other than the usual output.
17131 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17132 $SED '/^$/d' conftest.err >conftest.er2
17133 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17134 lt_cv_prog_compiler_rtti_exceptions=yes
17140 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17141 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17144 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17151 lt_prog_compiler_wl_GCJ=
17152 lt_prog_compiler_pic_GCJ=
17153 lt_prog_compiler_static_GCJ=
17155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17158 if test "$GCC" = yes; then
17159 lt_prog_compiler_wl_GCJ='-Wl,'
17160 lt_prog_compiler_static_GCJ='-static'
17164 # All AIX code is PIC.
17165 if test "$host_cpu" = ia64; then
17166 # AIX 5 now supports IA64 processor
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17172 # FIXME: we need at least 68020 code to build shared libraries, but
17173 # adding the `-m68020' flag to GCC prevents building anything better,
17175 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17179 # PIC is the default for these OSes.
17182 mingw* | pw32* | os2*)
17183 # This hack is so that the source file can tell whether it is being
17184 # built for inclusion in a dll (and should export symbols for example).
17185 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17188 darwin* | rhapsody*)
17189 # PIC is the default on this platform
17190 # Common symbols not allowed in MH_DYLIB files
17191 lt_prog_compiler_pic_GCJ='-fno-common'
17195 # Just because we use GCC doesn't mean we suddenly get shared libraries
17196 # on systems that don't support them.
17197 lt_prog_compiler_can_build_shared_GCJ=no
17202 if test -d /usr/nec; then
17203 lt_prog_compiler_pic_GCJ=-Kconform_pic
17208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17209 # not for PA HP-UX.
17215 lt_prog_compiler_pic_GCJ='-fPIC'
17221 lt_prog_compiler_pic_GCJ='-fPIC'
17225 # PORTME Check for flag to pass linker flags through the system compiler.
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 if test "$host_cpu" = ia64; then
17230 # AIX 5 now supports IA64 processor
17231 lt_prog_compiler_static_GCJ='-Bstatic'
17233 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17237 # PIC is the default on this platform
17238 # Common symbols not allowed in MH_DYLIB files
17239 case $cc_basename in
17241 lt_prog_compiler_pic_GCJ='-qnocommon'
17242 lt_prog_compiler_wl_GCJ='-Wl,'
17247 mingw* | pw32* | os2*)
17248 # This hack is so that the source file can tell whether it is being
17249 # built for inclusion in a dll (and should export symbols for example).
17250 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17253 hpux9* | hpux10* | hpux11*)
17254 lt_prog_compiler_wl_GCJ='-Wl,'
17255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17256 # not for PA HP-UX.
17262 lt_prog_compiler_pic_GCJ='+Z'
17265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17266 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17269 irix5* | irix6* | nonstopux*)
17270 lt_prog_compiler_wl_GCJ='-Wl,'
17271 # PIC (with -KPIC) is the default.
17272 lt_prog_compiler_static_GCJ='-non_shared'
17276 lt_prog_compiler_pic_GCJ='-KPIC'
17277 lt_prog_compiler_static_GCJ='-Bstatic'
17281 case $cc_basename in
17283 lt_prog_compiler_wl_GCJ='-Wl,'
17284 lt_prog_compiler_pic_GCJ='-KPIC'
17285 lt_prog_compiler_static_GCJ='-static'
17287 pgcc* | pgf77* | pgf90* | pgf95*)
17288 # Portland Group compilers (*not* the Pentium gcc compiler,
17289 # which looks to be a dead project)
17290 lt_prog_compiler_wl_GCJ='-Wl,'
17291 lt_prog_compiler_pic_GCJ='-fpic'
17292 lt_prog_compiler_static_GCJ='-Bstatic'
17295 lt_prog_compiler_wl_GCJ='-Wl,'
17296 # All Alpha code is PIC.
17297 lt_prog_compiler_static_GCJ='-non_shared'
17302 osf3* | osf4* | osf5*)
17303 lt_prog_compiler_wl_GCJ='-Wl,'
17304 # All OSF/1 code is PIC.
17305 lt_prog_compiler_static_GCJ='-non_shared'
17309 lt_prog_compiler_pic_GCJ='-Kpic'
17310 lt_prog_compiler_static_GCJ='-dn'
17314 lt_prog_compiler_pic_GCJ='-KPIC'
17315 lt_prog_compiler_static_GCJ='-Bstatic'
17316 case $cc_basename in
17317 f77* | f90* | f95*)
17318 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17320 lt_prog_compiler_wl_GCJ='-Wl,';;
17325 lt_prog_compiler_wl_GCJ='-Qoption ld '
17326 lt_prog_compiler_pic_GCJ='-PIC'
17327 lt_prog_compiler_static_GCJ='-Bstatic'
17330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17331 lt_prog_compiler_wl_GCJ='-Wl,'
17332 lt_prog_compiler_pic_GCJ='-KPIC'
17333 lt_prog_compiler_static_GCJ='-Bstatic'
17337 if test -d /usr/nec ;then
17338 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17339 lt_prog_compiler_static_GCJ='-Bstatic'
17344 lt_prog_compiler_wl_GCJ='-Wl,'
17345 lt_prog_compiler_can_build_shared_GCJ=no
17349 lt_prog_compiler_pic_GCJ='-pic'
17350 lt_prog_compiler_static_GCJ='-Bstatic'
17354 lt_prog_compiler_can_build_shared_GCJ=no
17359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17360 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17363 # Check to make sure the PIC flag actually works.
17365 if test -n "$lt_prog_compiler_pic_GCJ"; then
17367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17369 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 lt_prog_compiler_pic_works_GCJ=no
17373 ac_outfile=conftest.$ac_objext
17374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17375 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17376 # Insert the option either (1) after the last *FLAGS variable, or
17377 # (2) before a word containing "conftest.", or (3) at the end.
17378 # Note that $ac_compile itself does not contain backslashes and begins
17379 # with a dollar sign (not a hyphen), so the echo should work correctly.
17380 # The option is referenced via a variable to avoid confusing sed.
17381 lt_compile=`echo "$ac_compile" | $SED \
17382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17384 -e 's:$: $lt_compiler_flag:'`
17385 (eval echo "\"\$as_me:17385: $lt_compile\"" >&5)
17386 (eval "$lt_compile" 2>conftest.err)
17388 cat conftest.err >&5
17389 echo "$as_me:17389: \$? = $ac_status" >&5
17390 if (exit $ac_status) && test -s "$ac_outfile"; then
17391 # The compiler can only warn and ignore the option if not recognized
17392 # So say no if there are warnings other than the usual output.
17393 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17394 $SED '/^$/d' conftest.err >conftest.er2
17395 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17396 lt_prog_compiler_pic_works_GCJ=yes
17402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17403 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17405 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17406 case $lt_prog_compiler_pic_GCJ in
17408 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17411 lt_prog_compiler_pic_GCJ=
17412 lt_prog_compiler_can_build_shared_GCJ=no
17417 # For platforms which do not support PIC, -DPIC is meaningless:
17419 lt_prog_compiler_pic_GCJ=
17422 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17428 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 lt_cv_prog_compiler_c_o_GCJ=no
17432 $rm -r conftest 2>/dev/null
17436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17438 lt_compiler_flag="-o out/conftest2.$ac_objext"
17439 # Insert the option either (1) after the last *FLAGS variable, or
17440 # (2) before a word containing "conftest.", or (3) at the end.
17441 # Note that $ac_compile itself does not contain backslashes and begins
17442 # with a dollar sign (not a hyphen), so the echo should work correctly.
17443 lt_compile=`echo "$ac_compile" | $SED \
17444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17446 -e 's:$: $lt_compiler_flag:'`
17447 (eval echo "\"\$as_me:17447: $lt_compile\"" >&5)
17448 (eval "$lt_compile" 2>out/conftest.err)
17450 cat out/conftest.err >&5
17451 echo "$as_me:17451: \$? = $ac_status" >&5
17452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17454 # The compiler can only warn and ignore the option if not recognized
17455 # So say no if there are warnings
17456 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17457 $SED '/^$/d' out/conftest.err >out/conftest.er2
17458 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17459 lt_cv_prog_compiler_c_o_GCJ=yes
17464 # SGI C++ compiler will create directory out/ii_files/ for
17465 # template instantiation
17466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17467 $rm out/* && rmdir out
17473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17477 hard_links="nottested"
17478 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17479 # do not overwrite the value of need_locks provided by the user
17480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17486 ln conftest.a conftest.b 2>&5 || hard_links=no
17487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17488 echo "$as_me:$LINENO: result: $hard_links" >&5
17489 echo "${ECHO_T}$hard_links" >&6
17490 if test "$hard_links" = no; then
17491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17503 allow_undefined_flag_GCJ=
17504 enable_shared_with_static_runtimes_GCJ=no
17506 archive_expsym_cmds_GCJ=
17507 old_archive_From_new_cmds_GCJ=
17508 old_archive_from_expsyms_cmds_GCJ=
17509 export_dynamic_flag_spec_GCJ=
17510 whole_archive_flag_spec_GCJ=
17511 thread_safe_flag_spec_GCJ=
17512 hardcode_libdir_flag_spec_GCJ=
17513 hardcode_libdir_flag_spec_ld_GCJ=
17514 hardcode_libdir_separator_GCJ=
17515 hardcode_direct_GCJ=no
17516 hardcode_minus_L_GCJ=no
17517 hardcode_shlibpath_var_GCJ=unsupported
17518 link_all_deplibs_GCJ=unknown
17519 hardcode_automatic_GCJ=no
17521 module_expsym_cmds_GCJ=
17522 always_export_symbols_GCJ=no
17523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17524 # include_expsyms should be a list of space-separated symbols to be *always*
17525 # included in the symbol list
17526 include_expsyms_GCJ=
17527 # exclude_expsyms can be an extended regexp of symbols to exclude
17528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17530 # as well as any symbol that contains `d'.
17531 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17533 # platforms (ab)use it in PIC code, but their linkers get confused if
17534 # the symbol is explicitly referenced. Since portable code cannot
17535 # rely on this symbol name, it's probably fine to never include it in
17536 # preloaded symbol tables.
17537 extract_expsyms_cmds=
17538 # Just being paranoid about ensuring that cc_basename is set.
17539 for cc_temp in $compiler""; do
17541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17547 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17550 cygwin* | mingw* | pw32*)
17551 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17552 # When not using gcc, we currently assume that we are using
17553 # Microsoft Visual C++.
17554 if test "$GCC" != yes; then
17564 if test "$with_gnu_ld" = yes; then
17565 # If archive_cmds runs LD, not CC, wlarc should be empty
17568 # Set some defaults for GNU ld with shared library support. These
17569 # are reset later if shared libraries are not supported. Putting them
17570 # here allows them to be overridden if necessary.
17571 runpath_var=LD_RUN_PATH
17572 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17573 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17574 # ancient GNU ld didn't support --whole-archive et. al.
17575 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17576 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17578 whole_archive_flag_spec_GCJ=
17580 supports_anon_versioning=no
17581 case `$LD -v 2>/dev/null` in
17582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17585 *\ 2.11.*) ;; # other 2.11 versions
17586 *) supports_anon_versioning=yes ;;
17589 # See if GNU ld supports shared libraries.
17591 aix3* | aix4* | aix5*)
17592 # On AIX/PPC, the GNU linker is very broken
17593 if test "$host_cpu" != ia64; then
17597 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17598 *** to be unable to reliably create shared libraries on AIX.
17599 *** Therefore, libtool is disabling shared libraries support. If you
17600 *** really care for shared libraries, you may want to modify your PATH
17601 *** so that a non-GNU linker is found, and then restart.
17608 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)'
17609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17610 hardcode_minus_L_GCJ=yes
17612 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17613 # that the semantics of dynamic libraries on AmigaOS, at least up
17614 # to version 4, is to share data among multiple programs linked
17615 # with the same dynamic library. Since this doesn't match the
17616 # behavior of shared libraries on other platforms, we can't use
17622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17623 allow_undefined_flag_GCJ=unsupported
17624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17625 # support --undefined. This deserves some investigation. FIXME
17626 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17632 cygwin* | mingw* | pw32*)
17633 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17634 # as there is no search path for DLLs.
17635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636 allow_undefined_flag_GCJ=unsupported
17637 always_export_symbols_GCJ=no
17638 enable_shared_with_static_runtimes_GCJ=yes
17639 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17641 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17643 # If the export-symbols file already is a .def file (1st line
17644 # is EXPORTS), use it as is; otherwise, prepend...
17645 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17646 cp $export_symbols $output_objdir/$soname.def;
17648 echo EXPORTS > $output_objdir/$soname.def;
17649 cat $export_symbols >> $output_objdir/$soname.def;
17651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17660 case $cc_basename,$host_cpu in
17661 pgcc*) # Portland Group C compiler
17662 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'
17663 tmp_addflag=' $pic_flag'
17665 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17666 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'
17667 tmp_addflag=' $pic_flag -Mnomain' ;;
17668 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17669 tmp_addflag=' -i_dynamic' ;;
17670 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17671 tmp_addflag=' -i_dynamic -nofor_main' ;;
17672 ifc* | ifort*) # Intel Fortran compiler
17673 tmp_addflag=' -nofor_main' ;;
17675 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17677 if test $supports_anon_versioning = yes; then
17678 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17680 $echo "local: *; };" >> $output_objdir/$libname.ver~
17681 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17683 link_all_deplibs_GCJ=no
17689 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17691 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17695 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17700 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17705 *** create shared libraries on Solaris systems. Therefore, libtool
17706 *** is disabling shared libraries support. We urge you to upgrade GNU
17707 *** binutils to release 2.9.1 or newer. Another option is to modify
17708 *** your PATH or compiler configuration so that the native linker is
17709 *** used, and then restart.
17712 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17721 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_direct_GCJ=yes
17724 hardcode_shlibpath_var_GCJ=no
17728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17737 if test "$ld_shlibs_GCJ" = no; then
17739 hardcode_libdir_flag_spec_GCJ=
17740 export_dynamic_flag_spec_GCJ=
17741 whole_archive_flag_spec_GCJ=
17744 # PORTME fill in a description of your system's linker (not GNU ld)
17747 allow_undefined_flag_GCJ=unsupported
17748 always_export_symbols_GCJ=yes
17749 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'
17750 # Note: this linker hardcodes the directories in LIBPATH if there
17751 # are no directories specified by -L.
17752 hardcode_minus_L_GCJ=yes
17753 if test "$GCC" = yes && test -z "$link_static_flag"; then
17754 # Neither direct hardcoding nor static linking is supported with a
17756 hardcode_direct_GCJ=unsupported
17761 if test "$host_cpu" = ia64; then
17762 # On IA64, the linker does run time linking by default, so we don't
17763 # have to do anything special.
17764 aix_use_runtimelinking=no
17765 exp_sym_flag='-Bexport'
17768 # If we're using GNU nm, then we don't want the "-C" option.
17769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17770 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17771 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'
17773 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'
17775 aix_use_runtimelinking=no
17777 # Test if we are trying to use run time linking or normal
17778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17779 # need to do runtime linking.
17780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17781 for ld_flag in $LDFLAGS; do
17782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17783 aix_use_runtimelinking=yes
17789 exp_sym_flag='-bexport'
17790 no_entry_flag='-bnoentry'
17793 # When large executables or shared objects are built, AIX ld can
17794 # have problems creating the table of contents. If linking a library
17795 # or program results in "error TOC overflow" add -mminimal-toc to
17796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17799 archive_cmds_GCJ=''
17800 hardcode_direct_GCJ=yes
17801 hardcode_libdir_separator_GCJ=':'
17802 link_all_deplibs_GCJ=yes
17804 if test "$GCC" = yes; then
17805 case $host_os in aix4.[012]|aix4.[012].*)
17806 # We only want to do this on AIX 4.2 and lower, the check
17807 # below for broken collect2 doesn't work under 4.3+
17808 collect2name=`${CC} -print-prog-name=collect2`
17809 if test -f "$collect2name" && \
17810 strings "$collect2name" | grep resolve_lib_name >/dev/null
17812 # We have reworked collect2
17813 hardcode_direct_GCJ=yes
17815 # We have old collect2
17816 hardcode_direct_GCJ=unsupported
17817 # It fails to find uninstalled libraries when the uninstalled
17818 # path is not listed in the libpath. Setting hardcode_minus_L
17819 # to unsupported forces relinking
17820 hardcode_minus_L_GCJ=yes
17821 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17822 hardcode_libdir_separator_GCJ=
17825 shared_flag='-shared'
17826 if test "$aix_use_runtimelinking" = yes; then
17827 shared_flag="$shared_flag "'${wl}-G'
17831 if test "$host_cpu" = ia64; then
17832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17833 # chokes on -Wl,-G. The following line is correct:
17836 if test "$aix_use_runtimelinking" = yes; then
17837 shared_flag='${wl}-G'
17839 shared_flag='${wl}-bM:SRE'
17844 # It seems that -bexpall does not export symbols beginning with
17845 # underscore (_), so it is better to generate a list of symbols to export.
17846 always_export_symbols_GCJ=yes
17847 if test "$aix_use_runtimelinking" = yes; then
17848 # Warning - without using the other runtime loading flags (-brtl),
17849 # -berok will link without error, but may produce a broken library.
17850 allow_undefined_flag_GCJ='-berok'
17851 # Determine the default libpath from the value encoded in an empty executable.
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869 (eval $ac_link) 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17891 # Check for a 64-bit object if we didn't find anything.
17892 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; }
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17899 rm -f conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17903 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17904 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17906 if test "$host_cpu" = ia64; then
17907 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17908 allow_undefined_flag_GCJ="-z nodefs"
17909 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17911 # Determine the default libpath from the value encoded in an empty executable.
17912 cat >conftest.$ac_ext <<_ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17951 # Check for a 64-bit object if we didn't find anything.
17952 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; }
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17959 rm -f conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17963 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17964 # Warning - without using the other run time loading flags,
17965 # -berok will link without error, but may produce a broken library.
17966 no_undefined_flag_GCJ=' ${wl}-bernotok'
17967 allow_undefined_flag_GCJ=' ${wl}-berok'
17968 # -bexpall does not export symbols beginning with underscore (_)
17969 always_export_symbols_GCJ=yes
17970 # Exported symbols can be pulled into shared objects from archives
17971 whole_archive_flag_spec_GCJ=' '
17972 archive_cmds_need_lc_GCJ=yes
17973 # This is similar to how AIX traditionally builds its shared libraries.
17974 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17980 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)'
17981 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17982 hardcode_minus_L_GCJ=yes
17983 # see comment about different semantics on the GNU ld section
17988 export_dynamic_flag_spec_GCJ=-rdynamic
17991 cygwin* | mingw* | pw32*)
17992 # When not using gcc, we currently assume that we are using
17993 # Microsoft Visual C++.
17994 # hardcode_libdir_flag_spec is actually meaningless, as there is
17995 # no search path for DLLs.
17996 hardcode_libdir_flag_spec_GCJ=' '
17997 allow_undefined_flag_GCJ=unsupported
17998 # Tell ltmain to make .lib files, not .a files.
18000 # Tell ltmain to make .dll files, not .so files.
18002 # FIXME: Setting linknames here is a bad hack.
18003 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18004 # The linker will automatically build a .lib file if we build a DLL.
18005 old_archive_From_new_cmds_GCJ='true'
18006 # FIXME: Should let the user specify the lib program.
18007 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18008 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18009 enable_shared_with_static_runtimes_GCJ=yes
18012 darwin* | rhapsody*)
18014 rhapsody* | darwin1.[012])
18015 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18018 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18019 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18021 case ${MACOSX_DEPLOYMENT_TARGET} in
18023 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18026 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18032 archive_cmds_need_lc_GCJ=no
18033 hardcode_direct_GCJ=no
18034 hardcode_automatic_GCJ=yes
18035 hardcode_shlibpath_var_GCJ=unsupported
18036 whole_archive_flag_spec_GCJ=''
18037 link_all_deplibs_GCJ=yes
18038 if test "$GCC" = yes ; then
18039 output_verbose_link_cmd='echo'
18040 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18041 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18043 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}'
18044 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}'
18046 case $cc_basename in
18048 output_verbose_link_cmd='echo'
18049 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18050 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18052 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}'
18053 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}'
18063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065 hardcode_shlibpath_var_GCJ=no
18072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18073 # support. Future versions do this automatically, but an explicit c++rt0.o
18074 # does not break anything, and helps significantly (at the cost of a little
18077 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18078 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18079 hardcode_direct_GCJ=yes
18080 hardcode_shlibpath_var_GCJ=no
18083 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18085 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18086 hardcode_direct_GCJ=yes
18087 hardcode_minus_L_GCJ=yes
18088 hardcode_shlibpath_var_GCJ=no
18091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18092 freebsd* | kfreebsd*-gnu | dragonfly*)
18093 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095 hardcode_direct_GCJ=yes
18096 hardcode_shlibpath_var_GCJ=no
18100 if test "$GCC" = yes; then
18101 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'
18103 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'
18105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18106 hardcode_libdir_separator_GCJ=:
18107 hardcode_direct_GCJ=yes
18109 # hardcode_minus_L: Not really in the search PATH,
18110 # but as the default location of the library.
18111 hardcode_minus_L_GCJ=yes
18112 export_dynamic_flag_spec_GCJ='${wl}-E'
18116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18119 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18135 if test "$with_gnu_ld" = no; then
18138 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18140 hardcode_libdir_separator_GCJ=:
18141 hardcode_direct_GCJ=no
18142 hardcode_shlibpath_var_GCJ=no
18145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146 hardcode_direct_GCJ=no
18147 hardcode_shlibpath_var_GCJ=no
18149 # hardcode_minus_L: Not really in the search PATH,
18150 # but as the default location of the library.
18151 hardcode_minus_L_GCJ=yes
18154 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18155 hardcode_libdir_separator_GCJ=:
18156 hardcode_direct_GCJ=yes
18157 export_dynamic_flag_spec_GCJ='${wl}-E'
18159 # hardcode_minus_L: Not really in the search PATH,
18160 # but as the default location of the library.
18161 hardcode_minus_L_GCJ=yes
18167 irix5* | irix6* | nonstopux*)
18168 if test "$GCC" = yes; then
18169 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'
18171 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'
18172 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175 hardcode_libdir_separator_GCJ=:
18176 link_all_deplibs_GCJ=yes
18179 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18183 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18185 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18186 hardcode_direct_GCJ=yes
18187 hardcode_shlibpath_var_GCJ=no
18191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18192 hardcode_direct_GCJ=yes
18193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18194 hardcode_libdir_separator_GCJ=:
18195 hardcode_shlibpath_var_GCJ=no
18199 hardcode_direct_GCJ=yes
18200 hardcode_shlibpath_var_GCJ=no
18201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18202 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18203 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18205 export_dynamic_flag_spec_GCJ='${wl}-E'
18208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18213 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222 hardcode_minus_L_GCJ=yes
18223 allow_undefined_flag_GCJ=unsupported
18224 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'
18225 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18229 if test "$GCC" = yes; then
18230 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18231 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'
18233 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18234 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'
18236 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18237 hardcode_libdir_separator_GCJ=:
18240 osf4* | osf5*) # as osf3* with the addition of -msym flag
18241 if test "$GCC" = yes; then
18242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243 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'
18244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18246 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18247 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'
18248 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~
18249 $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'
18251 # Both c and cxx compiler support -rpath directly
18252 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18254 hardcode_libdir_separator_GCJ=:
18258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259 hardcode_shlibpath_var_GCJ=no
18260 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18261 runpath_var=LD_RUN_PATH
18262 hardcode_runpath_var=yes
18266 no_undefined_flag_GCJ=' -z text'
18267 if test "$GCC" = yes; then
18269 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18271 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18274 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18279 hardcode_shlibpath_var_GCJ=no
18281 solaris2.[0-5] | solaris2.[0-5].*) ;;
18283 # The compiler driver will combine linker options so we
18284 # cannot just pass the convience library names through
18285 # without $wl, iff we do not link with $LD.
18286 # Luckily, gcc supports the same syntax we need for Sun Studio.
18287 # Supported since Solaris 2.6 (maybe 2.5.1?)
18290 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18292 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' ;;
18295 link_all_deplibs_GCJ=yes
18299 if test "x$host_vendor" = xsequent; then
18300 # Use $CC to link under sequent, because it throws in some extra .o
18301 # files that make .init and .fini sections work.
18302 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18304 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307 hardcode_direct_GCJ=yes
18308 hardcode_minus_L_GCJ=yes
18309 hardcode_shlibpath_var_GCJ=no
18313 case $host_vendor in
18315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 hardcode_direct_GCJ=yes # is this really true???
18319 ## LD is ld it makes a PLAMLIB
18320 ## CC just makes a GrossModule.
18321 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18322 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18323 hardcode_direct_GCJ=no
18326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18330 runpath_var='LD_RUN_PATH'
18331 hardcode_shlibpath_var_GCJ=no
18335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18336 hardcode_shlibpath_var_GCJ=no
18337 export_dynamic_flag_spec_GCJ='-Bexport'
18341 if test -d /usr/nec; then
18342 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18343 hardcode_shlibpath_var_GCJ=no
18344 runpath_var=LD_RUN_PATH
18345 hardcode_runpath_var=yes
18351 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18352 hardcode_direct_GCJ=yes
18353 hardcode_minus_L_GCJ=no
18354 hardcode_shlibpath_var_GCJ=no
18355 hardcode_runpath_var=yes
18356 runpath_var=LD_RUN_PATH
18359 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18360 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18361 if test "$GCC" = yes; then
18362 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18366 runpath_var='LD_RUN_PATH'
18367 hardcode_shlibpath_var_GCJ=no
18371 no_undefined_flag_GCJ=' -z text'
18372 # $CC -shared without GNU ld will not create a library from C++
18373 # object files and a static libstdc++, better avoid it by now
18374 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18377 hardcode_libdir_flag_spec_GCJ=
18378 hardcode_shlibpath_var_GCJ=no
18379 runpath_var='LD_RUN_PATH'
18383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18385 hardcode_shlibpath_var_GCJ=no
18394 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18395 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18396 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18399 if test "$GCC" = yes; then
18400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18404 # Do we need to explicitly link libc?
18406 case "x$archive_cmds_need_lc_GCJ" in
18408 # Assume -lc should be added
18409 archive_cmds_need_lc_GCJ=yes
18411 if test "$enable_shared" = yes && test "$GCC" = yes; then
18412 case $archive_cmds_GCJ in
18414 # FIXME: we may have to deal with multi-command sequences.
18417 # Test whether the compiler implicitly links with -lc since on some
18418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18419 # to ld, don't add -lc before -lgcc.
18420 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18421 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18426 (eval $ac_compile) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } 2>conftest.err; then
18432 libobjs=conftest.$ac_objext
18434 wl=$lt_prog_compiler_wl_GCJ
18440 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18441 allow_undefined_flag_GCJ=
18442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18443 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }
18448 archive_cmds_need_lc_GCJ=no
18450 archive_cmds_need_lc_GCJ=yes
18452 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18454 cat conftest.err 1>&5
18457 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18458 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18465 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18466 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18467 library_names_spec=
18468 libname_spec='lib$name'
18472 postuninstall_cmds=
18476 shlibpath_overrides_runpath=unknown
18478 dynamic_linker="$host_os ld.so"
18479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18480 if test "$GCC" = yes; then
18481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18482 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18483 # if the path contains ";" then we assume it to be the separator
18484 # otherwise default to the standard path separator (i.e. ":") - it is
18485 # assumed that no part of a normal pathname contains ";" but that should
18486 # okay in the real world where ";" in dirpaths is itself problematic.
18487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18494 need_lib_prefix=unknown
18495 hardcode_into_libs=no
18497 # when you set need_version to no, make sure it does not cause -set_version
18498 # flags to be left without arguments
18499 need_version=unknown
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18505 shlibpath_var=LIBPATH
18507 # AIX 3 has no versioning support, so we append a major version to the name.
18508 soname_spec='${libname}${release}${shared_ext}$major'
18515 hardcode_into_libs=yes
18516 if test "$host_cpu" = ia64; then
18517 # AIX 5 supports IA64
18518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18519 shlibpath_var=LD_LIBRARY_PATH
18521 # With GCC up to 2.95.x, collect2 would create an import file
18522 # for dependence libraries. The import file would start with
18523 # the line `#! .'. This would cause the generated library to
18524 # depend on `.', always an invalid library. This was fixed in
18525 # development snapshots of GCC prior to 3.0.
18527 aix4 | aix4.[01] | aix4.[01].*)
18528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18530 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18533 can_build_shared=no
18537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18538 # soname into executable. Probably we can add versioning support to
18539 # collect2, so additional links can be useful in future.
18540 if test "$aix_use_runtimelinking" = yes; then
18541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18542 # instead of lib<name>.a to let people know that these are not
18543 # typical AIX shared libraries.
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18546 # We preserve .a as extension for shared libraries through AIX4.2
18547 # and later when we are not doing run time linking.
18548 library_names_spec='${libname}${release}.a $libname.a'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LIBPATH
18556 library_names_spec='$libname.ixlibrary $libname.a'
18557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18558 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'
18562 library_names_spec='${libname}${shared_ext}'
18563 dynamic_linker="$host_os ld.so"
18564 shlibpath_var=LIBRARY_PATH
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18576 # the default ld.so.conf also contains /usr/contrib/lib and
18577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18578 # libtool to hard-code these into programs
18581 cygwin* | mingw* | pw32*)
18582 version_type=windows
18587 case $GCC,$host_os in
18588 yes,cygwin* | yes,mingw* | yes,pw32*)
18589 library_names_spec='$libname.dll.a'
18590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18591 postinstall_cmds='base_file=`basename \${file}`~
18592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18593 dldir=$destdir/`dirname \$dlpath`~
18594 test -d \$dldir || mkdir -p \$dldir~
18595 $install_prog $dir/$dlname \$dldir/$dlname~
18596 chmod a+x \$dldir/$dlname'
18597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18598 dlpath=$dir/\$dldll~
18600 shlibpath_overrides_runpath=yes
18604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18609 # MinGW DLLs use traditional 'lib' prefix
18610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18612 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18613 # It is most probably a Windows format PATH printed by
18614 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18615 # path with ; separators, and with drive letters. We can handle the
18616 # drive letters (cygwin fileutils understands them), so leave them,
18617 # especially as we might pass files found there to a mingw objdump,
18618 # which wouldn't understand a cygwinified path. Ahh.
18619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18625 # pw32 DLLs use 'pw' prefix rather than 'lib'
18626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18632 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18635 dynamic_linker='Win32 ld.exe'
18636 # FIXME: first we should search . and the directory the executable is in
18640 darwin* | rhapsody*)
18641 dynamic_linker="$host_os dyld"
18642 version_type=darwin
18645 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18646 soname_spec='${libname}${release}${major}$shared_ext'
18647 shlibpath_overrides_runpath=yes
18648 shlibpath_var=DYLD_LIBRARY_PATH
18649 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18650 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18651 if test "$GCC" = yes; then
18652 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"`
18654 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 shlibpath_var=LD_LIBRARY_PATH
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 shlibpath_var=LD_LIBRARY_PATH
18679 shlibpath_overrides_runpath=no
18680 hardcode_into_libs=yes
18681 dynamic_linker='GNU ld.so'
18684 freebsd* | dragonfly*)
18685 # DragonFly does not have aout. When/if they implement a new
18686 # versioning mechanism, adjust this.
18687 if test -x /usr/bin/objformat; then
18688 objformat=`/usr/bin/objformat`
18691 freebsd[123]*) objformat=aout ;;
18692 *) objformat=elf ;;
18695 version_type=freebsd-$objformat
18696 case $version_type in
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18707 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18712 freebsd3.[01]* | freebsdelf3.[01]*)
18713 shlibpath_overrides_runpath=yes
18714 hardcode_into_libs=yes
18717 shlibpath_overrides_runpath=no
18718 hardcode_into_libs=yes
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 shlibpath_var=LD_LIBRARY_PATH
18730 hardcode_into_libs=yes
18733 hpux9* | hpux10* | hpux11*)
18734 # Give a soname corresponding to the major version so that dld.sl refuses to
18735 # link against other versions.
18742 hardcode_into_libs=yes
18743 dynamic_linker="$host_os dld.so"
18744 shlibpath_var=LD_LIBRARY_PATH
18745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747 soname_spec='${libname}${release}${shared_ext}$major'
18748 if test "X$HPUX_IA64_MODE" = X32; then
18749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18757 hardcode_into_libs=yes
18758 dynamic_linker="$host_os dld.sl"
18759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762 soname_spec='${libname}${release}${shared_ext}$major'
18763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18768 dynamic_linker="$host_os dld.sl"
18769 shlibpath_var=SHLIB_PATH
18770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772 soname_spec='${libname}${release}${shared_ext}$major'
18775 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18776 postinstall_cmds='chmod 555 $lib'
18779 irix5* | irix6* | nonstopux*)
18781 nonstopux*) version_type=nonstopux ;;
18783 if test "$lt_cv_prog_gnu_ld" = yes; then
18791 soname_spec='${libname}${release}${shared_ext}$major'
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18794 irix5* | nonstopux*)
18795 libsuff= shlibsuff=
18798 case $LD in # libtool.m4 will add one of these switches to LD
18799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18800 libsuff= shlibsuff= libmagic=32-bit;;
18801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18802 libsuff=32 shlibsuff=N32 libmagic=N32;;
18803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18805 *) libsuff= shlibsuff= libmagic=never-match;;
18809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18810 shlibpath_overrides_runpath=no
18811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18813 hardcode_into_libs=yes
18816 # No shared lib support for Linux oldld, aout, or coff.
18817 linux*oldld* | linux*aout* | linux*coff*)
18821 # This must be Linux ELF.
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827 soname_spec='${libname}${release}${shared_ext}$major'
18828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18829 shlibpath_var=LD_LIBRARY_PATH
18830 shlibpath_overrides_runpath=no
18831 # This implies no fast_install, which is unacceptable.
18832 # Some rework will be needed to allow for fast_install
18833 # before this can be enabled.
18834 hardcode_into_libs=yes
18836 # Append ld.so.conf contents to the search path
18837 if test -f /etc/ld.so.conf; then
18838 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' ' '`
18839 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18842 # We used to test for /lib/ld.so.1 and disable shared libraries on
18843 # powerpc, because MkLinux only supported shared libraries with the
18844 # GNU dynamic linker. Since this was broken with cross compilers,
18845 # most powerpc-linux boxes support dynamic linking these days and
18846 # people can always --disable-shared, the test was removed, and we
18847 # assume the GNU/Linux dynamic linker is in use.
18848 dynamic_linker='GNU/Linux ld.so'
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18856 soname_spec='${libname}${release}${shared_ext}$major'
18857 shlibpath_var=LD_LIBRARY_PATH
18858 shlibpath_overrides_runpath=no
18859 hardcode_into_libs=yes
18860 dynamic_linker='NetBSD ld.elf_so'
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 shlibpath_var=LD_LIBRARY_PATH
18870 shlibpath_overrides_runpath=no
18871 hardcode_into_libs=yes
18872 dynamic_linker='GNU ld.so'
18879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18882 dynamic_linker='NetBSD (a.out) ld.so'
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18885 soname_spec='${libname}${release}${shared_ext}$major'
18886 dynamic_linker='NetBSD ld.elf_so'
18888 shlibpath_var=LD_LIBRARY_PATH
18889 shlibpath_overrides_runpath=yes
18890 hardcode_into_libs=yes
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896 shlibpath_var=LD_LIBRARY_PATH
18897 shlibpath_overrides_runpath=yes
18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905 soname_spec='${libname}${release}${shared_ext}$major'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath=yes
18913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18916 *) need_version=no ;;
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18923 openbsd2.[89] | openbsd2.[89].*)
18924 shlibpath_overrides_runpath=no
18927 shlibpath_overrides_runpath=yes
18931 shlibpath_overrides_runpath=yes
18936 libname_spec='$name'
18939 library_names_spec='$libname${shared_ext} $libname.a'
18940 dynamic_linker='OS/2 ld.exe'
18941 shlibpath_var=LIBPATH
18944 osf3* | osf4* | osf5*)
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 shlibpath_var=LD_LIBRARY_PATH
18951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959 shlibpath_var=LD_LIBRARY_PATH
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18969 shlibpath_overrides_runpath=yes
18970 hardcode_into_libs=yes
18971 # ldd complains unless libraries are executable
18972 postinstall_cmds='chmod +x $lib'
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18979 shlibpath_var=LD_LIBRARY_PATH
18980 shlibpath_overrides_runpath=yes
18981 if test "$with_gnu_ld" = yes; then
18987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18990 soname_spec='${libname}${release}${shared_ext}$major'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 case $host_vendor in
18994 shlibpath_overrides_runpath=no
18996 export_dynamic_flag_spec='${wl}-Blargedynsym'
18997 runpath_var=LD_RUN_PATH
19005 shlibpath_overrides_runpath=no
19006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19012 if test -d /usr/nec ;then
19014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19015 soname_spec='$libname${shared_ext}.$major'
19016 shlibpath_var=LD_LIBRARY_PATH
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19023 soname_spec='${libname}${release}${shared_ext}$major'
19024 shlibpath_var=LD_LIBRARY_PATH
19031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19032 echo "${ECHO_T}$dynamic_linker" >&6
19033 test "$dynamic_linker" = no && can_build_shared=no
19035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19037 hardcode_action_GCJ=
19038 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19039 test -n "$runpath_var_GCJ" || \
19040 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19042 # We can hardcode non-existant directories.
19043 if test "$hardcode_direct_GCJ" != no &&
19044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19045 # have to relink, otherwise we might link with an installed library
19046 # when we should be linking with a yet-to-be-installed one
19047 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19048 test "$hardcode_minus_L_GCJ" != no; then
19049 # Linking always hardcodes the temporary library directory.
19050 hardcode_action_GCJ=relink
19052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19053 hardcode_action_GCJ=immediate
19056 # We cannot hardcode anything, or else we can only hardcode existing
19058 hardcode_action_GCJ=unsupported
19060 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19061 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19063 if test "$hardcode_action_GCJ" = relink; then
19064 # Fast installation is not supported
19065 enable_fast_install=no
19066 elif test "$shlibpath_overrides_runpath" = yes ||
19067 test "$enable_shared" = no; then
19068 # Fast installation is not necessary
19069 enable_fast_install=needless
19074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19079 echo "$as_me:$LINENO: result: yes" >&5
19080 echo "${ECHO_T}yes" >&6
19082 # FIXME - insert some real tests, host_os isn't really good enough
19085 if test -n "$STRIP" ; then
19086 striplib="$STRIP -x"
19087 echo "$as_me:$LINENO: result: yes" >&5
19088 echo "${ECHO_T}yes" >&6
19090 echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6
19095 echo "$as_me:$LINENO: result: no" >&5
19096 echo "${ECHO_T}no" >&6
19101 if test "x$enable_dlopen" != xyes; then
19102 enable_dlopen=unknown
19103 enable_dlopen_self=unknown
19104 enable_dlopen_self_static=unknown
19111 lt_cv_dlopen="load_add_on"
19113 lt_cv_dlopen_self=yes
19117 lt_cv_dlopen="LoadLibrary"
19122 lt_cv_dlopen="dlopen"
19127 # if libdl is installed we need to link against it
19128 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 ac_check_lib_save_LIBS=$LIBS
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19142 /* Override any gcc2 internal prototype to avoid an error. */
19146 /* We use char because int might match the return type of a gcc2
19147 builtin and then its argument prototype would still apply. */
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19159 (eval $ac_link) 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest$ac_exeext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_cv_lib_dl_dlopen=yes
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 ac_cv_lib_dl_dlopen=no
19185 rm -f conftest.err conftest.$ac_objext \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19191 if test $ac_cv_lib_dl_dlopen = yes; then
19192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19195 lt_cv_dlopen="dyld"
19197 lt_cv_dlopen_self=yes
19204 echo "$as_me:$LINENO: checking for shl_load" >&5
19205 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19206 if test "${ac_cv_func_shl_load+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19217 #define shl_load innocuous_shl_load
19219 /* System header to define __stub macros and hopefully few prototypes,
19220 which can conflict with char shl_load (); below.
19221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19222 <limits.h> exists even on freestanding compilers. */
19225 # include <limits.h>
19227 # include <assert.h>
19232 /* Override any gcc2 internal prototype to avoid an error. */
19237 /* We use char because int might match the return type of a gcc2
19238 builtin and then its argument prototype would still apply. */
19240 /* The GNU C library defines this for functions which it implements
19241 to always fail with ENOSYS. Some functions are actually named
19242 something starting with __ and the normal name is an alias. */
19243 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19246 char (*f) () = shl_load;
19255 return f != shl_load;
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262 (eval $ac_link) 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest$ac_exeext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_func_shl_load=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_cv_func_shl_load=no
19288 rm -f conftest.err conftest.$ac_objext \
19289 conftest$ac_exeext conftest.$ac_ext
19291 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19292 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19293 if test $ac_cv_func_shl_load = yes; then
19294 lt_cv_dlopen="shl_load"
19296 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19297 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19298 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 ac_check_lib_save_LIBS=$LIBS
19303 cat >conftest.$ac_ext <<_ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19310 /* Override any gcc2 internal prototype to avoid an error. */
19314 /* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_cv_lib_dld_shl_load=yes
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 ac_cv_lib_dld_shl_load=no
19353 rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19357 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19358 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19359 if test $ac_cv_lib_dld_shl_load = yes; then
19360 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19362 echo "$as_me:$LINENO: checking for dlopen" >&5
19363 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19364 if test "${ac_cv_func_dlopen+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define dlopen innocuous_dlopen
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char dlopen (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19383 # include <limits.h>
19385 # include <assert.h>
19390 /* Override any gcc2 internal prototype to avoid an error. */
19395 /* We use char because int might match the return type of a gcc2
19396 builtin and then its argument prototype would still apply. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19404 char (*f) () = dlopen;
19413 return f != dlopen;
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420 (eval $ac_link) 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_func_dlopen=yes
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_cv_func_dlopen=no
19446 rm -f conftest.err conftest.$ac_objext \
19447 conftest$ac_exeext conftest.$ac_ext
19449 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19450 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19451 if test $ac_cv_func_dlopen = yes; then
19452 lt_cv_dlopen="dlopen"
19454 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 ac_check_lib_save_LIBS=$LIBS
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19468 /* Override any gcc2 internal prototype to avoid an error. */
19472 /* We use char because int might match the return type of a gcc2
19473 builtin and then its argument prototype would still apply. */
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485 (eval $ac_link) 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest$ac_exeext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_dl_dlopen=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_cv_lib_dl_dlopen=no
19511 rm -f conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19517 if test $ac_cv_lib_dl_dlopen = yes; then
19518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19520 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19521 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19522 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lsvld $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 /* Override any gcc2 internal prototype to avoid an error. */
19538 /* We use char because int might match the return type of a gcc2
19539 builtin and then its argument prototype would still apply. */
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_svld_dlopen=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_svld_dlopen=no
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19582 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19583 if test $ac_cv_lib_svld_dlopen = yes; then
19584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19586 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19587 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19588 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 ac_check_lib_save_LIBS=$LIBS
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 /* Override any gcc2 internal prototype to avoid an error. */
19604 /* We use char because int might match the return type of a gcc2
19605 builtin and then its argument prototype would still apply. */
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest$ac_exeext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_lib_dld_dld_link=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_lib_dld_dld_link=no
19643 rm -f conftest.err conftest.$ac_objext \
19644 conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19648 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19649 if test $ac_cv_lib_dld_dld_link = yes; then
19650 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19671 if test "x$lt_cv_dlopen" != xno; then
19677 case $lt_cv_dlopen in
19679 save_CPPFLAGS="$CPPFLAGS"
19680 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19682 save_LDFLAGS="$LDFLAGS"
19683 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19686 LIBS="$lt_cv_dlopen_libs $LIBS"
19688 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19689 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19690 if test "${lt_cv_dlopen_self+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 if test "$cross_compiling" = yes; then :
19694 lt_cv_dlopen_self=cross
19696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19697 lt_status=$lt_dlunknown
19698 cat > conftest.$ac_ext <<EOF
19699 #line 19699 "configure"
19700 #include "confdefs.h"
19709 # define LT_DLGLOBAL RTLD_GLOBAL
19712 # define LT_DLGLOBAL DL_GLOBAL
19714 # define LT_DLGLOBAL 0
19718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19719 find out it does not work in some platform. */
19720 #ifndef LT_DLLAZY_OR_NOW
19722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19725 # define LT_DLLAZY_OR_NOW DL_LAZY
19728 # define LT_DLLAZY_OR_NOW RTLD_NOW
19731 # define LT_DLLAZY_OR_NOW DL_NOW
19733 # define LT_DLLAZY_OR_NOW 0
19741 extern "C" void exit (int);
19744 void fnord() { int i=42;}
19747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19748 int status = $lt_dlunknown;
19752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19754 /* dlclose (self); */
19760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19761 (eval $ac_link) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19765 (./conftest; exit; ) >&5 2>/dev/null
19767 case x$lt_status in
19768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19770 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19773 # compilation failed
19774 lt_cv_dlopen_self=no
19781 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19782 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19784 if test "x$lt_cv_dlopen_self" = xyes; then
19785 LDFLAGS="$LDFLAGS $link_static_flag"
19786 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19787 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19788 if test "${lt_cv_dlopen_self_static+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 if test "$cross_compiling" = yes; then :
19792 lt_cv_dlopen_self_static=cross
19794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19795 lt_status=$lt_dlunknown
19796 cat > conftest.$ac_ext <<EOF
19797 #line 19797 "configure"
19798 #include "confdefs.h"
19807 # define LT_DLGLOBAL RTLD_GLOBAL
19810 # define LT_DLGLOBAL DL_GLOBAL
19812 # define LT_DLGLOBAL 0
19816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19817 find out it does not work in some platform. */
19818 #ifndef LT_DLLAZY_OR_NOW
19820 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19823 # define LT_DLLAZY_OR_NOW DL_LAZY
19826 # define LT_DLLAZY_OR_NOW RTLD_NOW
19829 # define LT_DLLAZY_OR_NOW DL_NOW
19831 # define LT_DLLAZY_OR_NOW 0
19839 extern "C" void exit (int);
19842 void fnord() { int i=42;}
19845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19846 int status = $lt_dlunknown;
19850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19851 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19852 /* dlclose (self); */
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859 (eval $ac_link) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19863 (./conftest; exit; ) >&5 2>/dev/null
19865 case x$lt_status in
19866 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19867 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19868 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19871 # compilation failed
19872 lt_cv_dlopen_self_static=no
19879 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19880 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19883 CPPFLAGS="$save_CPPFLAGS"
19884 LDFLAGS="$save_LDFLAGS"
19889 case $lt_cv_dlopen_self in
19890 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19891 *) enable_dlopen_self=unknown ;;
19894 case $lt_cv_dlopen_self_static in
19895 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19896 *) enable_dlopen_self_static=unknown ;;
19901 # The else clause should only fire when bootstrapping the
19902 # libtool distribution, otherwise you forgot to ship ltmain.sh
19903 # with your package, and you will get complaints that there are
19904 # no rules to generate ltmain.sh.
19905 if test -f "$ltmain"; then
19906 # See if we are running on zsh, and set the options which allow our commands through
19907 # without removal of \ escapes.
19908 if test -n "${ZSH_VERSION+set}" ; then
19909 setopt NO_GLOB_SUBST
19911 # Now quote all the things that may contain metacharacters while being
19912 # careful not to overquote the AC_SUBSTed values. We take copies of the
19913 # variables and quote the copies for generation of the libtool script.
19914 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19916 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19917 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19918 deplibs_check_method reload_flag reload_cmds need_locks \
19919 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19920 lt_cv_sys_global_symbol_to_c_name_address \
19921 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19922 old_postinstall_cmds old_postuninstall_cmds \
19926 lt_prog_compiler_wl_GCJ \
19927 lt_prog_compiler_pic_GCJ \
19928 lt_prog_compiler_static_GCJ \
19929 lt_prog_compiler_no_builtin_flag_GCJ \
19930 export_dynamic_flag_spec_GCJ \
19931 thread_safe_flag_spec_GCJ \
19932 whole_archive_flag_spec_GCJ \
19933 enable_shared_with_static_runtimes_GCJ \
19934 old_archive_cmds_GCJ \
19935 old_archive_from_new_cmds_GCJ \
19936 predep_objects_GCJ \
19937 postdep_objects_GCJ \
19940 compiler_lib_search_path_GCJ \
19942 archive_expsym_cmds_GCJ \
19943 postinstall_cmds_GCJ \
19944 postuninstall_cmds_GCJ \
19945 old_archive_from_expsyms_cmds_GCJ \
19946 allow_undefined_flag_GCJ \
19947 no_undefined_flag_GCJ \
19948 export_symbols_cmds_GCJ \
19949 hardcode_libdir_flag_spec_GCJ \
19950 hardcode_libdir_flag_spec_ld_GCJ \
19951 hardcode_libdir_separator_GCJ \
19952 hardcode_automatic_GCJ \
19954 module_expsym_cmds_GCJ \
19955 lt_cv_prog_compiler_c_o_GCJ \
19956 exclude_expsyms_GCJ \
19957 include_expsyms_GCJ; do
19960 old_archive_cmds_GCJ | \
19961 old_archive_from_new_cmds_GCJ | \
19962 archive_cmds_GCJ | \
19963 archive_expsym_cmds_GCJ | \
19964 module_cmds_GCJ | \
19965 module_expsym_cmds_GCJ | \
19966 old_archive_from_expsyms_cmds_GCJ | \
19967 export_symbols_cmds_GCJ | \
19968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19969 postinstall_cmds | postuninstall_cmds | \
19970 old_postinstall_cmds | old_postuninstall_cmds | \
19971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19972 # Double-quote double-evaled strings.
19973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19982 *'\$0 --fallback-echo"')
19983 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19989 cat <<__EOF__ >> "$cfgfile"
19990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19994 # Shell to use when invoking shell scripts.
19997 # Whether or not to build shared libraries.
19998 build_libtool_libs=$enable_shared
20000 # Whether or not to build static libraries.
20001 build_old_libs=$enable_static
20003 # Whether or not to add -lc for building shared libraries.
20004 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20006 # Whether or not to disallow shared libs when runtime libs are static
20007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20009 # Whether or not to optimize for fast installation.
20010 fast_install=$enable_fast_install
20013 host_alias=$host_alias
20017 # The build system.
20018 build_alias=$build_alias
20022 # An echo program that does not interpret backslashes.
20027 AR_FLAGS=$lt_AR_FLAGS
20032 # A language-specific compiler.
20033 CC=$lt_compiler_GCJ
20035 # Is the compiler the GNU C compiler?
20041 # The linker used to build libraries.
20044 # Whether we need hard or soft links.
20047 # A BSD-compatible nm program.
20050 # A symbol stripping program
20053 # Used to examine libraries when file_magic_cmd begins "file"
20054 MAGIC_CMD=$MAGIC_CMD
20056 # Used on cygwin: DLL creation program.
20059 # Used on cygwin: object dumper.
20062 # Used on cygwin: assembler.
20065 # The name of the directory that contains temporary libtool files.
20068 # How to create reloadable object files.
20069 reload_flag=$lt_reload_flag
20070 reload_cmds=$lt_reload_cmds
20072 # How to pass a linker flag through the compiler.
20073 wl=$lt_lt_prog_compiler_wl_GCJ
20075 # Object file suffix (normally "o").
20076 objext="$ac_objext"
20078 # Old archive suffix (normally "a").
20081 # Shared library suffix (normally ".so").
20082 shrext_cmds='$shrext_cmds'
20084 # Executable file suffix (normally "").
20087 # Additional compiler flags for building library objects.
20088 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20091 # What is the maximum length of a command?
20092 max_cmd_len=$lt_cv_sys_max_cmd_len
20094 # Does compiler simultaneously support -c and -o options?
20095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20097 # Must we lock files when doing compilation?
20098 need_locks=$lt_need_locks
20100 # Do we need the lib prefix for modules?
20101 need_lib_prefix=$need_lib_prefix
20103 # Do we need a version for libraries?
20104 need_version=$need_version
20106 # Whether dlopen is supported.
20107 dlopen_support=$enable_dlopen
20109 # Whether dlopen of programs is supported.
20110 dlopen_self=$enable_dlopen_self
20112 # Whether dlopen of statically linked programs is supported.
20113 dlopen_self_static=$enable_dlopen_self_static
20115 # Compiler flag to prevent dynamic linking.
20116 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20118 # Compiler flag to turn off builtin functions.
20119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20121 # Compiler flag to allow reflexive dlopens.
20122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20124 # Compiler flag to generate shared objects directly from archives.
20125 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20127 # Compiler flag to generate thread-safe objects.
20128 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20130 # Library versioning type.
20131 version_type=$version_type
20133 # Format of library name prefix.
20134 libname_spec=$lt_libname_spec
20136 # List of archive names. First name is the real one, the rest are links.
20137 # The last name is the one that the linker finds with -lNAME.
20138 library_names_spec=$lt_library_names_spec
20140 # The coded name of the library, if different from the real name.
20141 soname_spec=$lt_soname_spec
20143 # Commands used to build and install an old-style archive.
20145 old_archive_cmds=$lt_old_archive_cmds_GCJ
20146 old_postinstall_cmds=$lt_old_postinstall_cmds
20147 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20149 # Create an old-style archive from a shared archive.
20150 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20152 # Create a temporary old-style archive to link instead of a shared archive.
20153 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20155 # Commands used to build and install a shared archive.
20156 archive_cmds=$lt_archive_cmds_GCJ
20157 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20158 postinstall_cmds=$lt_postinstall_cmds
20159 postuninstall_cmds=$lt_postuninstall_cmds
20161 # Commands used to build a loadable module (assumed same as above if empty)
20162 module_cmds=$lt_module_cmds_GCJ
20163 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20165 # Commands to strip libraries.
20166 old_striplib=$lt_old_striplib
20167 striplib=$lt_striplib
20169 # Dependencies to place before the objects being linked to create a
20171 predep_objects=$lt_predep_objects_GCJ
20173 # Dependencies to place after the objects being linked to create a
20175 postdep_objects=$lt_postdep_objects_GCJ
20177 # Dependencies to place before the objects being linked to create a
20179 predeps=$lt_predeps_GCJ
20181 # Dependencies to place after the objects being linked to create a
20183 postdeps=$lt_postdeps_GCJ
20185 # The library search path used internally by the compiler when linking
20186 # a shared library.
20187 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20189 # Method to check whether dependent libraries are shared objects.
20190 deplibs_check_method=$lt_deplibs_check_method
20192 # Command to use when deplibs_check_method == file_magic.
20193 file_magic_cmd=$lt_file_magic_cmd
20195 # Flag that allows shared libraries with undefined symbols to be built.
20196 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20198 # Flag that forces no undefined symbols.
20199 no_undefined_flag=$lt_no_undefined_flag_GCJ
20201 # Commands used to finish a libtool library installation in a directory.
20202 finish_cmds=$lt_finish_cmds
20204 # Same as above, but a single script fragment to be evaled but not shown.
20205 finish_eval=$lt_finish_eval
20207 # Take the output of nm and produce a listing of raw symbols and C names.
20208 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20210 # Transform the output of nm in a proper C declaration
20211 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20213 # Transform the output of nm in a C name address pair
20214 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20216 # This is the shared library runtime path variable.
20217 runpath_var=$runpath_var
20219 # This is the shared library path variable.
20220 shlibpath_var=$shlibpath_var
20222 # Is shlibpath searched before the hard-coded library search path?
20223 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20225 # How to hardcode a shared library path into an executable.
20226 hardcode_action=$hardcode_action_GCJ
20228 # Whether we should hardcode library paths into libraries.
20229 hardcode_into_libs=$hardcode_into_libs
20231 # Flag to hardcode \$libdir into a binary during linking.
20232 # This must work even if \$libdir does not exist.
20233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20235 # If ld is used when linking, flag to hardcode \$libdir into
20236 # a binary during linking. This must work even if \$libdir does
20238 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20240 # Whether we need a single -rpath flag with a separated argument.
20241 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20243 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20244 # resulting binary.
20245 hardcode_direct=$hardcode_direct_GCJ
20247 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20248 # resulting binary.
20249 hardcode_minus_L=$hardcode_minus_L_GCJ
20251 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20252 # the resulting binary.
20253 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20255 # Set to yes if building a shared library automatically hardcodes DIR into the library
20256 # and all subsequent libraries and executables linked against it.
20257 hardcode_automatic=$hardcode_automatic_GCJ
20259 # Variables whose values should be saved in libtool wrapper scripts and
20260 # restored at relink time.
20261 variables_saved_for_relink="$variables_saved_for_relink"
20263 # Whether libtool must link a program against all its dependency libraries.
20264 link_all_deplibs=$link_all_deplibs_GCJ
20266 # Compile-time system search path for libraries
20267 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20269 # Run-time system search path for libraries
20270 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20272 # Fix the shell variable \$srcfile for the compiler.
20273 fix_srcfile_path="$fix_srcfile_path_GCJ"
20275 # Set to yes if exported symbols are required.
20276 always_export_symbols=$always_export_symbols_GCJ
20278 # The commands to list exported symbols.
20279 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20281 # The commands to extract the exported symbol list from a shared archive.
20282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20284 # Symbols that should not be listed in the preloaded symbols.
20285 exclude_expsyms=$lt_exclude_expsyms_GCJ
20287 # Symbols that must always be exported.
20288 include_expsyms=$lt_include_expsyms_GCJ
20290 # ### END LIBTOOL TAG CONFIG: $tagname
20296 # If there is no Makefile yet, we rely on a make rule to execute
20297 # `config.status --recheck' to rerun these tests and create the
20298 # libtool script then.
20299 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20300 if test -f "$ltmain_in"; then
20301 test -f Makefile && make "$ltmain"
20307 ac_cpp='$CPP $CPPFLAGS'
20308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323 # Source file extension for RC test sources.
20326 # Object file extension for compiled RC test sources.
20330 # Code to be used in simple compile tests
20331 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20333 # Code to be used in simple link tests
20334 lt_simple_link_test_code="$lt_simple_compile_test_code"
20336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20338 # If no C compiler was specified, use CC.
20341 # Allow CC to be a program name with arguments.
20345 # save warnings/boilerplate of simple test code
20346 ac_outfile=conftest.$ac_objext
20347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20349 _lt_compiler_boilerplate=`cat conftest.err`
20352 ac_outfile=conftest.$ac_objext
20353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20355 _lt_linker_boilerplate=`cat conftest.err`
20359 # Allow CC to be a program name with arguments.
20364 for cc_temp in $compiler""; do
20366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20374 lt_cv_prog_compiler_c_o_RC=yes
20376 # The else clause should only fire when bootstrapping the
20377 # libtool distribution, otherwise you forgot to ship ltmain.sh
20378 # with your package, and you will get complaints that there are
20379 # no rules to generate ltmain.sh.
20380 if test -f "$ltmain"; then
20381 # See if we are running on zsh, and set the options which allow our commands through
20382 # without removal of \ escapes.
20383 if test -n "${ZSH_VERSION+set}" ; then
20384 setopt NO_GLOB_SUBST
20386 # Now quote all the things that may contain metacharacters while being
20387 # careful not to overquote the AC_SUBSTed values. We take copies of the
20388 # variables and quote the copies for generation of the libtool script.
20389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20393 deplibs_check_method reload_flag reload_cmds need_locks \
20394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20395 lt_cv_sys_global_symbol_to_c_name_address \
20396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20397 old_postinstall_cmds old_postuninstall_cmds \
20401 lt_prog_compiler_wl_RC \
20402 lt_prog_compiler_pic_RC \
20403 lt_prog_compiler_static_RC \
20404 lt_prog_compiler_no_builtin_flag_RC \
20405 export_dynamic_flag_spec_RC \
20406 thread_safe_flag_spec_RC \
20407 whole_archive_flag_spec_RC \
20408 enable_shared_with_static_runtimes_RC \
20409 old_archive_cmds_RC \
20410 old_archive_from_new_cmds_RC \
20411 predep_objects_RC \
20412 postdep_objects_RC \
20415 compiler_lib_search_path_RC \
20417 archive_expsym_cmds_RC \
20418 postinstall_cmds_RC \
20419 postuninstall_cmds_RC \
20420 old_archive_from_expsyms_cmds_RC \
20421 allow_undefined_flag_RC \
20422 no_undefined_flag_RC \
20423 export_symbols_cmds_RC \
20424 hardcode_libdir_flag_spec_RC \
20425 hardcode_libdir_flag_spec_ld_RC \
20426 hardcode_libdir_separator_RC \
20427 hardcode_automatic_RC \
20429 module_expsym_cmds_RC \
20430 lt_cv_prog_compiler_c_o_RC \
20431 exclude_expsyms_RC \
20432 include_expsyms_RC; do
20435 old_archive_cmds_RC | \
20436 old_archive_from_new_cmds_RC | \
20437 archive_cmds_RC | \
20438 archive_expsym_cmds_RC | \
20440 module_expsym_cmds_RC | \
20441 old_archive_from_expsyms_cmds_RC | \
20442 export_symbols_cmds_RC | \
20443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20444 postinstall_cmds | postuninstall_cmds | \
20445 old_postinstall_cmds | old_postuninstall_cmds | \
20446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20447 # Double-quote double-evaled strings.
20448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20457 *'\$0 --fallback-echo"')
20458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20464 cat <<__EOF__ >> "$cfgfile"
20465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20469 # Shell to use when invoking shell scripts.
20472 # Whether or not to build shared libraries.
20473 build_libtool_libs=$enable_shared
20475 # Whether or not to build static libraries.
20476 build_old_libs=$enable_static
20478 # Whether or not to add -lc for building shared libraries.
20479 build_libtool_need_lc=$archive_cmds_need_lc_RC
20481 # Whether or not to disallow shared libs when runtime libs are static
20482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20484 # Whether or not to optimize for fast installation.
20485 fast_install=$enable_fast_install
20488 host_alias=$host_alias
20492 # The build system.
20493 build_alias=$build_alias
20497 # An echo program that does not interpret backslashes.
20502 AR_FLAGS=$lt_AR_FLAGS
20507 # A language-specific compiler.
20510 # Is the compiler the GNU C compiler?
20516 # The linker used to build libraries.
20519 # Whether we need hard or soft links.
20522 # A BSD-compatible nm program.
20525 # A symbol stripping program
20528 # Used to examine libraries when file_magic_cmd begins "file"
20529 MAGIC_CMD=$MAGIC_CMD
20531 # Used on cygwin: DLL creation program.
20534 # Used on cygwin: object dumper.
20537 # Used on cygwin: assembler.
20540 # The name of the directory that contains temporary libtool files.
20543 # How to create reloadable object files.
20544 reload_flag=$lt_reload_flag
20545 reload_cmds=$lt_reload_cmds
20547 # How to pass a linker flag through the compiler.
20548 wl=$lt_lt_prog_compiler_wl_RC
20550 # Object file suffix (normally "o").
20551 objext="$ac_objext"
20553 # Old archive suffix (normally "a").
20556 # Shared library suffix (normally ".so").
20557 shrext_cmds='$shrext_cmds'
20559 # Executable file suffix (normally "").
20562 # Additional compiler flags for building library objects.
20563 pic_flag=$lt_lt_prog_compiler_pic_RC
20566 # What is the maximum length of a command?
20567 max_cmd_len=$lt_cv_sys_max_cmd_len
20569 # Does compiler simultaneously support -c and -o options?
20570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20572 # Must we lock files when doing compilation?
20573 need_locks=$lt_need_locks
20575 # Do we need the lib prefix for modules?
20576 need_lib_prefix=$need_lib_prefix
20578 # Do we need a version for libraries?
20579 need_version=$need_version
20581 # Whether dlopen is supported.
20582 dlopen_support=$enable_dlopen
20584 # Whether dlopen of programs is supported.
20585 dlopen_self=$enable_dlopen_self
20587 # Whether dlopen of statically linked programs is supported.
20588 dlopen_self_static=$enable_dlopen_self_static
20590 # Compiler flag to prevent dynamic linking.
20591 link_static_flag=$lt_lt_prog_compiler_static_RC
20593 # Compiler flag to turn off builtin functions.
20594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20596 # Compiler flag to allow reflexive dlopens.
20597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20599 # Compiler flag to generate shared objects directly from archives.
20600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20602 # Compiler flag to generate thread-safe objects.
20603 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20605 # Library versioning type.
20606 version_type=$version_type
20608 # Format of library name prefix.
20609 libname_spec=$lt_libname_spec
20611 # List of archive names. First name is the real one, the rest are links.
20612 # The last name is the one that the linker finds with -lNAME.
20613 library_names_spec=$lt_library_names_spec
20615 # The coded name of the library, if different from the real name.
20616 soname_spec=$lt_soname_spec
20618 # Commands used to build and install an old-style archive.
20620 old_archive_cmds=$lt_old_archive_cmds_RC
20621 old_postinstall_cmds=$lt_old_postinstall_cmds
20622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20624 # Create an old-style archive from a shared archive.
20625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20627 # Create a temporary old-style archive to link instead of a shared archive.
20628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20630 # Commands used to build and install a shared archive.
20631 archive_cmds=$lt_archive_cmds_RC
20632 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20633 postinstall_cmds=$lt_postinstall_cmds
20634 postuninstall_cmds=$lt_postuninstall_cmds
20636 # Commands used to build a loadable module (assumed same as above if empty)
20637 module_cmds=$lt_module_cmds_RC
20638 module_expsym_cmds=$lt_module_expsym_cmds_RC
20640 # Commands to strip libraries.
20641 old_striplib=$lt_old_striplib
20642 striplib=$lt_striplib
20644 # Dependencies to place before the objects being linked to create a
20646 predep_objects=$lt_predep_objects_RC
20648 # Dependencies to place after the objects being linked to create a
20650 postdep_objects=$lt_postdep_objects_RC
20652 # Dependencies to place before the objects being linked to create a
20654 predeps=$lt_predeps_RC
20656 # Dependencies to place after the objects being linked to create a
20658 postdeps=$lt_postdeps_RC
20660 # The library search path used internally by the compiler when linking
20661 # a shared library.
20662 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20664 # Method to check whether dependent libraries are shared objects.
20665 deplibs_check_method=$lt_deplibs_check_method
20667 # Command to use when deplibs_check_method == file_magic.
20668 file_magic_cmd=$lt_file_magic_cmd
20670 # Flag that allows shared libraries with undefined symbols to be built.
20671 allow_undefined_flag=$lt_allow_undefined_flag_RC
20673 # Flag that forces no undefined symbols.
20674 no_undefined_flag=$lt_no_undefined_flag_RC
20676 # Commands used to finish a libtool library installation in a directory.
20677 finish_cmds=$lt_finish_cmds
20679 # Same as above, but a single script fragment to be evaled but not shown.
20680 finish_eval=$lt_finish_eval
20682 # Take the output of nm and produce a listing of raw symbols and C names.
20683 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20685 # Transform the output of nm in a proper C declaration
20686 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20688 # Transform the output of nm in a C name address pair
20689 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20691 # This is the shared library runtime path variable.
20692 runpath_var=$runpath_var
20694 # This is the shared library path variable.
20695 shlibpath_var=$shlibpath_var
20697 # Is shlibpath searched before the hard-coded library search path?
20698 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20700 # How to hardcode a shared library path into an executable.
20701 hardcode_action=$hardcode_action_RC
20703 # Whether we should hardcode library paths into libraries.
20704 hardcode_into_libs=$hardcode_into_libs
20706 # Flag to hardcode \$libdir into a binary during linking.
20707 # This must work even if \$libdir does not exist.
20708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20710 # If ld is used when linking, flag to hardcode \$libdir into
20711 # a binary during linking. This must work even if \$libdir does
20713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20715 # Whether we need a single -rpath flag with a separated argument.
20716 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20718 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20719 # resulting binary.
20720 hardcode_direct=$hardcode_direct_RC
20722 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20723 # resulting binary.
20724 hardcode_minus_L=$hardcode_minus_L_RC
20726 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20727 # the resulting binary.
20728 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20730 # Set to yes if building a shared library automatically hardcodes DIR into the library
20731 # and all subsequent libraries and executables linked against it.
20732 hardcode_automatic=$hardcode_automatic_RC
20734 # Variables whose values should be saved in libtool wrapper scripts and
20735 # restored at relink time.
20736 variables_saved_for_relink="$variables_saved_for_relink"
20738 # Whether libtool must link a program against all its dependency libraries.
20739 link_all_deplibs=$link_all_deplibs_RC
20741 # Compile-time system search path for libraries
20742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20744 # Run-time system search path for libraries
20745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20747 # Fix the shell variable \$srcfile for the compiler.
20748 fix_srcfile_path="$fix_srcfile_path_RC"
20750 # Set to yes if exported symbols are required.
20751 always_export_symbols=$always_export_symbols_RC
20753 # The commands to list exported symbols.
20754 export_symbols_cmds=$lt_export_symbols_cmds_RC
20756 # The commands to extract the exported symbol list from a shared archive.
20757 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20759 # Symbols that should not be listed in the preloaded symbols.
20760 exclude_expsyms=$lt_exclude_expsyms_RC
20762 # Symbols that must always be exported.
20763 include_expsyms=$lt_include_expsyms_RC
20765 # ### END LIBTOOL TAG CONFIG: $tagname
20771 # If there is no Makefile yet, we rely on a make rule to execute
20772 # `config.status --recheck' to rerun these tests and create the
20773 # libtool script then.
20774 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20775 if test -f "$ltmain_in"; then
20776 test -f Makefile && make "$ltmain"
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20793 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20794 { (exit 1); exit 1; }; }
20798 # Append the new tag name to the list of available tags.
20799 if test -n "$tagname" ; then
20800 available_tags="$available_tags $tagname"
20806 # Now substitute the updated list of available tags.
20807 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20808 mv "${ofile}T" "$ofile"
20812 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20813 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20814 { (exit 1); exit 1; }; }
20820 # This can be used to rebuild libtool when needed
20821 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20823 # Always use our own libtool.
20824 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20826 # Prevent multiple expansion
20848 if test "x$cross_compiling" = "xno"; then
20849 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20851 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20856 if test -n "$ac_tool_prefix"; then
20857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20858 set dummy ${ac_tool_prefix}ar; ac_word=$2
20859 echo "$as_me:$LINENO: checking for $ac_word" >&5
20860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20861 if test "${ac_cv_prog_AR+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 if test -n "$AR"; then
20865 ac_cv_prog_AR="$AR" # Let the user override the test.
20867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20868 for as_dir in $PATH
20871 test -z "$as_dir" && as_dir=.
20872 for ac_exec_ext in '' $ac_executable_extensions; do
20873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20874 ac_cv_prog_AR="${ac_tool_prefix}ar"
20875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20884 if test -n "$AR"; then
20885 echo "$as_me:$LINENO: result: $AR" >&5
20886 echo "${ECHO_T}$AR" >&6
20888 echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20893 if test -z "$ac_cv_prog_AR"; then
20895 # Extract the first word of "ar", so it can be a program name with args.
20896 set dummy ar; ac_word=$2
20897 echo "$as_me:$LINENO: checking for $ac_word" >&5
20898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20899 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 if test -n "$ac_ct_AR"; then
20903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20906 for as_dir in $PATH
20909 test -z "$as_dir" && as_dir=.
20910 for ac_exec_ext in '' $ac_executable_extensions; do
20911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20912 ac_cv_prog_ac_ct_AR="ar"
20913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20921 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20922 if test -n "$ac_ct_AR"; then
20923 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20924 echo "${ECHO_T}$ac_ct_AR" >&6
20926 echo "$as_me:$LINENO: result: no" >&5
20927 echo "${ECHO_T}no" >&6
20932 AR="$ac_cv_prog_AR"
20935 if test -n "$ac_tool_prefix"; then
20936 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20937 set dummy ${ac_tool_prefix}ld; ac_word=$2
20938 echo "$as_me:$LINENO: checking for $ac_word" >&5
20939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20940 if test "${ac_cv_prog_LD+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 if test -n "$LD"; then
20944 ac_cv_prog_LD="$LD" # Let the user override the test.
20946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20947 for as_dir in $PATH
20950 test -z "$as_dir" && as_dir=.
20951 for ac_exec_ext in '' $ac_executable_extensions; do
20952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20953 ac_cv_prog_LD="${ac_tool_prefix}ld"
20954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20963 if test -n "$LD"; then
20964 echo "$as_me:$LINENO: result: $LD" >&5
20965 echo "${ECHO_T}$LD" >&6
20967 echo "$as_me:$LINENO: result: no" >&5
20968 echo "${ECHO_T}no" >&6
20972 if test -z "$ac_cv_prog_LD"; then
20974 # Extract the first word of "ld", so it can be a program name with args.
20975 set dummy ld; ac_word=$2
20976 echo "$as_me:$LINENO: checking for $ac_word" >&5
20977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20978 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 if test -n "$ac_ct_LD"; then
20982 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985 for as_dir in $PATH
20988 test -z "$as_dir" && as_dir=.
20989 for ac_exec_ext in '' $ac_executable_extensions; do
20990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20991 ac_cv_prog_ac_ct_LD="ld"
20992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21000 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21001 if test -n "$ac_ct_LD"; then
21002 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21003 echo "${ECHO_T}$ac_ct_LD" >&6
21005 echo "$as_me:$LINENO: result: no" >&5
21006 echo "${ECHO_T}no" >&6
21011 LD="$ac_cv_prog_LD"
21015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21017 if test "${ac_cv_header_stdc+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <stdlib.h>
21027 #include <stdarg.h>
21028 #include <string.h>
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041 (eval $ac_compile) 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_header_stdc=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_header_stdc=no
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21069 if test $ac_cv_header_stdc = yes; then
21070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <string.h>
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081 $EGREP "memchr" >/dev/null 2>&1; then
21084 ac_cv_header_stdc=no
21090 if test $ac_cv_header_stdc = yes; then
21091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <stdlib.h>
21101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21102 $EGREP "free" >/dev/null 2>&1; then
21105 ac_cv_header_stdc=no
21111 if test $ac_cv_header_stdc = yes; then
21112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21113 if test "$cross_compiling" = yes; then
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21123 #if ((' ' & 0x0FF) == 0x020)
21124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21127 # define ISLOWER(c) \
21128 (('a' <= (c) && (c) <= 'i') \
21129 || ('j' <= (c) && (c) <= 'r') \
21130 || ('s' <= (c) && (c) <= 'z'))
21131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21139 for (i = 0; i < 256; i++)
21140 if (XOR (islower (i), ISLOWER (i))
21141 || toupper (i) != TOUPPER (i))
21146 rm -f conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21159 echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ( exit $ac_status )
21164 ac_cv_header_stdc=no
21166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21172 if test $ac_cv_header_stdc = yes; then
21174 cat >>confdefs.h <<\_ACEOF
21175 #define STDC_HEADERS 1
21181 echo "$as_me:$LINENO: checking for GNU libc2" >&5
21182 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
21183 if test "${knfsd_cv_glibc2+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 cat >conftest.$ac_ext <<_ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21193 #include <features.h>
21194 #if !defined(__GLIBC__)
21199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } >/dev/null; then
21207 if test -s conftest.err; then
21208 ac_cpp_err=$ac_c_preproc_warn_flag
21209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21216 if test -z "$ac_cpp_err"; then
21217 knfsd_cv_glibc2=yes
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21224 rm -f conftest.err conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21228 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
21229 if test $knfsd_cv_glibc2 = yes; then
21230 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21231 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21235 echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21236 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
21237 if test "${knfsd_cv_bsd_signals+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21240 if test "$cross_compiling" = yes; then
21241 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21242 See \`config.log' for more details." >&5
21243 echo "$as_me: error: cannot run test program while cross compiling
21244 See \`config.log' for more details." >&2;}
21245 { (exit 1); exit 1; }; }
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21254 #include <signal.h>
21255 #include <unistd.h>
21256 #include <sys/wait.h>
21258 static int counter = 0;
21259 static RETSIGTYPE handler(int num) { counter++; }
21264 if ((s = fork()) < 0) return 1;
21266 if (wait(&s) < 0) return 1;
21267 return WIFSIGNALED(s)? 1 : 0;
21270 signal(SIGHUP, handler);
21271 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21272 return (counter == 2)? 0 : 1;
21276 rm -f conftest$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278 (eval $ac_link) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 knfsd_cv_bsd_signals=yes
21289 echo "$as_me: program exited with status $ac_status" >&5
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ( exit $ac_status )
21294 knfsd_cv_bsd_signals=no
21296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21299 echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21300 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
21301 test $knfsd_cv_bsd_signals = yes &&
21302 cat >>confdefs.h <<\_ACEOF
21303 #define HAVE_BSD_SIGNALS 1
21308 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21309 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
21310 if test "${ac_cv_lib_socket_main+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 ac_check_lib_save_LIBS=$LIBS
21314 LIBS="-lsocket $LIBS"
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21331 rm -f conftest.$ac_objext conftest$ac_exeext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333 (eval $ac_link) 2>conftest.er1
21335 grep -v '^ *+' conftest.er1 >conftest.err
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } &&
21340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest$ac_exeext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_lib_socket_main=yes
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_cv_lib_socket_main=no
21359 rm -f conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21363 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21364 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
21365 if test $ac_cv_lib_socket_main = yes; then
21369 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21370 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
21371 if test "${ac_cv_lib_nsl_main+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 ac_check_lib_save_LIBS=$LIBS
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21394 (eval $ac_link) 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
21401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try='test -s conftest$ac_exeext'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_cv_lib_nsl_main=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_lib_nsl_main=no
21420 rm -f conftest.err conftest.$ac_objext \
21421 conftest$ac_exeext conftest.$ac_ext
21422 LIBS=$ac_check_lib_save_LIBS
21424 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21425 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
21426 if test $ac_cv_lib_nsl_main = yes; then
21430 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21431 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
21432 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lcrypt $LIBS"
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21444 /* Override any gcc2 internal prototype to avoid an error. */
21448 /* We use char because int might match the return type of a gcc2
21449 builtin and then its argument prototype would still apply. */
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21461 (eval $ac_link) 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_lib_crypt_crypt=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_cv_lib_crypt_crypt=no
21487 rm -f conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21491 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21492 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21493 if test $ac_cv_lib_crypt_crypt = yes; then
21497 if test "$enable_nfsv4" = yes; then
21498 echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21499 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
21500 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 ac_check_lib_save_LIBS=$LIBS
21504 LIBS="-levent $LIBS"
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21512 /* Override any gcc2 internal prototype to avoid an error. */
21516 /* We use char because int might match the return type of a gcc2
21517 builtin and then its argument prototype would still apply. */
21518 char event_dispatch ();
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529 (eval $ac_link) 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_lib_event_event_dispatch=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_cv_lib_event_event_dispatch=no
21555 rm -f conftest.err conftest.$ac_objext \
21556 conftest$ac_exeext conftest.$ac_ext
21557 LIBS=$ac_check_lib_save_LIBS
21559 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21560 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
21561 if test $ac_cv_lib_event_event_dispatch = yes; then
21564 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21565 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21566 { (exit 1); exit 1; }; }
21569 echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21570 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
21571 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 ac_check_lib_save_LIBS=$LIBS
21575 LIBS="-lnfsidmap $LIBS"
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21583 /* Override any gcc2 internal prototype to avoid an error. */
21587 /* We use char because int might match the return type of a gcc2
21588 builtin and then its argument prototype would still apply. */
21589 char nfs4_init_name_mapping ();
21593 nfs4_init_name_mapping ();
21598 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21600 (eval $ac_link) 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; } &&
21613 { ac_try='test -s conftest$ac_exeext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21626 rm -f conftest.err conftest.$ac_objext \
21627 conftest$ac_exeext conftest.$ac_ext
21628 LIBS=$ac_check_lib_save_LIBS
21630 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21631 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
21632 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21635 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21636 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21637 { (exit 1); exit 1; }; }
21641 for ac_header in event.h
21643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21645 echo "$as_me:$LINENO: checking for $ac_header" >&5
21646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21653 # Is the header compilable?
21654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 $ac_includes_default
21663 #include <$ac_header>
21665 rm -f conftest.$ac_objext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_header_compiler=yes
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ac_header_compiler=no
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21695 echo "${ECHO_T}$ac_header_compiler" >&6
21697 # Is the header present?
21698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 #include <$ac_header>
21708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } >/dev/null; then
21716 if test -s conftest.err; then
21717 ac_cpp_err=$ac_c_preproc_warn_flag
21718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21725 if test -z "$ac_cpp_err"; then
21726 ac_header_preproc=yes
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ac_header_preproc=no
21733 rm -f conftest.err conftest.$ac_ext
21734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21735 echo "${ECHO_T}$ac_header_preproc" >&6
21737 # So? What about this header?
21738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21744 ac_header_preproc=yes
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21761 ## ------------------------------- ##
21762 ## Report this to nfs@lists.sf.net ##
21763 ## ------------------------------- ##
21766 sed "s/^/$as_me: WARNING: /" >&2
21769 echo "$as_me:$LINENO: checking for $ac_header" >&5
21770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 eval "$as_ac_Header=\$ac_header_preproc"
21776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21781 cat >>confdefs.h <<_ACEOF
21782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21786 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21787 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21788 { (exit 1); exit 1; }; }
21794 for ac_header in nfsidmap.h
21796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo "$as_me:$LINENO: checking for $ac_header" >&5
21799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806 # Is the header compilable?
21807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21809 cat >conftest.$ac_ext <<_ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21815 $ac_includes_default
21816 #include <$ac_header>
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820 (eval $ac_compile) 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_header_compiler=yes
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_header_compiler=no
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21848 echo "${ECHO_T}$ac_header_compiler" >&6
21850 # Is the header present?
21851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 #include <$ac_header>
21861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } >/dev/null; then
21869 if test -s conftest.err; then
21870 ac_cpp_err=$ac_c_preproc_warn_flag
21871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21878 if test -z "$ac_cpp_err"; then
21879 ac_header_preproc=yes
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_header_preproc=no
21886 rm -f conftest.err conftest.$ac_ext
21887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21888 echo "${ECHO_T}$ac_header_preproc" >&6
21890 # So? What about this header?
21891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21897 ac_header_preproc=yes
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21914 ## ------------------------------- ##
21915 ## Report this to nfs@lists.sf.net ##
21916 ## ------------------------------- ##
21919 sed "s/^/$as_me: WARNING: /" >&2
21922 echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 eval "$as_ac_Header=\$ac_header_preproc"
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21939 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21940 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21941 { (exit 1); exit 1; }; }
21947 if test "$knfsd_cv_glibc2" = no; then
21948 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21949 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21950 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 ac_check_lib_save_LIBS=$LIBS
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21962 /* Override any gcc2 internal prototype to avoid an error. */
21966 /* We use char because int might match the return type of a gcc2
21967 builtin and then its argument prototype would still apply. */
21977 rm -f conftest.$ac_objext conftest$ac_exeext
21978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21979 (eval $ac_link) 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
21986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; } &&
21992 { ac_try='test -s conftest$ac_exeext'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_cv_lib_bsd_daemon=yes
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_cv_lib_bsd_daemon=no
22005 rm -f conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
22007 LIBS=$ac_check_lib_save_LIBS
22009 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22010 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
22011 if test $ac_cv_lib_bsd_daemon = yes; then
22021 if test "$enable_gss" = yes; then
22023 for ac_header in nfsidmap.h
22025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22027 echo "$as_me:$LINENO: checking for $ac_header" >&5
22028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22035 # Is the header compilable?
22036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 $ac_includes_default
22045 #include <$ac_header>
22047 rm -f conftest.$ac_objext
22048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22049 (eval $ac_compile) 2>conftest.er1
22051 grep -v '^ *+' conftest.er1 >conftest.err
22053 cat conftest.err >&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } &&
22056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_header_compiler=yes
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_header_compiler=no
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22077 echo "${ECHO_T}$ac_header_compiler" >&6
22079 # Is the header present?
22080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22088 #include <$ac_header>
22090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } >/dev/null; then
22098 if test -s conftest.err; then
22099 ac_cpp_err=$ac_c_preproc_warn_flag
22100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22107 if test -z "$ac_cpp_err"; then
22108 ac_header_preproc=yes
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_header_preproc=no
22115 rm -f conftest.err conftest.$ac_ext
22116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22117 echo "${ECHO_T}$ac_header_preproc" >&6
22119 # So? What about this header?
22120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22126 ac_header_preproc=yes
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22143 ## ------------------------------- ##
22144 ## Report this to nfs@lists.sf.net ##
22145 ## ------------------------------- ##
22148 sed "s/^/$as_me: WARNING: /" >&2
22151 echo "$as_me:$LINENO: checking for $ac_header" >&5
22152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 eval "$as_ac_Header=\$ac_header_preproc"
22158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22168 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22169 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22170 { (exit 1); exit 1; }; }
22176 for ac_header in spkm3.h
22178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22180 echo "$as_me:$LINENO: checking for $ac_header" >&5
22181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22188 # Is the header compilable?
22189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 $ac_includes_default
22198 #include <$ac_header>
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest.$ac_objext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 ac_header_compiler=yes
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ac_header_compiler=no
22228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22230 echo "${ECHO_T}$ac_header_compiler" >&6
22232 # Is the header present?
22233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 #include <$ac_header>
22243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null; then
22251 if test -s conftest.err; then
22252 ac_cpp_err=$ac_c_preproc_warn_flag
22253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22260 if test -z "$ac_cpp_err"; then
22261 ac_header_preproc=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_header_preproc=no
22268 rm -f conftest.err conftest.$ac_ext
22269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22270 echo "${ECHO_T}$ac_header_preproc" >&6
22272 # So? What about this header?
22273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22279 ac_header_preproc=yes
22282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22296 ## ------------------------------- ##
22297 ## Report this to nfs@lists.sf.net ##
22298 ## ------------------------------- ##
22301 sed "s/^/$as_me: WARNING: /" >&2
22304 echo "$as_me:$LINENO: checking for $ac_header" >&5
22305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 eval "$as_ac_Header=\$ac_header_preproc"
22311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22321 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22322 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22329 echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22330 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
22332 # Check whether --with-krb5 or --without-krb5 was given.
22333 if test "${with_krb5+set}" = set; then
22334 withval="$with_krb5"
22340 krb5_with="$withval"
22346 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22347 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22349 if test -f $dir/bin/krb5-config; then
22350 K5CONFIG=$dir/bin/krb5-config
22351 elif test -f "/usr/kerberos/bin/krb5-config"; then
22352 K5CONFIG="/usr/kerberos/bin/krb5-config"
22354 if test "$K5CONFIG" != ""; then
22355 KRBCFLAGS=`$K5CONFIG --cflags`
22356 KRBLIBS=`$K5CONFIG --libs gssapi`
22357 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22359 cat >>confdefs.h <<_ACEOF
22360 #define KRB5_VERSION $K5VERS
22363 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22364 \( -f $dir/lib/libgssapi_krb5.a -o \
22365 -f $dir/lib/libgssapi_krb5.so \) ; then
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_KRB5 1
22372 if test $K5VERS -le 131; then
22374 cat >>confdefs.h <<\_ACEOF
22375 #define USE_GSS_KRB5_CCACHE_NAME 1
22379 gssapi_lib=gssapi_krb5
22381 elif test \( -f $dir/include/heim_err.h -o\
22382 -f $dir/include/heimdal/heim_err.h \) -a \
22383 -f $dir/lib/libroken.a; then
22385 cat >>confdefs.h <<\_ACEOF
22386 #define HAVE_HEIMDAL 1
22395 if test "x$KRBDIR" = "x"; then
22396 if test "x$krb5_with" = "x"; then
22397 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22398 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22399 { (exit 1); exit 1; }; }
22401 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22402 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22403 { (exit 1); exit 1; }; }
22406 echo "$as_me:$LINENO: result: $KRBDIR" >&5
22407 echo "${ECHO_T}$KRBDIR" >&6
22409 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22410 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22411 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
22412 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22424 /* Override any gcc2 internal prototype to avoid an error. */
22428 /* We use char because int might match the return type of a gcc2
22429 builtin and then its argument prototype would still apply. */
22430 char gss_krb5_export_lucid_sec_context ();
22434 gss_krb5_export_lucid_sec_context ();
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22441 (eval $ac_link) 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } &&
22448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } &&
22454 { ac_try='test -s conftest$ac_exeext'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 eval "$as_ac_Lib=yes"
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 eval "$as_ac_Lib=no"
22467 rm -f conftest.err conftest.$ac_objext \
22468 conftest$ac_exeext conftest.$ac_ext
22469 LIBS=$ac_check_lib_save_LIBS
22471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22472 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22473 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22475 cat >>confdefs.h <<\_ACEOF
22476 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22481 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22482 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22483 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
22484 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 ac_check_lib_save_LIBS=$LIBS
22488 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22496 /* Override any gcc2 internal prototype to avoid an error. */
22500 /* We use char because int might match the return type of a gcc2
22501 builtin and then its argument prototype would still apply. */
22502 char gss_krb5_set_allowable_enctypes ();
22506 gss_krb5_set_allowable_enctypes ();
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22513 (eval $ac_link) 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; } &&
22526 { ac_try='test -s conftest$ac_exeext'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }; then
22532 eval "$as_ac_Lib=yes"
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 eval "$as_ac_Lib=no"
22539 rm -f conftest.err conftest.$ac_objext \
22540 conftest$ac_exeext conftest.$ac_ext
22541 LIBS=$ac_check_lib_save_LIBS
22543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22544 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22545 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22553 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22554 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22555 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 ac_check_lib_save_LIBS=$LIBS
22560 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22568 /* Override any gcc2 internal prototype to avoid an error. */
22572 /* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574 char gss_krb5_ccache_name ();
22578 gss_krb5_ccache_name ();
22583 rm -f conftest.$ac_objext conftest$ac_exeext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22585 (eval $ac_link) 2>conftest.er1
22587 grep -v '^ *+' conftest.er1 >conftest.err
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; } &&
22598 { ac_try='test -s conftest$ac_exeext'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 eval "$as_ac_Lib=yes"
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 eval "$as_ac_Lib=no"
22611 rm -f conftest.err conftest.$ac_objext \
22612 conftest$ac_exeext conftest.$ac_ext
22613 LIBS=$ac_check_lib_save_LIBS
22615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22616 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22617 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22619 cat >>confdefs.h <<\_ACEOF
22620 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22626 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22627 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22628 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22638 echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22639 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
22640 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22643 ac_check_lib_save_LIBS=$LIBS
22644 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22652 /* Override any gcc2 internal prototype to avoid an error. */
22656 /* We use char because int might match the return type of a gcc2
22657 builtin and then its argument prototype would still apply. */
22658 char authgss_create_default ();
22662 authgss_create_default ();
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669 (eval $ac_link) 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
22676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; } &&
22682 { ac_try='test -s conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 ac_cv_lib_rpcsecgss_authgss_create_default=no
22695 rm -f conftest.err conftest.$ac_objext \
22696 conftest$ac_exeext conftest.$ac_ext
22697 LIBS=$ac_check_lib_save_LIBS
22699 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22700 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
22701 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22704 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22705 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22706 { (exit 1); exit 1; }; }
22709 echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22710 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
22711 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 ac_check_lib_save_LIBS=$LIBS
22715 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22723 /* Override any gcc2 internal prototype to avoid an error. */
22727 /* We use char because int might match the return type of a gcc2
22728 builtin and then its argument prototype would still apply. */
22729 char authgss_set_debug_level ();
22733 authgss_set_debug_level ();
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740 (eval $ac_link) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest$ac_exeext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22766 rm -f conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768 LIBS=$ac_check_lib_save_LIBS
22770 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22771 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
22772 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22774 cat >>confdefs.h <<\_ACEOF
22775 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22805 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22806 malloc.h memory.h netdb.h netinet/in.h paths.h \
22807 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22808 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22809 syslog.h unistd.h com_err.h et/com_err.h
22811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22813 echo "$as_me:$LINENO: checking for $ac_header" >&5
22814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22821 # Is the header compilable?
22822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 $ac_includes_default
22831 #include <$ac_header>
22833 rm -f conftest.$ac_objext
22834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835 (eval $ac_compile) 2>conftest.er1
22837 grep -v '^ *+' conftest.er1 >conftest.err
22839 cat conftest.err >&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); } &&
22842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; } &&
22848 { ac_try='test -s conftest.$ac_objext'
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; }; then
22854 ac_header_compiler=yes
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ac_header_compiler=no
22861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22863 echo "${ECHO_T}$ac_header_compiler" >&6
22865 # Is the header present?
22866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22868 cat >conftest.$ac_ext <<_ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 #include <$ac_header>
22876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } >/dev/null; then
22884 if test -s conftest.err; then
22885 ac_cpp_err=$ac_c_preproc_warn_flag
22886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22893 if test -z "$ac_cpp_err"; then
22894 ac_header_preproc=yes
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_header_preproc=no
22901 rm -f conftest.err conftest.$ac_ext
22902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22903 echo "${ECHO_T}$ac_header_preproc" >&6
22905 # So? What about this header?
22906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22912 ac_header_preproc=yes
22915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22929 ## ------------------------------- ##
22930 ## Report this to nfs@lists.sf.net ##
22931 ## ------------------------------- ##
22934 sed "s/^/$as_me: WARNING: /" >&2
22937 echo "$as_me:$LINENO: checking for $ac_header" >&5
22938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 eval "$as_ac_Header=\$ac_header_preproc"
22944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22949 cat >>confdefs.h <<_ACEOF
22950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22958 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22959 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22960 if test "${ac_cv_c_const+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22973 /* FIXME: Include the comments suggested by Paul. */
22974 #ifndef __cplusplus
22975 /* Ultrix mips cc rejects this. */
22976 typedef int charset[2];
22978 /* SunOS 4.1.1 cc rejects this. */
22979 char const *const *ccp;
22981 /* NEC SVR4.0.2 mips cc rejects this. */
22982 struct point {int x, y;};
22983 static struct point const zero = {0,0};
22984 /* AIX XL C 1.02.0.0 rejects this.
22985 It does not let you subtract one const X* pointer from another in
22986 an arm of an if-expression whose if-part is not a constant
22988 const char *g = "string";
22989 ccp = &g + (g ? g-g : 0);
22990 /* HPUX 7.0 cc rejects these. */
22993 ccp = (char const *const *) p;
22994 { /* SCO 3.2v4 cc rejects this. */
22996 char const *s = 0 ? (char *) 0 : (char const *) 0;
23000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23001 int x[] = {25, 17};
23002 const int *foo = &x[0];
23005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23006 typedef const int *iptr;
23010 { /* AIX XL C 1.02.0.0 rejects this saying
23011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23012 struct s { int j; const int *ap[3]; };
23013 struct s *b; b->j = 5;
23015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23016 const int foo = 10;
23024 rm -f conftest.$ac_objext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23026 (eval $ac_compile) 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
23033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest.$ac_objext'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; }; then
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23054 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23055 echo "${ECHO_T}$ac_cv_c_const" >&6
23056 if test $ac_cv_c_const = no; then
23058 cat >>confdefs.h <<\_ACEOF
23064 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23065 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
23066 if test "${ac_cv_type_uid_t+set}" = set; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23075 #include <sys/types.h>
23078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23079 $EGREP "uid_t" >/dev/null 2>&1; then
23080 ac_cv_type_uid_t=yes
23082 ac_cv_type_uid_t=no
23087 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23088 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
23089 if test $ac_cv_type_uid_t = no; then
23091 cat >>confdefs.h <<\_ACEOF
23096 cat >>confdefs.h <<\_ACEOF
23102 echo "$as_me:$LINENO: checking for inline" >&5
23103 echo $ECHO_N "checking for inline... $ECHO_C" >&6
23104 if test "${ac_cv_c_inline+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 for ac_kw in inline __inline__ __inline; do
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 #ifndef __cplusplus
23117 static $ac_kw foo_t static_foo () {return 0; }
23118 $ac_kw foo_t foo () {return 0; }
23122 rm -f conftest.$ac_objext
23123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23124 (eval $ac_compile) 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } &&
23131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest.$ac_objext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 ac_cv_c_inline=$ac_kw; break
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23153 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23154 echo "${ECHO_T}$ac_cv_c_inline" >&6
23157 case $ac_cv_c_inline in
23160 case $ac_cv_c_inline in
23162 *) ac_val=$ac_cv_c_inline;;
23164 cat >>confdefs.h <<_ACEOF
23165 #ifndef __cplusplus
23166 #define inline $ac_val
23172 echo "$as_me:$LINENO: checking for off_t" >&5
23173 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
23174 if test "${ac_cv_type_off_t+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183 $ac_includes_default
23189 if (sizeof (off_t))
23195 rm -f conftest.$ac_objext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23197 (eval $ac_compile) 2>conftest.er1
23199 grep -v '^ *+' conftest.er1 >conftest.err
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } &&
23204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; } &&
23210 { ac_try='test -s conftest.$ac_objext'
23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212 (eval $ac_try) 2>&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_cv_type_off_t=yes
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_type_off_t=no
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23226 echo "${ECHO_T}$ac_cv_type_off_t" >&6
23227 if test $ac_cv_type_off_t = yes; then
23231 cat >>confdefs.h <<_ACEOF
23237 echo "$as_me:$LINENO: checking for pid_t" >&5
23238 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23239 if test "${ac_cv_type_pid_t+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23254 if (sizeof (pid_t))
23260 rm -f conftest.$ac_objext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23262 (eval $ac_compile) 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
23269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest.$ac_objext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_type_pid_t=yes
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 ac_cv_type_pid_t=no
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23290 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23291 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23292 if test $ac_cv_type_pid_t = yes; then
23296 cat >>confdefs.h <<_ACEOF
23302 echo "$as_me:$LINENO: checking for size_t" >&5
23303 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23304 if test "${ac_cv_type_size_t+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 $ac_includes_default
23319 if (sizeof (size_t))
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327 (eval $ac_compile) 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; } &&
23340 { ac_try='test -s conftest.$ac_objext'
23341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342 (eval $ac_try) 2>&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; }; then
23346 ac_cv_type_size_t=yes
23348 echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23351 ac_cv_type_size_t=no
23353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23355 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23356 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23357 if test $ac_cv_type_size_t = yes; then
23361 cat >>confdefs.h <<_ACEOF
23362 #define size_t unsigned
23367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23369 if test "${ac_cv_header_time+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 cat >conftest.$ac_ext <<_ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 #include <sys/types.h>
23379 #include <sys/time.h>
23385 if ((struct tm *) 0)
23391 rm -f conftest.$ac_objext
23392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393 (eval $ac_compile) 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
23400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest.$ac_objext'
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_header_time=yes
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23417 ac_cv_header_time=no
23419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23422 echo "${ECHO_T}$ac_cv_header_time" >&6
23423 if test $ac_cv_header_time = yes; then
23425 cat >>confdefs.h <<\_ACEOF
23426 #define TIME_WITH_SYS_TIME 1
23431 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23433 if test "${ac_cv_struct_tm+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include <sys/types.h>
23448 struct tm *tp; tp->tm_sec;
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455 (eval $ac_compile) 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest.$ac_objext'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 ac_cv_struct_tm=time.h
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ac_cv_struct_tm=sys/time.h
23481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23483 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23484 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23485 if test $ac_cv_struct_tm = sys/time.h; then
23487 cat >>confdefs.h <<\_ACEOF
23488 #define TM_IN_SYS_TIME 1
23494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23495 # for constant arguments. Useless!
23496 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23497 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23498 if test "${ac_cv_working_alloca_h+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 #include <alloca.h>
23511 char *p = (char *) alloca (2 * sizeof (int));
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; } &&
23531 { ac_try='test -s conftest$ac_exeext'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537 ac_cv_working_alloca_h=yes
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_cv_working_alloca_h=no
23544 rm -f conftest.err conftest.$ac_objext \
23545 conftest$ac_exeext conftest.$ac_ext
23547 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23548 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23549 if test $ac_cv_working_alloca_h = yes; then
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_ALLOCA_H 1
23557 echo "$as_me:$LINENO: checking for alloca" >&5
23558 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23559 if test "${ac_cv_func_alloca_works+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23569 # define alloca __builtin_alloca
23572 # include <malloc.h>
23573 # define alloca _alloca
23576 # include <alloca.h>
23581 # ifndef alloca /* predefined by HP cc +Olibcalls */
23592 char *p = (char *) alloca (1);
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599 (eval $ac_link) 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
23606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } &&
23612 { ac_try='test -s conftest$ac_exeext'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618 ac_cv_func_alloca_works=yes
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23623 ac_cv_func_alloca_works=no
23625 rm -f conftest.err conftest.$ac_objext \
23626 conftest$ac_exeext conftest.$ac_ext
23628 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23629 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23631 if test $ac_cv_func_alloca_works = yes; then
23633 cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_ALLOCA 1
23638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23639 # that cause trouble. Some versions do not even contain alloca or
23640 # contain a buggy version. If you still want to use their alloca,
23641 # use ar to extract alloca.o from them instead of compiling alloca.c.
23643 ALLOCA=alloca.$ac_objext
23645 cat >>confdefs.h <<\_ACEOF
23650 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23651 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23652 if test "${ac_cv_os_cray+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 #if defined(CRAY) && ! defined(CRAY2)
23668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23669 $EGREP "webecray" >/dev/null 2>&1; then
23677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23678 echo "${ECHO_T}$ac_cv_os_cray" >&6
23679 if test $ac_cv_os_cray = yes; then
23680 for ac_func in _getb67 GETB67 getb67; do
23681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23682 echo "$as_me:$LINENO: checking for $ac_func" >&5
23683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23684 if eval "test \"\${$as_ac_var+set}\" = set"; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 cat >conftest.$ac_ext <<_ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h. */
23693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23695 #define $ac_func innocuous_$ac_func
23697 /* System header to define __stub macros and hopefully few prototypes,
23698 which can conflict with char $ac_func (); below.
23699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23700 <limits.h> exists even on freestanding compilers. */
23703 # include <limits.h>
23705 # include <assert.h>
23710 /* Override any gcc2 internal prototype to avoid an error. */
23715 /* We use char because int might match the return type of a gcc2
23716 builtin and then its argument prototype would still apply. */
23718 /* The GNU C library defines this for functions which it implements
23719 to always fail with ENOSYS. Some functions are actually named
23720 something starting with __ and the normal name is an alias. */
23721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23724 char (*f) () = $ac_func;
23733 return f != $ac_func;
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23740 (eval $ac_link) 2>conftest.er1
23742 grep -v '^ *+' conftest.er1 >conftest.err
23744 cat conftest.err >&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } &&
23747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } &&
23753 { ac_try='test -s conftest$ac_exeext'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759 eval "$as_ac_var=yes"
23761 echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23764 eval "$as_ac_var=no"
23766 rm -f conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23771 if test `eval echo '${'$as_ac_var'}'` = yes; then
23773 cat >>confdefs.h <<_ACEOF
23774 #define CRAY_STACKSEG_END $ac_func
23783 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23785 if test "${ac_cv_c_stack_direction+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 if test "$cross_compiling" = yes; then
23789 ac_cv_c_stack_direction=0
23791 cat >conftest.$ac_ext <<_ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h. */
23798 find_stack_direction ()
23800 static char *addr = 0;
23805 return find_stack_direction ();
23808 return (&dummy > addr) ? 1 : -1;
23814 exit (find_stack_direction () < 0);
23817 rm -f conftest$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819 (eval $ac_link) 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824 (eval $ac_try) 2>&5
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); }; }; then
23828 ac_cv_c_stack_direction=1
23830 echo "$as_me: program exited with status $ac_status" >&5
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23834 ( exit $ac_status )
23835 ac_cv_c_stack_direction=-1
23837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23840 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23841 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23843 cat >>confdefs.h <<_ACEOF
23844 #define STACK_DIRECTION $ac_cv_c_stack_direction
23855 ac_header_dirent=no
23856 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23857 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23858 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23859 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 #include <sys/types.h>
23881 rm -f conftest.$ac_objext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23883 (eval $ac_compile) 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest.$ac_objext'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 eval "$as_ac_Header=yes"
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 eval "$as_ac_Header=no"
23909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23914 cat >>confdefs.h <<_ACEOF
23915 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23918 ac_header_dirent=$ac_hdr; break
23922 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23923 if test $ac_header_dirent = dirent.h; then
23924 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23926 if test "${ac_cv_search_opendir+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23929 ac_func_search_save_LIBS=$LIBS
23930 ac_cv_search_opendir=no
23931 cat >conftest.$ac_ext <<_ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23938 /* Override any gcc2 internal prototype to avoid an error. */
23942 /* We use char because int might match the return type of a gcc2
23943 builtin and then its argument prototype would still apply. */
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955 (eval $ac_link) 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; } &&
23968 { ac_try='test -s conftest$ac_exeext'
23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970 (eval $ac_try) 2>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; }; then
23974 ac_cv_search_opendir="none required"
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23980 rm -f conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
23982 if test "$ac_cv_search_opendir" = no; then
23983 for ac_lib in dir; do
23984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23985 cat >conftest.$ac_ext <<_ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23992 /* Override any gcc2 internal prototype to avoid an error. */
23996 /* We use char because int might match the return type of a gcc2
23997 builtin and then its argument prototype would still apply. */
24007 rm -f conftest.$ac_objext conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009 (eval $ac_link) 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24018 (eval $ac_try) 2>&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); }; } &&
24022 { ac_try='test -s conftest$ac_exeext'
24023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); }; }; then
24028 ac_cv_search_opendir="-l$ac_lib"
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24035 rm -f conftest.err conftest.$ac_objext \
24036 conftest$ac_exeext conftest.$ac_ext
24039 LIBS=$ac_func_search_save_LIBS
24041 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24042 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24043 if test "$ac_cv_search_opendir" != no; then
24044 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24049 echo "$as_me:$LINENO: checking for library containing opendir" >&5
24050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24051 if test "${ac_cv_search_opendir+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 ac_func_search_save_LIBS=$LIBS
24055 ac_cv_search_opendir=no
24056 cat >conftest.$ac_ext <<_ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h. */
24063 /* Override any gcc2 internal prototype to avoid an error. */
24067 /* We use char because int might match the return type of a gcc2
24068 builtin and then its argument prototype would still apply. */
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080 (eval $ac_link) 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
24087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest$ac_exeext'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 ac_cv_search_opendir="none required"
24101 echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24105 rm -f conftest.err conftest.$ac_objext \
24106 conftest$ac_exeext conftest.$ac_ext
24107 if test "$ac_cv_search_opendir" = no; then
24108 for ac_lib in x; do
24109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24117 /* Override any gcc2 internal prototype to avoid an error. */
24121 /* We use char because int might match the return type of a gcc2
24122 builtin and then its argument prototype would still apply. */
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134 (eval $ac_link) 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } &&
24141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; } &&
24147 { ac_try='test -s conftest$ac_exeext'
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24153 ac_cv_search_opendir="-l$ac_lib"
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24160 rm -f conftest.err conftest.$ac_objext \
24161 conftest$ac_exeext conftest.$ac_ext
24164 LIBS=$ac_func_search_save_LIBS
24166 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24167 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24168 if test "$ac_cv_search_opendir" != no; then
24169 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24175 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24176 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
24177 if test "${ac_cv_func_closedir_void+set}" = set; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 if test "$cross_compiling" = yes; then
24181 ac_cv_func_closedir_void=yes
24183 cat >conftest.$ac_ext <<_ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 $ac_includes_default
24190 #include <$ac_header_dirent>
24191 #ifndef __cplusplus
24198 exit (closedir (opendir (".")) != 0);
24203 rm -f conftest$ac_exeext
24204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205 (eval $ac_link) 2>&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24210 (eval $ac_try) 2>&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); }; }; then
24214 ac_cv_func_closedir_void=no
24216 echo "$as_me: program exited with status $ac_status" >&5
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ( exit $ac_status )
24221 ac_cv_func_closedir_void=yes
24223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24226 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24227 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
24228 if test $ac_cv_func_closedir_void = yes; then
24230 cat >>confdefs.h <<\_ACEOF
24231 #define CLOSEDIR_VOID 1
24236 echo "$as_me:$LINENO: checking for error_at_line" >&5
24237 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24238 if test "${ac_cv_lib_error_at_line+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
24241 cat >conftest.$ac_ext <<_ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h. */
24247 $ac_includes_default
24251 error_at_line (0, 0, "", 0, "");
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258 (eval $ac_link) 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
24265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 (eval $ac_try) 2>&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); }; } &&
24271 { ac_try='test -s conftest$ac_exeext'
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; }; then
24277 ac_cv_lib_error_at_line=yes
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24282 ac_cv_lib_error_at_line=no
24284 rm -f conftest.err conftest.$ac_objext \
24285 conftest$ac_exeext conftest.$ac_ext
24287 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24288 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24289 if test $ac_cv_lib_error_at_line = no; then
24291 "error.$ac_objext" | \
24292 *" error.$ac_objext" | \
24293 "error.$ac_objext "* | \
24294 *" error.$ac_objext "* ) ;;
24295 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
24302 for ac_header in unistd.h vfork.h
24304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24306 echo "$as_me:$LINENO: checking for $ac_header" >&5
24307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24314 # Is the header compilable?
24315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24317 cat >conftest.$ac_ext <<_ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h. */
24323 $ac_includes_default
24324 #include <$ac_header>
24326 rm -f conftest.$ac_objext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24328 (eval $ac_compile) 2>conftest.er1
24330 grep -v '^ *+' conftest.er1 >conftest.err
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest.$ac_objext'
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ac_header_compiler=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_header_compiler=no
24354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24356 echo "${ECHO_T}$ac_header_compiler" >&6
24358 # Is the header present?
24359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 #include <$ac_header>
24369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24372 grep -v '^ *+' conftest.er1 >conftest.err
24374 cat conftest.err >&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } >/dev/null; then
24377 if test -s conftest.err; then
24378 ac_cpp_err=$ac_c_preproc_warn_flag
24379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24386 if test -z "$ac_cpp_err"; then
24387 ac_header_preproc=yes
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 ac_header_preproc=no
24394 rm -f conftest.err conftest.$ac_ext
24395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24396 echo "${ECHO_T}$ac_header_preproc" >&6
24398 # So? What about this header?
24399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24405 ac_header_preproc=yes
24408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24422 ## ------------------------------- ##
24423 ## Report this to nfs@lists.sf.net ##
24424 ## ------------------------------- ##
24427 sed "s/^/$as_me: WARNING: /" >&2
24430 echo "$as_me:$LINENO: checking for $ac_header" >&5
24431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24435 eval "$as_ac_Header=\$ac_header_preproc"
24437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24442 cat >>confdefs.h <<_ACEOF
24443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24452 for ac_func in fork vfork
24454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24455 echo "$as_me:$LINENO: checking for $ac_func" >&5
24456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24457 if eval "test \"\${$as_ac_var+set}\" = set"; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24468 #define $ac_func innocuous_$ac_func
24470 /* System header to define __stub macros and hopefully few prototypes,
24471 which can conflict with char $ac_func (); below.
24472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24473 <limits.h> exists even on freestanding compilers. */
24476 # include <limits.h>
24478 # include <assert.h>
24483 /* Override any gcc2 internal prototype to avoid an error. */
24488 /* We use char because int might match the return type of a gcc2
24489 builtin and then its argument prototype would still apply. */
24491 /* The GNU C library defines this for functions which it implements
24492 to always fail with ENOSYS. Some functions are actually named
24493 something starting with __ and the normal name is an alias. */
24494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24497 char (*f) () = $ac_func;
24506 return f != $ac_func;
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24513 (eval $ac_link) 2>conftest.er1
24515 grep -v '^ *+' conftest.er1 >conftest.err
24517 cat conftest.err >&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } &&
24520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest$ac_exeext'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24532 eval "$as_ac_var=yes"
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 eval "$as_ac_var=no"
24539 rm -f conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24544 if test `eval echo '${'$as_ac_var'}'` = yes; then
24545 cat >>confdefs.h <<_ACEOF
24546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24552 if test "x$ac_cv_func_fork" = xyes; then
24553 echo "$as_me:$LINENO: checking for working fork" >&5
24554 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
24555 if test "${ac_cv_func_fork_works+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
24558 if test "$cross_compiling" = yes; then
24559 ac_cv_func_fork_works=cross
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 $ac_includes_default
24572 /* By Ruediger Kuhlmann. */
24581 rm -f conftest$ac_exeext
24582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24583 (eval $ac_link) 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592 ac_cv_func_fork_works=yes
24594 echo "$as_me: program exited with status $ac_status" >&5
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 ( exit $ac_status )
24599 ac_cv_func_fork_works=no
24601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24604 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24605 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24608 ac_cv_func_fork_works=$ac_cv_func_fork
24610 if test "x$ac_cv_func_fork_works" = xcross; then
24612 *-*-amigaos* | *-*-msdosdjgpp*)
24613 # Override, as these systems have only a dummy fork() stub
24614 ac_cv_func_fork_works=no
24617 ac_cv_func_fork_works=yes
24620 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24621 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24623 ac_cv_func_vfork_works=$ac_cv_func_vfork
24624 if test "x$ac_cv_func_vfork" = xyes; then
24625 echo "$as_me:$LINENO: checking for working vfork" >&5
24626 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24627 if test "${ac_cv_func_vfork_works+set}" = set; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24630 if test "$cross_compiling" = yes; then
24631 ac_cv_func_vfork_works=cross
24633 cat >conftest.$ac_ext <<_ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639 /* Thanks to Paul Eggert for this test. */
24641 #include <stdlib.h>
24642 #include <sys/types.h>
24643 #include <sys/stat.h>
24644 #include <sys/wait.h>
24646 # include <unistd.h>
24649 # include <vfork.h>
24651 /* On some sparc systems, changes by the child to local and incoming
24652 argument registers are propagated back to the parent. The compiler
24653 is told about this with #include <vfork.h>, but some compilers
24654 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24655 static variable whose address is put into a register that is
24656 clobbered by the vfork. */
24659 sparc_address_test (int arg)
24661 sparc_address_test (arg) int arg;
24664 static pid_t child;
24682 pid_t parent = getpid ();
24685 sparc_address_test (0);
24690 /* Here is another test for sparc vfork register problems. This
24691 test uses lots of local variables, at least as many local
24692 variables as main has allocated so far including compiler
24693 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24694 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24695 reuse the register of parent for one of the local variables,
24696 since it will think that parent can't possibly be used any more
24697 in this routine. Assigning to the local variable will thus
24698 munge parent in the parent process. */
24700 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24701 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24702 /* Convince the compiler that p..p7 are live; otherwise, it might
24703 use the same hardware register for all 8 local variables. */
24704 if (p != p1 || p != p2 || p != p3 || p != p4
24705 || p != p5 || p != p6 || p != p7)
24708 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24709 from child file descriptors. If the child closes a descriptor
24710 before it execs or exits, this munges the parent's descriptor
24711 as well. Test for this by closing stdout in the child. */
24712 _exit(close(fileno(stdout)) != 0);
24717 while (wait(&status) != child)
24720 /* Was there some problem with vforking? */
24723 /* Did the child fail? (This shouldn't happen.) */
24726 /* Did the vfork/compiler bug occur? */
24727 || parent != getpid()
24729 /* Did the file descriptor bug occur? */
24730 || fstat(fileno(stdout), &st) != 0
24735 rm -f conftest$ac_exeext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24737 (eval $ac_link) 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
24746 ac_cv_func_vfork_works=yes
24748 echo "$as_me: program exited with status $ac_status" >&5
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 ( exit $ac_status )
24753 ac_cv_func_vfork_works=no
24755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24758 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24759 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24762 if test "x$ac_cv_func_fork_works" = xcross; then
24763 ac_cv_func_vfork_works=$ac_cv_func_vfork
24764 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24765 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24768 if test "x$ac_cv_func_vfork_works" = xyes; then
24770 cat >>confdefs.h <<\_ACEOF
24771 #define HAVE_WORKING_VFORK 1
24776 cat >>confdefs.h <<\_ACEOF
24781 if test "x$ac_cv_func_fork_works" = xyes; then
24783 cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_WORKING_FORK 1
24789 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24790 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
24791 if test "${ac_cv_type_getgroups+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 if test "$cross_compiling" = yes; then
24795 ac_cv_type_getgroups=cross
24797 cat >conftest.$ac_ext <<_ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 /* Thanks to Mike Rendell for this test. */
24804 #include <sys/types.h>
24807 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24812 gid_t gidset[NGID];
24814 union { gid_t gval; long lval; } val;
24817 for (i = 0; i < NGID; i++)
24818 gidset[i] = val.gval;
24819 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24821 /* Exit non-zero if getgroups seems to require an array of ints. This
24822 happens when gid_t is short but getgroups modifies an array of ints. */
24823 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24826 rm -f conftest$ac_exeext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828 (eval $ac_link) 2>&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; }; then
24837 ac_cv_type_getgroups=gid_t
24839 echo "$as_me: program exited with status $ac_status" >&5
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24843 ( exit $ac_status )
24844 ac_cv_type_getgroups=int
24846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24848 if test $ac_cv_type_getgroups = cross; then
24849 cat >conftest.$ac_ext <<_ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24855 #include <unistd.h>
24858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24859 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24860 ac_cv_type_getgroups=gid_t
24862 ac_cv_type_getgroups=int
24868 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24869 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24871 cat >>confdefs.h <<_ACEOF
24872 #define GETGROUPS_T $ac_cv_type_getgroups
24876 echo "$as_me:$LINENO: checking for getgroups" >&5
24877 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
24878 if test "${ac_cv_func_getgroups+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 cat >conftest.$ac_ext <<_ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24887 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24889 #define getgroups innocuous_getgroups
24891 /* System header to define __stub macros and hopefully few prototypes,
24892 which can conflict with char getgroups (); below.
24893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24894 <limits.h> exists even on freestanding compilers. */
24897 # include <limits.h>
24899 # include <assert.h>
24904 /* Override any gcc2 internal prototype to avoid an error. */
24909 /* We use char because int might match the return type of a gcc2
24910 builtin and then its argument prototype would still apply. */
24912 /* The GNU C library defines this for functions which it implements
24913 to always fail with ENOSYS. Some functions are actually named
24914 something starting with __ and the normal name is an alias. */
24915 #if defined (__stub_getgroups) || defined (__stub___getgroups)
24918 char (*f) () = getgroups;
24927 return f != getgroups;
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934 (eval $ac_link) 2>conftest.er1
24936 grep -v '^ *+' conftest.er1 >conftest.err
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } &&
24941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; } &&
24947 { ac_try='test -s conftest$ac_exeext'
24948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949 (eval $ac_try) 2>&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); }; }; then
24953 ac_cv_func_getgroups=yes
24955 echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24958 ac_cv_func_getgroups=no
24960 rm -f conftest.err conftest.$ac_objext \
24961 conftest$ac_exeext conftest.$ac_ext
24963 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24964 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24967 # If we don't yet have getgroups, see if it's in -lbsd.
24968 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24970 if test $ac_cv_func_getgroups = no; then
24971 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24972 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24973 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24976 ac_check_lib_save_LIBS=$LIBS
24978 cat >conftest.$ac_ext <<_ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h. */
24985 /* Override any gcc2 internal prototype to avoid an error. */
24989 /* We use char because int might match the return type of a gcc2
24990 builtin and then its argument prototype would still apply. */
25000 rm -f conftest.$ac_objext conftest$ac_exeext
25001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25002 (eval $ac_link) 2>conftest.er1
25004 grep -v '^ *+' conftest.er1 >conftest.err
25006 cat conftest.err >&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } &&
25009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; } &&
25015 { ac_try='test -s conftest$ac_exeext'
25016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017 (eval $ac_try) 2>&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; }; then
25021 ac_cv_lib_bsd_getgroups=yes
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ac_cv_lib_bsd_getgroups=no
25028 rm -f conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25032 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25033 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25034 if test $ac_cv_lib_bsd_getgroups = yes; then
25035 GETGROUPS_LIB=-lbsd
25040 # Run the program to test the functionality of the system-supplied
25041 # getgroups function only if there is such a function.
25042 if test $ac_cv_func_getgroups = yes; then
25043 echo "$as_me:$LINENO: checking for working getgroups" >&5
25044 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25045 if test "${ac_cv_func_getgroups_works+set}" = set; then
25046 echo $ECHO_N "(cached) $ECHO_C" >&6
25048 if test "$cross_compiling" = yes; then
25049 ac_cv_func_getgroups_works=no
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25061 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25062 exit (getgroups (0, 0) == -1 ? 1 : 0);
25067 rm -f conftest$ac_exeext
25068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25069 (eval $ac_link) 2>&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; }; then
25078 ac_cv_func_getgroups_works=yes
25080 echo "$as_me: program exited with status $ac_status" >&5
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25084 ( exit $ac_status )
25085 ac_cv_func_getgroups_works=no
25087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25091 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25092 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
25093 if test $ac_cv_func_getgroups_works = yes; then
25095 cat >>confdefs.h <<\_ACEOF
25096 #define HAVE_GETGROUPS 1
25103 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
25104 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
25105 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
25106 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25109 ac_check_lib_save_LIBS=$LIBS
25111 cat >conftest.$ac_ext <<_ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h. */
25118 /* Override any gcc2 internal prototype to avoid an error. */
25122 /* We use char because int might match the return type of a gcc2
25123 builtin and then its argument prototype would still apply. */
25133 rm -f conftest.$ac_objext conftest$ac_exeext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25135 (eval $ac_link) 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } &&
25142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144 (eval $ac_try) 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; } &&
25148 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25154 ac_cv_lib_sun_getmntent=yes
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25159 ac_cv_lib_sun_getmntent=no
25161 rm -f conftest.err conftest.$ac_objext \
25162 conftest$ac_exeext conftest.$ac_ext
25163 LIBS=$ac_check_lib_save_LIBS
25165 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
25166 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
25167 if test $ac_cv_lib_sun_getmntent = yes; then
25170 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
25171 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
25172 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 ac_check_lib_save_LIBS=$LIBS
25177 cat >conftest.$ac_ext <<_ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25184 /* Override any gcc2 internal prototype to avoid an error. */
25188 /* We use char because int might match the return type of a gcc2
25189 builtin and then its argument prototype would still apply. */
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201 (eval $ac_link) 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210 (eval $ac_try) 2>&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); }; } &&
25214 { ac_try='test -s conftest$ac_exeext'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25220 ac_cv_lib_seq_getmntent=yes
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ac_cv_lib_seq_getmntent=no
25227 rm -f conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25229 LIBS=$ac_check_lib_save_LIBS
25231 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
25232 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
25233 if test $ac_cv_lib_seq_getmntent = yes; then
25236 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
25237 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
25238 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25241 ac_check_lib_save_LIBS=$LIBS
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25250 /* Override any gcc2 internal prototype to avoid an error. */
25254 /* We use char because int might match the return type of a gcc2
25255 builtin and then its argument prototype would still apply. */
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25267 (eval $ac_link) 2>conftest.er1
25269 grep -v '^ *+' conftest.er1 >conftest.err
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } &&
25274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest$ac_exeext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 ac_cv_lib_gen_getmntent=yes
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25291 ac_cv_lib_gen_getmntent=no
25293 rm -f conftest.err conftest.$ac_objext \
25294 conftest$ac_exeext conftest.$ac_ext
25295 LIBS=$ac_check_lib_save_LIBS
25297 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
25298 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
25299 if test $ac_cv_lib_gen_getmntent = yes; then
25308 for ac_func in getmntent
25310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25313 if eval "test \"\${$as_ac_var+set}\" = set"; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25324 #define $ac_func innocuous_$ac_func
25326 /* System header to define __stub macros and hopefully few prototypes,
25327 which can conflict with char $ac_func (); below.
25328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329 <limits.h> exists even on freestanding compilers. */
25332 # include <limits.h>
25334 # include <assert.h>
25339 /* Override any gcc2 internal prototype to avoid an error. */
25344 /* We use char because int might match the return type of a gcc2
25345 builtin and then its argument prototype would still apply. */
25347 /* The GNU C library defines this for functions which it implements
25348 to always fail with ENOSYS. Some functions are actually named
25349 something starting with __ and the normal name is an alias. */
25350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25353 char (*f) () = $ac_func;
25362 return f != $ac_func;
25367 rm -f conftest.$ac_objext conftest$ac_exeext
25368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25369 (eval $ac_link) 2>conftest.er1
25371 grep -v '^ *+' conftest.er1 >conftest.err
25373 cat conftest.err >&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } &&
25376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 eval "$as_ac_var=yes"
25390 echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25393 eval "$as_ac_var=no"
25395 rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25400 if test `eval echo '${'$as_ac_var'}'` = yes; then
25401 cat >>confdefs.h <<_ACEOF
25402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25409 if test $ac_cv_c_compiler_gnu = yes; then
25410 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25411 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
25412 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25413 echo $ECHO_N "(cached) $ECHO_C" >&6
25415 ac_pattern="Autoconf.*'x'"
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25426 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25427 ac_cv_prog_gcc_traditional=yes
25429 ac_cv_prog_gcc_traditional=no
25434 if test $ac_cv_prog_gcc_traditional = no; then
25435 cat >conftest.$ac_ext <<_ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441 #include <termio.h>
25444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25445 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25446 ac_cv_prog_gcc_traditional=yes
25452 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
25454 if test $ac_cv_prog_gcc_traditional = yes; then
25455 CC="$CC -traditional"
25459 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25460 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25461 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25464 rm -f conftest.sym conftest.file
25465 echo >conftest.file
25466 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25467 if test "$cross_compiling" = yes; then
25468 ac_cv_func_lstat_dereferences_slashed_symlink=no
25470 cat >conftest.$ac_ext <<_ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 $ac_includes_default
25481 /* Linux will dereference the symlink and fail.
25482 That is better in the sense that it means we will not
25483 have to compile and use the lstat wrapper. */
25484 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
25489 rm -f conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491 (eval $ac_link) 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25502 echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25506 ( exit $ac_status )
25507 ac_cv_func_lstat_dereferences_slashed_symlink=no
25509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25512 # If the `ln -s' command failed, then we probably don't even
25513 # have an lstat function.
25514 ac_cv_func_lstat_dereferences_slashed_symlink=no
25516 rm -f conftest.sym conftest.file
25519 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25520 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
25522 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25524 cat >>confdefs.h <<_ACEOF
25525 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25529 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25531 "lstat.$ac_objext" | \
25532 *" lstat.$ac_objext" | \
25533 "lstat.$ac_objext "* | \
25534 *" lstat.$ac_objext "* ) ;;
25535 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25540 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25541 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
25542 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 if test "$cross_compiling" = yes; then
25546 ac_cv_func_lstat_empty_string_bug=yes
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 $ac_includes_default
25559 exit (lstat ("", &sbuf) ? 1 : 0);
25564 rm -f conftest$ac_exeext
25565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25566 (eval $ac_link) 2>&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; }; then
25575 ac_cv_func_lstat_empty_string_bug=yes
25577 echo "$as_me: program exited with status $ac_status" >&5
25578 echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 ( exit $ac_status )
25582 ac_cv_func_lstat_empty_string_bug=no
25584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25587 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25588 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
25589 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25591 "lstat.$ac_objext" | \
25592 *" lstat.$ac_objext" | \
25593 "lstat.$ac_objext "* | \
25594 *" lstat.$ac_objext "* ) ;;
25595 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25599 cat >>confdefs.h <<_ACEOF
25600 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25605 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25606 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25607 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25610 rm -f conftest.sym conftest.file
25611 echo >conftest.file
25612 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25613 if test "$cross_compiling" = yes; then
25614 ac_cv_func_lstat_dereferences_slashed_symlink=no
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 $ac_includes_default
25627 /* Linux will dereference the symlink and fail.
25628 That is better in the sense that it means we will not
25629 have to compile and use the lstat wrapper. */
25630 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
25635 rm -f conftest$ac_exeext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637 (eval $ac_link) 2>&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25648 echo "$as_me: program exited with status $ac_status" >&5
25649 echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25652 ( exit $ac_status )
25653 ac_cv_func_lstat_dereferences_slashed_symlink=no
25655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25658 # If the `ln -s' command failed, then we probably don't even
25659 # have an lstat function.
25660 ac_cv_func_lstat_dereferences_slashed_symlink=no
25662 rm -f conftest.sym conftest.file
25665 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25666 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
25668 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25670 cat >>confdefs.h <<_ACEOF
25671 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25675 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25677 "lstat.$ac_objext" | \
25678 *" lstat.$ac_objext" | \
25679 "lstat.$ac_objext "* | \
25680 *" lstat.$ac_objext "* ) ;;
25681 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25686 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25687 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
25688 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25691 cat >conftest.$ac_ext <<_ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h. */
25697 #include <sys/types.h>
25701 return makedev(0, 0);
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708 (eval $ac_link) 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest$ac_exeext'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_cv_header_sys_types_h_makedev=yes
25729 echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25732 ac_cv_header_sys_types_h_makedev=no
25734 rm -f conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
25738 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25739 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
25741 if test $ac_cv_header_sys_types_h_makedev = no; then
25742 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25743 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25744 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25745 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25749 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25751 # Is the header compilable?
25752 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25753 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
25754 cat >conftest.$ac_ext <<_ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h. */
25760 $ac_includes_default
25761 #include <sys/mkdev.h>
25763 rm -f conftest.$ac_objext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25765 (eval $ac_compile) 2>conftest.er1
25767 grep -v '^ *+' conftest.er1 >conftest.err
25769 cat conftest.err >&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
25772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 ac_header_compiler=yes
25786 echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25789 ac_header_compiler=no
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25793 echo "${ECHO_T}$ac_header_compiler" >&6
25795 # Is the header present?
25796 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25797 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25804 #include <sys/mkdev.h>
25806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25809 grep -v '^ *+' conftest.er1 >conftest.err
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } >/dev/null; then
25814 if test -s conftest.err; then
25815 ac_cpp_err=$ac_c_preproc_warn_flag
25816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25823 if test -z "$ac_cpp_err"; then
25824 ac_header_preproc=yes
25826 echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25829 ac_header_preproc=no
25831 rm -f conftest.err conftest.$ac_ext
25832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25833 echo "${ECHO_T}$ac_header_preproc" >&6
25835 # So? What about this header?
25836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25838 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25839 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25841 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25842 ac_header_preproc=yes
25845 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25846 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25848 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25850 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25851 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25852 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25853 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25854 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25856 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25859 ## ------------------------------- ##
25860 ## Report this to nfs@lists.sf.net ##
25861 ## ------------------------------- ##
25864 sed "s/^/$as_me: WARNING: /" >&2
25867 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25868 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25869 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25875 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25878 if test $ac_cv_header_sys_mkdev_h = yes; then
25880 cat >>confdefs.h <<\_ACEOF
25881 #define MAJOR_IN_MKDEV 1
25888 if test $ac_cv_header_sys_mkdev_h = no; then
25889 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25890 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25891 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25892 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25893 echo $ECHO_N "(cached) $ECHO_C" >&6
25895 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25896 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25898 # Is the header compilable?
25899 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25900 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 $ac_includes_default
25908 #include <sys/sysmacros.h>
25910 rm -f conftest.$ac_objext
25911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25912 (eval $ac_compile) 2>conftest.er1
25914 grep -v '^ *+' conftest.er1 >conftest.err
25916 cat conftest.err >&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); } &&
25919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; } &&
25925 { ac_try='test -s conftest.$ac_objext'
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; }; then
25931 ac_header_compiler=yes
25933 echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25936 ac_header_compiler=no
25938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25940 echo "${ECHO_T}$ac_header_compiler" >&6
25942 # Is the header present?
25943 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25944 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 #include <sys/sysmacros.h>
25953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25956 grep -v '^ *+' conftest.er1 >conftest.err
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } >/dev/null; then
25961 if test -s conftest.err; then
25962 ac_cpp_err=$ac_c_preproc_warn_flag
25963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25970 if test -z "$ac_cpp_err"; then
25971 ac_header_preproc=yes
25973 echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25976 ac_header_preproc=no
25978 rm -f conftest.err conftest.$ac_ext
25979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25980 echo "${ECHO_T}$ac_header_preproc" >&6
25982 # So? What about this header?
25983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25985 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25986 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25987 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25988 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25989 ac_header_preproc=yes
25992 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25993 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25995 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25997 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25998 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25999 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26000 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26001 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26002 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26003 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26006 ## ------------------------------- ##
26007 ## Report this to nfs@lists.sf.net ##
26008 ## ------------------------------- ##
26011 sed "s/^/$as_me: WARNING: /" >&2
26014 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26015 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
26016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26019 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26021 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26022 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
26025 if test $ac_cv_header_sys_sysmacros_h = yes; then
26027 cat >>confdefs.h <<\_ACEOF
26028 #define MAJOR_IN_SYSMACROS 1
26038 echo "$as_me:$LINENO: checking for working memcmp" >&5
26039 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
26040 if test "${ac_cv_func_memcmp_working+set}" = set; then
26041 echo $ECHO_N "(cached) $ECHO_C" >&6
26043 if test "$cross_compiling" = yes; then
26044 ac_cv_func_memcmp_working=no
26046 cat >conftest.$ac_ext <<_ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 $ac_includes_default
26057 /* Some versions of memcmp are not 8-bit clean. */
26058 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
26059 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26062 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26063 or more and with at least one buffer not starting on a 4-byte boundary.
26064 William Lewis provided this test program. */
26069 for (i = 0; i < 4; i++)
26073 strcpy (a, "--------01111111");
26074 strcpy (b, "--------10000000");
26075 if (memcmp (a, b, 16) >= 0)
26085 rm -f conftest$ac_exeext
26086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26087 (eval $ac_link) 2>&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092 (eval $ac_try) 2>&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; }; then
26096 ac_cv_func_memcmp_working=yes
26098 echo "$as_me: program exited with status $ac_status" >&5
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26102 ( exit $ac_status )
26103 ac_cv_func_memcmp_working=no
26105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26108 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26109 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
26110 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
26111 "memcmp.$ac_objext" | \
26112 *" memcmp.$ac_objext" | \
26113 "memcmp.$ac_objext "* | \
26114 *" memcmp.$ac_objext "* ) ;;
26115 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
26122 for ac_header in sys/select.h sys/socket.h
26124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126 echo "$as_me:$LINENO: checking for $ac_header" >&5
26127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26134 # Is the header compilable?
26135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 $ac_includes_default
26144 #include <$ac_header>
26146 rm -f conftest.$ac_objext
26147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148 (eval $ac_compile) 2>conftest.er1
26150 grep -v '^ *+' conftest.er1 >conftest.err
26152 cat conftest.err >&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } &&
26155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157 (eval $ac_try) 2>&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; } &&
26161 { ac_try='test -s conftest.$ac_objext'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; }; then
26167 ac_header_compiler=yes
26169 echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26172 ac_header_compiler=no
26174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26176 echo "${ECHO_T}$ac_header_compiler" >&6
26178 # Is the header present?
26179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 #include <$ac_header>
26189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } >/dev/null; then
26197 if test -s conftest.err; then
26198 ac_cpp_err=$ac_c_preproc_warn_flag
26199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26206 if test -z "$ac_cpp_err"; then
26207 ac_header_preproc=yes
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26212 ac_header_preproc=no
26214 rm -f conftest.err conftest.$ac_ext
26215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26216 echo "${ECHO_T}$ac_header_preproc" >&6
26218 # So? What about this header?
26219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26225 ac_header_preproc=yes
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26242 ## ------------------------------- ##
26243 ## Report this to nfs@lists.sf.net ##
26244 ## ------------------------------- ##
26247 sed "s/^/$as_me: WARNING: /" >&2
26250 echo "$as_me:$LINENO: checking for $ac_header" >&5
26251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
26255 eval "$as_ac_Header=\$ac_header_preproc"
26257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26262 cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26270 echo "$as_me:$LINENO: checking types of arguments for select" >&5
26271 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
26272 if test "${ac_cv_func_select_args+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26276 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
26277 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 $ac_includes_default
26285 #if HAVE_SYS_SELECT_H
26286 # include <sys/select.h>
26288 #if HAVE_SYS_SOCKET_H
26289 # include <sys/socket.h>
26295 extern int select ($ac_arg1,
26296 $ac_arg234, $ac_arg234, $ac_arg234,
26302 rm -f conftest.$ac_objext
26303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26304 (eval $ac_compile) 2>conftest.er1
26306 grep -v '^ *+' conftest.er1 >conftest.err
26308 cat conftest.err >&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } &&
26311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; } &&
26317 { ac_try='test -s conftest.$ac_objext'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26333 # Provide a safe default value.
26334 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26337 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26338 echo "${ECHO_T}$ac_cv_func_select_args" >&6
26339 ac_save_IFS=$IFS; IFS=','
26340 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26344 cat >>confdefs.h <<_ACEOF
26345 #define SELECT_TYPE_ARG1 $1
26349 cat >>confdefs.h <<_ACEOF
26350 #define SELECT_TYPE_ARG234 ($2)
26354 cat >>confdefs.h <<_ACEOF
26355 #define SELECT_TYPE_ARG5 ($3)
26360 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26362 if test "${ac_cv_type_signal+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <sys/types.h>
26372 #include <signal.h>
26377 extern "C" void (*signal (int, void (*)(int)))(int);
26379 void (*signal ()) ();
26390 rm -f conftest.$ac_objext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26392 (eval $ac_compile) 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } &&
26399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest.$ac_objext'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 ac_cv_type_signal=void
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_cv_type_signal=int
26418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26420 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26421 echo "${ECHO_T}$ac_cv_type_signal" >&6
26423 cat >>confdefs.h <<_ACEOF
26424 #define RETSIGTYPE $ac_cv_type_signal
26428 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26429 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
26430 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 if test "$cross_compiling" = yes; then
26434 ac_cv_func_stat_empty_string_bug=yes
26436 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 $ac_includes_default
26447 exit (stat ("", &sbuf) ? 1 : 0);
26452 rm -f conftest$ac_exeext
26453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26454 (eval $ac_link) 2>&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459 (eval $ac_try) 2>&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); }; }; then
26463 ac_cv_func_stat_empty_string_bug=yes
26465 echo "$as_me: program exited with status $ac_status" >&5
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 ( exit $ac_status )
26470 ac_cv_func_stat_empty_string_bug=no
26472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26475 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26476 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
26477 if test $ac_cv_func_stat_empty_string_bug = yes; then
26479 "stat.$ac_objext" | \
26480 *" stat.$ac_objext" | \
26481 "stat.$ac_objext "* | \
26482 *" stat.$ac_objext "* ) ;;
26483 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
26487 cat >>confdefs.h <<_ACEOF
26488 #define HAVE_STAT_EMPTY_STRING_BUG 1
26494 for ac_func in vprintf
26496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26497 echo "$as_me:$LINENO: checking for $ac_func" >&5
26498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_var+set}\" = set"; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26510 #define $ac_func innocuous_$ac_func
26512 /* System header to define __stub macros and hopefully few prototypes,
26513 which can conflict with char $ac_func (); below.
26514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515 <limits.h> exists even on freestanding compilers. */
26518 # include <limits.h>
26520 # include <assert.h>
26525 /* Override any gcc2 internal prototype to avoid an error. */
26530 /* We use char because int might match the return type of a gcc2
26531 builtin and then its argument prototype would still apply. */
26533 /* The GNU C library defines this for functions which it implements
26534 to always fail with ENOSYS. Some functions are actually named
26535 something starting with __ and the normal name is an alias. */
26536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26539 char (*f) () = $ac_func;
26548 return f != $ac_func;
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>conftest.er1
26557 grep -v '^ *+' conftest.er1 >conftest.err
26559 cat conftest.err >&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } &&
26562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; } &&
26568 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26574 eval "$as_ac_var=yes"
26576 echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26579 eval "$as_ac_var=no"
26581 rm -f conftest.err conftest.$ac_objext \
26582 conftest$ac_exeext conftest.$ac_ext
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26586 if test `eval echo '${'$as_ac_var'}'` = yes; then
26587 cat >>confdefs.h <<_ACEOF
26588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26591 echo "$as_me:$LINENO: checking for _doprnt" >&5
26592 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26593 if test "${ac_cv_func__doprnt+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 cat >conftest.$ac_ext <<_ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h. */
26602 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26604 #define _doprnt innocuous__doprnt
26606 /* System header to define __stub macros and hopefully few prototypes,
26607 which can conflict with char _doprnt (); below.
26608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26609 <limits.h> exists even on freestanding compilers. */
26612 # include <limits.h>
26614 # include <assert.h>
26619 /* Override any gcc2 internal prototype to avoid an error. */
26624 /* We use char because int might match the return type of a gcc2
26625 builtin and then its argument prototype would still apply. */
26627 /* The GNU C library defines this for functions which it implements
26628 to always fail with ENOSYS. Some functions are actually named
26629 something starting with __ and the normal name is an alias. */
26630 #if defined (__stub__doprnt) || defined (__stub____doprnt)
26633 char (*f) () = _doprnt;
26642 return f != _doprnt;
26647 rm -f conftest.$ac_objext conftest$ac_exeext
26648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26649 (eval $ac_link) 2>conftest.er1
26651 grep -v '^ *+' conftest.er1 >conftest.err
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } &&
26656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658 (eval $ac_try) 2>&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; } &&
26662 { ac_try='test -s conftest$ac_exeext'
26663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664 (eval $ac_try) 2>&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; }; then
26668 ac_cv_func__doprnt=yes
26670 echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26673 ac_cv_func__doprnt=no
26675 rm -f conftest.err conftest.$ac_objext \
26676 conftest$ac_exeext conftest.$ac_ext
26678 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26679 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26680 if test $ac_cv_func__doprnt = yes; then
26682 cat >>confdefs.h <<\_ACEOF
26683 #define HAVE_DOPRNT 1
26719 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26720 gethostbyaddr gethostbyname gethostname getmntent \
26721 gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
26722 realpath rmdir select socket strcasecmp strchr strdup \
26723 strerror strrchr strtol strtoul
26725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26726 echo "$as_me:$LINENO: checking for $ac_func" >&5
26727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26728 if eval "test \"\${$as_ac_var+set}\" = set"; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26739 #define $ac_func innocuous_$ac_func
26741 /* System header to define __stub macros and hopefully few prototypes,
26742 which can conflict with char $ac_func (); below.
26743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744 <limits.h> exists even on freestanding compilers. */
26747 # include <limits.h>
26749 # include <assert.h>
26754 /* Override any gcc2 internal prototype to avoid an error. */
26759 /* We use char because int might match the return type of a gcc2
26760 builtin and then its argument prototype would still apply. */
26762 /* The GNU C library defines this for functions which it implements
26763 to always fail with ENOSYS. Some functions are actually named
26764 something starting with __ and the normal name is an alias. */
26765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26768 char (*f) () = $ac_func;
26777 return f != $ac_func;
26782 rm -f conftest.$ac_objext conftest$ac_exeext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26784 (eval $ac_link) 2>conftest.er1
26786 grep -v '^ *+' conftest.er1 >conftest.err
26788 cat conftest.err >&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
26791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; } &&
26797 { ac_try='test -s conftest$ac_exeext'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; }; then
26803 eval "$as_ac_var=yes"
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 eval "$as_ac_var=no"
26810 rm -f conftest.err conftest.$ac_objext \
26811 conftest$ac_exeext conftest.$ac_ext
26813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26815 if test `eval echo '${'$as_ac_var'}'` = yes; then
26816 cat >>confdefs.h <<_ACEOF
26817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26825 echo "$as_me:$LINENO: checking for short" >&5
26826 echo $ECHO_N "checking for short... $ECHO_C" >&6
26827 if test "${ac_cv_type_short+set}" = set; then
26828 echo $ECHO_N "(cached) $ECHO_C" >&6
26830 cat >conftest.$ac_ext <<_ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26836 $ac_includes_default
26842 if (sizeof (short))
26848 rm -f conftest.$ac_objext
26849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26850 (eval $ac_compile) 2>conftest.er1
26852 grep -v '^ *+' conftest.er1 >conftest.err
26854 cat conftest.err >&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } &&
26857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; } &&
26863 { ac_try='test -s conftest.$ac_objext'
26864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865 (eval $ac_try) 2>&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; }; then
26869 ac_cv_type_short=yes
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 ac_cv_type_short=no
26876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26878 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26879 echo "${ECHO_T}$ac_cv_type_short" >&6
26881 echo "$as_me:$LINENO: checking size of short" >&5
26882 echo $ECHO_N "checking size of short... $ECHO_C" >&6
26883 if test "${ac_cv_sizeof_short+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 if test "$ac_cv_type_short" = yes; then
26887 # The cast to unsigned long works around a bug in the HP C Compiler
26888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26890 # This bug is HP SR number 8606223364.
26891 if test "$cross_compiling" = yes; then
26892 # Depending upon the size, compute the lo and hi bounds.
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 $ac_includes_default
26903 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
26910 rm -f conftest.$ac_objext
26911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26912 (eval $ac_compile) 2>conftest.er1
26914 grep -v '^ *+' conftest.er1 >conftest.err
26916 cat conftest.err >&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); } &&
26919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } &&
26925 { ac_try='test -s conftest.$ac_objext'
26926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927 (eval $ac_try) 2>&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); }; }; then
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 $ac_includes_default
26943 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26950 rm -f conftest.$ac_objext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26952 (eval $ac_compile) 2>conftest.er1
26954 grep -v '^ *+' conftest.er1 >conftest.err
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } &&
26959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; } &&
26965 { ac_try='test -s conftest.$ac_objext'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; }; then
26971 ac_hi=$ac_mid; break
26973 echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26976 ac_lo=`expr $ac_mid + 1`
26977 if test $ac_lo -le $ac_mid; then
26981 ac_mid=`expr 2 '*' $ac_mid + 1`
26983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 cat >conftest.$ac_ext <<_ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h. */
26995 $ac_includes_default
26999 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27006 rm -f conftest.$ac_objext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008 (eval $ac_compile) 2>conftest.er1
27010 grep -v '^ *+' conftest.er1 >conftest.err
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } &&
27015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 $ac_includes_default
27039 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27046 rm -f conftest.$ac_objext
27047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27048 (eval $ac_compile) 2>conftest.er1
27050 grep -v '^ *+' conftest.er1 >conftest.err
27052 cat conftest.err >&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } &&
27055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; } &&
27061 { ac_try='test -s conftest.$ac_objext'
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_lo=$ac_mid; break
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27072 ac_hi=`expr '(' $ac_mid ')' - 1`
27073 if test $ac_mid -le $ac_hi; then
27077 ac_mid=`expr 2 '*' $ac_mid`
27079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27082 echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27090 # Binary search between lo and hi bounds.
27091 while test "x$ac_lo" != "x$ac_hi"; do
27092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27099 $ac_includes_default
27103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27110 rm -f conftest.$ac_objext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27112 (eval $ac_compile) 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest.$ac_objext'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; }; then
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 ac_lo=`expr '(' $ac_mid ')' + 1`
27138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27141 ?*) ac_cv_sizeof_short=$ac_lo;;
27142 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27143 See \`config.log' for more details." >&5
27144 echo "$as_me: error: cannot compute sizeof (short), 77
27145 See \`config.log' for more details." >&2;}
27146 { (exit 1); exit 1; }; } ;;
27149 if test "$cross_compiling" = yes; then
27150 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27151 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27152 { (exit 1); exit 1; }; }
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 $ac_includes_default
27161 long longval () { return (long) (sizeof (short)); }
27162 unsigned long ulongval () { return (long) (sizeof (short)); }
27164 #include <stdlib.h>
27169 FILE *f = fopen ("conftest.val", "w");
27172 if (((long) (sizeof (short))) < 0)
27174 long i = longval ();
27175 if (i != ((long) (sizeof (short))))
27177 fprintf (f, "%ld\n", i);
27181 unsigned long i = ulongval ();
27182 if (i != ((long) (sizeof (short))))
27184 fprintf (f, "%lu\n", i);
27186 exit (ferror (f) || fclose (f) != 0);
27192 rm -f conftest$ac_exeext
27193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27194 (eval $ac_link) 2>&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 ac_cv_sizeof_short=`cat conftest.val`
27205 echo "$as_me: program exited with status $ac_status" >&5
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 ( exit $ac_status )
27210 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27211 See \`config.log' for more details." >&5
27212 echo "$as_me: error: cannot compute sizeof (short), 77
27213 See \`config.log' for more details." >&2;}
27214 { (exit 1); exit 1; }; }
27216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27221 ac_cv_sizeof_short=0
27224 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27225 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27226 cat >>confdefs.h <<_ACEOF
27227 #define SIZEOF_SHORT $ac_cv_sizeof_short
27231 echo "$as_me:$LINENO: checking for int" >&5
27232 echo $ECHO_N "checking for int... $ECHO_C" >&6
27233 if test "${ac_cv_type_int+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27242 $ac_includes_default
27254 rm -f conftest.$ac_objext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27256 (eval $ac_compile) 2>conftest.er1
27258 grep -v '^ *+' conftest.er1 >conftest.err
27260 cat conftest.err >&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
27263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; } &&
27269 { ac_try='test -s conftest.$ac_objext'
27270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271 (eval $ac_try) 2>&5
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; }; then
27277 echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27284 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27285 echo "${ECHO_T}$ac_cv_type_int" >&6
27287 echo "$as_me:$LINENO: checking size of int" >&5
27288 echo $ECHO_N "checking size of int... $ECHO_C" >&6
27289 if test "${ac_cv_sizeof_int+set}" = set; then
27290 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 if test "$ac_cv_type_int" = yes; then
27293 # The cast to unsigned long works around a bug in the HP C Compiler
27294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27296 # This bug is HP SR number 8606223364.
27297 if test "$cross_compiling" = yes; then
27298 # Depending upon the size, compute the lo and hi bounds.
27299 cat >conftest.$ac_ext <<_ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27309 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318 (eval $ac_compile) 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 $ac_includes_default
27349 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27356 rm -f conftest.$ac_objext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27358 (eval $ac_compile) 2>conftest.er1
27360 grep -v '^ *+' conftest.er1 >conftest.err
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; } &&
27371 { ac_try='test -s conftest.$ac_objext'
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; }; then
27377 ac_hi=$ac_mid; break
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27382 ac_lo=`expr $ac_mid + 1`
27383 if test $ac_lo -le $ac_mid; then
27387 ac_mid=`expr 2 '*' $ac_mid + 1`
27389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27392 echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27401 $ac_includes_default
27405 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
27412 rm -f conftest.$ac_objext
27413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414 (eval $ac_compile) 2>conftest.er1
27416 grep -v '^ *+' conftest.er1 >conftest.err
27418 cat conftest.err >&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); } &&
27421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423 (eval $ac_try) 2>&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; } &&
27427 { ac_try='test -s conftest.$ac_objext'
27428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429 (eval $ac_try) 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; }; then
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 $ac_includes_default
27445 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
27452 rm -f conftest.$ac_objext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27454 (eval $ac_compile) 2>conftest.er1
27456 grep -v '^ *+' conftest.er1 >conftest.err
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; } &&
27467 { ac_try='test -s conftest.$ac_objext'
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; }; then
27473 ac_lo=$ac_mid; break
27475 echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27478 ac_hi=`expr '(' $ac_mid ')' - 1`
27479 if test $ac_mid -le $ac_hi; then
27483 ac_mid=`expr 2 '*' $ac_mid`
27485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27496 # Binary search between lo and hi bounds.
27497 while test "x$ac_lo" != "x$ac_hi"; do
27498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27499 cat >conftest.$ac_ext <<_ACEOF
27502 cat confdefs.h >>conftest.$ac_ext
27503 cat >>conftest.$ac_ext <<_ACEOF
27504 /* end confdefs.h. */
27505 $ac_includes_default
27509 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; } &&
27531 { ac_try='test -s conftest.$ac_objext'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; }; then
27539 echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27542 ac_lo=`expr '(' $ac_mid ')' + 1`
27544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27547 ?*) ac_cv_sizeof_int=$ac_lo;;
27548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27549 See \`config.log' for more details." >&5
27550 echo "$as_me: error: cannot compute sizeof (int), 77
27551 See \`config.log' for more details." >&2;}
27552 { (exit 1); exit 1; }; } ;;
27555 if test "$cross_compiling" = yes; then
27556 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27557 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27558 { (exit 1); exit 1; }; }
27560 cat >conftest.$ac_ext <<_ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566 $ac_includes_default
27567 long longval () { return (long) (sizeof (int)); }
27568 unsigned long ulongval () { return (long) (sizeof (int)); }
27570 #include <stdlib.h>
27575 FILE *f = fopen ("conftest.val", "w");
27578 if (((long) (sizeof (int))) < 0)
27580 long i = longval ();
27581 if (i != ((long) (sizeof (int))))
27583 fprintf (f, "%ld\n", i);
27587 unsigned long i = ulongval ();
27588 if (i != ((long) (sizeof (int))))
27590 fprintf (f, "%lu\n", i);
27592 exit (ferror (f) || fclose (f) != 0);
27598 rm -f conftest$ac_exeext
27599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27600 (eval $ac_link) 2>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 ac_cv_sizeof_int=`cat conftest.val`
27611 echo "$as_me: program exited with status $ac_status" >&5
27612 echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27615 ( exit $ac_status )
27616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27617 See \`config.log' for more details." >&5
27618 echo "$as_me: error: cannot compute sizeof (int), 77
27619 See \`config.log' for more details." >&2;}
27620 { (exit 1); exit 1; }; }
27622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27632 cat >>confdefs.h <<_ACEOF
27633 #define SIZEOF_INT $ac_cv_sizeof_int
27637 echo "$as_me:$LINENO: checking for long" >&5
27638 echo $ECHO_N "checking for long... $ECHO_C" >&6
27639 if test "${ac_cv_type_long+set}" = set; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 cat >conftest.$ac_ext <<_ACEOF
27645 cat confdefs.h >>conftest.$ac_ext
27646 cat >>conftest.$ac_ext <<_ACEOF
27647 /* end confdefs.h. */
27648 $ac_includes_default
27660 rm -f conftest.$ac_objext
27661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27662 (eval $ac_compile) 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
27669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest.$ac_objext'
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681 ac_cv_type_long=yes
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27690 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27691 echo "${ECHO_T}$ac_cv_type_long" >&6
27693 echo "$as_me:$LINENO: checking size of long" >&5
27694 echo $ECHO_N "checking size of long... $ECHO_C" >&6
27695 if test "${ac_cv_sizeof_long+set}" = set; then
27696 echo $ECHO_N "(cached) $ECHO_C" >&6
27698 if test "$ac_cv_type_long" = yes; then
27699 # The cast to unsigned long works around a bug in the HP C Compiler
27700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27702 # This bug is HP SR number 8606223364.
27703 if test "$cross_compiling" = yes; then
27704 # Depending upon the size, compute the lo and hi bounds.
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 $ac_includes_default
27715 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27722 rm -f conftest.$ac_objext
27723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27724 (eval $ac_compile) 2>conftest.er1
27726 grep -v '^ *+' conftest.er1 >conftest.err
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } &&
27731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest.$ac_objext'
27738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27751 $ac_includes_default
27755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27762 rm -f conftest.$ac_objext
27763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27764 (eval $ac_compile) 2>conftest.er1
27766 grep -v '^ *+' conftest.er1 >conftest.err
27768 cat conftest.err >&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
27771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest.$ac_objext'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 ac_hi=$ac_mid; break
27785 echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27788 ac_lo=`expr $ac_mid + 1`
27789 if test $ac_lo -le $ac_mid; then
27793 ac_mid=`expr 2 '*' $ac_mid + 1`
27795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 cat >conftest.$ac_ext <<_ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27807 $ac_includes_default
27811 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27818 rm -f conftest.$ac_objext
27819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27820 (eval $ac_compile) 2>conftest.er1
27822 grep -v '^ *+' conftest.er1 >conftest.err
27824 cat conftest.err >&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } &&
27827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest.$ac_objext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27841 cat >conftest.$ac_ext <<_ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h. */
27847 $ac_includes_default
27851 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27858 rm -f conftest.$ac_objext
27859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27860 (eval $ac_compile) 2>conftest.er1
27862 grep -v '^ *+' conftest.er1 >conftest.err
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; } &&
27873 { ac_try='test -s conftest.$ac_objext'
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; }; then
27879 ac_lo=$ac_mid; break
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ac_hi=`expr '(' $ac_mid ')' - 1`
27885 if test $ac_mid -le $ac_hi; then
27889 ac_mid=`expr 2 '*' $ac_mid`
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27902 # Binary search between lo and hi bounds.
27903 while test "x$ac_lo" != "x$ac_hi"; do
27904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27905 cat >conftest.$ac_ext <<_ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27911 $ac_includes_default
27915 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27922 rm -f conftest.$ac_objext
27923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27924 (eval $ac_compile) 2>conftest.er1
27926 grep -v '^ *+' conftest.er1 >conftest.err
27928 cat conftest.err >&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } &&
27931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; } &&
27937 { ac_try='test -s conftest.$ac_objext'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 ac_lo=`expr '(' $ac_mid ')' + 1`
27950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27953 ?*) ac_cv_sizeof_long=$ac_lo;;
27954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27955 See \`config.log' for more details." >&5
27956 echo "$as_me: error: cannot compute sizeof (long), 77
27957 See \`config.log' for more details." >&2;}
27958 { (exit 1); exit 1; }; } ;;
27961 if test "$cross_compiling" = yes; then
27962 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27964 { (exit 1); exit 1; }; }
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27972 $ac_includes_default
27973 long longval () { return (long) (sizeof (long)); }
27974 unsigned long ulongval () { return (long) (sizeof (long)); }
27976 #include <stdlib.h>
27981 FILE *f = fopen ("conftest.val", "w");
27984 if (((long) (sizeof (long))) < 0)
27986 long i = longval ();
27987 if (i != ((long) (sizeof (long))))
27989 fprintf (f, "%ld\n", i);
27993 unsigned long i = ulongval ();
27994 if (i != ((long) (sizeof (long))))
27996 fprintf (f, "%lu\n", i);
27998 exit (ferror (f) || fclose (f) != 0);
28004 rm -f conftest$ac_exeext
28005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006 (eval $ac_link) 2>&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28011 (eval $ac_try) 2>&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); }; }; then
28015 ac_cv_sizeof_long=`cat conftest.val`
28017 echo "$as_me: program exited with status $ac_status" >&5
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 ( exit $ac_status )
28022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28023 See \`config.log' for more details." >&5
28024 echo "$as_me: error: cannot compute sizeof (long), 77
28025 See \`config.log' for more details." >&2;}
28026 { (exit 1); exit 1; }; }
28028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28033 ac_cv_sizeof_long=0
28036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28037 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28038 cat >>confdefs.h <<_ACEOF
28039 #define SIZEOF_LONG $ac_cv_sizeof_long
28043 echo "$as_me:$LINENO: checking for size_t" >&5
28044 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28045 if test "${ac_cv_type_size_t+set}" = set; then
28046 echo $ECHO_N "(cached) $ECHO_C" >&6
28048 cat >conftest.$ac_ext <<_ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h. */
28054 $ac_includes_default
28060 if (sizeof (size_t))
28066 rm -f conftest.$ac_objext
28067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28068 (eval $ac_compile) 2>conftest.er1
28070 grep -v '^ *+' conftest.er1 >conftest.err
28072 cat conftest.err >&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); } &&
28075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077 (eval $ac_try) 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; } &&
28081 { ac_try='test -s conftest.$ac_objext'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; }; then
28087 ac_cv_type_size_t=yes
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28092 ac_cv_type_size_t=no
28094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28096 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28097 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28099 echo "$as_me:$LINENO: checking size of size_t" >&5
28100 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
28101 if test "${ac_cv_sizeof_size_t+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28104 if test "$ac_cv_type_size_t" = yes; then
28105 # The cast to unsigned long works around a bug in the HP C Compiler
28106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28108 # This bug is HP SR number 8606223364.
28109 if test "$cross_compiling" = yes; then
28110 # Depending upon the size, compute the lo and hi bounds.
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28117 $ac_includes_default
28121 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
28128 rm -f conftest.$ac_objext
28129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28130 (eval $ac_compile) 2>conftest.er1
28132 grep -v '^ *+' conftest.er1 >conftest.err
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
28137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest.$ac_objext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 $ac_includes_default
28161 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28168 rm -f conftest.$ac_objext
28169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28170 (eval $ac_compile) 2>conftest.er1
28172 grep -v '^ *+' conftest.er1 >conftest.err
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } &&
28177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; } &&
28183 { ac_try='test -s conftest.$ac_objext'
28184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185 (eval $ac_try) 2>&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; }; then
28189 ac_hi=$ac_mid; break
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28194 ac_lo=`expr $ac_mid + 1`
28195 if test $ac_lo -le $ac_mid; then
28199 ac_mid=`expr 2 '*' $ac_mid + 1`
28201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28204 echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28207 cat >conftest.$ac_ext <<_ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h. */
28213 $ac_includes_default
28217 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
28224 rm -f conftest.$ac_objext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28226 (eval $ac_compile) 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; } &&
28239 { ac_try='test -s conftest.$ac_objext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28247 cat >conftest.$ac_ext <<_ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28253 $ac_includes_default
28257 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266 (eval $ac_compile) 2>conftest.er1
28268 grep -v '^ *+' conftest.er1 >conftest.err
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_lo=$ac_mid; break
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ac_hi=`expr '(' $ac_mid ')' - 1`
28291 if test $ac_mid -le $ac_hi; then
28295 ac_mid=`expr 2 '*' $ac_mid`
28297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28308 # Binary search between lo and hi bounds.
28309 while test "x$ac_lo" != "x$ac_hi"; do
28310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28311 cat >conftest.$ac_ext <<_ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h. */
28317 $ac_includes_default
28321 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28328 rm -f conftest.$ac_objext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28330 (eval $ac_compile) 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
28337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; } &&
28343 { ac_try='test -s conftest.$ac_objext'
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28351 echo "$as_me: failed program was:" >&5
28352 sed 's/^/| /' conftest.$ac_ext >&5
28354 ac_lo=`expr '(' $ac_mid ')' + 1`
28356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28359 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28361 See \`config.log' for more details." >&5
28362 echo "$as_me: error: cannot compute sizeof (size_t), 77
28363 See \`config.log' for more details." >&2;}
28364 { (exit 1); exit 1; }; } ;;
28367 if test "$cross_compiling" = yes; then
28368 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28369 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28370 { (exit 1); exit 1; }; }
28372 cat >conftest.$ac_ext <<_ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 $ac_includes_default
28379 long longval () { return (long) (sizeof (size_t)); }
28380 unsigned long ulongval () { return (long) (sizeof (size_t)); }
28382 #include <stdlib.h>
28387 FILE *f = fopen ("conftest.val", "w");
28390 if (((long) (sizeof (size_t))) < 0)
28392 long i = longval ();
28393 if (i != ((long) (sizeof (size_t))))
28395 fprintf (f, "%ld\n", i);
28399 unsigned long i = ulongval ();
28400 if (i != ((long) (sizeof (size_t))))
28402 fprintf (f, "%lu\n", i);
28404 exit (ferror (f) || fclose (f) != 0);
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412 (eval $ac_link) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 ac_cv_sizeof_size_t=`cat conftest.val`
28423 echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ( exit $ac_status )
28428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28429 See \`config.log' for more details." >&5
28430 echo "$as_me: error: cannot compute sizeof (size_t), 77
28431 See \`config.log' for more details." >&2;}
28432 { (exit 1); exit 1; }; }
28434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28439 ac_cv_sizeof_size_t=0
28442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28443 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
28444 cat >>confdefs.h <<_ACEOF
28445 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28451 cat >>confdefs.h <<_ACEOF
28452 #define NFS_STATEDIR "$statedir"
28456 if test "x$cross_compiling" = "xno"; then
28457 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28458 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28459 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28460 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28462 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28463 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28464 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28465 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28480 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28485 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28487 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28489 AM_CFLAGS="$my_am_cflags"
28492 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28493 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28496 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 utils/svcgssd/Makefile"
28498 cat >confcache <<\_ACEOF
28499 # This file is a shell script that caches the results of configure
28500 # tests run on this system so they can be shared between configure
28501 # scripts and configure runs, see configure's option --config-cache.
28502 # It is not useful on other systems. If it contains results you don't
28503 # want to keep, you may remove or edit it.
28505 # config.status only pays attention to the cache file if you give it
28506 # the --recheck option to rerun configure.
28508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28510 # following values.
28514 # The following way of writing the cache mishandles newlines in values,
28515 # but we know of no workaround that is simple, portable, and efficient.
28516 # So, don't put newlines in cache variables' values.
28517 # Ultrix sh set writes to stderr and can't be redirected directly,
28518 # and sets the high bit in the cache file unless we assign to the vars.
28521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28523 # `set' does not quote correctly, so add quotes (double-quote
28524 # substitution turns \\\\ into \\, and sed turns \\ into \).
28527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28530 # `set' quotes correctly as required by POSIX, so do not add quotes.
28532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28543 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28544 if test -w $cache_file; then
28545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28546 cat confcache >$cache_file
28548 echo "not updating unwritable cache $cache_file"
28553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28554 # Let make expand exec_prefix.
28555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28559 # trailing colons and then remove the whole line if VPATH becomes empty
28560 # (actually we leave an empty line to preserve line numbers).
28561 if test "x$srcdir" = x.; then
28562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28563 s/:*\$(srcdir):*/:/;
28564 s/:*\${srcdir}:*/:/;
28566 s/^\([^=]*=[ ]*\):*/\1/;
28572 DEFS=-DHAVE_CONFIG_H
28576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28577 # 1. Remove the extension, and $U if already installed.
28578 ac_i=`echo "$ac_i" |
28579 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28581 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28582 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28584 LIBOBJS=$ac_libobjs
28586 LTLIBOBJS=$ac_ltlibobjs
28589 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28590 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28591 Usually this means the macro was only invoked conditionally." >&5
28592 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28593 Usually this means the macro was only invoked conditionally." >&2;}
28594 { (exit 1); exit 1; }; }
28596 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28597 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28598 Usually this means the macro was only invoked conditionally." >&5
28599 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28600 Usually this means the macro was only invoked conditionally." >&2;}
28601 { (exit 1); exit 1; }; }
28603 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28604 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28605 Usually this means the macro was only invoked conditionally." >&5
28606 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28607 Usually this means the macro was only invoked conditionally." >&2;}
28608 { (exit 1); exit 1; }; }
28610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28611 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28612 Usually this means the macro was only invoked conditionally." >&5
28613 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28614 Usually this means the macro was only invoked conditionally." >&2;}
28615 { (exit 1); exit 1; }; }
28617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28619 Usually this means the macro was only invoked conditionally." >&5
28620 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28621 Usually this means the macro was only invoked conditionally." >&2;}
28622 { (exit 1); exit 1; }; }
28624 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28625 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28626 Usually this means the macro was only invoked conditionally." >&5
28627 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28628 Usually this means the macro was only invoked conditionally." >&2;}
28629 { (exit 1); exit 1; }; }
28631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28632 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28633 Usually this means the macro was only invoked conditionally." >&5
28634 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28635 Usually this means the macro was only invoked conditionally." >&2;}
28636 { (exit 1); exit 1; }; }
28639 : ${CONFIG_STATUS=./config.status}
28640 ac_clean_files_save=$ac_clean_files
28641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28644 cat >$CONFIG_STATUS <<_ACEOF
28646 # Generated by $as_me.
28647 # Run this file to recreate the current configuration.
28648 # Compiler output produced by configure, useful for debugging
28649 # configure, is in config.log if it exists.
28652 ac_cs_recheck=false
28654 SHELL=\${CONFIG_SHELL-$SHELL}
28657 cat >>$CONFIG_STATUS <<\_ACEOF
28658 ## --------------------- ##
28659 ## M4sh Initialization. ##
28660 ## --------------------- ##
28662 # Be Bourne compatible
28663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28666 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28667 # is contrary to our usage. Disable this feature.
28668 alias -g '${1+"$@"}'='"$@"'
28669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28672 DUALCASE=1; export DUALCASE # for MKS sh
28674 # Support unset when possible.
28675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28682 # Work around bugs in pre-3.0 UWIN ksh.
28683 $as_unset ENV MAIL MAILPATH
28690 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28691 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28692 LC_TELEPHONE LC_TIME
28694 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28695 eval $as_var=C; export $as_var
28701 # Required to use basename.
28702 if expr a : '\(a\)' >/dev/null 2>&1; then
28708 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28709 as_basename=basename
28715 # Name of the executable.
28716 as_me=`$as_basename "$0" ||
28717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28718 X"$0" : 'X\(//\)$' \| \
28719 X"$0" : 'X\(/\)$' \| \
28720 . : '\(.\)' 2>/dev/null ||
28722 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28723 /^X\/\(\/\/\)$/{ s//\1/; q; }
28724 /^X\/\(\/\).*/{ s//\1/; q; }
28728 # PATH needs CR, and LINENO needs CR and PATH.
28729 # Avoid depending upon Character Ranges.
28730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28733 as_cr_digits='0123456789'
28734 as_cr_alnum=$as_cr_Letters$as_cr_digits
28736 # The user is always right.
28737 if test "${PATH_SEPARATOR+set}" != set; then
28738 echo "#! /bin/sh" >conf$$.sh
28739 echo "exit 0" >>conf$$.sh
28741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28750 as_lineno_1=$LINENO
28751 as_lineno_2=$LINENO
28752 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28753 test "x$as_lineno_1" != "x$as_lineno_2" &&
28754 test "x$as_lineno_3" = "x$as_lineno_2" || {
28755 # Find who we are. Look in the path if we contain no path at all
28758 *[\\/]* ) as_myself=$0 ;;
28759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28760 for as_dir in $PATH
28763 test -z "$as_dir" && as_dir=.
28764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28769 # We did not find ourselves, most probably we were run as `sh COMMAND'
28770 # in which case we are not to be found in the path.
28771 if test "x$as_myself" = x; then
28774 if test ! -f "$as_myself"; then
28775 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28776 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28777 { (exit 1); exit 1; }; }
28779 case $CONFIG_SHELL in
28781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28782 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28785 test -z "$as_dir" && as_dir=.
28786 for as_base in sh bash ksh sh5; do
28789 if ("$as_dir/$as_base" -c '
28790 as_lineno_1=$LINENO
28791 as_lineno_2=$LINENO
28792 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28793 test "x$as_lineno_1" != "x$as_lineno_2" &&
28794 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28795 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28796 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28797 CONFIG_SHELL=$as_dir/$as_base
28798 export CONFIG_SHELL
28799 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28807 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28808 # uniformly replaced by the line number. The first 'sed' inserts a
28809 # line-number line before each line; the second 'sed' does the real
28810 # work. The second script uses 'N' to pair each line-number line
28811 # with the numbered line, and appends trailing '-' during
28812 # substitution so that $LINENO is not a special case at line end.
28813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28814 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28815 sed '=' <$as_myself |
28820 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28823 s,^['$as_cr_digits']*\n,,
28824 ' >$as_me.lineno &&
28825 chmod +x $as_me.lineno ||
28826 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28827 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28828 { (exit 1); exit 1; }; }
28830 # Don't try to exec as it changes $[0], causing all sort of problems
28831 # (the dirname of $[0] is not the place where we might find the
28832 # original and so on. Autoconf is especially sensible to this).
28834 # Exit status is that of the last command.
28839 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28840 *c*,-n*) ECHO_N= ECHO_C='
28842 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28843 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28846 if expr a : '\(a\)' >/dev/null 2>&1; then
28852 rm -f conf$$ conf$$.exe conf$$.file
28854 if ln -s conf$$.file conf$$ 2>/dev/null; then
28855 # We could just check for DJGPP; but this test a) works b) is more generic
28856 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28857 if test -f conf$$.exe; then
28858 # Don't use ln at all; we don't have any links
28863 elif ln conf$$.file conf$$ 2>/dev/null; then
28868 rm -f conf$$ conf$$.exe conf$$.file
28870 if mkdir -p . 2>/dev/null; then
28873 test -d ./-p && rmdir ./-p
28877 as_executable_p="test -f"
28879 # Sed expression to map a string onto a valid CPP name.
28880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28882 # Sed expression to map a string onto a valid variable name.
28883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28887 # We need space, tab and new line, in precisely that order.
28897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28898 # report actual input values of CONFIG_FILES etc. instead of their
28899 # values after options handling. Logging --version etc. is OK.
28903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28904 ## Running $as_me. ##
28909 This file was extended by linux nfs-utils $as_me 1.0.8-rc2, which was
28910 generated by GNU Autoconf 2.59. Invocation command line was
28912 CONFIG_FILES = $CONFIG_FILES
28913 CONFIG_HEADERS = $CONFIG_HEADERS
28914 CONFIG_LINKS = $CONFIG_LINKS
28915 CONFIG_COMMANDS = $CONFIG_COMMANDS
28919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28923 # Files that config.status was made for.
28924 if test -n "$ac_config_files"; then
28925 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28928 if test -n "$ac_config_headers"; then
28929 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28932 if test -n "$ac_config_links"; then
28933 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28936 if test -n "$ac_config_commands"; then
28937 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28940 cat >>$CONFIG_STATUS <<\_ACEOF
28943 \`$as_me' instantiates files from templates according to the
28944 current configuration.
28946 Usage: $0 [OPTIONS] [FILE]...
28948 -h, --help print this help, then exit
28949 -V, --version print version number, then exit
28950 -q, --quiet do not print progress messages
28951 -d, --debug don't remove temporary files
28952 --recheck update $as_me by reconfiguring in the same conditions
28953 --file=FILE[:TEMPLATE]
28954 instantiate the configuration file FILE
28955 --header=FILE[:TEMPLATE]
28956 instantiate the configuration header FILE
28958 Configuration files:
28961 Configuration headers:
28964 Configuration commands:
28967 Report bugs to <bug-autoconf@gnu.org>."
28970 cat >>$CONFIG_STATUS <<_ACEOF
28972 linux nfs-utils config.status 1.0.8-rc2
28973 configured by $0, generated by GNU Autoconf 2.59,
28974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28976 Copyright (C) 2003 Free Software Foundation, Inc.
28977 This config.status script is free software; the Free Software Foundation
28978 gives unlimited permission to copy, distribute and modify it."
28983 cat >>$CONFIG_STATUS <<\_ACEOF
28984 # If no file are specified by the user, then we need to provide default
28985 # value. By we need to know if files were specified by the user.
28991 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28992 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29000 *) # This is not an option, so the user has probably given explicit
29003 ac_need_defaults=false;;
29007 # Handling of the options.
29009 cat >>$CONFIG_STATUS <<\_ACEOF
29010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29012 --version | --vers* | -V )
29013 echo "$ac_cs_version"; exit 0 ;;
29015 # Conflict between --help and --header
29016 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29017 Try \`$0 --help' for more information." >&5
29018 echo "$as_me: error: ambiguous option: $1
29019 Try \`$0 --help' for more information." >&2;}
29020 { (exit 1); exit 1; }; };;
29021 --help | --hel | -h )
29022 echo "$ac_cs_usage"; exit 0 ;;
29023 --debug | --d* | -d )
29025 --file | --fil | --fi | --f )
29027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29028 ac_need_defaults=false;;
29029 --header | --heade | --head | --hea )
29031 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29032 ac_need_defaults=false;;
29033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29037 # This is an error.
29038 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29039 Try \`$0 --help' for more information." >&5
29040 echo "$as_me: error: unrecognized option: $1
29041 Try \`$0 --help' for more information." >&2;}
29042 { (exit 1); exit 1; }; } ;;
29044 *) ac_config_targets="$ac_config_targets $1" ;;
29050 ac_configure_extra_args=
29052 if $ac_cs_silent; then
29054 ac_configure_extra_args="$ac_configure_extra_args --silent"
29058 cat >>$CONFIG_STATUS <<_ACEOF
29059 if \$ac_cs_recheck; then
29060 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29061 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29066 cat >>$CONFIG_STATUS <<_ACEOF
29068 # INIT-COMMANDS section.
29071 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29077 cat >>$CONFIG_STATUS <<\_ACEOF
29078 for ac_config_target in $ac_config_targets
29080 case "$ac_config_target" in
29081 # Handling of arguments.
29082 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29083 "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29084 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29085 "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29086 "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29087 "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29088 "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29089 "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29090 "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29091 "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29092 "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29093 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29094 "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29095 "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29096 "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29097 "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29098 "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29099 "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29100 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29101 "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29102 "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29103 "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29104 "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29105 "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29106 "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29107 "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29108 "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
29109 "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29110 "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29111 "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29112 "utils/svcgssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/svcgssd/Makefile" ;;
29113 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29114 "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29117 { (exit 1); exit 1; }; };;
29121 # If the user did not use the arguments to specify the items to instantiate,
29122 # then the envvar interface is used. Set only those that are not.
29123 # We use the long form for the default assignment because of an extremely
29124 # bizarre bug on SunOS 4.1.3.
29125 if $ac_need_defaults; then
29126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29131 # Have a temporary directory for convenience. Make it in the build tree
29132 # simply because there is no reason to put it here, and in addition,
29133 # creating and moving files from /tmp can sometimes cause problems.
29134 # Create a temporary directory, and hook for its removal unless debugging.
29137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29138 trap '{ (exit 1); exit 1; }' 1 2 13 15
29141 # Create a (secure) tmp directory for tmp files.
29144 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29145 test -n "$tmp" && test -d "$tmp"
29148 tmp=./confstat$$-$RANDOM
29149 (umask 077 && mkdir $tmp)
29152 echo "$me: cannot create a temporary directory in ." >&2
29153 { (exit 1); exit 1; }
29158 cat >>$CONFIG_STATUS <<_ACEOF
29161 # CONFIG_FILES section.
29164 # No need to generate the scripts if there are no CONFIG_FILES.
29165 # This happens for instance when ./config.status config.h
29166 if test -n "\$CONFIG_FILES"; then
29167 # Protect against being on the right side of a sed subst in config.status.
29168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29170 s,@SHELL@,$SHELL,;t t
29171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29177 s,@exec_prefix@,$exec_prefix,;t t
29178 s,@prefix@,$prefix,;t t
29179 s,@program_transform_name@,$program_transform_name,;t t
29180 s,@bindir@,$bindir,;t t
29181 s,@sbindir@,$sbindir,;t t
29182 s,@libexecdir@,$libexecdir,;t t
29183 s,@datadir@,$datadir,;t t
29184 s,@sysconfdir@,$sysconfdir,;t t
29185 s,@sharedstatedir@,$sharedstatedir,;t t
29186 s,@localstatedir@,$localstatedir,;t t
29187 s,@libdir@,$libdir,;t t
29188 s,@includedir@,$includedir,;t t
29189 s,@oldincludedir@,$oldincludedir,;t t
29190 s,@infodir@,$infodir,;t t
29191 s,@mandir@,$mandir,;t t
29192 s,@build_alias@,$build_alias,;t t
29193 s,@host_alias@,$host_alias,;t t
29194 s,@target_alias@,$target_alias,;t t
29195 s,@DEFS@,$DEFS,;t t
29196 s,@ECHO_C@,$ECHO_C,;t t
29197 s,@ECHO_N@,$ECHO_N,;t t
29198 s,@ECHO_T@,$ECHO_T,;t t
29199 s,@LIBS@,$LIBS,;t t
29200 s,@build@,$build,;t t
29201 s,@build_cpu@,$build_cpu,;t t
29202 s,@build_vendor@,$build_vendor,;t t
29203 s,@build_os@,$build_os,;t t
29204 s,@host@,$host,;t t
29205 s,@host_cpu@,$host_cpu,;t t
29206 s,@host_vendor@,$host_vendor,;t t
29207 s,@host_os@,$host_os,;t t
29208 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29209 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29210 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29211 s,@CYGPATH_W@,$CYGPATH_W,;t t
29212 s,@PACKAGE@,$PACKAGE,;t t
29213 s,@VERSION@,$VERSION,;t t
29214 s,@ACLOCAL@,$ACLOCAL,;t t
29215 s,@AUTOCONF@,$AUTOCONF,;t t
29216 s,@AUTOMAKE@,$AUTOMAKE,;t t
29217 s,@AUTOHEADER@,$AUTOHEADER,;t t
29218 s,@MAKEINFO@,$MAKEINFO,;t t
29219 s,@install_sh@,$install_sh,;t t
29220 s,@STRIP@,$STRIP,;t t
29221 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29222 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29223 s,@mkdir_p@,$mkdir_p,;t t
29225 s,@SET_MAKE@,$SET_MAKE,;t t
29226 s,@am__leading_dot@,$am__leading_dot,;t t
29227 s,@AMTAR@,$AMTAR,;t t
29228 s,@am__tar@,$am__tar,;t t
29229 s,@am__untar@,$am__untar,;t t
29230 s,@RELEASE@,$RELEASE,;t t
29231 s,@statedir@,$statedir,;t t
29232 s,@statduser@,$statduser,;t t
29233 s,@enable_nfsv3@,$enable_nfsv3,;t t
29234 s,@IDMAPD@,$IDMAPD,;t t
29235 s,@enable_nfsv4@,$enable_nfsv4,;t t
29236 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
29237 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
29238 s,@GSSD@,$GSSD,;t t
29239 s,@SVCGSSD@,$SVCGSSD,;t t
29240 s,@enable_gss@,$enable_gss,;t t
29241 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
29242 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
29243 s,@kprefix@,$kprefix,;t t
29244 s,@secure_statd@,$secure_statd,;t t
29245 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
29246 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
29248 s,@CFLAGS@,$CFLAGS,;t t
29249 s,@LDFLAGS@,$LDFLAGS,;t t
29250 s,@CPPFLAGS@,$CPPFLAGS,;t t
29251 s,@ac_ct_CC@,$ac_ct_CC,;t t
29252 s,@EXEEXT@,$EXEEXT,;t t
29253 s,@OBJEXT@,$OBJEXT,;t t
29254 s,@DEPDIR@,$DEPDIR,;t t
29255 s,@am__include@,$am__include,;t t
29256 s,@am__quote@,$am__quote,;t t
29257 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29258 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29259 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29260 s,@CCDEPMODE@,$CCDEPMODE,;t t
29261 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29262 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29263 s,@LIBWRAP@,$LIBWRAP,;t t
29265 s,@CXXFLAGS@,$CXXFLAGS,;t t
29266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29267 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29268 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29269 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29271 s,@LN_S@,$LN_S,;t t
29272 s,@EGREP@,$EGREP,;t t
29273 s,@ECHO@,$ECHO,;t t
29275 s,@ac_ct_AR@,$ac_ct_AR,;t t
29276 s,@RANLIB@,$RANLIB,;t t
29277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29278 s,@CXXCPP@,$CXXCPP,;t t
29280 s,@FFLAGS@,$FFLAGS,;t t
29281 s,@ac_ct_F77@,$ac_ct_F77,;t t
29282 s,@LIBTOOL@,$LIBTOOL,;t t
29283 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
29285 s,@ac_ct_LD@,$ac_ct_LD,;t t
29286 s,@LIBSOCKET@,$LIBSOCKET,;t t
29287 s,@LIBNSL@,$LIBNSL,;t t
29288 s,@LIBCRYPT@,$LIBCRYPT,;t t
29289 s,@LIBBSD@,$LIBBSD,;t t
29290 s,@KRBDIR@,$KRBDIR,;t t
29291 s,@KRBLIBS@,$KRBLIBS,;t t
29292 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
29293 s,@K5VERS@,$K5VERS,;t t
29294 s,@ALLOCA@,$ALLOCA,;t t
29295 s,@LIBOBJS@,$LIBOBJS,;t t
29296 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
29297 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
29298 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
29299 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
29300 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
29301 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
29302 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
29303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29308 cat >>$CONFIG_STATUS <<\_ACEOF
29309 # Split the substitutions into bite-sized pieces for seds with
29310 # small command number limits, like on Digital OSF/1 and HP-UX.
29311 ac_max_sed_lines=48
29312 ac_sed_frag=1 # Number of current file.
29313 ac_beg=1 # First line for current file.
29314 ac_end=$ac_max_sed_lines # Line after last line for current file.
29317 while $ac_more_lines; do
29318 if test $ac_beg -gt 1; then
29319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29323 if test ! -s $tmp/subs.frag; then
29324 ac_more_lines=false
29326 # The purpose of the label and of the branching condition is to
29327 # speed up the sed processing (if there are no `@' at all, there
29328 # is no need to browse any of the substitutions).
29329 # These are the two extra sed commands mentioned above.
29331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29332 if test -z "$ac_sed_cmds"; then
29333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29337 ac_sed_frag=`expr $ac_sed_frag + 1`
29339 ac_end=`expr $ac_end + $ac_max_sed_lines`
29342 if test -z "$ac_sed_cmds"; then
29345 fi # test -n "$CONFIG_FILES"
29348 cat >>$CONFIG_STATUS <<\_ACEOF
29349 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29352 - | *:- | *:-:* ) # input from stdin
29354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29358 * ) ac_file_in=$ac_file.in ;;
29361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29362 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29364 X"$ac_file" : 'X\(//\)[^/]' \| \
29365 X"$ac_file" : 'X\(//\)$' \| \
29366 X"$ac_file" : 'X\(/\)' \| \
29367 . : '\(.\)' 2>/dev/null ||
29369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29371 /^X\(\/\/\)$/{ s//\1/; q; }
29372 /^X\(\/\).*/{ s//\1/; q; }
29374 { if $as_mkdir_p; then
29379 while test ! -d "$as_dir"; do
29380 as_dirs="$as_dir $as_dirs"
29381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29383 X"$as_dir" : 'X\(//\)[^/]' \| \
29384 X"$as_dir" : 'X\(//\)$' \| \
29385 X"$as_dir" : 'X\(/\)' \| \
29386 . : '\(.\)' 2>/dev/null ||
29388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29390 /^X\(\/\/\)$/{ s//\1/; q; }
29391 /^X\(\/\).*/{ s//\1/; q; }
29394 test ! -n "$as_dirs" || mkdir $as_dirs
29395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29397 { (exit 1); exit 1; }; }; }
29401 if test "$ac_dir" != .; then
29402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29403 # A "../" for each directory in $ac_dir_suffix.
29404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29406 ac_dir_suffix= ac_top_builddir=
29410 .) # No --srcdir option. We are building in place.
29412 if test -z "$ac_top_builddir"; then
29415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29417 [\\/]* | ?:[\\/]* ) # Absolute path.
29418 ac_srcdir=$srcdir$ac_dir_suffix;
29419 ac_top_srcdir=$srcdir ;;
29420 *) # Relative path.
29421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29425 # Do not use `cd foo && pwd` to compute absolute paths, because
29426 # the directories may not exist.
29428 .) ac_abs_builddir="$ac_dir";;
29431 .) ac_abs_builddir=`pwd`;;
29432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29436 case $ac_abs_builddir in
29437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29439 case ${ac_top_builddir}. in
29440 .) ac_abs_top_builddir=$ac_abs_builddir;;
29441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29445 case $ac_abs_builddir in
29446 .) ac_abs_srcdir=$ac_srcdir;;
29449 .) ac_abs_srcdir=$ac_abs_builddir;;
29450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29454 case $ac_abs_builddir in
29455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29457 case $ac_top_srcdir in
29458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29467 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29470 # Let's still pretend it is `configure' which instantiates (i.e., don't
29471 # use $as_me), people would be surprised to read:
29472 # /* config.h. Generated by config.status. */
29473 if test x"$ac_file" = x-; then
29476 configure_input="$ac_file. "
29478 configure_input=$configure_input"Generated from `echo $ac_file_in |
29479 sed 's,.*/,,'` by configure."
29481 # First look for the input files in the build tree, otherwise in the
29483 ac_file_inputs=`IFS=:
29484 for f in $ac_file_in; do
29486 -) echo $tmp/stdin ;;
29488 # Absolute (can't be DOS-style, as IFS=:)
29489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29490 echo "$as_me: error: cannot find input file: $f" >&2;}
29491 { (exit 1); exit 1; }; }
29494 if test -f "$f"; then
29497 elif test -f "$srcdir/$f"; then
29502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29503 echo "$as_me: error: cannot find input file: $f" >&2;}
29504 { (exit 1); exit 1; }; }
29507 done` || { (exit 1); exit 1; }
29509 if test x"$ac_file" != x-; then
29510 { echo "$as_me:$LINENO: creating $ac_file" >&5
29511 echo "$as_me: creating $ac_file" >&6;}
29515 cat >>$CONFIG_STATUS <<_ACEOF
29519 cat >>$CONFIG_STATUS <<\_ACEOF
29521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29522 s,@configure_input@,$configure_input,;t t
29523 s,@srcdir@,$ac_srcdir,;t t
29524 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29525 s,@top_srcdir@,$ac_top_srcdir,;t t
29526 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29527 s,@builddir@,$ac_builddir,;t t
29528 s,@abs_builddir@,$ac_abs_builddir,;t t
29529 s,@top_builddir@,$ac_top_builddir,;t t
29530 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29531 s,@INSTALL@,$ac_INSTALL,;t t
29532 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29534 if test x"$ac_file" != x-; then
29535 mv $tmp/out $ac_file
29543 cat >>$CONFIG_STATUS <<\_ACEOF
29546 # CONFIG_HEADER section.
29549 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29550 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29552 # ac_d sets the value in "#define NAME VALUE" lines.
29553 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29554 ac_dB='[ ].*$,\1#\2'
29557 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29558 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29559 ac_uB='$,\1#\2define\3'
29563 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29566 - | *:- | *:-:* ) # input from stdin
29568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29572 * ) ac_file_in=$ac_file.in ;;
29575 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29576 echo "$as_me: creating $ac_file" >&6;}
29578 # First look for the input files in the build tree, otherwise in the
29580 ac_file_inputs=`IFS=:
29581 for f in $ac_file_in; do
29583 -) echo $tmp/stdin ;;
29585 # Absolute (can't be DOS-style, as IFS=:)
29586 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29587 echo "$as_me: error: cannot find input file: $f" >&2;}
29588 { (exit 1); exit 1; }; }
29589 # Do quote $f, to prevent DOS paths from being IFS'd.
29592 if test -f "$f"; then
29595 elif test -f "$srcdir/$f"; then
29600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29601 echo "$as_me: error: cannot find input file: $f" >&2;}
29602 { (exit 1); exit 1; }; }
29605 done` || { (exit 1); exit 1; }
29606 # Remove the trailing spaces.
29607 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29611 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29612 # `conftest.undefs', that substitutes the proper values into
29613 # config.h.in to produce config.h. The first handles `#define'
29614 # templates, and the second `#undef' templates.
29615 # And first: Protect against being on the right side of a sed subst in
29616 # config.status. Protect against being in an unquoted here document
29617 # in config.status.
29618 rm -f conftest.defines conftest.undefs
29619 # Using a here document instead of a string reduces the quoting nightmare.
29620 # Putting comments in sed scripts is not portable.
29622 # `end' is used to avoid that the second main sed command (meant for
29623 # 0-ary CPP macros) applies to n-ary macro definitions.
29624 # See the Autoconf documentation for `clear'.
29625 cat >confdef2sed.sed <<\_ACEOF
29630 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29632 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29635 # If some macros were called several times there might be several times
29636 # the same #defines, which is useless. Nevertheless, we may not want to
29637 # sort them, since we want the *last* AC-DEFINE to be honored.
29638 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29639 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29640 rm -f confdef2sed.sed
29642 # This sed command replaces #undef with comments. This is necessary, for
29643 # example, in the case of _POSIX_SOURCE, which is predefined and required
29644 # on some systems where configure will not decide to define it.
29645 cat >>conftest.undefs <<\_ACEOF
29646 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29649 # Break up conftest.defines because some shells have a limit on the size
29650 # of here documents, and old seds have small limits too (100 cmds).
29651 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29652 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29653 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29654 echo ' :' >>$CONFIG_STATUS
29655 rm -f conftest.tail
29656 while grep . conftest.defines >/dev/null
29658 # Write a limited-size here document to $tmp/defines.sed.
29659 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29660 # Speed up: don't consider the non `#define' lines.
29661 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29662 # Work around the forget-to-reset-the-flag bug.
29663 echo 't clr' >>$CONFIG_STATUS
29664 echo ': clr' >>$CONFIG_STATUS
29665 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29667 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29669 mv $tmp/out $tmp/in
29671 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29672 rm -f conftest.defines
29673 mv conftest.tail conftest.defines
29675 rm -f conftest.defines
29676 echo ' fi # grep' >>$CONFIG_STATUS
29677 echo >>$CONFIG_STATUS
29679 # Break up conftest.undefs because some shells have a limit on the size
29680 # of here documents, and old seds have small limits too (100 cmds).
29681 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29682 rm -f conftest.tail
29683 while grep . conftest.undefs >/dev/null
29685 # Write a limited-size here document to $tmp/undefs.sed.
29686 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29687 # Speed up: don't consider the non `#undef'
29688 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29689 # Work around the forget-to-reset-the-flag bug.
29690 echo 't clr' >>$CONFIG_STATUS
29691 echo ': clr' >>$CONFIG_STATUS
29692 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29694 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29696 mv $tmp/out $tmp/in
29698 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29699 rm -f conftest.undefs
29700 mv conftest.tail conftest.undefs
29702 rm -f conftest.undefs
29704 cat >>$CONFIG_STATUS <<\_ACEOF
29705 # Let's still pretend it is `configure' which instantiates (i.e., don't
29706 # use $as_me), people would be surprised to read:
29707 # /* config.h. Generated by config.status. */
29708 if test x"$ac_file" = x-; then
29709 echo "/* Generated by configure. */" >$tmp/config.h
29711 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29713 cat $tmp/in >>$tmp/config.h
29715 if test x"$ac_file" != x-; then
29716 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29717 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29718 echo "$as_me: $ac_file is unchanged" >&6;}
29720 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29722 X"$ac_file" : 'X\(//\)[^/]' \| \
29723 X"$ac_file" : 'X\(//\)$' \| \
29724 X"$ac_file" : 'X\(/\)' \| \
29725 . : '\(.\)' 2>/dev/null ||
29727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29729 /^X\(\/\/\)$/{ s//\1/; q; }
29730 /^X\(\/\).*/{ s//\1/; q; }
29732 { if $as_mkdir_p; then
29737 while test ! -d "$as_dir"; do
29738 as_dirs="$as_dir $as_dirs"
29739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29741 X"$as_dir" : 'X\(//\)[^/]' \| \
29742 X"$as_dir" : 'X\(//\)$' \| \
29743 X"$as_dir" : 'X\(/\)' \| \
29744 . : '\(.\)' 2>/dev/null ||
29746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29748 /^X\(\/\/\)$/{ s//\1/; q; }
29749 /^X\(\/\).*/{ s//\1/; q; }
29752 test ! -n "$as_dirs" || mkdir $as_dirs
29753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29755 { (exit 1); exit 1; }; }; }
29758 mv $tmp/config.h $ac_file
29762 rm -f $tmp/config.h
29764 # Compute $ac_file's index in $config_headers.
29766 for _am_header in $config_headers :; do
29767 case $_am_header in
29768 $ac_file | $ac_file:* )
29771 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29774 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29775 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29776 X$ac_file : 'X\(//\)[^/]' \| \
29777 X$ac_file : 'X\(//\)$' \| \
29778 X$ac_file : 'X\(/\)' \| \
29779 . : '\(.\)' 2>/dev/null ||
29781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29783 /^X\(\/\/\)$/{ s//\1/; q; }
29784 /^X\(\/\).*/{ s//\1/; q; }
29785 s/.*/./; q'`/stamp-h$_am_stamp_count
29788 cat >>$CONFIG_STATUS <<\_ACEOF
29791 # CONFIG_COMMANDS section.
29793 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29794 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29795 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29796 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29797 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29798 X"$ac_dest" : 'X\(//\)[^/]' \| \
29799 X"$ac_dest" : 'X\(//\)$' \| \
29800 X"$ac_dest" : 'X\(/\)' \| \
29801 . : '\(.\)' 2>/dev/null ||
29803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29805 /^X\(\/\/\)$/{ s//\1/; q; }
29806 /^X\(\/\).*/{ s//\1/; q; }
29808 { if $as_mkdir_p; then
29813 while test ! -d "$as_dir"; do
29814 as_dirs="$as_dir $as_dirs"
29815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29817 X"$as_dir" : 'X\(//\)[^/]' \| \
29818 X"$as_dir" : 'X\(//\)$' \| \
29819 X"$as_dir" : 'X\(/\)' \| \
29820 . : '\(.\)' 2>/dev/null ||
29822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29824 /^X\(\/\/\)$/{ s//\1/; q; }
29825 /^X\(\/\).*/{ s//\1/; q; }
29828 test ! -n "$as_dirs" || mkdir $as_dirs
29829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29831 { (exit 1); exit 1; }; }; }
29835 if test "$ac_dir" != .; then
29836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29837 # A "../" for each directory in $ac_dir_suffix.
29838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29840 ac_dir_suffix= ac_top_builddir=
29844 .) # No --srcdir option. We are building in place.
29846 if test -z "$ac_top_builddir"; then
29849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29851 [\\/]* | ?:[\\/]* ) # Absolute path.
29852 ac_srcdir=$srcdir$ac_dir_suffix;
29853 ac_top_srcdir=$srcdir ;;
29854 *) # Relative path.
29855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29859 # Do not use `cd foo && pwd` to compute absolute paths, because
29860 # the directories may not exist.
29862 .) ac_abs_builddir="$ac_dir";;
29865 .) ac_abs_builddir=`pwd`;;
29866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29870 case $ac_abs_builddir in
29871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29873 case ${ac_top_builddir}. in
29874 .) ac_abs_top_builddir=$ac_abs_builddir;;
29875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29879 case $ac_abs_builddir in
29880 .) ac_abs_srcdir=$ac_srcdir;;
29883 .) ac_abs_srcdir=$ac_abs_builddir;;
29884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29888 case $ac_abs_builddir in
29889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29891 case $ac_top_srcdir in
29892 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29899 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29900 echo "$as_me: executing $ac_dest commands" >&6;}
29902 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29903 # Strip MF so we end up with the name of the file.
29904 mf=`echo "$mf" | sed -e 's/:.*$//'`
29905 # Check whether this is an Automake generated Makefile or not.
29906 # We used to match only the files named `Makefile.in', but
29907 # some people rename them; so instead we look at the file content.
29908 # Grep'ing the first line is not enough: some people post-process
29909 # each Makefile.in and add a new line on top of each file to say so.
29910 # So let's grep whole file.
29911 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29912 dirpart=`(dirname "$mf") 2>/dev/null ||
29913 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29914 X"$mf" : 'X\(//\)[^/]' \| \
29915 X"$mf" : 'X\(//\)$' \| \
29916 X"$mf" : 'X\(/\)' \| \
29917 . : '\(.\)' 2>/dev/null ||
29919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29921 /^X\(\/\/\)$/{ s//\1/; q; }
29922 /^X\(\/\).*/{ s//\1/; q; }
29927 # Extract the definition of DEPDIR, am__include, and am__quote
29928 # from the Makefile without running `make'.
29929 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29930 test -z "$DEPDIR" && continue
29931 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29932 test -z "am__include" && continue
29933 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29934 # When using ansi2knr, U may be empty or an underscore; expand it
29935 U=`sed -n 's/^U = //p' < "$mf"`
29936 # Find all dependency output files, they are included files with
29937 # $(DEPDIR) in their names. We invoke sed twice because it is the
29938 # simplest approach to changing $(DEPDIR) to its actual value in the
29940 for file in `sed -n "
29941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29943 # Make sure the directory exists.
29944 test -f "$dirpart/$file" && continue
29945 fdir=`(dirname "$file") 2>/dev/null ||
29946 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29947 X"$file" : 'X\(//\)[^/]' \| \
29948 X"$file" : 'X\(//\)$' \| \
29949 X"$file" : 'X\(/\)' \| \
29950 . : '\(.\)' 2>/dev/null ||
29952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29954 /^X\(\/\/\)$/{ s//\1/; q; }
29955 /^X\(\/\).*/{ s//\1/; q; }
29957 { if $as_mkdir_p; then
29958 mkdir -p $dirpart/$fdir
29960 as_dir=$dirpart/$fdir
29962 while test ! -d "$as_dir"; do
29963 as_dirs="$as_dir $as_dirs"
29964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29966 X"$as_dir" : 'X\(//\)[^/]' \| \
29967 X"$as_dir" : 'X\(//\)$' \| \
29968 X"$as_dir" : 'X\(/\)' \| \
29969 . : '\(.\)' 2>/dev/null ||
29971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29973 /^X\(\/\/\)$/{ s//\1/; q; }
29974 /^X\(\/\).*/{ s//\1/; q; }
29977 test ! -n "$as_dirs" || mkdir $as_dirs
29978 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29979 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29980 { (exit 1); exit 1; }; }; }
29982 # echo "creating $dirpart/$file"
29983 echo '# dummy' > "$dirpart/$file"
29991 cat >>$CONFIG_STATUS <<\_ACEOF
29993 { (exit 0); exit 0; }
29995 chmod +x $CONFIG_STATUS
29996 ac_clean_files=$ac_clean_files_save
29999 # configure is writing to config.log, and then calls config.status.
30000 # config.status does its own redirection, appending to config.log.
30001 # Unfortunately, on DOS this fails, as config.log is still kept open
30002 # by configure, so config.status won't be able to write to it; its
30003 # output is simply discarded. So we exec the FD to /dev/null,
30004 # effectively closing config.log, so it can be properly (re)opened and
30005 # appended to by config.status. When coming back to configure, we
30006 # need to make the FD available again.
30007 if test "$no_create" != yes; then
30009 ac_config_status_args=
30010 test "$silent" = yes &&
30011 ac_config_status_args="$ac_config_status_args --quiet"
30013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30016 # would make configure fail if this is the last instruction.
30017 $ac_cs_success || { (exit 1); exit 1; }