2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="main.c"
429 ac_unique_file="header.h"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LIBOBJS BINSUBDIR LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=no]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --enable-local-libopts Force using the supplied libopts tearoff code
1037 --disable-libopts-install
1038 Do not install libopts with client installation
1039 --disable-optional-args not wanting optional option args
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1049 --with-autoopts-config specify the config-info script
1050 --with-regex-header a reg expr header is specified
1051 --with-libregex libregex installation prefix
1052 --with-libregex-cflags libregex compile flags
1053 --with-libregex-libs libregex link command arguments
1054 --with-binsubdir bin ={bin,sbin}
1056 Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by $as_me, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508 am__api_version="1.9"
1510 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511 if test -f $ac_dir/install-sh; then
1513 ac_install_sh="$ac_aux_dir/install-sh -c"
1515 elif test -f $ac_dir/install.sh; then
1517 ac_install_sh="$ac_aux_dir/install.sh -c"
1519 elif test -f $ac_dir/shtool; then
1521 ac_install_sh="$ac_aux_dir/shtool install -c"
1525 if test -z "$ac_aux_dir"; then
1526 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1527 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528 { (exit 1); exit 1; }; }
1530 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534 # Find a good install program. We prefer a C program (faster),
1535 # so one script is as good as another. But avoid the broken or
1536 # incompatible versions:
1537 # SysV /etc/install, /usr/sbin/install
1538 # SunOS /usr/etc/install
1539 # IRIX /sbin/install
1541 # AmigaOS /C/install, which installs bootblocks on floppy discs
1542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545 # OS/2's system install, which has a completely different semantic
1546 # ./install, which can be erroneously created by make from ./install.sh.
1547 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1548 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1549 if test -z "$INSTALL"; then
1550 if test "${ac_cv_path_install+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir=.
1558 # Account for people who put trailing slashes in PATH elements.
1560 ./ | .// | /cC/* | \
1561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1562 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1565 # OSF1 and SCO ODT 3.0 have their own names for install.
1566 # Don't use installbsd from OSF since it installs stuff as root
1568 for ac_prog in ginstall scoinst install; do
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1571 if test $ac_prog = install &&
1572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573 # AIX install. It has an incompatible calling convention.
1575 elif test $ac_prog = install &&
1576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577 # program-specific install script used by HP pwplus--don't use.
1580 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592 if test "${ac_cv_path_install+set}" = set; then
1593 INSTALL=$ac_cv_path_install
1595 # As a last resort, use the slow shell script. We don't cache a
1596 # path for INSTALL within a source directory, because that will
1597 # break other packages using the cache if that directory is
1598 # removed, or if the path is relative.
1599 INSTALL=$ac_install_sh
1602 echo "$as_me:$LINENO: result: $INSTALL" >&5
1603 echo "${ECHO_T}$INSTALL" >&6
1605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606 # It thinks the first close brace ends the variable substitution.
1607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1614 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1617 echo timestamp > conftest.file
1618 # Do `set' in a subshell so we don't clobber the current shell's
1619 # arguments. Must try -L first in case configure is actually a
1620 # symlink; some systems play weird games with the mod time of symlinks
1621 # (eg FreeBSD returns the mod time of the symlink's containing
1624 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1625 if test "$*" = "X"; then
1627 set X `ls -t $srcdir/configure conftest.file`
1630 if test "$*" != "X $srcdir/configure conftest.file" \
1631 && test "$*" != "X conftest.file $srcdir/configure"; then
1633 # If neither matched, then we have a broken ls. This can happen
1634 # if, for instance, CONFIG_SHELL is bash and it inherits a
1635 # broken ls alias from the environment. This has actually
1636 # happened. Such a system could not be considered "sane".
1637 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1638 alias in your environment" >&5
1639 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1640 alias in your environment" >&2;}
1641 { (exit 1); exit 1; }; }
1644 test "$2" = conftest.file
1650 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1651 Check your system clock" >&5
1652 echo "$as_me: error: newly created file is older than distributed files!
1653 Check your system clock" >&2;}
1654 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: yes" >&5
1657 echo "${ECHO_T}yes" >&6
1658 test "$program_prefix" != NONE &&
1659 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1660 # Use a double $ so make ignores it.
1661 test "$program_suffix" != NONE &&
1662 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1663 # Double any \ or $. echo might interpret backslashes.
1664 # By default was `s,x,x', remove it if useless.
1665 cat <<\_ACEOF >conftest.sed
1666 s/[\\$]/&&/g;s/;s,x,x,$//
1668 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1671 # expand $ac_aux_dir to an absolute path
1672 am_aux_dir=`cd $ac_aux_dir && pwd`
1674 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675 # Use eval to expand $SHELL
1676 if eval "$MISSING --run true"; then
1677 am_missing_run="$MISSING --run "
1680 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1684 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1685 # We used to keeping the `.' as first argument, in order to
1686 # allow $(mkdir_p) to be used without argument. As in
1687 # $(mkdir_p) $(somedir)
1688 # where $(somedir) is conditionally defined. However this is wrong
1690 # 1. if the package is installed by a user who cannot write `.'
1691 # make install will fail,
1692 # 2. the above comment should most certainly read
1693 # $(mkdir_p) $(DESTDIR)$(somedir)
1694 # so it does not work when $(somedir) is undefined and
1695 # $(DESTDIR) is not.
1696 # To support the latter case, we have to write
1697 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1698 # so the `.' trick is pointless.
1699 mkdir_p='mkdir -p --'
1701 # On NextStep and OpenStep, the `mkdir' command does not
1702 # recognize any option. It will interpret all options as
1703 # directories to create, and then abort because `.' already
1705 for d in ./-p ./--version;
1707 test -d $d && rmdir $d
1709 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1710 if test -f "$ac_aux_dir/mkinstalldirs"; then
1711 mkdir_p='$(mkinstalldirs)'
1713 mkdir_p='$(install_sh) -d'
1717 for ac_prog in gawk mawk nawk awk
1719 # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 if test -n "$AWK"; then
1727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_AWK="$ac_prog"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 if test -n "$AWK"; then
1747 echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 test -n "$AWK" && break
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 cat >conftest.make <<\_ACEOF
1765 @echo 'ac_maketemp="$(MAKE)"'
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770 eval ac_cv_prog_make_${ac_make}_set=yes
1772 eval ac_cv_prog_make_${ac_make}_set=no
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 SET_MAKE="MAKE=${MAKE-make}"
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1793 rmdir .tst 2>/dev/null
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797 test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805 if (cygpath --version) >/dev/null 2>/dev/null; then
1806 CYGPATH_W='cygpath -w'
1813 # Define the identity of the package.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE "$PACKAGE"
1823 cat >>confdefs.h <<_ACEOF
1824 #define VERSION "$VERSION"
1827 # Some tools Automake needs.
1829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845 # Installed binaries are usually stripped using `strip' when the user
1846 # run `make install-strip'. However `strip' might not be the right
1847 # tool to use in cross-compilation environments, therefore Automake
1848 # will honor the `STRIP' environment variable to overrule this program.
1849 if test "$cross_compiling" != no; then
1850 if test -n "$ac_tool_prefix"; then
1851 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}strip; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_STRIP+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$STRIP"; then
1859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 STRIP=$ac_cv_prog_STRIP
1878 if test -n "$STRIP"; then
1879 echo "$as_me:$LINENO: result: $STRIP" >&5
1880 echo "${ECHO_T}$STRIP" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1887 if test -z "$ac_cv_prog_STRIP"; then
1889 # Extract the first word of "strip", so it can be a program name with args.
1890 set dummy strip; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$ac_ct_STRIP"; then
1897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_ac_ct_STRIP="strip"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917 if test -n "$ac_ct_STRIP"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919 echo "${ECHO_T}$ac_ct_STRIP" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1927 STRIP="$ac_cv_prog_STRIP"
1931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933 # We need awk for the "check" target. The system "awk" is bad on
1935 # Always define AMTAR for backward compatibility.
1937 AMTAR=${AMTAR-"${am_missing_run}tar"}
1939 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1946 # Make sure we can run config.sub.
1947 $ac_config_sub sun4 >/dev/null 2>&1 ||
1948 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1949 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1950 { (exit 1); exit 1; }; }
1952 echo "$as_me:$LINENO: checking build system type" >&5
1953 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1954 if test "${ac_cv_build+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 ac_cv_build_alias=$build_alias
1958 test -z "$ac_cv_build_alias" &&
1959 ac_cv_build_alias=`$ac_config_guess`
1960 test -z "$ac_cv_build_alias" &&
1961 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1962 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1963 { (exit 1); exit 1; }; }
1964 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1965 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1966 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1970 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1971 echo "${ECHO_T}$ac_cv_build" >&6
1973 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1974 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1975 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1978 echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1980 if test "${ac_cv_host+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 ac_cv_host_alias=$host_alias
1984 test -z "$ac_cv_host_alias" &&
1985 ac_cv_host_alias=$ac_cv_build_alias
1986 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1987 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1988 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1992 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1993 echo "${ECHO_T}$ac_cv_host" >&6
1995 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1996 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1997 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2000 ac_config_headers="$ac_config_headers config.h"
2003 # Checks for programs.
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2046 if test -z "$ac_cv_prog_CC"; then
2048 # Extract the first word of "gcc", so it can be a program name with args.
2049 set dummy gcc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$ac_ct_CC"; then
2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_ac_ct_CC="gcc"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2088 if test -z "$CC"; then
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_CC="${ac_tool_prefix}cc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 if test -n "$CC"; then
2118 echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2126 if test -z "$ac_cv_prog_CC"; then
2128 # Extract the first word of "cc", so it can be a program name with args.
2129 set dummy cc; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 if test -n "$ac_ct_CC"; then
2136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_ac_ct_CC="cc"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155 if test -n "$ac_ct_CC"; then
2156 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157 echo "${ECHO_T}$ac_ct_CC" >&6
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2203 if test $# != 0; then
2204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 if test -n "$CC"; then
2215 echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2218 echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2223 if test -z "$CC"; then
2224 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 if test -n "$CC"; then
2255 echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2262 test -n "$CC" && break
2265 if test -z "$CC"; then
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 echo "${ECHO_T}$ac_ct_CC" >&6
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2304 test -n "$ac_ct_CC" && break
2313 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2319 # Provide some information about the compiler.
2320 echo "$as_me:$LINENO:" \
2321 "checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2324 (eval $ac_compiler --version </dev/null >&5) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }
2328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2329 (eval $ac_compiler -v </dev/null >&5) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2334 (eval $ac_compiler -V </dev/null >&5) 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2354 ac_clean_files_save=$ac_clean_files
2355 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2356 # Try to create an executable without -o first, disregard a.out.
2357 # It will help us diagnose broken compilers, and finding out an intuition
2359 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2360 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2361 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2362 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2363 (eval $ac_link_default) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 # Find the output, starting from the most likely. This scheme is
2368 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2371 # Be careful to initialize this variable, since it used to be cached.
2372 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2374 # b.out is created by i960 compilers.
2375 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2377 test -f "$ac_file" || continue
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2382 # This is the source file.
2385 # We found the default executable, but exeext='' is most
2389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390 # FIXME: I believe we export ac_cv_exeext for Libtool,
2391 # but it would be cool to find out if it's true. Does anybody
2392 # maintain Libtool? --akim.
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&2;}
2407 { (exit 77); exit 77; }; }
2410 ac_exeext=$ac_cv_exeext
2411 echo "$as_me:$LINENO: result: $ac_file" >&5
2412 echo "${ECHO_T}$ac_file" >&6
2414 # Check the compiler produces executables we can run. If not, either
2415 # the compiler is broken, or we cross compile.
2416 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421 if { ac_try='./$ac_file'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 if test "$cross_compiling" = maybe; then
2432 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2433 If you meant to cross compile, use \`--host'.
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&2;}
2438 { (exit 1); exit 1; }; }
2442 echo "$as_me:$LINENO: result: yes" >&5
2443 echo "${ECHO_T}yes" >&6
2445 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2446 ac_clean_files=$ac_clean_files_save
2447 # Check the compiler produces executables we can run. If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2450 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2451 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2452 echo "${ECHO_T}$cross_compiling" >&6
2454 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2455 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2457 (eval $ac_link) 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; then
2461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2462 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2463 # work properly (i.e., refer to `conftest.exe'), while it won't with
2465 for ac_file in conftest.exe conftest conftest.*; do
2466 test -f "$ac_file" || continue
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }
2483 rm -f conftest$ac_cv_exeext
2484 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2485 echo "${ECHO_T}$ac_cv_exeext" >&6
2487 rm -f conftest.$ac_ext
2488 EXEEXT=$ac_cv_exeext
2490 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2491 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2492 if test "${ac_cv_objext+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.o conftest.obj
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2536 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2537 echo "${ECHO_T}$ac_cv_objext" >&6
2538 OBJEXT=$ac_cv_objext
2540 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag"
2573 || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2596 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2597 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2598 GCC=`test $ac_compiler_gnu = yes && echo yes`
2599 ac_test_CFLAGS=${CFLAGS+set}
2600 ac_save_CFLAGS=$CFLAGS
2602 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2603 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2604 if test "${ac_cv_prog_cc_g+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 cat >conftest.$ac_ext <<_ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2646 echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2655 if test "$ac_test_CFLAGS" = set; then
2656 CFLAGS=$ac_save_CFLAGS
2657 elif test $ac_cv_prog_cc_g = yes; then
2658 if test "$GCC" = yes; then
2664 if test "$GCC" = yes; then
2670 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2671 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2672 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 ac_cv_prog_cc_stdc=no
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2685 #include <sys/types.h>
2686 #include <sys/stat.h>
2687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2688 struct buf { int x; };
2689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2690 static char *e (p, i)
2696 static char *f (char * (*g) (char **, int), char **p, ...)
2701 s = g (p, va_arg (v,int));
2706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2707 function prototypes and stuff, but not '\xHH' hex character constants.
2708 These don't provoke an error unfortunately, instead are silently treated
2709 as 'x'. The following induces an error, until -std1 is added to get
2710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2711 array size at least. It's necessary to write '\x00'==0 to get something
2712 that's true only with -std1. */
2713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 # Don't try gcc -ansi; that turns off useful extensions and
2730 # breaks some systems' header files.
2731 # AIX -qlanglvl=ansi
2732 # Ultrix and OSF/1 -std1
2733 # HP-UX 10.20 and later -Ae
2734 # HP-UX older versions -Aa -D_HPUX_SOURCE
2735 # SVR4 -Xc -D__EXTENSIONS__
2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738 CC="$ac_save_CC $ac_arg"
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_stdc=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2768 rm -f conftest.err conftest.$ac_objext
2770 rm -f conftest.$ac_ext conftest.$ac_objext
2775 case "x$ac_cv_prog_cc_stdc" in
2777 echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6 ;;
2780 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2781 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2782 CC="$CC $ac_cv_prog_cc_stdc" ;;
2785 # Some people use a C++ compiler to compile C. Since we use `exit',
2786 # in C++ we need to declare it. In case someone uses the same compiler
2787 # for both compiling C and C++ we need to have the C++ compiler decide
2788 # the declaration of exit, since it's the most demanding environment.
2789 cat >conftest.$ac_ext <<_ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag"
2804 || test ! -s conftest.err'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 for ac_declaration in \
2818 'extern "C" void std::exit (int) throw (); using std::exit;' \
2819 'extern "C" void std::exit (int); using std::exit;' \
2820 'extern "C" void exit (int) throw ();' \
2821 'extern "C" void exit (int);' \
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2844 grep -v '^ *+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag"
2895 || test ! -s conftest.err'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 if test -n "$ac_declaration"; then
2917 echo '#ifdef __cplusplus' >>confdefs.h
2918 echo $ac_declaration >>confdefs.h
2919 echo '#endif' >>confdefs.h
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 DEPDIR="${am__leading_dot}deps"
2935 ac_config_commands="$ac_config_commands depfiles"
2938 am_make=${MAKE-make}
2939 cat > confinc << 'END'
2944 # If we don't find an include directive, just comment out the code.
2945 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2946 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2950 # First try GNU make style include.
2951 echo "include confinc" > confmf
2952 # We grep out `Entering directory' and `Leaving directory'
2953 # messages which can occur if `w' ends up in MAKEFLAGS.
2954 # In particular we don't look at `^make:' because GNU make might
2955 # be invoked under some other name (usually "gmake"), in which
2956 # case it prints its new name instead of `make'.
2957 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964 echo '.include "confinc"' > confmf
2965 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2966 am__include=.include
2973 echo "$as_me:$LINENO: result: $_am_result" >&5
2974 echo "${ECHO_T}$_am_result" >&6
2975 rm -f confinc confmf
2977 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2978 if test "${enable_dependency_tracking+set}" = set; then
2979 enableval="$enable_dependency_tracking"
2982 if test "x$enable_dependency_tracking" != xno; then
2983 am_depcomp="$ac_aux_dir/depcomp"
2988 if test "x$enable_dependency_tracking" != xno; then
2999 depcc="$CC" am_compiler_list=
3001 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3007 # We make a subdir and do the tests there. Otherwise we can end up
3008 # making bogus files that we don't know about and never remove. For
3009 # instance it was reported that on HP-UX the gcc test will end up
3010 # making a dummy file named `D' -- because `-MD' means `put the output
3013 # Copy depcomp to subdir because otherwise we won't find it if we're
3014 # using a relative directory.
3015 cp "$am_depcomp" conftest.dir
3017 # We will build objects and dependencies in a subdirectory because
3018 # it helps to detect inapplicable dependency modes. For instance
3019 # both Tru64's cc and ICC support -MD to output dependencies as a
3020 # side effect of compilation, but ICC will put the dependencies in
3021 # the current directory while Tru64 will put them in the object
3025 am_cv_CC_dependencies_compiler_type=none
3026 if test "$am_compiler_list" = ""; then
3027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3029 for depmode in $am_compiler_list; do
3030 # Setup a source with many dependencies, because some compilers
3031 # like to wrap large dependency lists on column 80 (with \), and
3032 # we should not choose a depcomp mode which is confused by this.
3034 # We need to recreate these files for each test, as the compiler may
3035 # overwrite some of them when testing with obscure command lines.
3036 # This happens at least with the AIX C compiler.
3038 for i in 1 2 3 4 5 6; do
3039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3041 # Solaris 8's {/usr,}/bin/sh.
3042 touch sub/conftst$i.h
3044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3048 # after this tag, mechanisms are not by side-effect, so they'll
3049 # only be used when explicitly requested
3050 if test "x$enable_dependency_tracking" = xyes; then
3058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3059 # mode. It turns out that the SunPro C++ compiler does not properly
3060 # handle `-M -o', and we need to detect this.
3061 if depmode=$depmode \
3062 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3064 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3065 >/dev/null 2>conftest.err &&
3066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3067 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3069 # icc doesn't choke on unknown options, it will just issue warnings
3070 # or remarks (even with -Werror). So we grep stderr for any message
3071 # that says an option was ignored or not supported.
3072 # When given -MP, icc 7.0 and 7.1 complain thusly:
3073 # icc: Command line warning: ignoring option '-M'; no argument required
3074 # The diagnosis changed in icc 8.0:
3075 # icc: Command line remark: option '-MP' not supported
3076 if (grep 'ignoring option' conftest.err ||
3077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3078 am_cv_CC_dependencies_compiler_type=$depmode
3087 am_cv_CC_dependencies_compiler_type=none
3091 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3098 test "x$enable_dependency_tracking" != xno \
3099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3101 am__fastdepCC_FALSE='#'
3103 am__fastdepCC_TRUE='#'
3104 am__fastdepCC_FALSE=
3109 # So far, the only shared library we might use is libopts.
3110 # It's a small library - we might as well use a static version of it.
3111 # Check whether --enable-shared or --disable-shared was given.
3112 if test "${enable_shared+set}" = set; then
3113 enableval="$enable_shared"
3114 p=${PACKAGE-default}
3116 yes) enable_shared=yes ;;
3117 no) enable_shared=no ;;
3120 # Look at the argument we got. We use all the common list separators.
3121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3122 for pkg in $enableval; do
3124 if test "X$pkg" = "X$p"; then
3137 # Check whether --enable-static or --disable-static was given.
3138 if test "${enable_static+set}" = set; then
3139 enableval="$enable_static"
3140 p=${PACKAGE-default}
3142 yes) enable_static=yes ;;
3143 no) enable_static=no ;;
3146 # Look at the argument we got. We use all the common list separators.
3147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3148 for pkg in $enableval; do
3150 if test "X$pkg" = "X$p"; then
3161 # Check whether --enable-fast-install or --disable-fast-install was given.
3162 if test "${enable_fast_install+set}" = set; then
3163 enableval="$enable_fast_install"
3164 p=${PACKAGE-default}
3166 yes) enable_fast_install=yes ;;
3167 no) enable_fast_install=no ;;
3169 enable_fast_install=no
3170 # Look at the argument we got. We use all the common list separators.
3171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3172 for pkg in $enableval; do
3174 if test "X$pkg" = "X$p"; then
3175 enable_fast_install=yes
3182 enable_fast_install=yes
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3187 if test "${lt_cv_path_SED+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 # Loop through the user's path and test for sed and gsed.
3191 # Then use that list of sed's as ones to test for truncation.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for lt_ac_prog in sed gsed; do
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3208 # along with /bin/sed that truncates output.
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3210 test ! -f $lt_ac_sed && continue
3211 cat /dev/null > conftest.in
3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3214 # Check for GNU sed and select it if it is found.
3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3216 lt_cv_path_SED=$lt_ac_sed
3220 cat conftest.in conftest.in >conftest.tmp
3221 mv conftest.tmp conftest.in
3222 cp conftest.in conftest.nl
3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3225 cmp -s conftest.out conftest.nl || break
3226 # 10000 chars as input seems more than enough
3227 test $lt_ac_count -gt 10 && break
3228 lt_ac_count=`expr $lt_ac_count + 1`
3229 if test $lt_ac_count -gt $lt_ac_max; then
3230 lt_ac_max=$lt_ac_count
3231 lt_cv_path_SED=$lt_ac_sed
3239 echo "$as_me:$LINENO: result: $SED" >&5
3240 echo "${ECHO_T}$SED" >&6
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3259 if test "${with_gnu_ld+set}" = set; then
3260 withval="$with_gnu_ld"
3261 test "$withval" = no || with_gnu_ld=yes
3266 if test "$GCC" = yes; then
3267 # Check if gcc -print-prog-name=ld gives a path.
3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3272 # gcc leaves a trailing carriage return which upsets mingw
3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3278 # Accept absolute paths.
3280 re_direlt='/[^/][^/]*/\.\./'
3281 # Canonicalize the pathname of ld
3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3286 test -z "$LD" && LD="$ac_prog"
3289 # If it fails, then pretend we aren't using GCC.
3293 # If it is relative, then search for the first ld in PATH.
3297 elif test "$with_gnu_ld" = yes; then
3298 echo "$as_me:$LINENO: checking for GNU ld" >&5
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3304 if test "${lt_cv_path_LD+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -z "$LD"; then
3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3309 for ac_dir in $PATH; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3313 lt_cv_path_LD="$ac_dir/$ac_prog"
3314 # Check to see if the program is GNU ld. I'd rather use --version,
3315 # but apparently some variants of GNU ld only accept -v.
3316 # Break only if it was the GNU/non-GNU ld that we prefer.
3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3318 *GNU* | *'with BFD'*)
3319 test "$with_gnu_ld" != no && break
3322 test "$with_gnu_ld" != yes && break
3329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3334 if test -n "$LD"; then
3335 echo "$as_me:$LINENO: result: $LD" >&5
3336 echo "${ECHO_T}$LD" >&6
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3343 { (exit 1); exit 1; }; }
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3350 case `$LD -v 2>&1 </dev/null` in
3351 *GNU* | *'with BFD'*)
3352 lt_cv_prog_gnu_ld=yes
3355 lt_cv_prog_gnu_ld=no
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3361 with_gnu_ld=$lt_cv_prog_gnu_ld
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 lt_cv_ld_reload_flag='-r'
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3373 reload_flag=$lt_cv_ld_reload_flag
3374 case $reload_flag in
3376 *) reload_flag=" $reload_flag" ;;
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3381 if test "$GCC" = yes; then
3382 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3391 if test "${lt_cv_path_NM+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 if test -n "$NM"; then
3395 # Let the user override the test.
3398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3401 test -z "$ac_dir" && ac_dir=.
3402 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3404 # Check to see if the nm accepts a BSD-compat flag.
3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406 # nm: unknown option "B" ignored
3407 # Tru64's nm complains that /dev/null is an invalid object file
3408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3409 */dev/null* | *'Invalid file or object type'*)
3410 lt_cv_path_NM="$tmp_nm -B"
3414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3416 lt_cv_path_NM="$tmp_nm -p"
3420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3421 continue # so that we can try to find one that supports BSD flags
3428 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3432 echo "${ECHO_T}$lt_cv_path_NM" >&6
3435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3438 if test "$LN_S" = "ln -s"; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3442 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3443 echo "${ECHO_T}no, using $LN_S" >&6
3446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3448 if test "${lt_cv_deplibs_check_method+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 lt_cv_file_magic_cmd='$MAGIC_CMD'
3452 lt_cv_file_magic_test_file=
3453 lt_cv_deplibs_check_method='unknown'
3454 # Need to set the preceding variable on all platforms that support
3455 # interlibrary dependencies.
3456 # 'none' -- dependencies not supported.
3457 # `unknown' -- same as none, but documents that we really don't know.
3458 # 'pass_all' -- all dependencies passed with no checks.
3459 # 'test_compile' -- check by making test program.
3460 # 'file_magic [[regex]]' -- check by looking for files in library path
3461 # which responds to the $file_magic_cmd with a given extended regex.
3462 # If you have `file' or equivalent on your system and you're not sure
3463 # whether `pass_all' will *always* work, you probably want this one.
3467 lt_cv_deplibs_check_method=pass_all
3471 lt_cv_deplibs_check_method=pass_all
3475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3476 lt_cv_file_magic_cmd='/usr/bin/file -L'
3477 lt_cv_file_magic_test_file=/shlib/libc.so
3481 # func_win32_libid is a shell function defined in ltmain.sh
3482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3483 lt_cv_file_magic_cmd='func_win32_libid'
3487 # Base MSYS/MinGW do not provide the 'file' command needed by
3488 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3490 lt_cv_file_magic_cmd='$OBJDUMP -f'
3493 darwin* | rhapsody*)
3494 lt_cv_deplibs_check_method=pass_all
3497 freebsd* | kfreebsd*-gnu | dragonfly*)
3498 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3501 # Not sure whether the presence of OpenBSD here was a mistake.
3502 # Let's accept both of them until this is cleared up.
3503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3504 lt_cv_file_magic_cmd=/usr/bin/file
3505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3509 lt_cv_deplibs_check_method=pass_all
3514 lt_cv_deplibs_check_method=pass_all
3517 hpux10.20* | hpux11*)
3518 lt_cv_file_magic_cmd=/usr/bin/file
3521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3525 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]'
3526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3535 irix5* | irix6* | nonstopux*)
3537 *-32|*"-32 ") libmagic=32-bit;;
3538 *-n32|*"-n32 ") libmagic=N32;;
3539 *-64|*"-64 ") libmagic=64-bit;;
3540 *) libmagic=never-match;;
3542 lt_cv_deplibs_check_method=pass_all
3545 # This must be Linux ELF.
3547 lt_cv_deplibs_check_method=pass_all
3551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3560 lt_cv_file_magic_cmd=/usr/bin/file
3561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3565 lt_cv_deplibs_check_method=unknown
3569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3576 osf3* | osf4* | osf5*)
3577 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_deplibs_check_method=pass_all
3585 lt_cv_deplibs_check_method=pass_all
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3589 case $host_vendor in
3591 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]'
3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3595 lt_cv_deplibs_check_method=pass_all
3598 lt_cv_file_magic_cmd='/bin/file'
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3602 lt_cv_file_magic_cmd='/bin/file'
3603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3604 lt_cv_file_magic_test_file=/lib/libc.so
3607 lt_cv_deplibs_check_method=pass_all
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3620 file_magic_cmd=$lt_cv_file_magic_cmd
3621 deplibs_check_method=$lt_cv_deplibs_check_method
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3627 # If no C compiler was specified, use CC.
3630 # Allow CC to be a program name with arguments.
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3635 if test "${enable_libtool_lock+set}" = set; then
3636 enableval="$enable_libtool_lock"
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3641 # Some flags need to be propagated to the compiler or linker for good
3645 # Find out which ABI we are using.
3646 echo 'int i;' > conftest.$ac_ext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 case `/usr/bin/file conftest.$ac_objext` in
3664 # Find out which ABI we are using.
3665 echo '#line 3665 "configure"' > conftest.$ac_ext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 if test "$lt_cv_prog_gnu_ld" = yes; then
3672 case `/usr/bin/file conftest.$ac_objext` in
3674 LD="${LD-ld} -melf32bsmip"
3677 LD="${LD-ld} -melf32bmipn32"
3680 LD="${LD-ld} -melf64bmip"
3684 case `/usr/bin/file conftest.$ac_objext` in
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3701 # Find out which ABI we are using.
3702 echo 'int i;' > conftest.$ac_ext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 case `/usr/bin/file conftest.o` in
3712 LD="${LD-ld} -m elf_i386"
3714 ppc64-*linux*|powerpc64-*linux*)
3715 LD="${LD-ld} -m elf32ppclinux"
3718 LD="${LD-ld} -m elf_s390"
3721 LD="${LD-ld} -m elf32_sparc"
3728 LD="${LD-ld} -m elf_x86_64"
3730 ppc*-*linux*|powerpc*-*linux*)
3731 LD="${LD-ld} -m elf64ppc"
3734 LD="${LD-ld} -m elf64_s390"
3737 LD="${LD-ld} -m elf64_sparc"
3747 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3748 SAVE_CFLAGS="$CFLAGS"
3749 CFLAGS="$CFLAGS -belf"
3750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 lt_cv_cc_needs_belf=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 lt_cv_cc_needs_belf=no
3805 rm -f conftest.err conftest.$ac_objext \
3806 conftest$ac_exeext conftest.$ac_ext
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818 CFLAGS="$SAVE_CFLAGS"
3824 need_locks="$enable_libtool_lock"
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3838 if test -z "$CPP"; then
3839 if test "${ac_cv_prog_CPP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3861 # include <limits.h>
3863 # include <assert.h>
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884 if test -z "$ac_cpp_err"; then
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 # Broken: fails on valid input.
3893 rm -f conftest.err conftest.$ac_ext
3895 # OK, works on sane cases. Now check whether non-existent headers
3896 # can be detected and how.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } >/dev/null; then
3913 if test -s conftest.err; then
3914 ac_cpp_err=$ac_c_preproc_warn_flag
3915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3922 if test -z "$ac_cpp_err"; then
3923 # Broken: success on invalid input.
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3933 rm -f conftest.err conftest.$ac_ext
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok; then
3950 echo "$as_me:$LINENO: result: $CPP" >&5
3951 echo "${ECHO_T}$CPP" >&6
3953 for ac_c_preproc_warn_flag in '' yes
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3968 # include <limits.h>
3970 # include <assert.h>
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } >/dev/null; then
3982 if test -s conftest.err; then
3983 ac_cpp_err=$ac_c_preproc_warn_flag
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 if test -z "$ac_cpp_err"; then
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether non-existent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null; then
4020 if test -s conftest.err; then
4021 ac_cpp_err=$ac_c_preproc_warn_flag
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4029 if test -z "$ac_cpp_err"; then
4030 # Broken: success on invalid input.
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 # Passes both tests.
4040 rm -f conftest.err conftest.$ac_ext
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." >&2;}
4052 { (exit 1); exit 1; }; }
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_cv_header_stdc=yes
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_cv_header_stdc=no
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 if test $ac_cv_header_stdc = yes; then
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "memchr" >/dev/null 2>&1; then
4132 ac_cv_header_stdc=no
4138 if test $ac_cv_header_stdc = yes; then
4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "free" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161 if test "$cross_compiling" = yes; then
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 #if ((' ' & 0x0FF) == 0x020)
4172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4175 # define ISLOWER(c) \
4176 (('a' <= (c) && (c) <= 'i') \
4177 || ('j' <= (c) && (c) <= 'r') \
4178 || ('s' <= (c) && (c) <= 'z'))
4179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4187 for (i = 0; i < 256; i++)
4188 if (XOR (islower (i), ISLOWER (i))
4189 || toupper (i) != TOUPPER (i))
4194 rm -f conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4207 echo "$as_me: program exited with status $ac_status" >&5
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_header_stdc=no
4214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4220 if test $ac_cv_header_stdc = yes; then
4222 cat >>confdefs.h <<\_ACEOF
4223 #define STDC_HEADERS 1
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4255 #include <$ac_header>
4257 rm -f conftest.$ac_objext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -z "$ac_c_werror_flag"
4267 || test ! -s conftest.err'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 eval "$as_ac_Header=yes"
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 eval "$as_ac_Header=no"
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301 for ac_header in dlfcn.h
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313 # Is the header compilable?
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4323 #include <$ac_header>
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_header_compiler=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_header_compiler=no
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <$ac_header>
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4372 grep -v '^ *+' conftest.er1 >conftest.err
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null; then
4377 if test -s conftest.err; then
4378 ac_cpp_err=$ac_c_preproc_warn_flag
4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4386 if test -z "$ac_cpp_err"; then
4387 ac_header_preproc=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_header_preproc=no
4394 rm -f conftest.err conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396 echo "${ECHO_T}$ac_header_preproc" >&6
4398 # So? What about this header?
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4405 ac_header_preproc=yes
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4422 ## ------------------------------------------ ##
4423 ## Report this to the AC_PACKAGE_NAME lists. ##
4424 ## ------------------------------------------ ##
4427 sed "s/^/$as_me: WARNING: /" >&2
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 eval "$as_ac_Header=\$ac_header_preproc"
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4451 ac_cpp='$CXXCPP $CPPFLAGS'
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455 if test -n "$ac_tool_prefix"; then
4456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_CXX+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$CXX"; then
4466 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 if test -n "$CXX"; then
4486 echo "$as_me:$LINENO: result: $CXX" >&5
4487 echo "${ECHO_T}$CXX" >&6
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4493 test -n "$CXX" && break
4496 if test -z "$CXX"; then
4498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 if test -n "$ac_ct_CXX"; then
4508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_CXX="$ac_prog"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4527 if test -n "$ac_ct_CXX"; then
4528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4529 echo "${ECHO_T}$ac_ct_CXX" >&6
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4535 test -n "$ac_ct_CXX" && break
4537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4543 # Provide some information about the compiler.
4544 echo "$as_me:$LINENO:" \
4545 "checking for C++ compiler version" >&5
4546 ac_compiler=`set X $ac_compile; echo $2`
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548 (eval $ac_compiler --version </dev/null >&5) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553 (eval $ac_compiler -v </dev/null >&5) 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558 (eval $ac_compiler -V </dev/null >&5) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_cxx_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4621 GXX=`test $ac_compiler_gnu = yes && echo yes`
4622 ac_test_CXXFLAGS=${CXXFLAGS+set}
4623 ac_save_CXXFLAGS=$CXXFLAGS
4625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4627 if test "${ac_cv_prog_cxx_g+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_cxx_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_prog_cxx_g=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4678 if test "$ac_test_CXXFLAGS" = set; then
4679 CXXFLAGS=$ac_save_CXXFLAGS
4680 elif test $ac_cv_prog_cxx_g = yes; then
4681 if test "$GXX" = yes; then
4687 if test "$GXX" = yes; then
4693 for ac_declaration in \
4695 'extern "C" void std::exit (int) throw (); using std::exit;' \
4696 'extern "C" void std::exit (int); using std::exit;' \
4697 'extern "C" void exit (int) throw ();' \
4698 'extern "C" void exit (int);' \
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_cxx_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 cat >conftest.$ac_ext <<_ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_cxx_werror_flag"
4772 || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 if test -n "$ac_declaration"; then
4794 echo '#ifdef __cplusplus' >>confdefs.h
4795 echo $ac_declaration >>confdefs.h
4796 echo '#endif' >>confdefs.h
4800 ac_cpp='$CXXCPP $CPPFLAGS'
4801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 depcc="$CXX" am_compiler_list=
4807 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4809 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4813 # We make a subdir and do the tests there. Otherwise we can end up
4814 # making bogus files that we don't know about and never remove. For
4815 # instance it was reported that on HP-UX the gcc test will end up
4816 # making a dummy file named `D' -- because `-MD' means `put the output
4819 # Copy depcomp to subdir because otherwise we won't find it if we're
4820 # using a relative directory.
4821 cp "$am_depcomp" conftest.dir
4823 # We will build objects and dependencies in a subdirectory because
4824 # it helps to detect inapplicable dependency modes. For instance
4825 # both Tru64's cc and ICC support -MD to output dependencies as a
4826 # side effect of compilation, but ICC will put the dependencies in
4827 # the current directory while Tru64 will put them in the object
4831 am_cv_CXX_dependencies_compiler_type=none
4832 if test "$am_compiler_list" = ""; then
4833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4835 for depmode in $am_compiler_list; do
4836 # Setup a source with many dependencies, because some compilers
4837 # like to wrap large dependency lists on column 80 (with \), and
4838 # we should not choose a depcomp mode which is confused by this.
4840 # We need to recreate these files for each test, as the compiler may
4841 # overwrite some of them when testing with obscure command lines.
4842 # This happens at least with the AIX C compiler.
4844 for i in 1 2 3 4 5 6; do
4845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4847 # Solaris 8's {/usr,}/bin/sh.
4848 touch sub/conftst$i.h
4850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4854 # after this tag, mechanisms are not by side-effect, so they'll
4855 # only be used when explicitly requested
4856 if test "x$enable_dependency_tracking" = xyes; then
4864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4865 # mode. It turns out that the SunPro C++ compiler does not properly
4866 # handle `-M -o', and we need to detect this.
4867 if depmode=$depmode \
4868 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4870 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4871 >/dev/null 2>conftest.err &&
4872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4873 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4875 # icc doesn't choke on unknown options, it will just issue warnings
4876 # or remarks (even with -Werror). So we grep stderr for any message
4877 # that says an option was ignored or not supported.
4878 # When given -MP, icc 7.0 and 7.1 complain thusly:
4879 # icc: Command line warning: ignoring option '-M'; no argument required
4880 # The diagnosis changed in icc 8.0:
4881 # icc: Command line remark: option '-MP' not supported
4882 if (grep 'ignoring option' conftest.err ||
4883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4884 am_cv_CXX_dependencies_compiler_type=$depmode
4893 am_cv_CXX_dependencies_compiler_type=none
4897 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4898 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4899 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4904 test "x$enable_dependency_tracking" != xno \
4905 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4906 am__fastdepCXX_TRUE=
4907 am__fastdepCXX_FALSE='#'
4909 am__fastdepCXX_TRUE='#'
4910 am__fastdepCXX_FALSE=
4916 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4917 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4918 (test "X$CXX" != "Xg++"))) ; then
4920 ac_cpp='$CXXCPP $CPPFLAGS'
4921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4925 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4926 if test -z "$CXXCPP"; then
4927 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 # Double quotes because CXXCPP needs to be expanded
4931 for CXXCPP in "$CXX -E" "/lib/cpp"
4934 for ac_cxx_preproc_warn_flag in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 # include <limits.h>
4951 # include <assert.h>
4955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } >/dev/null; then
4963 if test -s conftest.err; then
4964 ac_cpp_err=$ac_cxx_preproc_warn_flag
4965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4972 if test -z "$ac_cpp_err"; then
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4981 rm -f conftest.err conftest.$ac_ext
4983 # OK, works on sane cases. Now check whether non-existent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 #include <ac_nonexistent.h>
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null; then
5001 if test -s conftest.err; then
5002 ac_cpp_err=$ac_cxx_preproc_warn_flag
5003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5010 if test -z "$ac_cpp_err"; then
5011 # Broken: success on invalid input.
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 # Passes both tests.
5021 rm -f conftest.err conftest.$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then
5031 ac_cv_prog_CXXCPP=$CXXCPP
5034 CXXCPP=$ac_cv_prog_CXXCPP
5036 ac_cv_prog_CXXCPP=$CXXCPP
5038 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5039 echo "${ECHO_T}$CXXCPP" >&6
5041 for ac_cxx_preproc_warn_flag in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5056 # include <limits.h>
5058 # include <assert.h>
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_cxx_preproc_warn_flag
5072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079 if test -z "$ac_cpp_err"; then
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 # Broken: fails on valid input.
5088 rm -f conftest.err conftest.$ac_ext
5090 # OK, works on sane cases. Now check whether non-existent headers
5091 # can be detected and how.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null; then
5108 if test -s conftest.err; then
5109 ac_cpp_err=$ac_cxx_preproc_warn_flag
5110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117 if test -z "$ac_cpp_err"; then
5118 # Broken: success on invalid input.
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 # Passes both tests.
5128 rm -f conftest.err conftest.$ac_ext
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5136 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139 See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; }
5144 ac_cpp='$CXXCPP $CPPFLAGS'
5145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5153 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5154 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5156 if test -n "$ac_tool_prefix"; then
5157 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_F77+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -n "$F77"; then
5167 ac_cv_prog_F77="$F77" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 if test -n "$F77"; then
5187 echo "$as_me:$LINENO: result: $F77" >&5
5188 echo "${ECHO_T}$F77" >&6
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5194 test -n "$F77" && break
5197 if test -z "$F77"; then
5199 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5201 # Extract the first word of "$ac_prog", so it can be a program name with args.
5202 set dummy $ac_prog; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$ac_ct_F77"; then
5209 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_ac_ct_F77="$ac_prog"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5228 if test -n "$ac_ct_F77"; then
5229 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5230 echo "${ECHO_T}$ac_ct_F77" >&6
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5236 test -n "$ac_ct_F77" && break
5243 # Provide some information about the compiler.
5244 echo "$as_me:5244:" \
5245 "checking for Fortran 77 compiler version" >&5
5246 ac_compiler=`set X $ac_compile; echo $2`
5247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5248 (eval $ac_compiler --version </dev/null >&5) 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }
5252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5253 (eval $ac_compiler -v </dev/null >&5) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }
5257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5258 (eval $ac_compiler -V </dev/null >&5) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }
5264 # If we don't use `.F' as extension, the preprocessor is not run on the
5265 # input file. (Note that this only needs to work for GNU compilers.)
5268 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5269 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5270 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 cat >conftest.$ac_ext <<_ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_f77_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5314 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5315 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5317 ac_test_FFLAGS=${FFLAGS+set}
5318 ac_save_FFLAGS=$FFLAGS
5320 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5321 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5322 if test "${ac_cv_prog_f77_g+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_f77_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_prog_f77_g=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365 if test "$ac_test_FFLAGS" = set; then
5366 FFLAGS=$ac_save_FFLAGS
5367 elif test $ac_cv_prog_f77_g = yes; then
5368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5381 G77=`test $ac_compiler_gnu = yes && echo yes`
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 # On DJGPP, this test can blow up pretty badly due to problems in libc
5404 # (any single argument exceeding 2000 bytes causes a buffer overrun
5405 # during glob expansion). Even if it were fixed, the result of this
5406 # check would be larger than it should be.
5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5411 # Under GNU Hurd, this test is not required because there is
5412 # no limit to the length of command line arguments.
5413 # Libtool will interpret -1 as no limit whatsoever
5414 lt_cv_sys_max_cmd_len=-1;
5418 # On Win9x/ME, this test blows up -- it succeeds, but takes
5419 # about 5 minutes as the teststring grows exponentially.
5420 # Worse, since 9x/ME are not pre-emptively multitasking,
5421 # you end up with a "frozen" computer, even though with patience
5422 # the test eventually succeeds (with a max line length of 256k).
5423 # Instead, let's just punt: use the minimum linelength reported by
5424 # all of the supported platforms: 8192 (on NT/2K/XP).
5425 lt_cv_sys_max_cmd_len=8192;
5429 # On AmigaOS with pdksh, this test takes hours, literally.
5430 # So we just punt and use a minimum line length of 8192.
5431 lt_cv_sys_max_cmd_len=8192;
5434 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5435 # This has been around since 386BSD, at least. Likely further.
5436 if test -x /sbin/sysctl; then
5437 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5438 elif test -x /usr/sbin/sysctl; then
5439 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5441 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5443 # And add a safety zone
5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5448 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450 # nice to cause kernel panics so lets avoid the loop below.
5451 # First set a reasonable default.
5452 lt_cv_sys_max_cmd_len=16384
5454 if test -x /sbin/sysconfig; then
5455 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5461 # If test is not a shell built-in, we'll probably end up computing a
5462 # maximum length that is only half of the actual maximum length, but
5464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5466 = "XX$teststring") >/dev/null 2>&1 &&
5467 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5468 lt_cv_sys_max_cmd_len=$new_result &&
5469 test $i != 17 # 1/2 MB should be enough
5472 teststring=$teststring$teststring
5475 # Add a significant safety factor because C++ compilers can tack on massive
5476 # amounts of additional arguments before passing them to the linker.
5477 # It appears as though 1/2 is a usable value.
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5484 if test -n $lt_cv_sys_max_cmd_len ; then
5485 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5486 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5488 echo "$as_me:$LINENO: result: none" >&5
5489 echo "${ECHO_T}none" >&6
5495 # Check for command to grab the raw symbol name followed by C symbol from nm.
5496 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 # These are sane defaults that work on at least a few old systems.
5503 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5505 # Character class describing NM global symbol codes.
5506 symcode='[BCDEGRST]'
5508 # Regexp to match symbols that can be accessed directly from C.
5509 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 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'"
5517 # Define system-specific variables.
5522 cygwin* | mingw* | pw32*)
5523 symcode='[ABCDGISTW]'
5525 hpux*) # Its linker distinguishes data from code symbols
5526 if test "$host_cpu" = ia64; then
5527 symcode='[ABCDEGRST]'
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530 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'"
5533 if test "$host_cpu" = ia64; then
5534 symcode='[ABCDGIRSTW]'
5535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536 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'"
5540 symcode='[BCDEGRST]'
5543 symcode='[BCDEGQRST]'
5553 # Handle CRLF in mingw tool chain
5557 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5561 # If we're using GNU nm, then use its standard symbol codes.
5562 case `$NM -V 2>&1` in
5563 *GNU* | *'with BFD'*)
5564 symcode='[ABCDGIRSTW]' ;;
5567 # Try without a prefix undercore, then with it.
5568 for ac_symprfx in "" "_"; do
5570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5571 symxfrm="\\1 $ac_symprfx\\2 \\2"
5573 # Write the raw and C identifiers.
5574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5576 # Check to see that the pipe works correctly.
5580 cat > conftest.$ac_ext <<EOF
5585 void nm_test_func(){}
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; then
5597 # Now try to grab the symbols.
5599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && test -s "$nlist"; then
5604 # Try sorting and uniquifying the output.
5605 if sort "$nlist" | uniq > "$nlist"T; then
5606 mv -f "$nlist"T "$nlist"
5611 # Make sure that we snagged all the symbols we need.
5612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614 cat <<EOF > conftest.$ac_ext
5620 # Now generate the symbol file.
5621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5623 cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5627 # define lt_ptr_t char *
5631 /* The mapping between symbol names and symbols. */
5636 lt_preloaded_symbols[] =
5639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640 cat <<\EOF >> conftest.$ac_ext
5648 # Now try linking the two files.
5649 mv conftest.$ac_objext conftstm.$ac_objext
5650 lt_save_LIBS="$LIBS"
5651 lt_save_CFLAGS="$CFLAGS"
5652 LIBS="conftstm.$ac_objext"
5653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5661 LIBS="$lt_save_LIBS"
5662 CFLAGS="$lt_save_CFLAGS"
5664 echo "cannot find nm_test_func in $nlist" >&5
5667 echo "cannot find nm_test_var in $nlist" >&5
5670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5673 echo "$progname: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 rm -f conftest* conftst*
5678 # Do not use the global_symbol_pipe unless it works.
5679 if test "$pipe_works" = yes; then
5682 lt_cv_sys_global_symbol_pipe=
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689 lt_cv_sys_global_symbol_to_cdecl=
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692 echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5695 echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5709 # MS-DOS does not allow filenames that begin with a dot.
5712 rmdir .libs 2>/dev/null
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5724 # AIX sometimes has problems with the GCC collect2 program. For some
5725 # reason, if we set the COLLECT_NAMES environment variable, the problems
5726 # vanish in a puff of smoke.
5727 if test "X${COLLECT_NAMES+set}" != Xset; then
5729 export COLLECT_NAMES
5734 # Sed substitution that helps us do robust quoting. It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e 1s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5753 default_ofile=libtool
5754 can_build_shared=yes
5756 # All known linkers require a `.a' archive for static linking (except MSVC,
5757 # which needs '.lib').
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="${ac_tool_prefix}ar"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 if test -n "$AR"; then
5792 echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5800 if test -z "$ac_cv_prog_AR"; then
5802 # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5834 echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 if test -n "$RANLIB"; then
5852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872 echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881 ac_ct_RANLIB=$RANLIB
5882 # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -n "$ac_ct_RANLIB"; then
5890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_ac_ct_RANLIB="ranlib"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5914 echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5918 RANLIB=$ac_ct_RANLIB
5920 RANLIB="$ac_cv_prog_RANLIB"
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952 echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5960 if test -z "$ac_cv_prog_STRIP"; then
5962 # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
6000 STRIP="$ac_cv_prog_STRIP"
6005 old_CFLAGS="$CFLAGS"
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6029 if test -n "$RANLIB"; then
6032 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6035 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6041 for cc_temp in $compiler""; do
6043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6052 # Only perform the check for file, if the check method requires it
6053 case $deplibs_check_method in
6055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6056 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6057 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6066 lt_save_MAGIC_CMD="$MAGIC_CMD"
6067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069 for ac_dir in $ac_dummy; do
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f $ac_dir/${ac_tool_prefix}file; then
6073 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6074 if test -n "$file_magic_test_file"; then
6075 case $deplibs_check_method in
6077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080 $EGREP "$file_magic_regex" > /dev/null; then
6085 *** Warning: the command libtool uses to detect shared libraries,
6086 *** $file_magic_cmd, produces output that libtool cannot recognize.
6087 *** The result is that libtool may fail to recognize shared libraries
6088 *** as such. This will affect the creation of libtool libraries that
6089 *** depend on shared libraries, but programs linked with such libtool
6090 *** libraries will work regardless of this problem. Nevertheless, you
6091 *** may want to report the problem to your system manager and/or to
6092 *** bug-libtool@gnu.org
6102 MAGIC_CMD="$lt_save_MAGIC_CMD"
6107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108 if test -n "$MAGIC_CMD"; then
6109 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110 echo "${ECHO_T}$MAGIC_CMD" >&6
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6116 if test -z "$lt_cv_path_MAGIC_CMD"; then
6117 if test -n "$ac_tool_prefix"; then
6118 echo "$as_me:$LINENO: checking for file" >&5
6119 echo $ECHO_N "checking for file... $ECHO_C" >&6
6120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6128 lt_save_MAGIC_CMD="$MAGIC_CMD"
6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131 for ac_dir in $ac_dummy; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/file; then
6135 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6136 if test -n "$file_magic_test_file"; then
6137 case $deplibs_check_method in
6139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142 $EGREP "$file_magic_regex" > /dev/null; then
6147 *** Warning: the command libtool uses to detect shared libraries,
6148 *** $file_magic_cmd, produces output that libtool cannot recognize.
6149 *** The result is that libtool may fail to recognize shared libraries
6150 *** as such. This will affect the creation of libtool libraries that
6151 *** depend on shared libraries, but programs linked with such libtool
6152 *** libraries will work regardless of this problem. Nevertheless, you
6153 *** may want to report the problem to your system manager and/or to
6154 *** bug-libtool@gnu.org
6164 MAGIC_CMD="$lt_save_MAGIC_CMD"
6169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170 if test -n "$MAGIC_CMD"; then
6171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172 echo "${ECHO_T}$MAGIC_CMD" >&6
6174 echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6
6190 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6191 if test "${enable_libtool_lock+set}" = set; then
6192 enableval="$enable_libtool_lock"
6195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6198 # Check whether --with-pic or --without-pic was given.
6199 if test "${with_pic+set}" = set; then
6205 test -z "$pic_mode" && pic_mode=default
6207 # Use C for the default configuration in the libtool script
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6217 # Source file extension for C test sources.
6220 # Object file extension for compiled C test sources.
6224 # Code to be used in simple compile tests
6225 lt_simple_compile_test_code="int some_variable = 0;\n"
6227 # Code to be used in simple link tests
6228 lt_simple_link_test_code='int main(){return(0);}\n'
6231 # If no C compiler was specified, use CC.
6234 # Allow CC to be a program name with arguments.
6238 # save warnings/boilerplate of simple test code
6239 ac_outfile=conftest.$ac_objext
6240 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6242 _lt_compiler_boilerplate=`cat conftest.err`
6245 ac_outfile=conftest.$ac_objext
6246 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6248 _lt_linker_boilerplate=`cat conftest.err`
6253 # Check for any special shared library compilation flags.
6256 if test "$GCC" = no; then
6259 lt_prog_cc_shlib='-belf'
6263 if test -n "$lt_prog_cc_shlib"; then
6264 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6265 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6266 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6268 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6269 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6270 lt_cv_prog_cc_can_build_shared=no
6276 # Check to make sure the static flag actually works.
6278 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6279 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6280 if test "${lt_prog_compiler_static_works+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 lt_prog_compiler_static_works=no
6284 save_LDFLAGS="$LDFLAGS"
6285 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6286 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6288 # The linker can only warn and ignore the option if not recognized
6289 # So say no if there are warnings
6290 if test -s conftest.err; then
6291 # Append any errors to the config.log.
6292 cat conftest.err 1>&5
6293 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6294 $SED '/^$/d' conftest.err >conftest.er2
6295 if diff conftest.exp conftest.er2 >/dev/null; then
6296 lt_prog_compiler_static_works=yes
6299 lt_prog_compiler_static_works=yes
6303 LDFLAGS="$save_LDFLAGS"
6306 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6307 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6309 if test x"$lt_prog_compiler_static_works" = xyes; then
6312 lt_prog_compiler_static=
6318 lt_prog_compiler_no_builtin_flag=
6320 if test "$GCC" = yes; then
6321 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 lt_cv_prog_compiler_rtti_exceptions=no
6330 ac_outfile=conftest.$ac_objext
6331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332 lt_compiler_flag="-fno-rtti -fno-exceptions"
6333 # Insert the option either (1) after the last *FLAGS variable, or
6334 # (2) before a word containing "conftest.", or (3) at the end.
6335 # Note that $ac_compile itself does not contain backslashes and begins
6336 # with a dollar sign (not a hyphen), so the echo should work correctly.
6337 # The option is referenced via a variable to avoid confusing sed.
6338 lt_compile=`echo "$ac_compile" | $SED \
6339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341 -e 's:$: $lt_compiler_flag:'`
6342 (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343 (eval "$lt_compile" 2>conftest.err)
6345 cat conftest.err >&5
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 if (exit $ac_status) && test -s "$ac_outfile"; then
6348 # The compiler can only warn and ignore the option if not recognized
6349 # So say no if there are warnings other than the usual output.
6350 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6351 $SED '/^$/d' conftest.err >conftest.er2
6352 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6353 lt_cv_prog_compiler_rtti_exceptions=yes
6359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6370 lt_prog_compiler_wl=
6371 lt_prog_compiler_pic=
6372 lt_prog_compiler_static=
6374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6377 if test "$GCC" = yes; then
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_static='-static'
6383 # All AIX code is PIC.
6384 if test "$host_cpu" = ia64; then
6385 # AIX 5 now supports IA64 processor
6386 lt_prog_compiler_static='-Bstatic'
6391 # FIXME: we need at least 68020 code to build shared libraries, but
6392 # adding the `-m68020' flag to GCC prevents building anything better,
6394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398 # PIC is the default for these OSes.
6401 mingw* | pw32* | os2*)
6402 # This hack is so that the source file can tell whether it is being
6403 # built for inclusion in a dll (and should export symbols for example).
6404 lt_prog_compiler_pic='-DDLL_EXPORT'
6407 darwin* | rhapsody*)
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 lt_prog_compiler_pic='-fno-common'
6414 # Just because we use GCC doesn't mean we suddenly get shared libraries
6415 # on systems that don't support them.
6416 lt_prog_compiler_can_build_shared=no
6421 if test -d /usr/nec; then
6422 lt_prog_compiler_pic=-Kconform_pic
6427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6434 lt_prog_compiler_pic='-fPIC'
6440 lt_prog_compiler_pic='-fPIC'
6444 # PORTME Check for flag to pass linker flags through the system compiler.
6447 lt_prog_compiler_wl='-Wl,'
6448 if test "$host_cpu" = ia64; then
6449 # AIX 5 now supports IA64 processor
6450 lt_prog_compiler_static='-Bstatic'
6452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6456 # PIC is the default on this platform
6457 # Common symbols not allowed in MH_DYLIB files
6458 case $cc_basename in
6460 lt_prog_compiler_pic='-qnocommon'
6461 lt_prog_compiler_wl='-Wl,'
6466 mingw* | pw32* | os2*)
6467 # This hack is so that the source file can tell whether it is being
6468 # built for inclusion in a dll (and should export symbols for example).
6469 lt_prog_compiler_pic='-DDLL_EXPORT'
6472 hpux9* | hpux10* | hpux11*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6481 lt_prog_compiler_pic='+Z'
6484 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6485 lt_prog_compiler_static='${wl}-a ${wl}archive'
6488 irix5* | irix6* | nonstopux*)
6489 lt_prog_compiler_wl='-Wl,'
6490 # PIC (with -KPIC) is the default.
6491 lt_prog_compiler_static='-non_shared'
6495 lt_prog_compiler_pic='-KPIC'
6496 lt_prog_compiler_static='-Bstatic'
6500 case $cc_basename in
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_pic='-KPIC'
6504 lt_prog_compiler_static='-static'
6506 pgcc* | pgf77* | pgf90* | pgf95*)
6507 # Portland Group compilers (*not* the Pentium gcc compiler,
6508 # which looks to be a dead project)
6509 lt_prog_compiler_wl='-Wl,'
6510 lt_prog_compiler_pic='-fpic'
6511 lt_prog_compiler_static='-Bstatic'
6514 lt_prog_compiler_wl='-Wl,'
6515 # All Alpha code is PIC.
6516 lt_prog_compiler_static='-non_shared'
6521 osf3* | osf4* | osf5*)
6522 lt_prog_compiler_wl='-Wl,'
6523 # All OSF/1 code is PIC.
6524 lt_prog_compiler_static='-non_shared'
6528 lt_prog_compiler_pic='-Kpic'
6529 lt_prog_compiler_static='-dn'
6533 lt_prog_compiler_pic='-KPIC'
6534 lt_prog_compiler_static='-Bstatic'
6535 case $cc_basename in
6537 lt_prog_compiler_wl='-Qoption ld ';;
6539 lt_prog_compiler_wl='-Wl,';;
6544 lt_prog_compiler_wl='-Qoption ld '
6545 lt_prog_compiler_pic='-PIC'
6546 lt_prog_compiler_static='-Bstatic'
6549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6550 lt_prog_compiler_wl='-Wl,'
6551 lt_prog_compiler_pic='-KPIC'
6552 lt_prog_compiler_static='-Bstatic'
6556 if test -d /usr/nec ;then
6557 lt_prog_compiler_pic='-Kconform_pic'
6558 lt_prog_compiler_static='-Bstatic'
6563 lt_prog_compiler_wl='-Wl,'
6564 lt_prog_compiler_can_build_shared=no
6568 lt_prog_compiler_pic='-pic'
6569 lt_prog_compiler_static='-Bstatic'
6573 lt_prog_compiler_can_build_shared=no
6578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6579 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6582 # Check to make sure the PIC flag actually works.
6584 if test -n "$lt_prog_compiler_pic"; then
6586 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6587 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6588 if test "${lt_prog_compiler_pic_works+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 lt_prog_compiler_pic_works=no
6592 ac_outfile=conftest.$ac_objext
6593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6595 # Insert the option either (1) after the last *FLAGS variable, or
6596 # (2) before a word containing "conftest.", or (3) at the end.
6597 # Note that $ac_compile itself does not contain backslashes and begins
6598 # with a dollar sign (not a hyphen), so the echo should work correctly.
6599 # The option is referenced via a variable to avoid confusing sed.
6600 lt_compile=`echo "$ac_compile" | $SED \
6601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603 -e 's:$: $lt_compiler_flag:'`
6604 (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605 (eval "$lt_compile" 2>conftest.err)
6607 cat conftest.err >&5
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 if (exit $ac_status) && test -s "$ac_outfile"; then
6610 # The compiler can only warn and ignore the option if not recognized
6611 # So say no if there are warnings other than the usual output.
6612 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6613 $SED '/^$/d' conftest.err >conftest.er2
6614 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6615 lt_prog_compiler_pic_works=yes
6621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6622 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6624 if test x"$lt_prog_compiler_pic_works" = xyes; then
6625 case $lt_prog_compiler_pic in
6627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6630 lt_prog_compiler_pic=
6631 lt_prog_compiler_can_build_shared=no
6636 # For platforms which do not support PIC, -DPIC is meaningless:
6638 lt_prog_compiler_pic=
6641 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 lt_cv_prog_compiler_c_o=no
6651 $rm -r conftest 2>/dev/null
6655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6657 lt_compiler_flag="-o out/conftest2.$ac_objext"
6658 # Insert the option either (1) after the last *FLAGS variable, or
6659 # (2) before a word containing "conftest.", or (3) at the end.
6660 # Note that $ac_compile itself does not contain backslashes and begins
6661 # with a dollar sign (not a hyphen), so the echo should work correctly.
6662 lt_compile=`echo "$ac_compile" | $SED \
6663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6665 -e 's:$: $lt_compiler_flag:'`
6666 (eval echo "\"\$as_me:6666: $lt_compile\"" >&5)
6667 (eval "$lt_compile" 2>out/conftest.err)
6669 cat out/conftest.err >&5
6670 echo "$as_me:6670: \$? = $ac_status" >&5
6671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6673 # The compiler can only warn and ignore the option if not recognized
6674 # So say no if there are warnings
6675 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6676 $SED '/^$/d' out/conftest.err >out/conftest.er2
6677 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6678 lt_cv_prog_compiler_c_o=yes
6683 # SGI C++ compiler will create directory out/ii_files/ for
6684 # template instantiation
6685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6686 $rm out/* && rmdir out
6692 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6696 hard_links="nottested"
6697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6698 # do not overwrite the value of need_locks provided by the user
6699 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6705 ln conftest.a conftest.b 2>&5 || hard_links=no
6706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6707 echo "$as_me:$LINENO: result: $hard_links" >&5
6708 echo "${ECHO_T}$hard_links" >&6
6709 if test "$hard_links" = no; then
6710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6718 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6722 allow_undefined_flag=
6723 enable_shared_with_static_runtimes=no
6725 archive_expsym_cmds=
6726 old_archive_From_new_cmds=
6727 old_archive_from_expsyms_cmds=
6728 export_dynamic_flag_spec=
6729 whole_archive_flag_spec=
6730 thread_safe_flag_spec=
6731 hardcode_libdir_flag_spec=
6732 hardcode_libdir_flag_spec_ld=
6733 hardcode_libdir_separator=
6736 hardcode_shlibpath_var=unsupported
6737 link_all_deplibs=unknown
6738 hardcode_automatic=no
6741 always_export_symbols=no
6742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6743 # include_expsyms should be a list of space-separated symbols to be *always*
6744 # included in the symbol list
6746 # exclude_expsyms can be an extended regexp of symbols to exclude
6747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6749 # as well as any symbol that contains `d'.
6750 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6752 # platforms (ab)use it in PIC code, but their linkers get confused if
6753 # the symbol is explicitly referenced. Since portable code cannot
6754 # rely on this symbol name, it's probably fine to never include it in
6755 # preloaded symbol tables.
6756 extract_expsyms_cmds=
6757 # Just being paranoid about ensuring that cc_basename is set.
6758 for cc_temp in $compiler""; do
6760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6769 cygwin* | mingw* | pw32*)
6770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6771 # When not using gcc, we currently assume that we are using
6772 # Microsoft Visual C++.
6773 if test "$GCC" != yes; then
6783 if test "$with_gnu_ld" = yes; then
6784 # If archive_cmds runs LD, not CC, wlarc should be empty
6787 # Set some defaults for GNU ld with shared library support. These
6788 # are reset later if shared libraries are not supported. Putting them
6789 # here allows them to be overridden if necessary.
6790 runpath_var=LD_RUN_PATH
6791 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6792 export_dynamic_flag_spec='${wl}--export-dynamic'
6793 # ancient GNU ld didn't support --whole-archive et. al.
6794 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6797 whole_archive_flag_spec=
6799 supports_anon_versioning=no
6800 case `$LD -v 2>/dev/null` in
6801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804 *\ 2.11.*) ;; # other 2.11 versions
6805 *) supports_anon_versioning=yes ;;
6808 # See if GNU ld supports shared libraries.
6810 aix3* | aix4* | aix5*)
6811 # On AIX/PPC, the GNU linker is very broken
6812 if test "$host_cpu" != ia64; then
6816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6817 *** to be unable to reliably create shared libraries on AIX.
6818 *** Therefore, libtool is disabling shared libraries support. If you
6819 *** really care for shared libraries, you may want to modify your PATH
6820 *** so that a non-GNU linker is found, and then restart.
6827 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)'
6828 hardcode_libdir_flag_spec='-L$libdir'
6829 hardcode_minus_L=yes
6831 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6832 # that the semantics of dynamic libraries on AmigaOS, at least up
6833 # to version 4, is to share data among multiple programs linked
6834 # with the same dynamic library. Since this doesn't match the
6835 # behavior of shared libraries on other platforms, we can't use
6841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6842 allow_undefined_flag=unsupported
6843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6844 # support --undefined. This deserves some investigation. FIXME
6845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6851 cygwin* | mingw* | pw32*)
6852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6853 # as there is no search path for DLLs.
6854 hardcode_libdir_flag_spec='-L$libdir'
6855 allow_undefined_flag=unsupported
6856 always_export_symbols=no
6857 enable_shared_with_static_runtimes=yes
6858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6862 # If the export-symbols file already is a .def file (1st line
6863 # is EXPORTS), use it as is; otherwise, prepend...
6864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6865 cp $export_symbols $output_objdir/$soname.def;
6867 echo EXPORTS > $output_objdir/$soname.def;
6868 cat $export_symbols >> $output_objdir/$soname.def;
6870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6879 case $cc_basename,$host_cpu in
6880 pgcc*) # Portland Group C compiler
6881 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'
6882 tmp_addflag=' $pic_flag'
6884 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6885 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'
6886 tmp_addflag=' $pic_flag -Mnomain' ;;
6887 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6888 tmp_addflag=' -i_dynamic' ;;
6889 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6890 tmp_addflag=' -i_dynamic -nofor_main' ;;
6891 ifc* | ifort*) # Intel Fortran compiler
6892 tmp_addflag=' -nofor_main' ;;
6894 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6896 if test $supports_anon_versioning = yes; then
6897 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6899 $echo "local: *; };" >> $output_objdir/$libname.ver~
6900 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6909 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6918 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6922 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6923 *** create shared libraries on Solaris systems. Therefore, libtool
6924 *** is disabling shared libraries support. We urge you to upgrade GNU
6925 *** binutils to release 2.9.1 or newer. Another option is to modify
6926 *** your PATH or compiler configuration so that the native linker is
6927 *** used, and then restart.
6930 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6939 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6942 hardcode_shlibpath_var=no
6946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6955 if test "$ld_shlibs" = no; then
6957 hardcode_libdir_flag_spec=
6958 export_dynamic_flag_spec=
6959 whole_archive_flag_spec=
6962 # PORTME fill in a description of your system's linker (not GNU ld)
6965 allow_undefined_flag=unsupported
6966 always_export_symbols=yes
6967 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'
6968 # Note: this linker hardcodes the directories in LIBPATH if there
6969 # are no directories specified by -L.
6970 hardcode_minus_L=yes
6971 if test "$GCC" = yes && test -z "$link_static_flag"; then
6972 # Neither direct hardcoding nor static linking is supported with a
6974 hardcode_direct=unsupported
6979 if test "$host_cpu" = ia64; then
6980 # On IA64, the linker does run time linking by default, so we don't
6981 # have to do anything special.
6982 aix_use_runtimelinking=no
6983 exp_sym_flag='-Bexport'
6986 # If we're using GNU nm, then we don't want the "-C" option.
6987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6989 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'
6991 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'
6993 aix_use_runtimelinking=no
6995 # Test if we are trying to use run time linking or normal
6996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6997 # need to do runtime linking.
6998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6999 for ld_flag in $LDFLAGS; do
7000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7001 aix_use_runtimelinking=yes
7007 exp_sym_flag='-bexport'
7008 no_entry_flag='-bnoentry'
7011 # When large executables or shared objects are built, AIX ld can
7012 # have problems creating the table of contents. If linking a library
7013 # or program results in "error TOC overflow" add -mminimal-toc to
7014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7019 hardcode_libdir_separator=':'
7020 link_all_deplibs=yes
7022 if test "$GCC" = yes; then
7023 case $host_os in aix4.[012]|aix4.[012].*)
7024 # We only want to do this on AIX 4.2 and lower, the check
7025 # below for broken collect2 doesn't work under 4.3+
7026 collect2name=`${CC} -print-prog-name=collect2`
7027 if test -f "$collect2name" && \
7028 strings "$collect2name" | grep resolve_lib_name >/dev/null
7030 # We have reworked collect2
7033 # We have old collect2
7034 hardcode_direct=unsupported
7035 # It fails to find uninstalled libraries when the uninstalled
7036 # path is not listed in the libpath. Setting hardcode_minus_L
7037 # to unsupported forces relinking
7038 hardcode_minus_L=yes
7039 hardcode_libdir_flag_spec='-L$libdir'
7040 hardcode_libdir_separator=
7043 shared_flag='-shared'
7044 if test "$aix_use_runtimelinking" = yes; then
7045 shared_flag="$shared_flag "'${wl}-G'
7049 if test "$host_cpu" = ia64; then
7050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7051 # chokes on -Wl,-G. The following line is correct:
7054 if test "$aix_use_runtimelinking" = yes; then
7055 shared_flag='${wl}-G'
7057 shared_flag='${wl}-bM:SRE'
7062 # It seems that -bexpall does not export symbols beginning with
7063 # underscore (_), so it is better to generate a list of symbols to export.
7064 always_export_symbols=yes
7065 if test "$aix_use_runtimelinking" = yes; then
7066 # Warning - without using the other runtime loading flags (-brtl),
7067 # -berok will link without error, but may produce a broken library.
7068 allow_undefined_flag='-berok'
7069 # Determine the default libpath from the value encoded in an empty executable.
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7085 rm -f conftest.$ac_objext conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7110 # Check for a 64-bit object if we didn't find anything.
7111 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; }
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7118 rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123 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"
7125 if test "$host_cpu" = ia64; then
7126 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7127 allow_undefined_flag="-z nodefs"
7128 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"
7130 # Determine the default libpath from the value encoded in an empty executable.
7131 cat >conftest.$ac_ext <<_ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>conftest.er1
7150 grep -v '^ *+' conftest.er1 >conftest.err
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -z "$ac_c_werror_flag"
7156 || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try='test -s conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7171 # Check for a 64-bit object if we didn't find anything.
7172 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; }
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7179 rm -f conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7183 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7184 # Warning - without using the other run time loading flags,
7185 # -berok will link without error, but may produce a broken library.
7186 no_undefined_flag=' ${wl}-bernotok'
7187 allow_undefined_flag=' ${wl}-berok'
7188 # -bexpall does not export symbols beginning with underscore (_)
7189 always_export_symbols=yes
7190 # Exported symbols can be pulled into shared objects from archives
7191 whole_archive_flag_spec=' '
7192 archive_cmds_need_lc=yes
7193 # This is similar to how AIX traditionally builds its shared libraries.
7194 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'
7200 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)'
7201 hardcode_libdir_flag_spec='-L$libdir'
7202 hardcode_minus_L=yes
7203 # see comment about different semantics on the GNU ld section
7208 export_dynamic_flag_spec=-rdynamic
7211 cygwin* | mingw* | pw32*)
7212 # When not using gcc, we currently assume that we are using
7213 # Microsoft Visual C++.
7214 # hardcode_libdir_flag_spec is actually meaningless, as there is
7215 # no search path for DLLs.
7216 hardcode_libdir_flag_spec=' '
7217 allow_undefined_flag=unsupported
7218 # Tell ltmain to make .lib files, not .a files.
7220 # Tell ltmain to make .dll files, not .so files.
7222 # FIXME: Setting linknames here is a bad hack.
7223 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7224 # The linker will automatically build a .lib file if we build a DLL.
7225 old_archive_From_new_cmds='true'
7226 # FIXME: Should let the user specify the lib program.
7227 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7228 fix_srcfile_path='`cygpath -w "$srcfile"`'
7229 enable_shared_with_static_runtimes=yes
7232 darwin* | rhapsody*)
7234 rhapsody* | darwin1.[012])
7235 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7238 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7239 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7241 case ${MACOSX_DEPLOYMENT_TARGET} in
7243 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7246 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7252 archive_cmds_need_lc=no
7254 hardcode_automatic=yes
7255 hardcode_shlibpath_var=unsupported
7256 whole_archive_flag_spec=''
7257 link_all_deplibs=yes
7258 if test "$GCC" = yes ; then
7259 output_verbose_link_cmd='echo'
7260 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7261 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7263 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}'
7264 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}'
7266 case $cc_basename in
7268 output_verbose_link_cmd='echo'
7269 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7270 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7272 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}'
7273 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}'
7283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284 hardcode_libdir_flag_spec='-L$libdir'
7285 hardcode_shlibpath_var=no
7292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7293 # support. Future versions do this automatically, but an explicit c++rt0.o
7294 # does not break anything, and helps significantly (at the cost of a little
7297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7298 hardcode_libdir_flag_spec='-R$libdir'
7300 hardcode_shlibpath_var=no
7303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7307 hardcode_minus_L=yes
7308 hardcode_shlibpath_var=no
7311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7312 freebsd* | kfreebsd*-gnu | dragonfly*)
7313 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7314 hardcode_libdir_flag_spec='-R$libdir'
7316 hardcode_shlibpath_var=no
7320 if test "$GCC" = yes; then
7321 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'
7323 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'
7325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7326 hardcode_libdir_separator=:
7329 # hardcode_minus_L: Not really in the search PATH,
7330 # but as the default location of the library.
7331 hardcode_minus_L=yes
7332 export_dynamic_flag_spec='${wl}-E'
7336 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7339 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7348 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7355 if test "$with_gnu_ld" = no; then
7358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7359 hardcode_libdir_flag_spec_ld='+b $libdir'
7360 hardcode_libdir_separator=:
7362 hardcode_shlibpath_var=no
7365 hardcode_libdir_flag_spec='-L$libdir'
7367 hardcode_shlibpath_var=no
7369 # hardcode_minus_L: Not really in the search PATH,
7370 # but as the default location of the library.
7371 hardcode_minus_L=yes
7374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7375 hardcode_libdir_separator=:
7377 export_dynamic_flag_spec='${wl}-E'
7379 # hardcode_minus_L: Not really in the search PATH,
7380 # but as the default location of the library.
7381 hardcode_minus_L=yes
7387 irix5* | irix6* | nonstopux*)
7388 if test "$GCC" = yes; then
7389 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'
7391 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'
7392 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7395 hardcode_libdir_separator=:
7396 link_all_deplibs=yes
7400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7405 hardcode_libdir_flag_spec='-R$libdir'
7407 hardcode_shlibpath_var=no
7411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414 hardcode_libdir_separator=:
7415 hardcode_shlibpath_var=no
7420 hardcode_shlibpath_var=no
7421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7423 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7425 export_dynamic_flag_spec='${wl}-E'
7428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7430 hardcode_libdir_flag_spec='-R$libdir'
7433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7441 hardcode_libdir_flag_spec='-L$libdir'
7442 hardcode_minus_L=yes
7443 allow_undefined_flag=unsupported
7444 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'
7445 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7449 if test "$GCC" = yes; then
7450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7451 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'
7453 allow_undefined_flag=' -expect_unresolved \*'
7454 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'
7456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457 hardcode_libdir_separator=:
7460 osf4* | osf5*) # as osf3* with the addition of -msym flag
7461 if test "$GCC" = yes; then
7462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7463 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'
7464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7466 allow_undefined_flag=' -expect_unresolved \*'
7467 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'
7468 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7469 $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'
7471 # Both c and cxx compiler support -rpath directly
7472 hardcode_libdir_flag_spec='-rpath $libdir'
7474 hardcode_libdir_separator=:
7478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479 hardcode_shlibpath_var=no
7480 export_dynamic_flag_spec='${wl}-Bexport'
7481 runpath_var=LD_RUN_PATH
7482 hardcode_runpath_var=yes
7486 no_undefined_flag=' -z text'
7487 if test "$GCC" = yes; then
7489 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7490 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7491 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7498 hardcode_libdir_flag_spec='-R$libdir'
7499 hardcode_shlibpath_var=no
7501 solaris2.[0-5] | solaris2.[0-5].*) ;;
7503 # The compiler driver will combine linker options so we
7504 # cannot just pass the convience library names through
7505 # without $wl, iff we do not link with $LD.
7506 # Luckily, gcc supports the same syntax we need for Sun Studio.
7507 # Supported since Solaris 2.6 (maybe 2.5.1?)
7510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7512 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' ;;
7515 link_all_deplibs=yes
7519 if test "x$host_vendor" = xsequent; then
7520 # Use $CC to link under sequent, because it throws in some extra .o
7521 # files that make .init and .fini sections work.
7522 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7524 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7526 hardcode_libdir_flag_spec='-L$libdir'
7528 hardcode_minus_L=yes
7529 hardcode_shlibpath_var=no
7533 case $host_vendor in
7535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7536 hardcode_direct=yes # is this really true???
7539 ## LD is ld it makes a PLAMLIB
7540 ## CC just makes a GrossModule.
7541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7542 reload_cmds='$CC -r -o $output$reload_objs'
7546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7550 runpath_var='LD_RUN_PATH'
7551 hardcode_shlibpath_var=no
7555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_shlibpath_var=no
7557 export_dynamic_flag_spec='-Bexport'
7561 if test -d /usr/nec; then
7562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7563 hardcode_shlibpath_var=no
7564 runpath_var=LD_RUN_PATH
7565 hardcode_runpath_var=yes
7571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7574 hardcode_shlibpath_var=no
7575 hardcode_runpath_var=yes
7576 runpath_var=LD_RUN_PATH
7579 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7580 no_undefined_flag='${wl}-z ${wl}text'
7581 if test "$GCC" = yes; then
7582 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7584 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7586 runpath_var='LD_RUN_PATH'
7587 hardcode_shlibpath_var=no
7591 no_undefined_flag=' -z text'
7592 # $CC -shared without GNU ld will not create a library from C++
7593 # object files and a static libstdc++, better avoid it by now
7594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7597 hardcode_libdir_flag_spec=
7598 hardcode_shlibpath_var=no
7599 runpath_var='LD_RUN_PATH'
7603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7604 hardcode_libdir_flag_spec='-L$libdir'
7605 hardcode_shlibpath_var=no
7614 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7615 echo "${ECHO_T}$ld_shlibs" >&6
7616 test "$ld_shlibs" = no && can_build_shared=no
7618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7619 if test "$GCC" = yes; then
7620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7624 # Do we need to explicitly link libc?
7626 case "x$archive_cmds_need_lc" in
7628 # Assume -lc should be added
7629 archive_cmds_need_lc=yes
7631 if test "$enable_shared" = yes && test "$GCC" = yes; then
7632 case $archive_cmds in
7634 # FIXME: we may have to deal with multi-command sequences.
7637 # Test whether the compiler implicitly links with -lc since on some
7638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639 # to ld, don't add -lc before -lgcc.
7640 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7646 (eval $ac_compile) 2>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } 2>conftest.err; then
7652 libobjs=conftest.$ac_objext
7654 wl=$lt_prog_compiler_wl
7660 lt_save_allow_undefined_flag=$allow_undefined_flag
7661 allow_undefined_flag=
7662 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7663 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }
7668 archive_cmds_need_lc=no
7670 archive_cmds_need_lc=yes
7672 allow_undefined_flag=$lt_save_allow_undefined_flag
7674 cat conftest.err 1>&5
7677 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7678 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7688 libname_spec='lib$name'
7696 shlibpath_overrides_runpath=unknown
7698 dynamic_linker="$host_os ld.so"
7699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7700 if test "$GCC" = yes; then
7701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7703 # if the path contains ";" then we assume it to be the separator
7704 # otherwise default to the standard path separator (i.e. ":") - it is
7705 # assumed that no part of a normal pathname contains ";" but that should
7706 # okay in the real world where ";" in dirpaths is itself problematic.
7707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7714 need_lib_prefix=unknown
7715 hardcode_into_libs=no
7717 # when you set need_version to no, make sure it does not cause -set_version
7718 # flags to be left without arguments
7719 need_version=unknown
7724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7725 shlibpath_var=LIBPATH
7727 # AIX 3 has no versioning support, so we append a major version to the name.
7728 soname_spec='${libname}${release}${shared_ext}$major'
7735 hardcode_into_libs=yes
7736 if test "$host_cpu" = ia64; then
7737 # AIX 5 supports IA64
7738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7739 shlibpath_var=LD_LIBRARY_PATH
7741 # With GCC up to 2.95.x, collect2 would create an import file
7742 # for dependence libraries. The import file would start with
7743 # the line `#! .'. This would cause the generated library to
7744 # depend on `.', always an invalid library. This was fixed in
7745 # development snapshots of GCC prior to 3.0.
7747 aix4 | aix4.[01] | aix4.[01].*)
7748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7758 # soname into executable. Probably we can add versioning support to
7759 # collect2, so additional links can be useful in future.
7760 if test "$aix_use_runtimelinking" = yes; then
7761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7762 # instead of lib<name>.a to let people know that these are not
7763 # typical AIX shared libraries.
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7766 # We preserve .a as extension for shared libraries through AIX4.2
7767 # and later when we are not doing run time linking.
7768 library_names_spec='${libname}${release}.a $libname.a'
7769 soname_spec='${libname}${release}${shared_ext}$major'
7771 shlibpath_var=LIBPATH
7776 library_names_spec='$libname.ixlibrary $libname.a'
7777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7778 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'
7782 library_names_spec='${libname}${shared_ext}'
7783 dynamic_linker="$host_os ld.so"
7784 shlibpath_var=LIBRARY_PATH
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791 soname_spec='${libname}${release}${shared_ext}$major'
7792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7793 shlibpath_var=LD_LIBRARY_PATH
7794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7796 # the default ld.so.conf also contains /usr/contrib/lib and
7797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7798 # libtool to hard-code these into programs
7801 cygwin* | mingw* | pw32*)
7802 version_type=windows
7807 case $GCC,$host_os in
7808 yes,cygwin* | yes,mingw* | yes,pw32*)
7809 library_names_spec='$libname.dll.a'
7810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7811 postinstall_cmds='base_file=`basename \${file}`~
7812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7813 dldir=$destdir/`dirname \$dlpath`~
7814 test -d \$dldir || mkdir -p \$dldir~
7815 $install_prog $dir/$dlname \$dldir/$dlname~
7816 chmod a+x \$dldir/$dlname'
7817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7818 dlpath=$dir/\$dldll~
7820 shlibpath_overrides_runpath=yes
7824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7826 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7829 # MinGW DLLs use traditional 'lib' prefix
7830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7832 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7833 # It is most probably a Windows format PATH printed by
7834 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7835 # path with ; separators, and with drive letters. We can handle the
7836 # drive letters (cygwin fileutils understands them), so leave them,
7837 # especially as we might pass files found there to a mingw objdump,
7838 # which wouldn't understand a cygwinified path. Ahh.
7839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7845 # pw32 DLLs use 'pw' prefix rather than 'lib'
7846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7855 dynamic_linker='Win32 ld.exe'
7856 # FIXME: first we should search . and the directory the executable is in
7860 darwin* | rhapsody*)
7861 dynamic_linker="$host_os dyld"
7865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7866 soname_spec='${libname}${release}${major}$shared_ext'
7867 shlibpath_overrides_runpath=yes
7868 shlibpath_var=DYLD_LIBRARY_PATH
7869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7871 if test "$GCC" = yes; then
7872 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"`
7874 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7884 soname_spec='${libname}${release}${shared_ext}$major'
7885 shlibpath_var=LD_LIBRARY_PATH
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 shlibpath_var=LD_LIBRARY_PATH
7899 shlibpath_overrides_runpath=no
7900 hardcode_into_libs=yes
7901 dynamic_linker='GNU ld.so'
7904 freebsd* | dragonfly*)
7905 # DragonFly does not have aout. When/if they implement a new
7906 # versioning mechanism, adjust this.
7907 if test -x /usr/bin/objformat; then
7908 objformat=`/usr/bin/objformat`
7911 freebsd[123]*) objformat=aout ;;
7915 version_type=freebsd-$objformat
7916 case $version_type in
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7927 shlibpath_var=LD_LIBRARY_PATH
7930 shlibpath_overrides_runpath=yes
7932 freebsd3.[01]* | freebsdelf3.[01]*)
7933 shlibpath_overrides_runpath=yes
7934 hardcode_into_libs=yes
7937 shlibpath_overrides_runpath=no
7938 hardcode_into_libs=yes
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 hardcode_into_libs=yes
7953 hpux9* | hpux10* | hpux11*)
7954 # Give a soname corresponding to the major version so that dld.sl refuses to
7955 # link against other versions.
7962 hardcode_into_libs=yes
7963 dynamic_linker="$host_os dld.so"
7964 shlibpath_var=LD_LIBRARY_PATH
7965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 if test "X$HPUX_IA64_MODE" = X32; then
7969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7977 hardcode_into_libs=yes
7978 dynamic_linker="$host_os dld.sl"
7979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982 soname_spec='${libname}${release}${shared_ext}$major'
7983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7988 dynamic_linker="$host_os dld.sl"
7989 shlibpath_var=SHLIB_PATH
7990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7996 postinstall_cmds='chmod 555 $lib'
7999 irix5* | irix6* | nonstopux*)
8001 nonstopux*) version_type=nonstopux ;;
8003 if test "$lt_cv_prog_gnu_ld" = yes; then
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8014 irix5* | nonstopux*)
8018 case $LD in # libtool.m4 will add one of these switches to LD
8019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8020 libsuff= shlibsuff= libmagic=32-bit;;
8021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8022 libsuff=32 shlibsuff=N32 libmagic=N32;;
8023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8025 *) libsuff= shlibsuff= libmagic=never-match;;
8029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8030 shlibpath_overrides_runpath=no
8031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8033 hardcode_into_libs=yes
8036 # No shared lib support for Linux oldld, aout, or coff.
8037 linux*oldld* | linux*aout* | linux*coff*)
8041 # This must be Linux ELF.
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 shlibpath_overrides_runpath=no
8051 # This implies no fast_install, which is unacceptable.
8052 # Some rework will be needed to allow for fast_install
8053 # before this can be enabled.
8054 hardcode_into_libs=yes
8056 # Append ld.so.conf contents to the search path
8057 if test -f /etc/ld.so.conf; then
8058 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' ' '`
8059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8062 # We used to test for /lib/ld.so.1 and disable shared libraries on
8063 # powerpc, because MkLinux only supported shared libraries with the
8064 # GNU dynamic linker. Since this was broken with cross compilers,
8065 # most powerpc-linux boxes support dynamic linking these days and
8066 # people can always --disable-shared, the test was removed, and we
8067 # assume the GNU/Linux dynamic linker is in use.
8068 dynamic_linker='GNU/Linux ld.so'
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 shlibpath_overrides_runpath=no
8079 hardcode_into_libs=yes
8080 dynamic_linker='GNU ld.so'
8087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8090 dynamic_linker='NetBSD (a.out) ld.so'
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 dynamic_linker='NetBSD ld.elf_so'
8096 shlibpath_var=LD_LIBRARY_PATH
8097 shlibpath_overrides_runpath=yes
8098 hardcode_into_libs=yes
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104 shlibpath_var=LD_LIBRARY_PATH
8105 shlibpath_overrides_runpath=yes
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 shlibpath_var=LD_LIBRARY_PATH
8115 shlibpath_overrides_runpath=yes
8121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8124 *) need_version=no ;;
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8128 shlibpath_var=LD_LIBRARY_PATH
8129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8131 openbsd2.[89] | openbsd2.[89].*)
8132 shlibpath_overrides_runpath=no
8135 shlibpath_overrides_runpath=yes
8139 shlibpath_overrides_runpath=yes
8144 libname_spec='$name'
8147 library_names_spec='$libname${shared_ext} $libname.a'
8148 dynamic_linker='OS/2 ld.exe'
8149 shlibpath_var=LIBPATH
8152 osf3* | osf4* | osf5*)
8156 soname_spec='${libname}${release}${shared_ext}$major'
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158 shlibpath_var=LD_LIBRARY_PATH
8159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8165 soname_spec='${libname}${release}${shared_ext}$major'
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167 shlibpath_var=LD_LIBRARY_PATH
8174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175 soname_spec='${libname}${release}${shared_ext}$major'
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=yes
8178 hardcode_into_libs=yes
8179 # ldd complains unless libraries are executable
8180 postinstall_cmds='chmod +x $lib'
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=yes
8189 if test "$with_gnu_ld" = yes; then
8195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 shlibpath_var=LD_LIBRARY_PATH
8200 case $host_vendor in
8202 shlibpath_overrides_runpath=no
8204 export_dynamic_flag_spec='${wl}-Blargedynsym'
8205 runpath_var=LD_RUN_PATH
8213 shlibpath_overrides_runpath=no
8214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8220 if test -d /usr/nec ;then
8222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8223 soname_spec='$libname${shared_ext}.$major'
8224 shlibpath_var=LD_LIBRARY_PATH
8230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231 soname_spec='${libname}${release}${shared_ext}$major'
8232 shlibpath_var=LD_LIBRARY_PATH
8239 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8240 echo "${ECHO_T}$dynamic_linker" >&6
8241 test "$dynamic_linker" = no && can_build_shared=no
8243 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8244 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8246 if test -n "$hardcode_libdir_flag_spec" || \
8247 test -n "$runpath_var" || \
8248 test "X$hardcode_automatic" = "Xyes" ; then
8250 # We can hardcode non-existant directories.
8251 if test "$hardcode_direct" != no &&
8252 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8253 # have to relink, otherwise we might link with an installed library
8254 # when we should be linking with a yet-to-be-installed one
8255 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8256 test "$hardcode_minus_L" != no; then
8257 # Linking always hardcodes the temporary library directory.
8258 hardcode_action=relink
8260 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8261 hardcode_action=immediate
8264 # We cannot hardcode anything, or else we can only hardcode existing
8266 hardcode_action=unsupported
8268 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8269 echo "${ECHO_T}$hardcode_action" >&6
8271 if test "$hardcode_action" = relink; then
8272 # Fast installation is not supported
8273 enable_fast_install=no
8274 elif test "$shlibpath_overrides_runpath" = yes ||
8275 test "$enable_shared" = no; then
8276 # Fast installation is not necessary
8277 enable_fast_install=needless
8282 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8283 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8284 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8286 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8287 echo "$as_me:$LINENO: result: yes" >&5
8288 echo "${ECHO_T}yes" >&6
8290 # FIXME - insert some real tests, host_os isn't really good enough
8293 if test -n "$STRIP" ; then
8294 striplib="$STRIP -x"
8295 echo "$as_me:$LINENO: result: yes" >&5
8296 echo "${ECHO_T}yes" >&6
8298 echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6
8303 echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8309 if test "x$enable_dlopen" != xyes; then
8310 enable_dlopen=unknown
8311 enable_dlopen_self=unknown
8312 enable_dlopen_self_static=unknown
8319 lt_cv_dlopen="load_add_on"
8321 lt_cv_dlopen_self=yes
8325 lt_cv_dlopen="LoadLibrary"
8330 lt_cv_dlopen="dlopen"
8335 # if libdl is installed we need to link against it
8336 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8337 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 ac_check_lib_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_lib_dl_dlopen=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_lib_dl_dlopen=no
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8399 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8400 if test $ac_cv_lib_dl_dlopen = yes; then
8401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8406 lt_cv_dlopen_self=yes
8413 echo "$as_me:$LINENO: checking for shl_load" >&5
8414 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8415 if test "${ac_cv_func_shl_load+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8426 #define shl_load innocuous_shl_load
8428 /* System header to define __stub macros and hopefully few prototypes,
8429 which can conflict with char shl_load (); below.
8430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8431 <limits.h> exists even on freestanding compilers. */
8434 # include <limits.h>
8436 # include <assert.h>
8441 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8449 /* The GNU C library defines this for functions which it implements
8450 to always fail with ENOSYS. Some functions are actually named
8451 something starting with __ and the normal name is an alias. */
8452 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8455 char (*f) () = shl_load;
8464 return f != shl_load;
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_cv_func_shl_load=yes
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_cv_func_shl_load=no
8498 rm -f conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8501 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8502 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8503 if test $ac_cv_func_shl_load = yes; then
8504 lt_cv_dlopen="shl_load"
8506 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8507 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8508 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 ac_check_lib_save_LIBS=$LIBS
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8520 /* Override any gcc2 internal prototype to avoid an error. */
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537 (eval $ac_link) 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_lib_dld_shl_load=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_lib_dld_shl_load=no
8564 rm -f conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LIBS=$ac_check_lib_save_LIBS
8568 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8569 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8570 if test $ac_cv_lib_dld_shl_load = yes; then
8571 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8573 echo "$as_me:$LINENO: checking for dlopen" >&5
8574 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8575 if test "${ac_cv_func_dlopen+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8586 #define dlopen innocuous_dlopen
8588 /* System header to define __stub macros and hopefully few prototypes,
8589 which can conflict with char dlopen (); below.
8590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8591 <limits.h> exists even on freestanding compilers. */
8594 # include <limits.h>
8596 # include <assert.h>
8601 /* Override any gcc2 internal prototype to avoid an error. */
8606 /* We use char because int might match the return type of a gcc2
8607 builtin and then its argument prototype would still apply. */
8609 /* The GNU C library defines this for functions which it implements
8610 to always fail with ENOSYS. Some functions are actually named
8611 something starting with __ and the normal name is an alias. */
8612 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8615 char (*f) () = dlopen;
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag"
8639 || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_func_dlopen=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_func_dlopen=no
8658 rm -f conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8661 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8662 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8663 if test $ac_cv_func_dlopen = yes; then
8664 lt_cv_dlopen="dlopen"
8666 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_check_lib_save_LIBS=$LIBS
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 /* Override any gcc2 internal prototype to avoid an error. */
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_lib_dl_dlopen=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_lib_dl_dlopen=no
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8729 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8730 if test $ac_cv_lib_dl_dlopen = yes; then
8731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8733 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8734 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8735 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_check_lib_save_LIBS=$LIBS
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_cv_lib_svld_dlopen=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_lib_svld_dlopen=no
8791 rm -f conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8793 LIBS=$ac_check_lib_save_LIBS
8795 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8796 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8797 if test $ac_cv_lib_svld_dlopen = yes; then
8798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8800 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8801 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 ac_check_lib_save_LIBS=$LIBS
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_lib_dld_dld_link=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_lib_dld_dld_link=no
8858 rm -f conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8863 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8864 if test $ac_cv_lib_dld_dld_link = yes; then
8865 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8886 if test "x$lt_cv_dlopen" != xno; then
8892 case $lt_cv_dlopen in
8894 save_CPPFLAGS="$CPPFLAGS"
8895 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8897 save_LDFLAGS="$LDFLAGS"
8898 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8901 LIBS="$lt_cv_dlopen_libs $LIBS"
8903 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8904 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8905 if test "${lt_cv_dlopen_self+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 if test "$cross_compiling" = yes; then :
8909 lt_cv_dlopen_self=cross
8911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8912 lt_status=$lt_dlunknown
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8924 # define LT_DLGLOBAL RTLD_GLOBAL
8927 # define LT_DLGLOBAL DL_GLOBAL
8929 # define LT_DLGLOBAL 0
8933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8934 find out it does not work in some platform. */
8935 #ifndef LT_DLLAZY_OR_NOW
8937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8940 # define LT_DLLAZY_OR_NOW DL_LAZY
8943 # define LT_DLLAZY_OR_NOW RTLD_NOW
8946 # define LT_DLLAZY_OR_NOW DL_NOW
8948 # define LT_DLLAZY_OR_NOW 0
8956 extern "C" void exit (int);
8959 void fnord() { int i=42;}
8962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8963 int status = $lt_dlunknown;
8967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8969 /* dlclose (self); */
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8980 (./conftest; exit; ) >&5 2>/dev/null
8983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8985 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8988 # compilation failed
8989 lt_cv_dlopen_self=no
8996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8997 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8999 if test "x$lt_cv_dlopen_self" = xyes; then
9000 LDFLAGS="$LDFLAGS $link_static_flag"
9001 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9002 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9003 if test "${lt_cv_dlopen_self_static+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 if test "$cross_compiling" = yes; then :
9007 lt_cv_dlopen_self_static=cross
9009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9010 lt_status=$lt_dlunknown
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9012 "configure"
9013 #include "confdefs.h"
9022 # define LT_DLGLOBAL RTLD_GLOBAL
9025 # define LT_DLGLOBAL DL_GLOBAL
9027 # define LT_DLGLOBAL 0
9031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9032 find out it does not work in some platform. */
9033 #ifndef LT_DLLAZY_OR_NOW
9035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9038 # define LT_DLLAZY_OR_NOW DL_LAZY
9041 # define LT_DLLAZY_OR_NOW RTLD_NOW
9044 # define LT_DLLAZY_OR_NOW DL_NOW
9046 # define LT_DLLAZY_OR_NOW 0
9054 extern "C" void exit (int);
9057 void fnord() { int i=42;}
9060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9061 int status = $lt_dlunknown;
9065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9067 /* dlclose (self); */
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9078 (./conftest; exit; ) >&5 2>/dev/null
9081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9083 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9086 # compilation failed
9087 lt_cv_dlopen_self_static=no
9094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9095 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9098 CPPFLAGS="$save_CPPFLAGS"
9099 LDFLAGS="$save_LDFLAGS"
9104 case $lt_cv_dlopen_self in
9105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9106 *) enable_dlopen_self=unknown ;;
9109 case $lt_cv_dlopen_self_static in
9110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9111 *) enable_dlopen_self_static=unknown ;;
9116 # Report which librarie types wil actually be built
9117 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9118 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9119 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9120 echo "${ECHO_T}$can_build_shared" >&6
9122 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9123 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9124 test "$can_build_shared" = "no" && enable_shared=no
9126 # On AIX, shared libraries and static libraries use the same namespace, and
9127 # are all built from PIC.
9130 test "$enable_shared" = yes && enable_static=no
9131 if test -n "$RANLIB"; then
9132 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9133 postinstall_cmds='$RANLIB $lib'
9138 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9139 test "$enable_shared" = yes && enable_static=no
9143 echo "$as_me:$LINENO: result: $enable_shared" >&5
9144 echo "${ECHO_T}$enable_shared" >&6
9146 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9147 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9148 # Make sure either enable_shared or enable_static is yes.
9149 test "$enable_shared" = yes || enable_static=yes
9150 echo "$as_me:$LINENO: result: $enable_static" >&5
9151 echo "${ECHO_T}$enable_static" >&6
9153 # The else clause should only fire when bootstrapping the
9154 # libtool distribution, otherwise you forgot to ship ltmain.sh
9155 # with your package, and you will get complaints that there are
9156 # no rules to generate ltmain.sh.
9157 if test -f "$ltmain"; then
9158 # See if we are running on zsh, and set the options which allow our commands through
9159 # without removal of \ escapes.
9160 if test -n "${ZSH_VERSION+set}" ; then
9161 setopt NO_GLOB_SUBST
9163 # Now quote all the things that may contain metacharacters while being
9164 # careful not to overquote the AC_SUBSTed values. We take copies of the
9165 # variables and quote the copies for generation of the libtool script.
9166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9170 deplibs_check_method reload_flag reload_cmds need_locks \
9171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9172 lt_cv_sys_global_symbol_to_c_name_address \
9173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9174 old_postinstall_cmds old_postuninstall_cmds \
9178 lt_prog_compiler_wl \
9179 lt_prog_compiler_pic \
9180 lt_prog_compiler_static \
9181 lt_prog_compiler_no_builtin_flag \
9182 export_dynamic_flag_spec \
9183 thread_safe_flag_spec \
9184 whole_archive_flag_spec \
9185 enable_shared_with_static_runtimes \
9187 old_archive_from_new_cmds \
9192 compiler_lib_search_path \
9194 archive_expsym_cmds \
9196 postuninstall_cmds \
9197 old_archive_from_expsyms_cmds \
9198 allow_undefined_flag \
9200 export_symbols_cmds \
9201 hardcode_libdir_flag_spec \
9202 hardcode_libdir_flag_spec_ld \
9203 hardcode_libdir_separator \
9204 hardcode_automatic \
9206 module_expsym_cmds \
9207 lt_cv_prog_compiler_c_o \
9212 old_archive_cmds | \
9213 old_archive_from_new_cmds | \
9215 archive_expsym_cmds | \
9217 module_expsym_cmds | \
9218 old_archive_from_expsyms_cmds | \
9219 export_symbols_cmds | \
9220 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9221 postinstall_cmds | postuninstall_cmds | \
9222 old_postinstall_cmds | old_postuninstall_cmds | \
9223 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9224 # Double-quote double-evaled strings.
9225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9234 *'\$0 --fallback-echo"')
9235 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9240 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9242 { echo "$as_me:$LINENO: creating $ofile" >&5
9243 echo "$as_me: creating $ofile" >&6;}
9245 cat <<__EOF__ >> "$cfgfile"
9248 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9249 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9252 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9253 # Free Software Foundation, Inc.
9255 # This file is part of GNU Libtool:
9256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9258 # This program is free software; you can redistribute it and/or modify
9259 # it under the terms of the GNU General Public License as published by
9260 # the Free Software Foundation; either version 2 of the License, or
9261 # (at your option) any later version.
9263 # This program is distributed in the hope that it will be useful, but
9264 # WITHOUT ANY WARRANTY; without even the implied warranty of
9265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9266 # General Public License for more details.
9268 # You should have received a copy of the GNU General Public License
9269 # along with this program; if not, write to the Free Software
9270 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9272 # As a special exception to the GNU General Public License, if you
9273 # distribute this file as part of a program that contains a
9274 # configuration script generated by Autoconf, you may include it under
9275 # the same distribution terms that you use for the rest of that program.
9277 # A sed program that does not truncate output.
9280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9281 Xsed="$SED -e 1s/^X//"
9283 # The HP-UX ksh and POSIX shell print the target directory to stdout
9285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9287 # The names of the tagged configurations supported by this script.
9290 # ### BEGIN LIBTOOL CONFIG
9292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9294 # Shell to use when invoking shell scripts.
9297 # Whether or not to build shared libraries.
9298 build_libtool_libs=$enable_shared
9300 # Whether or not to build static libraries.
9301 build_old_libs=$enable_static
9303 # Whether or not to add -lc for building shared libraries.
9304 build_libtool_need_lc=$archive_cmds_need_lc
9306 # Whether or not to disallow shared libs when runtime libs are static
9307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9309 # Whether or not to optimize for fast installation.
9310 fast_install=$enable_fast_install
9313 host_alias=$host_alias
9318 build_alias=$build_alias
9322 # An echo program that does not interpret backslashes.
9327 AR_FLAGS=$lt_AR_FLAGS
9332 # A language-specific compiler.
9335 # Is the compiler the GNU C compiler?
9341 # The linker used to build libraries.
9344 # Whether we need hard or soft links.
9347 # A BSD-compatible nm program.
9350 # A symbol stripping program
9353 # Used to examine libraries when file_magic_cmd begins "file"
9354 MAGIC_CMD=$MAGIC_CMD
9356 # Used on cygwin: DLL creation program.
9359 # Used on cygwin: object dumper.
9362 # Used on cygwin: assembler.
9365 # The name of the directory that contains temporary libtool files.
9368 # How to create reloadable object files.
9369 reload_flag=$lt_reload_flag
9370 reload_cmds=$lt_reload_cmds
9372 # How to pass a linker flag through the compiler.
9373 wl=$lt_lt_prog_compiler_wl
9375 # Object file suffix (normally "o").
9378 # Old archive suffix (normally "a").
9381 # Shared library suffix (normally ".so").
9382 shrext_cmds='$shrext_cmds'
9384 # Executable file suffix (normally "").
9387 # Additional compiler flags for building library objects.
9388 pic_flag=$lt_lt_prog_compiler_pic
9391 # What is the maximum length of a command?
9392 max_cmd_len=$lt_cv_sys_max_cmd_len
9394 # Does compiler simultaneously support -c and -o options?
9395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9397 # Must we lock files when doing compilation?
9398 need_locks=$lt_need_locks
9400 # Do we need the lib prefix for modules?
9401 need_lib_prefix=$need_lib_prefix
9403 # Do we need a version for libraries?
9404 need_version=$need_version
9406 # Whether dlopen is supported.
9407 dlopen_support=$enable_dlopen
9409 # Whether dlopen of programs is supported.
9410 dlopen_self=$enable_dlopen_self
9412 # Whether dlopen of statically linked programs is supported.
9413 dlopen_self_static=$enable_dlopen_self_static
9415 # Compiler flag to prevent dynamic linking.
9416 link_static_flag=$lt_lt_prog_compiler_static
9418 # Compiler flag to turn off builtin functions.
9419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9421 # Compiler flag to allow reflexive dlopens.
9422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9424 # Compiler flag to generate shared objects directly from archives.
9425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9427 # Compiler flag to generate thread-safe objects.
9428 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9430 # Library versioning type.
9431 version_type=$version_type
9433 # Format of library name prefix.
9434 libname_spec=$lt_libname_spec
9436 # List of archive names. First name is the real one, the rest are links.
9437 # The last name is the one that the linker finds with -lNAME.
9438 library_names_spec=$lt_library_names_spec
9440 # The coded name of the library, if different from the real name.
9441 soname_spec=$lt_soname_spec
9443 # Commands used to build and install an old-style archive.
9445 old_archive_cmds=$lt_old_archive_cmds
9446 old_postinstall_cmds=$lt_old_postinstall_cmds
9447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9449 # Create an old-style archive from a shared archive.
9450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9452 # Create a temporary old-style archive to link instead of a shared archive.
9453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9455 # Commands used to build and install a shared archive.
9456 archive_cmds=$lt_archive_cmds
9457 archive_expsym_cmds=$lt_archive_expsym_cmds
9458 postinstall_cmds=$lt_postinstall_cmds
9459 postuninstall_cmds=$lt_postuninstall_cmds
9461 # Commands used to build a loadable module (assumed same as above if empty)
9462 module_cmds=$lt_module_cmds
9463 module_expsym_cmds=$lt_module_expsym_cmds
9465 # Commands to strip libraries.
9466 old_striplib=$lt_old_striplib
9467 striplib=$lt_striplib
9469 # Dependencies to place before the objects being linked to create a
9471 predep_objects=$lt_predep_objects
9473 # Dependencies to place after the objects being linked to create a
9475 postdep_objects=$lt_postdep_objects
9477 # Dependencies to place before the objects being linked to create a
9481 # Dependencies to place after the objects being linked to create a
9483 postdeps=$lt_postdeps
9485 # The library search path used internally by the compiler when linking
9487 compiler_lib_search_path=$lt_compiler_lib_search_path
9489 # Method to check whether dependent libraries are shared objects.
9490 deplibs_check_method=$lt_deplibs_check_method
9492 # Command to use when deplibs_check_method == file_magic.
9493 file_magic_cmd=$lt_file_magic_cmd
9495 # Flag that allows shared libraries with undefined symbols to be built.
9496 allow_undefined_flag=$lt_allow_undefined_flag
9498 # Flag that forces no undefined symbols.
9499 no_undefined_flag=$lt_no_undefined_flag
9501 # Commands used to finish a libtool library installation in a directory.
9502 finish_cmds=$lt_finish_cmds
9504 # Same as above, but a single script fragment to be evaled but not shown.
9505 finish_eval=$lt_finish_eval
9507 # Take the output of nm and produce a listing of raw symbols and C names.
9508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9510 # Transform the output of nm in a proper C declaration
9511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9513 # Transform the output of nm in a C name address pair
9514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9516 # This is the shared library runtime path variable.
9517 runpath_var=$runpath_var
9519 # This is the shared library path variable.
9520 shlibpath_var=$shlibpath_var
9522 # Is shlibpath searched before the hard-coded library search path?
9523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9525 # How to hardcode a shared library path into an executable.
9526 hardcode_action=$hardcode_action
9528 # Whether we should hardcode library paths into libraries.
9529 hardcode_into_libs=$hardcode_into_libs
9531 # Flag to hardcode \$libdir into a binary during linking.
9532 # This must work even if \$libdir does not exist.
9533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9535 # If ld is used when linking, flag to hardcode \$libdir into
9536 # a binary during linking. This must work even if \$libdir does
9538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9540 # Whether we need a single -rpath flag with a separated argument.
9541 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9545 hardcode_direct=$hardcode_direct
9547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9549 hardcode_minus_L=$hardcode_minus_L
9551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9552 # the resulting binary.
9553 hardcode_shlibpath_var=$hardcode_shlibpath_var
9555 # Set to yes if building a shared library automatically hardcodes DIR into the library
9556 # and all subsequent libraries and executables linked against it.
9557 hardcode_automatic=$hardcode_automatic
9559 # Variables whose values should be saved in libtool wrapper scripts and
9560 # restored at relink time.
9561 variables_saved_for_relink="$variables_saved_for_relink"
9563 # Whether libtool must link a program against all its dependency libraries.
9564 link_all_deplibs=$link_all_deplibs
9566 # Compile-time system search path for libraries
9567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9569 # Run-time system search path for libraries
9570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9572 # Fix the shell variable \$srcfile for the compiler.
9573 fix_srcfile_path="$fix_srcfile_path"
9575 # Set to yes if exported symbols are required.
9576 always_export_symbols=$always_export_symbols
9578 # The commands to list exported symbols.
9579 export_symbols_cmds=$lt_export_symbols_cmds
9581 # The commands to extract the exported symbol list from a shared archive.
9582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9584 # Symbols that should not be listed in the preloaded symbols.
9585 exclude_expsyms=$lt_exclude_expsyms
9587 # Symbols that must always be exported.
9588 include_expsyms=$lt_include_expsyms
9590 # ### END LIBTOOL CONFIG
9597 cat <<\EOF >> "$cfgfile"
9599 # AIX sometimes has problems with the GCC collect2 program. For some
9600 # reason, if we set the COLLECT_NAMES environment variable, the problems
9601 # vanish in a puff of smoke.
9602 if test "X${COLLECT_NAMES+set}" != Xset; then
9604 export COLLECT_NAMES
9610 # We use sed instead of cat because bash on DJGPP gets confused if
9611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9612 # text mode, it properly converts lines to CR/LF. This bash problem
9613 # is reportedly fixed, but why not run on old versions too?
9614 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9616 mv -f "$cfgfile" "$ofile" || \
9617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9621 # If there is no Makefile yet, we rely on a make rule to execute
9622 # `config.status --recheck' to rerun these tests and create the
9623 # libtool script then.
9624 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9625 if test -f "$ltmain_in"; then
9626 test -f Makefile && make "$ltmain"
9632 ac_cpp='$CPP $CPPFLAGS'
9633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9640 # Check whether --with-tags or --without-tags was given.
9641 if test "${with_tags+set}" = set; then
9642 withval="$with_tags"
9646 if test -f "$ltmain" && test -n "$tagnames"; then
9647 if test ! -f "${ofile}"; then
9648 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9649 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9652 if test -z "$LTCC"; then
9653 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9654 if test -z "$LTCC"; then
9655 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9656 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9659 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9663 # Extract list of available tagged configurations in $ofile.
9664 # Note that this assumes the entire list is on one line.
9665 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9668 for tagname in $tagnames; do
9670 # Check whether tagname contains only valid characters
9671 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9673 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9674 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9675 { (exit 1); exit 1; }; }
9679 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9681 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9682 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9683 { (exit 1); exit 1; }; }
9686 # Update the list of available tags.
9687 if test -n "$tagname"; then
9688 echo appending configuration tag \"$tagname\" to $ofile
9692 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9693 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9694 (test "X$CXX" != "Xg++"))) ; then
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9704 archive_cmds_need_lc_CXX=no
9705 allow_undefined_flag_CXX=
9706 always_export_symbols_CXX=no
9707 archive_expsym_cmds_CXX=
9708 export_dynamic_flag_spec_CXX=
9709 hardcode_direct_CXX=no
9710 hardcode_libdir_flag_spec_CXX=
9711 hardcode_libdir_flag_spec_ld_CXX=
9712 hardcode_libdir_separator_CXX=
9713 hardcode_minus_L_CXX=no
9714 hardcode_automatic_CXX=no
9716 module_expsym_cmds_CXX=
9717 link_all_deplibs_CXX=unknown
9718 old_archive_cmds_CXX=$old_archive_cmds
9719 no_undefined_flag_CXX=
9720 whole_archive_flag_spec_CXX=
9721 enable_shared_with_static_runtimes_CXX=no
9723 # Dependencies to place before and after the object being linked:
9725 postdep_objects_CXX=
9728 compiler_lib_search_path_CXX=
9730 # Source file extension for C++ test sources.
9733 # Object file extension for compiled C++ test sources.
9737 # Code to be used in simple compile tests
9738 lt_simple_compile_test_code="int some_variable = 0;\n"
9740 # Code to be used in simple link tests
9741 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9745 # If no C compiler was specified, use CC.
9748 # Allow CC to be a program name with arguments.
9752 # save warnings/boilerplate of simple test code
9753 ac_outfile=conftest.$ac_objext
9754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9756 _lt_compiler_boilerplate=`cat conftest.err`
9759 ac_outfile=conftest.$ac_objext
9760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9762 _lt_linker_boilerplate=`cat conftest.err`
9766 # Allow CC to be a program name with arguments.
9771 lt_save_with_gnu_ld=$with_gnu_ld
9772 lt_save_path_LD=$lt_cv_path_LD
9773 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9774 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9776 unset lt_cv_prog_gnu_ld
9778 if test -n "${lt_cv_path_LDCXX+set}"; then
9779 lt_cv_path_LD=$lt_cv_path_LDCXX
9783 test -z "${LDCXX+set}" || LD=$LDCXX
9787 for cc_temp in $compiler""; do
9789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9798 # We don't want -fno-exception wen compiling C++ code, so set the
9799 # no_builtin_flag separately
9800 if test "$GXX" = yes; then
9801 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9803 lt_prog_compiler_no_builtin_flag_CXX=
9806 if test "$GXX" = yes; then
9807 # Set up default GNU C++ configuration
9810 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9811 if test "${with_gnu_ld+set}" = set; then
9812 withval="$with_gnu_ld"
9813 test "$withval" = no || with_gnu_ld=yes
9818 if test "$GCC" = yes; then
9819 # Check if gcc -print-prog-name=ld gives a path.
9820 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9821 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9824 # gcc leaves a trailing carriage return which upsets mingw
9825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9830 # Accept absolute paths.
9832 re_direlt='/[^/][^/]*/\.\./'
9833 # Canonicalize the pathname of ld
9834 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9835 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9836 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9838 test -z "$LD" && LD="$ac_prog"
9841 # If it fails, then pretend we aren't using GCC.
9845 # If it is relative, then search for the first ld in PATH.
9849 elif test "$with_gnu_ld" = yes; then
9850 echo "$as_me:$LINENO: checking for GNU ld" >&5
9851 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9853 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9854 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9856 if test "${lt_cv_path_LD+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 if test -z "$LD"; then
9860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9861 for ac_dir in $PATH; do
9863 test -z "$ac_dir" && ac_dir=.
9864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9865 lt_cv_path_LD="$ac_dir/$ac_prog"
9866 # Check to see if the program is GNU ld. I'd rather use --version,
9867 # but apparently some variants of GNU ld only accept -v.
9868 # Break only if it was the GNU/non-GNU ld that we prefer.
9869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9870 *GNU* | *'with BFD'*)
9871 test "$with_gnu_ld" != no && break
9874 test "$with_gnu_ld" != yes && break
9881 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9886 if test -n "$LD"; then
9887 echo "$as_me:$LINENO: result: $LD" >&5
9888 echo "${ECHO_T}$LD" >&6
9890 echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6
9893 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9894 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9895 { (exit 1); exit 1; }; }
9896 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9897 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9898 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9902 case `$LD -v 2>&1 </dev/null` in
9903 *GNU* | *'with BFD'*)
9904 lt_cv_prog_gnu_ld=yes
9907 lt_cv_prog_gnu_ld=no
9911 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9912 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9913 with_gnu_ld=$lt_cv_prog_gnu_ld
9917 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9918 # archiving commands below assume that GNU ld is being used.
9919 if test "$with_gnu_ld" = yes; then
9920 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9921 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'
9923 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9926 # If archive_cmds runs LD, not CC, wlarc should be empty
9927 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9928 # investigate it a little bit more. (MM)
9931 # ancient GNU ld didn't support --whole-archive et. al.
9932 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9933 grep 'no-whole-archive' > /dev/null; then
9934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9936 whole_archive_flag_spec_CXX=
9942 # A generic and very simple default shared library creation
9943 # command for GNU C++ for the case where it uses the native
9944 # linker, instead of GNU ld. If possible, this setting should
9945 # overridden to take advantage of the native linker features on
9946 # the platform it is being used on.
9947 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9950 # Commands to make compiler produce verbose output that lists
9951 # what "hidden" libraries, object files and flags are used when
9952 # linking a shared library.
9953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9961 # PORTME: fill in a description of your system's C++ link characteristics
9962 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9967 # FIXME: insert proper C++ library support
9971 if test "$host_cpu" = ia64; then
9972 # On IA64, the linker does run time linking by default, so we don't
9973 # have to do anything special.
9974 aix_use_runtimelinking=no
9975 exp_sym_flag='-Bexport'
9978 aix_use_runtimelinking=no
9980 # Test if we are trying to use run time linking or normal
9981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9982 # need to do runtime linking.
9983 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9984 for ld_flag in $LDFLAGS; do
9987 aix_use_runtimelinking=yes
9994 exp_sym_flag='-bexport'
9995 no_entry_flag='-bnoentry'
9998 # When large executables or shared objects are built, AIX ld can
9999 # have problems creating the table of contents. If linking a library
10000 # or program results in "error TOC overflow" add -mminimal-toc to
10001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10004 archive_cmds_CXX=''
10005 hardcode_direct_CXX=yes
10006 hardcode_libdir_separator_CXX=':'
10007 link_all_deplibs_CXX=yes
10009 if test "$GXX" = yes; then
10010 case $host_os in aix4.[012]|aix4.[012].*)
10011 # We only want to do this on AIX 4.2 and lower, the check
10012 # below for broken collect2 doesn't work under 4.3+
10013 collect2name=`${CC} -print-prog-name=collect2`
10014 if test -f "$collect2name" && \
10015 strings "$collect2name" | grep resolve_lib_name >/dev/null
10017 # We have reworked collect2
10018 hardcode_direct_CXX=yes
10020 # We have old collect2
10021 hardcode_direct_CXX=unsupported
10022 # It fails to find uninstalled libraries when the uninstalled
10023 # path is not listed in the libpath. Setting hardcode_minus_L
10024 # to unsupported forces relinking
10025 hardcode_minus_L_CXX=yes
10026 hardcode_libdir_flag_spec_CXX='-L$libdir'
10027 hardcode_libdir_separator_CXX=
10030 shared_flag='-shared'
10031 if test "$aix_use_runtimelinking" = yes; then
10032 shared_flag="$shared_flag "'${wl}-G'
10036 if test "$host_cpu" = ia64; then
10037 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10038 # chokes on -Wl,-G. The following line is correct:
10041 if test "$aix_use_runtimelinking" = yes; then
10042 shared_flag='${wl}-G'
10044 shared_flag='${wl}-bM:SRE'
10049 # It seems that -bexpall does not export symbols beginning with
10050 # underscore (_), so it is better to generate a list of symbols to export.
10051 always_export_symbols_CXX=yes
10052 if test "$aix_use_runtimelinking" = yes; then
10053 # Warning - without using the other runtime loading flags (-brtl),
10054 # -berok will link without error, but may produce a broken library.
10055 allow_undefined_flag_CXX='-berok'
10056 # Determine the default libpath from the value encoded in an empty executable.
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_cxx_werror_flag"
10082 || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10097 # Check for a 64-bit object if we didn't find anything.
10098 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; }
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10105 rm -f conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10111 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"
10113 if test "$host_cpu" = ia64; then
10114 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10115 allow_undefined_flag_CXX="-z nodefs"
10116 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"
10118 # Determine the default libpath from the value encoded in an empty executable.
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_cxx_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10159 # Check for a 64-bit object if we didn't find anything.
10160 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; }
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10167 rm -f conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10172 # Warning - without using the other run time loading flags,
10173 # -berok will link without error, but may produce a broken library.
10174 no_undefined_flag_CXX=' ${wl}-bernotok'
10175 allow_undefined_flag_CXX=' ${wl}-berok'
10176 # -bexpall does not export symbols beginning with underscore (_)
10177 always_export_symbols_CXX=yes
10178 # Exported symbols can be pulled into shared objects from archives
10179 whole_archive_flag_spec_CXX=' '
10180 archive_cmds_need_lc_CXX=yes
10181 # This is similar to how AIX traditionally builds its shared libraries.
10182 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'
10187 case $cc_basename in
10189 # FIXME: insert proper C++ library support
10196 cygwin* | mingw* | pw32*)
10197 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10198 # as there is no search path for DLLs.
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 allow_undefined_flag_CXX=unsupported
10201 always_export_symbols_CXX=no
10202 enable_shared_with_static_runtimes_CXX=yes
10204 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10205 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'
10206 # If the export-symbols file already is a .def file (1st line
10207 # is EXPORTS), use it as is; otherwise, prepend...
10208 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209 cp $export_symbols $output_objdir/$soname.def;
10211 echo EXPORTS > $output_objdir/$soname.def;
10212 cat $export_symbols >> $output_objdir/$soname.def;
10214 $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'
10219 darwin* | rhapsody*)
10221 rhapsody* | darwin1.[012])
10222 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10225 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10226 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10228 case ${MACOSX_DEPLOYMENT_TARGET} in
10230 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10233 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10239 archive_cmds_need_lc_CXX=no
10240 hardcode_direct_CXX=no
10241 hardcode_automatic_CXX=yes
10242 hardcode_shlibpath_var_CXX=unsupported
10243 whole_archive_flag_spec_CXX=''
10244 link_all_deplibs_CXX=yes
10246 if test "$GXX" = yes ; then
10247 lt_int_apple_cc_single_mod=no
10248 output_verbose_link_cmd='echo'
10249 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10250 lt_int_apple_cc_single_mod=yes
10252 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10253 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10255 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'
10257 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10260 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}'
10262 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}'
10264 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}'
10266 case $cc_basename in
10268 output_verbose_link_cmd='echo'
10269 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'
10270 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10272 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}'
10273 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}'
10283 case $cc_basename in
10285 # FIXME: insert proper C++ library support
10289 # Green Hills C++ Compiler
10290 # FIXME: insert proper C++ library support
10294 # FIXME: insert proper C++ library support
10300 # C++ shared libraries reported to be fairly broken before switch to ELF
10304 archive_cmds_need_lc_CXX=no
10306 freebsd* | kfreebsd*-gnu | dragonfly*)
10307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10315 hardcode_libdir_separator_CXX=:
10316 export_dynamic_flag_spec_CXX='${wl}-E'
10317 hardcode_direct_CXX=yes
10318 hardcode_minus_L_CXX=yes # Not in the search PATH,
10319 # but as the default
10320 # location of the library.
10322 case $cc_basename in
10324 # FIXME: insert proper C++ library support
10328 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'
10329 # Commands to make compiler produce verbose output that lists
10330 # what "hidden" libraries, object files and flags are used when
10331 # linking a shared library.
10333 # There doesn't appear to be a way to prevent this compiler from
10334 # explicitly linking system object files so we need to strip them
10335 # from the output so that they don't get included in the library
10337 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'
10340 if test "$GXX" = yes; then
10341 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'
10343 # FIXME: insert proper C++ library support
10350 if test $with_gnu_ld = no; then
10353 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10354 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10355 hardcode_libdir_separator_CXX=:
10358 hardcode_libdir_flag_spec_CXX='-L$libdir'
10361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10362 hardcode_libdir_separator_CXX=:
10363 export_dynamic_flag_spec_CXX='${wl}-E'
10369 hardcode_direct_CXX=no
10370 hardcode_shlibpath_var_CXX=no
10373 hardcode_direct_CXX=no
10374 hardcode_shlibpath_var_CXX=no
10375 hardcode_minus_L_CXX=yes # Not in the search PATH,
10376 # but as the default
10377 # location of the library.
10380 hardcode_direct_CXX=yes
10381 hardcode_minus_L_CXX=yes # Not in the search PATH,
10382 # but as the default
10383 # location of the library.
10387 case $cc_basename in
10389 # FIXME: insert proper C++ library support
10395 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10398 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10401 # Commands to make compiler produce verbose output that lists
10402 # what "hidden" libraries, object files and flags are used when
10403 # linking a shared library.
10405 # There doesn't appear to be a way to prevent this compiler from
10406 # explicitly linking system object files so we need to strip them
10407 # from the output so that they don't get included in the library
10409 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'
10412 if test "$GXX" = yes; then
10413 if test $with_gnu_ld = no; then
10416 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10419 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'
10424 # FIXME: insert proper C++ library support
10431 case $cc_basename in
10434 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'
10436 # Archives containing C++ object files must be created using
10437 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10438 # necessary to make sure instantiated templates are included
10440 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10443 if test "$GXX" = yes; then
10444 if test "$with_gnu_ld" = no; then
10445 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'
10447 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'
10450 link_all_deplibs_CXX=yes
10453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10454 hardcode_libdir_separator_CXX=:
10457 case $cc_basename in
10459 # Kuck and Associates, Inc. (KAI) C++ Compiler
10461 # KCC will only create a shared library if the output file
10462 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10463 # to its proper name (with version) after linking.
10464 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'
10465 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'
10466 # Commands to make compiler produce verbose output that lists
10467 # what "hidden" libraries, object files and flags are used when
10468 # linking a shared library.
10470 # There doesn't appear to be a way to prevent this compiler from
10471 # explicitly linking system object files so we need to strip them
10472 # from the output so that they don't get included in the library
10474 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'
10476 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10479 # Archives containing C++ object files must be created using
10480 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10481 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10486 # version 8.0 and above of icpc choke on multiply defined symbols
10487 # if we add $predep_objects and $postdep_objects, however 7.1 and
10488 # earlier do not add the objects themselves.
10489 case `$CC -V 2>&1` in
10491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492 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'
10494 *) # Version 8.0 or newer
10497 ia64*) tmp_idyn=' -i_dynamic';;
10499 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500 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'
10503 archive_cmds_need_lc_CXX=no
10504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10506 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10509 # Portland Group C++ compiler
10510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10511 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'
10513 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10515 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'
10519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10520 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'
10522 runpath_var=LD_RUN_PATH
10523 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10524 hardcode_libdir_separator_CXX=:
10526 # Commands to make compiler produce verbose output that lists
10527 # what "hidden" libraries, object files and flags are used when
10528 # linking a shared library.
10530 # There doesn't appear to be a way to prevent this compiler from
10531 # explicitly linking system object files so we need to strip them
10532 # from the output so that they don't get included in the library
10534 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'
10539 # FIXME: insert proper C++ library support
10543 # FIXME: insert proper C++ library support
10547 case $cc_basename in
10549 # FIXME: insert proper C++ library support
10553 # FIXME: insert proper C++ library support
10559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10562 hardcode_libdir_flag_spec_CXX='-R$libdir'
10563 hardcode_direct_CXX=yes
10564 hardcode_shlibpath_var_CXX=no
10566 # Workaround some broken pre-1.5 toolchains
10567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10570 # C++ shared libraries are fairly broken
10574 hardcode_direct_CXX=yes
10575 hardcode_shlibpath_var_CXX=no
10576 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10580 export_dynamic_flag_spec_CXX='${wl}-E'
10581 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10583 output_verbose_link_cmd='echo'
10586 case $cc_basename in
10588 # Kuck and Associates, Inc. (KAI) C++ Compiler
10590 # KCC will only create a shared library if the output file
10591 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10592 # to its proper name (with version) after linking.
10593 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'
10595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10596 hardcode_libdir_separator_CXX=:
10598 # Archives containing C++ object files must be created using
10599 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10600 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10604 # Rational C++ 2.4.1
10605 # FIXME: insert proper C++ library support
10609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10610 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'
10612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10613 hardcode_libdir_separator_CXX=:
10615 # Commands to make compiler produce verbose output that lists
10616 # what "hidden" libraries, object files and flags are used when
10617 # linking a shared library.
10619 # There doesn't appear to be a way to prevent this compiler from
10620 # explicitly linking system object files so we need to strip them
10621 # from the output so that they don't get included in the library
10623 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'
10626 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10628 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'
10630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10631 hardcode_libdir_separator_CXX=:
10633 # Commands to make compiler produce verbose output that lists
10634 # what "hidden" libraries, object files and flags are used when
10635 # linking a shared library.
10636 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10639 # FIXME: insert proper C++ library support
10646 case $cc_basename in
10648 # Kuck and Associates, Inc. (KAI) C++ Compiler
10650 # KCC will only create a shared library if the output file
10651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10652 # to its proper name (with version) after linking.
10653 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'
10655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656 hardcode_libdir_separator_CXX=:
10658 # Archives containing C++ object files must be created using
10659 # the KAI C++ compiler.
10660 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10663 # Rational C++ 2.4.1
10664 # FIXME: insert proper C++ library support
10668 allow_undefined_flag_CXX=' -expect_unresolved \*'
10669 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'
10670 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10671 echo "-hidden">> $lib.exp~
10672 $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~
10675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10676 hardcode_libdir_separator_CXX=:
10678 # Commands to make compiler produce verbose output that lists
10679 # what "hidden" libraries, object files and flags are used when
10680 # linking a shared library.
10682 # There doesn't appear to be a way to prevent this compiler from
10683 # explicitly linking system object files so we need to strip them
10684 # from the output so that they don't get included in the library
10686 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'
10689 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10690 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10691 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'
10693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10694 hardcode_libdir_separator_CXX=:
10696 # Commands to make compiler produce verbose output that lists
10697 # what "hidden" libraries, object files and flags are used when
10698 # linking a shared library.
10699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10702 # FIXME: insert proper C++ library support
10709 # FIXME: insert proper C++ library support
10713 archive_cmds_need_lc_CXX=no
10714 case $cc_basename in
10716 # FIXME: insert proper C++ library support
10720 # FIXME: insert proper C++ library support
10726 case $cc_basename in
10729 # FIXME: insert proper C++ library support
10734 # FIXME: insert proper C++ library support
10738 # FIXME: insert proper C++ library support
10744 case $cc_basename in
10746 # Sun C++ 4.2, 5.x and Centerline C++
10747 archive_cmds_need_lc_CXX=yes
10748 no_undefined_flag_CXX=' -zdefs'
10749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751 $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'
10753 hardcode_libdir_flag_spec_CXX='-R$libdir'
10754 hardcode_shlibpath_var_CXX=no
10756 solaris2.[0-5] | solaris2.[0-5].*) ;;
10758 # The C++ compiler is used as linker so we must use $wl
10759 # flag to pass the commands to the underlying system
10760 # linker. We must also pass each convience library through
10761 # to the system linker between allextract/defaultextract.
10762 # The C++ compiler will combine linker options so we
10763 # cannot just pass the convience library names through
10765 # Supported since Solaris 2.6 (maybe 2.5.1?)
10766 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'
10769 link_all_deplibs_CXX=yes
10771 output_verbose_link_cmd='echo'
10773 # Archives containing C++ object files must be created using
10774 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10775 # necessary to make sure instantiated templates are included
10777 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10780 # Green Hills C++ Compiler
10781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10783 # The C++ compiler must be used to create the archive.
10784 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10787 # GNU C++ compiler with Solaris linker
10788 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10789 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10790 if $CC --version | grep -v '^2\.7' > /dev/null; then
10791 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10792 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10793 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10795 # Commands to make compiler produce verbose output that lists
10796 # what "hidden" libraries, object files and flags are used when
10797 # linking a shared library.
10798 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10800 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10802 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10803 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10804 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10806 # Commands to make compiler produce verbose output that lists
10807 # what "hidden" libraries, object files and flags are used when
10808 # linking a shared library.
10809 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10812 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10817 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10818 archive_cmds_need_lc_CXX=no
10821 case $cc_basename in
10823 # NonStop-UX NCC 3.20
10824 # FIXME: insert proper C++ library support
10828 # FIXME: insert proper C++ library support
10834 # FIXME: insert proper C++ library support
10838 # FIXME: insert proper C++ library support
10842 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10843 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10844 test "$ld_shlibs_CXX" = no && can_build_shared=no
10850 cat > conftest.$ac_ext <<EOF
10854 Foo (void) { a = 0; }
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861 (eval $ac_compile) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; then
10865 # Parse the compiler output and extract the necessary
10866 # objects, libraries and library flags.
10868 # Sentinel used to keep track of whether or not we are before
10869 # the conftest object file.
10870 pre_test_object_deps_done=no
10872 # The `*' in the case matches for architectures that use `case' in
10873 # $output_verbose_cmd can trigger glob expansion during the loop
10874 # eval without this substitution.
10875 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10877 for p in `eval $output_verbose_link_cmd`; do
10881 # Some compilers place space between "-{L,R}" and the path.
10882 # Remove the space.
10883 if test $p = "-L" \
10884 || test $p = "-R"; then
10891 if test "$pre_test_object_deps_done" = no; then
10894 # Internal compiler library paths should come after those
10895 # provided the user. The postdeps already come after the
10896 # user supplied libs so there is no need to process them.
10897 if test -z "$compiler_lib_search_path_CXX"; then
10898 compiler_lib_search_path_CXX="${prev}${p}"
10900 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10903 # The "-l" case would never come before the object being
10904 # linked, so don't bother handling this case.
10907 if test -z "$postdeps_CXX"; then
10908 postdeps_CXX="${prev}${p}"
10910 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10916 # This assumes that the test object file only shows up
10917 # once in the compiler output.
10918 if test "$p" = "conftest.$objext"; then
10919 pre_test_object_deps_done=yes
10923 if test "$pre_test_object_deps_done" = no; then
10924 if test -z "$predep_objects_CXX"; then
10925 predep_objects_CXX="$p"
10927 predep_objects_CXX="$predep_objects_CXX $p"
10930 if test -z "$postdep_objects_CXX"; then
10931 postdep_objects_CXX="$p"
10933 postdep_objects_CXX="$postdep_objects_CXX $p"
10938 *) ;; # Ignore the rest.
10946 echo "libtool.m4: error: problem compiling CXX test program"
10949 $rm -f confest.$objext
10951 # PORTME: override above test on systems where it is broken
10954 case $cc_basename in
10956 # Adding this requires a known-good setup of shared libraries for
10957 # Sun compiler versions before 5.6, else PIC objects from an old
10958 # archive will be linked into the output, leading to subtle bugs.
10959 postdeps_CXX='-lCstd -lCrun'
10965 case " $postdeps_CXX " in
10966 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10969 lt_prog_compiler_wl_CXX=
10970 lt_prog_compiler_pic_CXX=
10971 lt_prog_compiler_static_CXX=
10973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10976 # C++ specific cases for pic, static, wl, etc.
10977 if test "$GXX" = yes; then
10978 lt_prog_compiler_wl_CXX='-Wl,'
10979 lt_prog_compiler_static_CXX='-static'
10983 # All AIX code is PIC.
10984 if test "$host_cpu" = ia64; then
10985 # AIX 5 now supports IA64 processor
10986 lt_prog_compiler_static_CXX='-Bstatic'
10990 # FIXME: we need at least 68020 code to build shared libraries, but
10991 # adding the `-m68020' flag to GCC prevents building anything better,
10993 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10995 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10996 # PIC is the default for these OSes.
10998 mingw* | os2* | pw32*)
10999 # This hack is so that the source file can tell whether it is being
11000 # built for inclusion in a dll (and should export symbols for example).
11001 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11003 darwin* | rhapsody*)
11004 # PIC is the default on this platform
11005 # Common symbols not allowed in MH_DYLIB files
11006 lt_prog_compiler_pic_CXX='-fno-common'
11009 # DJGPP does not support shared libraries at all
11010 lt_prog_compiler_pic_CXX=
11013 if test -d /usr/nec; then
11014 lt_prog_compiler_pic_CXX=-Kconform_pic
11018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11019 # not for PA HP-UX.
11024 lt_prog_compiler_pic_CXX='-fPIC'
11029 lt_prog_compiler_pic_CXX='-fPIC'
11035 # All AIX code is PIC.
11036 if test "$host_cpu" = ia64; then
11037 # AIX 5 now supports IA64 processor
11038 lt_prog_compiler_static_CXX='-Bstatic'
11040 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11044 case $cc_basename in
11046 # Green Hills C++ Compiler
11047 # _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"
11052 # PIC is the default on this platform
11053 # Common symbols not allowed in MH_DYLIB files
11054 case $cc_basename in
11056 lt_prog_compiler_pic_CXX='-qnocommon'
11057 lt_prog_compiler_wl_CXX='-Wl,'
11062 case $cc_basename in
11064 lt_prog_compiler_pic_CXX='-KPIC'
11067 # Green Hills C++ Compiler
11068 lt_prog_compiler_pic_CXX='-pic'
11074 freebsd* | kfreebsd*-gnu | dragonfly*)
11075 # FreeBSD uses GNU C++
11077 hpux9* | hpux10* | hpux11*)
11078 case $cc_basename in
11080 lt_prog_compiler_wl_CXX='-Wl,'
11081 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11082 if test "$host_cpu" != ia64; then
11083 lt_prog_compiler_pic_CXX='+Z'
11087 lt_prog_compiler_wl_CXX='-Wl,'
11088 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11094 lt_prog_compiler_pic_CXX='+Z'
11102 irix5* | irix6* | nonstopux*)
11103 case $cc_basename in
11105 lt_prog_compiler_wl_CXX='-Wl,'
11106 lt_prog_compiler_static_CXX='-non_shared'
11107 # CC pic flag -KPIC is the default.
11114 case $cc_basename in
11117 lt_prog_compiler_wl_CXX='--backend -Wl,'
11118 lt_prog_compiler_pic_CXX='-fPIC'
11122 lt_prog_compiler_wl_CXX='-Wl,'
11123 lt_prog_compiler_pic_CXX='-KPIC'
11124 lt_prog_compiler_static_CXX='-static'
11127 # Portland Group C++ compiler.
11128 lt_prog_compiler_wl_CXX='-Wl,'
11129 lt_prog_compiler_pic_CXX='-fpic'
11130 lt_prog_compiler_static_CXX='-Bstatic'
11134 # Make sure the PIC flag is empty. It appears that all Alpha
11135 # Linux and Compaq Tru64 Unix objects are PIC.
11136 lt_prog_compiler_pic_CXX=
11137 lt_prog_compiler_static_CXX='-non_shared'
11148 case $cc_basename in
11150 lt_prog_compiler_pic_CXX='-W c,exportall'
11158 osf3* | osf4* | osf5*)
11159 case $cc_basename in
11161 lt_prog_compiler_wl_CXX='--backend -Wl,'
11164 # Rational C++ 2.4.1
11165 lt_prog_compiler_pic_CXX='-pic'
11168 # Digital/Compaq C++
11169 lt_prog_compiler_wl_CXX='-Wl,'
11170 # Make sure the PIC flag is empty. It appears that all Alpha
11171 # Linux and Compaq Tru64 Unix objects are PIC.
11172 lt_prog_compiler_pic_CXX=
11173 lt_prog_compiler_static_CXX='-non_shared'
11182 case $cc_basename in
11184 lt_prog_compiler_pic_CXX='-fPIC'
11191 case $cc_basename in
11193 # Sun C++ 4.2, 5.x and Centerline C++
11194 lt_prog_compiler_pic_CXX='-KPIC'
11195 lt_prog_compiler_static_CXX='-Bstatic'
11196 lt_prog_compiler_wl_CXX='-Qoption ld '
11199 # Green Hills C++ Compiler
11200 lt_prog_compiler_pic_CXX='-PIC'
11207 case $cc_basename in
11210 lt_prog_compiler_pic_CXX='-pic'
11211 lt_prog_compiler_static_CXX='-Bstatic'
11215 lt_prog_compiler_pic_CXX='-pic'
11222 case $cc_basename in
11224 # NonStop-UX NCC 3.20
11225 lt_prog_compiler_pic_CXX='-KPIC'
11236 lt_prog_compiler_can_build_shared_CXX=no
11241 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11242 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11245 # Check to make sure the PIC flag actually works.
11247 if test -n "$lt_prog_compiler_pic_CXX"; then
11249 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11251 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 lt_prog_compiler_pic_works_CXX=no
11255 ac_outfile=conftest.$ac_objext
11256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11257 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11258 # Insert the option either (1) after the last *FLAGS variable, or
11259 # (2) before a word containing "conftest.", or (3) at the end.
11260 # Note that $ac_compile itself does not contain backslashes and begins
11261 # with a dollar sign (not a hyphen), so the echo should work correctly.
11262 # The option is referenced via a variable to avoid confusing sed.
11263 lt_compile=`echo "$ac_compile" | $SED \
11264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11266 -e 's:$: $lt_compiler_flag:'`
11267 (eval echo "\"\$as_me:11267: $lt_compile\"" >&5)
11268 (eval "$lt_compile" 2>conftest.err)
11270 cat conftest.err >&5
11271 echo "$as_me:11271: \$? = $ac_status" >&5
11272 if (exit $ac_status) && test -s "$ac_outfile"; then
11273 # The compiler can only warn and ignore the option if not recognized
11274 # So say no if there are warnings other than the usual output.
11275 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11276 $SED '/^$/d' conftest.err >conftest.er2
11277 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11278 lt_prog_compiler_pic_works_CXX=yes
11284 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11285 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11287 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11288 case $lt_prog_compiler_pic_CXX in
11290 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11293 lt_prog_compiler_pic_CXX=
11294 lt_prog_compiler_can_build_shared_CXX=no
11299 # For platforms which do not support PIC, -DPIC is meaningless:
11301 lt_prog_compiler_pic_CXX=
11304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11308 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11309 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11310 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 lt_cv_prog_compiler_c_o_CXX=no
11314 $rm -r conftest 2>/dev/null
11318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11320 lt_compiler_flag="-o out/conftest2.$ac_objext"
11321 # Insert the option either (1) after the last *FLAGS variable, or
11322 # (2) before a word containing "conftest.", or (3) at the end.
11323 # Note that $ac_compile itself does not contain backslashes and begins
11324 # with a dollar sign (not a hyphen), so the echo should work correctly.
11325 lt_compile=`echo "$ac_compile" | $SED \
11326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11328 -e 's:$: $lt_compiler_flag:'`
11329 (eval echo "\"\$as_me:11329: $lt_compile\"" >&5)
11330 (eval "$lt_compile" 2>out/conftest.err)
11332 cat out/conftest.err >&5
11333 echo "$as_me:11333: \$? = $ac_status" >&5
11334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11336 # The compiler can only warn and ignore the option if not recognized
11337 # So say no if there are warnings
11338 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11339 $SED '/^$/d' out/conftest.err >out/conftest.er2
11340 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11341 lt_cv_prog_compiler_c_o_CXX=yes
11346 # SGI C++ compiler will create directory out/ii_files/ for
11347 # template instantiation
11348 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11349 $rm out/* && rmdir out
11355 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11356 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11359 hard_links="nottested"
11360 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11361 # do not overwrite the value of need_locks provided by the user
11362 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11363 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11368 ln conftest.a conftest.b 2>&5 || hard_links=no
11369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11370 echo "$as_me:$LINENO: result: $hard_links" >&5
11371 echo "${ECHO_T}$hard_links" >&6
11372 if test "$hard_links" = no; then
11373 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11374 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11381 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11382 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11387 # If we're using GNU nm, then we don't want the "-C" option.
11388 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11389 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11390 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'
11392 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'
11396 export_symbols_cmds_CXX="$ltdll_cmds"
11399 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'
11402 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11406 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11407 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11408 test "$ld_shlibs_CXX" = no && can_build_shared=no
11410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11411 if test "$GCC" = yes; then
11412 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11416 # Do we need to explicitly link libc?
11418 case "x$archive_cmds_need_lc_CXX" in
11420 # Assume -lc should be added
11421 archive_cmds_need_lc_CXX=yes
11423 if test "$enable_shared" = yes && test "$GCC" = yes; then
11424 case $archive_cmds_CXX in
11426 # FIXME: we may have to deal with multi-command sequences.
11429 # Test whether the compiler implicitly links with -lc since on some
11430 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11431 # to ld, don't add -lc before -lgcc.
11432 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438 (eval $ac_compile) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } 2>conftest.err; then
11444 libobjs=conftest.$ac_objext
11446 wl=$lt_prog_compiler_wl_CXX
11452 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11453 allow_undefined_flag_CXX=
11454 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11455 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }
11460 archive_cmds_need_lc_CXX=no
11462 archive_cmds_need_lc_CXX=yes
11464 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11466 cat conftest.err 1>&5
11469 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11470 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11477 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11478 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11479 library_names_spec=
11480 libname_spec='lib$name'
11484 postuninstall_cmds=
11488 shlibpath_overrides_runpath=unknown
11490 dynamic_linker="$host_os ld.so"
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11492 if test "$GCC" = yes; then
11493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11494 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11495 # if the path contains ";" then we assume it to be the separator
11496 # otherwise default to the standard path separator (i.e. ":") - it is
11497 # assumed that no part of a normal pathname contains ";" but that should
11498 # okay in the real world where ";" in dirpaths is itself problematic.
11499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11506 need_lib_prefix=unknown
11507 hardcode_into_libs=no
11509 # when you set need_version to no, make sure it does not cause -set_version
11510 # flags to be left without arguments
11511 need_version=unknown
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11517 shlibpath_var=LIBPATH
11519 # AIX 3 has no versioning support, so we append a major version to the name.
11520 soname_spec='${libname}${release}${shared_ext}$major'
11527 hardcode_into_libs=yes
11528 if test "$host_cpu" = ia64; then
11529 # AIX 5 supports IA64
11530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11531 shlibpath_var=LD_LIBRARY_PATH
11533 # With GCC up to 2.95.x, collect2 would create an import file
11534 # for dependence libraries. The import file would start with
11535 # the line `#! .'. This would cause the generated library to
11536 # depend on `.', always an invalid library. This was fixed in
11537 # development snapshots of GCC prior to 3.0.
11539 aix4 | aix4.[01] | aix4.[01].*)
11540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11545 can_build_shared=no
11549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11550 # soname into executable. Probably we can add versioning support to
11551 # collect2, so additional links can be useful in future.
11552 if test "$aix_use_runtimelinking" = yes; then
11553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11554 # instead of lib<name>.a to let people know that these are not
11555 # typical AIX shared libraries.
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 # We preserve .a as extension for shared libraries through AIX4.2
11559 # and later when we are not doing run time linking.
11560 library_names_spec='${libname}${release}.a $libname.a'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LIBPATH
11568 library_names_spec='$libname.ixlibrary $libname.a'
11569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11570 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'
11574 library_names_spec='${libname}${shared_ext}'
11575 dynamic_linker="$host_os ld.so"
11576 shlibpath_var=LIBRARY_PATH
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11588 # the default ld.so.conf also contains /usr/contrib/lib and
11589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11590 # libtool to hard-code these into programs
11593 cygwin* | mingw* | pw32*)
11594 version_type=windows
11599 case $GCC,$host_os in
11600 yes,cygwin* | yes,mingw* | yes,pw32*)
11601 library_names_spec='$libname.dll.a'
11602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11603 postinstall_cmds='base_file=`basename \${file}`~
11604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11605 dldir=$destdir/`dirname \$dlpath`~
11606 test -d \$dldir || mkdir -p \$dldir~
11607 $install_prog $dir/$dlname \$dldir/$dlname~
11608 chmod a+x \$dldir/$dlname'
11609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11610 dlpath=$dir/\$dldll~
11612 shlibpath_overrides_runpath=yes
11616 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11621 # MinGW DLLs use traditional 'lib' prefix
11622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11624 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11625 # It is most probably a Windows format PATH printed by
11626 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11627 # path with ; separators, and with drive letters. We can handle the
11628 # drive letters (cygwin fileutils understands them), so leave them,
11629 # especially as we might pass files found there to a mingw objdump,
11630 # which wouldn't understand a cygwinified path. Ahh.
11631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11637 # pw32 DLLs use 'pw' prefix rather than 'lib'
11638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11647 dynamic_linker='Win32 ld.exe'
11648 # FIXME: first we should search . and the directory the executable is in
11652 darwin* | rhapsody*)
11653 dynamic_linker="$host_os dyld"
11654 version_type=darwin
11657 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11658 soname_spec='${libname}${release}${major}$shared_ext'
11659 shlibpath_overrides_runpath=yes
11660 shlibpath_var=DYLD_LIBRARY_PATH
11661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11662 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11663 if test "$GCC" = yes; then
11664 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"`
11666 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11676 soname_spec='${libname}${release}${shared_ext}$major'
11677 shlibpath_var=LD_LIBRARY_PATH
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=no
11692 hardcode_into_libs=yes
11693 dynamic_linker='GNU ld.so'
11696 freebsd* | dragonfly*)
11697 # DragonFly does not have aout. When/if they implement a new
11698 # versioning mechanism, adjust this.
11699 if test -x /usr/bin/objformat; then
11700 objformat=`/usr/bin/objformat`
11703 freebsd[123]*) objformat=aout ;;
11704 *) objformat=elf ;;
11707 version_type=freebsd-$objformat
11708 case $version_type in
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11719 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11724 freebsd3.[01]* | freebsdelf3.[01]*)
11725 shlibpath_overrides_runpath=yes
11726 hardcode_into_libs=yes
11729 shlibpath_overrides_runpath=no
11730 hardcode_into_libs=yes
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 hardcode_into_libs=yes
11745 hpux9* | hpux10* | hpux11*)
11746 # Give a soname corresponding to the major version so that dld.sl refuses to
11747 # link against other versions.
11754 hardcode_into_libs=yes
11755 dynamic_linker="$host_os dld.so"
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 if test "X$HPUX_IA64_MODE" = X32; then
11761 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11763 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11769 hardcode_into_libs=yes
11770 dynamic_linker="$host_os dld.sl"
11771 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11780 dynamic_linker="$host_os dld.sl"
11781 shlibpath_var=SHLIB_PATH
11782 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11787 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11788 postinstall_cmds='chmod 555 $lib'
11791 irix5* | irix6* | nonstopux*)
11793 nonstopux*) version_type=nonstopux ;;
11795 if test "$lt_cv_prog_gnu_ld" = yes; then
11803 soname_spec='${libname}${release}${shared_ext}$major'
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11806 irix5* | nonstopux*)
11807 libsuff= shlibsuff=
11810 case $LD in # libtool.m4 will add one of these switches to LD
11811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11812 libsuff= shlibsuff= libmagic=32-bit;;
11813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11814 libsuff=32 shlibsuff=N32 libmagic=N32;;
11815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11817 *) libsuff= shlibsuff= libmagic=never-match;;
11821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11822 shlibpath_overrides_runpath=no
11823 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11824 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11825 hardcode_into_libs=yes
11828 # No shared lib support for Linux oldld, aout, or coff.
11829 linux*oldld* | linux*aout* | linux*coff*)
11833 # This must be Linux ELF.
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 shlibpath_overrides_runpath=no
11843 # This implies no fast_install, which is unacceptable.
11844 # Some rework will be needed to allow for fast_install
11845 # before this can be enabled.
11846 hardcode_into_libs=yes
11848 # Append ld.so.conf contents to the search path
11849 if test -f /etc/ld.so.conf; then
11850 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' ' '`
11851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11854 # We used to test for /lib/ld.so.1 and disable shared libraries on
11855 # powerpc, because MkLinux only supported shared libraries with the
11856 # GNU dynamic linker. Since this was broken with cross compilers,
11857 # most powerpc-linux boxes support dynamic linking these days and
11858 # people can always --disable-shared, the test was removed, and we
11859 # assume the GNU/Linux dynamic linker is in use.
11860 dynamic_linker='GNU/Linux ld.so'
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=no
11871 hardcode_into_libs=yes
11872 dynamic_linker='GNU ld.so'
11879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882 dynamic_linker='NetBSD (a.out) ld.so'
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 dynamic_linker='NetBSD ld.elf_so'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 hardcode_into_libs=yes
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=yes
11913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11916 *) need_version=no ;;
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11923 openbsd2.[89] | openbsd2.[89].*)
11924 shlibpath_overrides_runpath=no
11927 shlibpath_overrides_runpath=yes
11931 shlibpath_overrides_runpath=yes
11936 libname_spec='$name'
11939 library_names_spec='$libname${shared_ext} $libname.a'
11940 dynamic_linker='OS/2 ld.exe'
11941 shlibpath_var=LIBPATH
11944 osf3* | osf4* | osf5*)
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11957 soname_spec='${libname}${release}${shared_ext}$major'
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 shlibpath_var=LD_LIBRARY_PATH
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11971 # ldd complains unless libraries are executable
11972 postinstall_cmds='chmod +x $lib'
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11981 if test "$with_gnu_ld" = yes; then
11987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 case $host_vendor in
11994 shlibpath_overrides_runpath=no
11996 export_dynamic_flag_spec='${wl}-Blargedynsym'
11997 runpath_var=LD_RUN_PATH
12005 shlibpath_overrides_runpath=no
12006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12012 if test -d /usr/nec ;then
12014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12015 soname_spec='$libname${shared_ext}.$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 shlibpath_var=LD_LIBRARY_PATH
12031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12032 echo "${ECHO_T}$dynamic_linker" >&6
12033 test "$dynamic_linker" = no && can_build_shared=no
12035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12037 hardcode_action_CXX=
12038 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12039 test -n "$runpath_var_CXX" || \
12040 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12042 # We can hardcode non-existant directories.
12043 if test "$hardcode_direct_CXX" != no &&
12044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12045 # have to relink, otherwise we might link with an installed library
12046 # when we should be linking with a yet-to-be-installed one
12047 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12048 test "$hardcode_minus_L_CXX" != no; then
12049 # Linking always hardcodes the temporary library directory.
12050 hardcode_action_CXX=relink
12052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12053 hardcode_action_CXX=immediate
12056 # We cannot hardcode anything, or else we can only hardcode existing
12058 hardcode_action_CXX=unsupported
12060 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12061 echo "${ECHO_T}$hardcode_action_CXX" >&6
12063 if test "$hardcode_action_CXX" = relink; then
12064 # Fast installation is not supported
12065 enable_fast_install=no
12066 elif test "$shlibpath_overrides_runpath" = yes ||
12067 test "$enable_shared" = no; then
12068 # Fast installation is not necessary
12069 enable_fast_install=needless
12074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12079 echo "$as_me:$LINENO: result: yes" >&5
12080 echo "${ECHO_T}yes" >&6
12082 # FIXME - insert some real tests, host_os isn't really good enough
12085 if test -n "$STRIP" ; then
12086 striplib="$STRIP -x"
12087 echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6
12090 echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12095 echo "$as_me:$LINENO: result: no" >&5
12096 echo "${ECHO_T}no" >&6
12101 if test "x$enable_dlopen" != xyes; then
12102 enable_dlopen=unknown
12103 enable_dlopen_self=unknown
12104 enable_dlopen_self_static=unknown
12111 lt_cv_dlopen="load_add_on"
12113 lt_cv_dlopen_self=yes
12117 lt_cv_dlopen="LoadLibrary"
12122 lt_cv_dlopen="dlopen"
12127 # if libdl is installed we need to link against it
12128 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 ac_check_lib_save_LIBS=$LIBS
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12142 /* Override any gcc2 internal prototype to avoid an error. */
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159 (eval $ac_link) 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_cxx_werror_flag"
12167 || test ! -s conftest.err'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_lib_dl_dlopen=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_cv_lib_dl_dlopen=no
12186 rm -f conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12192 if test $ac_cv_lib_dl_dlopen = yes; then
12193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12196 lt_cv_dlopen="dyld"
12198 lt_cv_dlopen_self=yes
12205 echo "$as_me:$LINENO: checking for shl_load" >&5
12206 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12207 if test "${ac_cv_func_shl_load+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define shl_load innocuous_shl_load
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char shl_load (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12226 # include <limits.h>
12228 # include <assert.h>
12233 /* Override any gcc2 internal prototype to avoid an error. */
12238 /* We use char because int might match the return type of a gcc2
12239 builtin and then its argument prototype would still apply. */
12241 /* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12247 char (*f) () = shl_load;
12256 return f != shl_load;
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_cxx_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_func_shl_load=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_func_shl_load=no
12290 rm -f conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12294 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12295 if test $ac_cv_func_shl_load = yes; then
12296 lt_cv_dlopen="shl_load"
12298 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12299 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12300 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_check_lib_save_LIBS=$LIBS
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12312 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329 (eval $ac_link) 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_cxx_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_dld_shl_load=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_dld_shl_load=no
12356 rm -f conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12365 echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define dlopen innocuous_dlopen
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char dlopen (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12386 # include <limits.h>
12388 # include <assert.h>
12393 /* Override any gcc2 internal prototype to avoid an error. */
12398 /* We use char because int might match the return type of a gcc2
12399 builtin and then its argument prototype would still apply. */
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12407 char (*f) () = dlopen;
12416 return f != dlopen;
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_cxx_werror_flag"
12431 || test ! -s conftest.err'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_func_dlopen=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_func_dlopen=no
12450 rm -f conftest.err conftest.$ac_objext \
12451 conftest$ac_exeext conftest.$ac_ext
12453 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12454 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12455 if test $ac_cv_func_dlopen = yes; then
12456 lt_cv_dlopen="dlopen"
12458 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12459 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12460 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 ac_check_lib_save_LIBS=$LIBS
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12472 /* Override any gcc2 internal prototype to avoid an error. */
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489 (eval $ac_link) 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } &&
12496 { ac_try='test -z "$ac_cxx_werror_flag"
12497 || test ! -s conftest.err'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_lib_dl_dlopen=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ac_cv_lib_dl_dlopen=no
12516 rm -f conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12522 if test $ac_cv_lib_dl_dlopen = yes; then
12523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12525 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lsvld $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any gcc2 internal prototype to avoid an error. */
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_cxx_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_lib_svld_dlopen=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 ac_cv_lib_svld_dlopen=no
12583 rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12587 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12588 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12589 if test $ac_cv_lib_svld_dlopen = yes; then
12590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12592 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12593 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12594 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_check_lib_save_LIBS=$LIBS
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any gcc2 internal prototype to avoid an error. */
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_cxx_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_dld_dld_link=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_lib_dld_dld_link=no
12650 rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12654 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12655 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12656 if test $ac_cv_lib_dld_dld_link = yes; then
12657 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12678 if test "x$lt_cv_dlopen" != xno; then
12684 case $lt_cv_dlopen in
12686 save_CPPFLAGS="$CPPFLAGS"
12687 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12689 save_LDFLAGS="$LDFLAGS"
12690 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12693 LIBS="$lt_cv_dlopen_libs $LIBS"
12695 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12696 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12697 if test "${lt_cv_dlopen_self+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 if test "$cross_compiling" = yes; then :
12701 lt_cv_dlopen_self=cross
12703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12704 lt_status=$lt_dlunknown
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12706 "configure"
12707 #include "confdefs.h"
12716 # define LT_DLGLOBAL RTLD_GLOBAL
12719 # define LT_DLGLOBAL DL_GLOBAL
12721 # define LT_DLGLOBAL 0
12725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12726 find out it does not work in some platform. */
12727 #ifndef LT_DLLAZY_OR_NOW
12729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12732 # define LT_DLLAZY_OR_NOW DL_LAZY
12735 # define LT_DLLAZY_OR_NOW RTLD_NOW
12738 # define LT_DLLAZY_OR_NOW DL_NOW
12740 # define LT_DLLAZY_OR_NOW 0
12748 extern "C" void exit (int);
12751 void fnord() { int i=42;}
12754 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12755 int status = $lt_dlunknown;
12759 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12760 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12761 /* dlclose (self); */
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12772 (./conftest; exit; ) >&5 2>/dev/null
12774 case x$lt_status in
12775 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12776 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12777 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12780 # compilation failed
12781 lt_cv_dlopen_self=no
12788 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12789 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12791 if test "x$lt_cv_dlopen_self" = xyes; then
12792 LDFLAGS="$LDFLAGS $link_static_flag"
12793 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12794 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12795 if test "${lt_cv_dlopen_self_static+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 if test "$cross_compiling" = yes; then :
12799 lt_cv_dlopen_self_static=cross
12801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12802 lt_status=$lt_dlunknown
12803 cat > conftest.$ac_ext <<EOF
12804 #line 12804 "configure"
12805 #include "confdefs.h"
12814 # define LT_DLGLOBAL RTLD_GLOBAL
12817 # define LT_DLGLOBAL DL_GLOBAL
12819 # define LT_DLGLOBAL 0
12823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12824 find out it does not work in some platform. */
12825 #ifndef LT_DLLAZY_OR_NOW
12827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12830 # define LT_DLLAZY_OR_NOW DL_LAZY
12833 # define LT_DLLAZY_OR_NOW RTLD_NOW
12836 # define LT_DLLAZY_OR_NOW DL_NOW
12838 # define LT_DLLAZY_OR_NOW 0
12846 extern "C" void exit (int);
12849 void fnord() { int i=42;}
12852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853 int status = $lt_dlunknown;
12857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12858 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12859 /* dlclose (self); */
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12870 (./conftest; exit; ) >&5 2>/dev/null
12872 case x$lt_status in
12873 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12874 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12875 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12878 # compilation failed
12879 lt_cv_dlopen_self_static=no
12886 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12887 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12890 CPPFLAGS="$save_CPPFLAGS"
12891 LDFLAGS="$save_LDFLAGS"
12896 case $lt_cv_dlopen_self in
12897 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12898 *) enable_dlopen_self=unknown ;;
12901 case $lt_cv_dlopen_self_static in
12902 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12903 *) enable_dlopen_self_static=unknown ;;
12908 # The else clause should only fire when bootstrapping the
12909 # libtool distribution, otherwise you forgot to ship ltmain.sh
12910 # with your package, and you will get complaints that there are
12911 # no rules to generate ltmain.sh.
12912 if test -f "$ltmain"; then
12913 # See if we are running on zsh, and set the options which allow our commands through
12914 # without removal of \ escapes.
12915 if test -n "${ZSH_VERSION+set}" ; then
12916 setopt NO_GLOB_SUBST
12918 # Now quote all the things that may contain metacharacters while being
12919 # careful not to overquote the AC_SUBSTed values. We take copies of the
12920 # variables and quote the copies for generation of the libtool script.
12921 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12923 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12924 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12925 deplibs_check_method reload_flag reload_cmds need_locks \
12926 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12927 lt_cv_sys_global_symbol_to_c_name_address \
12928 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12929 old_postinstall_cmds old_postuninstall_cmds \
12933 lt_prog_compiler_wl_CXX \
12934 lt_prog_compiler_pic_CXX \
12935 lt_prog_compiler_static_CXX \
12936 lt_prog_compiler_no_builtin_flag_CXX \
12937 export_dynamic_flag_spec_CXX \
12938 thread_safe_flag_spec_CXX \
12939 whole_archive_flag_spec_CXX \
12940 enable_shared_with_static_runtimes_CXX \
12941 old_archive_cmds_CXX \
12942 old_archive_from_new_cmds_CXX \
12943 predep_objects_CXX \
12944 postdep_objects_CXX \
12947 compiler_lib_search_path_CXX \
12949 archive_expsym_cmds_CXX \
12950 postinstall_cmds_CXX \
12951 postuninstall_cmds_CXX \
12952 old_archive_from_expsyms_cmds_CXX \
12953 allow_undefined_flag_CXX \
12954 no_undefined_flag_CXX \
12955 export_symbols_cmds_CXX \
12956 hardcode_libdir_flag_spec_CXX \
12957 hardcode_libdir_flag_spec_ld_CXX \
12958 hardcode_libdir_separator_CXX \
12959 hardcode_automatic_CXX \
12961 module_expsym_cmds_CXX \
12962 lt_cv_prog_compiler_c_o_CXX \
12963 exclude_expsyms_CXX \
12964 include_expsyms_CXX; do
12967 old_archive_cmds_CXX | \
12968 old_archive_from_new_cmds_CXX | \
12969 archive_cmds_CXX | \
12970 archive_expsym_cmds_CXX | \
12971 module_cmds_CXX | \
12972 module_expsym_cmds_CXX | \
12973 old_archive_from_expsyms_cmds_CXX | \
12974 export_symbols_cmds_CXX | \
12975 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12976 postinstall_cmds | postuninstall_cmds | \
12977 old_postinstall_cmds | old_postuninstall_cmds | \
12978 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12979 # Double-quote double-evaled strings.
12980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12989 *'\$0 --fallback-echo"')
12990 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12996 cat <<__EOF__ >> "$cfgfile"
12997 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12999 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13001 # Shell to use when invoking shell scripts.
13004 # Whether or not to build shared libraries.
13005 build_libtool_libs=$enable_shared
13007 # Whether or not to build static libraries.
13008 build_old_libs=$enable_static
13010 # Whether or not to add -lc for building shared libraries.
13011 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13013 # Whether or not to disallow shared libs when runtime libs are static
13014 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13016 # Whether or not to optimize for fast installation.
13017 fast_install=$enable_fast_install
13020 host_alias=$host_alias
13024 # The build system.
13025 build_alias=$build_alias
13029 # An echo program that does not interpret backslashes.
13034 AR_FLAGS=$lt_AR_FLAGS
13039 # A language-specific compiler.
13040 CC=$lt_compiler_CXX
13042 # Is the compiler the GNU C compiler?
13048 # The linker used to build libraries.
13051 # Whether we need hard or soft links.
13054 # A BSD-compatible nm program.
13057 # A symbol stripping program
13060 # Used to examine libraries when file_magic_cmd begins "file"
13061 MAGIC_CMD=$MAGIC_CMD
13063 # Used on cygwin: DLL creation program.
13066 # Used on cygwin: object dumper.
13069 # Used on cygwin: assembler.
13072 # The name of the directory that contains temporary libtool files.
13075 # How to create reloadable object files.
13076 reload_flag=$lt_reload_flag
13077 reload_cmds=$lt_reload_cmds
13079 # How to pass a linker flag through the compiler.
13080 wl=$lt_lt_prog_compiler_wl_CXX
13082 # Object file suffix (normally "o").
13083 objext="$ac_objext"
13085 # Old archive suffix (normally "a").
13088 # Shared library suffix (normally ".so").
13089 shrext_cmds='$shrext_cmds'
13091 # Executable file suffix (normally "").
13094 # Additional compiler flags for building library objects.
13095 pic_flag=$lt_lt_prog_compiler_pic_CXX
13098 # What is the maximum length of a command?
13099 max_cmd_len=$lt_cv_sys_max_cmd_len
13101 # Does compiler simultaneously support -c and -o options?
13102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13104 # Must we lock files when doing compilation?
13105 need_locks=$lt_need_locks
13107 # Do we need the lib prefix for modules?
13108 need_lib_prefix=$need_lib_prefix
13110 # Do we need a version for libraries?
13111 need_version=$need_version
13113 # Whether dlopen is supported.
13114 dlopen_support=$enable_dlopen
13116 # Whether dlopen of programs is supported.
13117 dlopen_self=$enable_dlopen_self
13119 # Whether dlopen of statically linked programs is supported.
13120 dlopen_self_static=$enable_dlopen_self_static
13122 # Compiler flag to prevent dynamic linking.
13123 link_static_flag=$lt_lt_prog_compiler_static_CXX
13125 # Compiler flag to turn off builtin functions.
13126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13128 # Compiler flag to allow reflexive dlopens.
13129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13131 # Compiler flag to generate shared objects directly from archives.
13132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13134 # Compiler flag to generate thread-safe objects.
13135 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13137 # Library versioning type.
13138 version_type=$version_type
13140 # Format of library name prefix.
13141 libname_spec=$lt_libname_spec
13143 # List of archive names. First name is the real one, the rest are links.
13144 # The last name is the one that the linker finds with -lNAME.
13145 library_names_spec=$lt_library_names_spec
13147 # The coded name of the library, if different from the real name.
13148 soname_spec=$lt_soname_spec
13150 # Commands used to build and install an old-style archive.
13152 old_archive_cmds=$lt_old_archive_cmds_CXX
13153 old_postinstall_cmds=$lt_old_postinstall_cmds
13154 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13156 # Create an old-style archive from a shared archive.
13157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13159 # Create a temporary old-style archive to link instead of a shared archive.
13160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13162 # Commands used to build and install a shared archive.
13163 archive_cmds=$lt_archive_cmds_CXX
13164 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13165 postinstall_cmds=$lt_postinstall_cmds
13166 postuninstall_cmds=$lt_postuninstall_cmds
13168 # Commands used to build a loadable module (assumed same as above if empty)
13169 module_cmds=$lt_module_cmds_CXX
13170 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13172 # Commands to strip libraries.
13173 old_striplib=$lt_old_striplib
13174 striplib=$lt_striplib
13176 # Dependencies to place before the objects being linked to create a
13178 predep_objects=$lt_predep_objects_CXX
13180 # Dependencies to place after the objects being linked to create a
13182 postdep_objects=$lt_postdep_objects_CXX
13184 # Dependencies to place before the objects being linked to create a
13186 predeps=$lt_predeps_CXX
13188 # Dependencies to place after the objects being linked to create a
13190 postdeps=$lt_postdeps_CXX
13192 # The library search path used internally by the compiler when linking
13193 # a shared library.
13194 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13196 # Method to check whether dependent libraries are shared objects.
13197 deplibs_check_method=$lt_deplibs_check_method
13199 # Command to use when deplibs_check_method == file_magic.
13200 file_magic_cmd=$lt_file_magic_cmd
13202 # Flag that allows shared libraries with undefined symbols to be built.
13203 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13205 # Flag that forces no undefined symbols.
13206 no_undefined_flag=$lt_no_undefined_flag_CXX
13208 # Commands used to finish a libtool library installation in a directory.
13209 finish_cmds=$lt_finish_cmds
13211 # Same as above, but a single script fragment to be evaled but not shown.
13212 finish_eval=$lt_finish_eval
13214 # Take the output of nm and produce a listing of raw symbols and C names.
13215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13217 # Transform the output of nm in a proper C declaration
13218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13220 # Transform the output of nm in a C name address pair
13221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13223 # This is the shared library runtime path variable.
13224 runpath_var=$runpath_var
13226 # This is the shared library path variable.
13227 shlibpath_var=$shlibpath_var
13229 # Is shlibpath searched before the hard-coded library search path?
13230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13232 # How to hardcode a shared library path into an executable.
13233 hardcode_action=$hardcode_action_CXX
13235 # Whether we should hardcode library paths into libraries.
13236 hardcode_into_libs=$hardcode_into_libs
13238 # Flag to hardcode \$libdir into a binary during linking.
13239 # This must work even if \$libdir does not exist.
13240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13242 # If ld is used when linking, flag to hardcode \$libdir into
13243 # a binary during linking. This must work even if \$libdir does
13245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13247 # Whether we need a single -rpath flag with a separated argument.
13248 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13250 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13251 # resulting binary.
13252 hardcode_direct=$hardcode_direct_CXX
13254 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13255 # resulting binary.
13256 hardcode_minus_L=$hardcode_minus_L_CXX
13258 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13259 # the resulting binary.
13260 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13262 # Set to yes if building a shared library automatically hardcodes DIR into the library
13263 # and all subsequent libraries and executables linked against it.
13264 hardcode_automatic=$hardcode_automatic_CXX
13266 # Variables whose values should be saved in libtool wrapper scripts and
13267 # restored at relink time.
13268 variables_saved_for_relink="$variables_saved_for_relink"
13270 # Whether libtool must link a program against all its dependency libraries.
13271 link_all_deplibs=$link_all_deplibs_CXX
13273 # Compile-time system search path for libraries
13274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13276 # Run-time system search path for libraries
13277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13279 # Fix the shell variable \$srcfile for the compiler.
13280 fix_srcfile_path="$fix_srcfile_path_CXX"
13282 # Set to yes if exported symbols are required.
13283 always_export_symbols=$always_export_symbols_CXX
13285 # The commands to list exported symbols.
13286 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13288 # The commands to extract the exported symbol list from a shared archive.
13289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13291 # Symbols that should not be listed in the preloaded symbols.
13292 exclude_expsyms=$lt_exclude_expsyms_CXX
13294 # Symbols that must always be exported.
13295 include_expsyms=$lt_include_expsyms_CXX
13297 # ### END LIBTOOL TAG CONFIG: $tagname
13303 # If there is no Makefile yet, we rely on a make rule to execute
13304 # `config.status --recheck' to rerun these tests and create the
13305 # libtool script then.
13306 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13307 if test -f "$ltmain_in"; then
13308 test -f Makefile && make "$ltmain"
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323 with_gnu_ldcxx=$with_gnu_ld
13324 with_gnu_ld=$lt_save_with_gnu_ld
13325 lt_cv_path_LDCXX=$lt_cv_path_LD
13326 lt_cv_path_LD=$lt_save_path_LD
13327 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13328 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13336 if test -n "$F77" && test "X$F77" != "Xno"; then
13339 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13340 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13344 archive_cmds_need_lc_F77=no
13345 allow_undefined_flag_F77=
13346 always_export_symbols_F77=no
13347 archive_expsym_cmds_F77=
13348 export_dynamic_flag_spec_F77=
13349 hardcode_direct_F77=no
13350 hardcode_libdir_flag_spec_F77=
13351 hardcode_libdir_flag_spec_ld_F77=
13352 hardcode_libdir_separator_F77=
13353 hardcode_minus_L_F77=no
13354 hardcode_automatic_F77=no
13356 module_expsym_cmds_F77=
13357 link_all_deplibs_F77=unknown
13358 old_archive_cmds_F77=$old_archive_cmds
13359 no_undefined_flag_F77=
13360 whole_archive_flag_spec_F77=
13361 enable_shared_with_static_runtimes_F77=no
13363 # Source file extension for f77 test sources.
13366 # Object file extension for compiled f77 test sources.
13370 # Code to be used in simple compile tests
13371 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13373 # Code to be used in simple link tests
13374 lt_simple_link_test_code=" program t\n end\n"
13376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13378 # If no C compiler was specified, use CC.
13381 # Allow CC to be a program name with arguments.
13385 # save warnings/boilerplate of simple test code
13386 ac_outfile=conftest.$ac_objext
13387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13389 _lt_compiler_boilerplate=`cat conftest.err`
13392 ac_outfile=conftest.$ac_objext
13393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13395 _lt_linker_boilerplate=`cat conftest.err`
13399 # Allow CC to be a program name with arguments.
13404 for cc_temp in $compiler""; do
13406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13415 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13417 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13418 echo "${ECHO_T}$can_build_shared" >&6
13420 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13422 test "$can_build_shared" = "no" && enable_shared=no
13424 # On AIX, shared libraries and static libraries use the same namespace, and
13425 # are all built from PIC.
13428 test "$enable_shared" = yes && enable_static=no
13429 if test -n "$RANLIB"; then
13430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13431 postinstall_cmds='$RANLIB $lib'
13435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13436 test "$enable_shared" = yes && enable_static=no
13440 echo "$as_me:$LINENO: result: $enable_shared" >&5
13441 echo "${ECHO_T}$enable_shared" >&6
13443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13445 # Make sure either enable_shared or enable_static is yes.
13446 test "$enable_shared" = yes || enable_static=yes
13447 echo "$as_me:$LINENO: result: $enable_static" >&5
13448 echo "${ECHO_T}$enable_static" >&6
13450 test "$ld_shlibs_F77" = no && can_build_shared=no
13455 lt_prog_compiler_wl_F77=
13456 lt_prog_compiler_pic_F77=
13457 lt_prog_compiler_static_F77=
13459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13462 if test "$GCC" = yes; then
13463 lt_prog_compiler_wl_F77='-Wl,'
13464 lt_prog_compiler_static_F77='-static'
13468 # All AIX code is PIC.
13469 if test "$host_cpu" = ia64; then
13470 # AIX 5 now supports IA64 processor
13471 lt_prog_compiler_static_F77='-Bstatic'
13476 # FIXME: we need at least 68020 code to build shared libraries, but
13477 # adding the `-m68020' flag to GCC prevents building anything better,
13479 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13483 # PIC is the default for these OSes.
13486 mingw* | pw32* | os2*)
13487 # This hack is so that the source file can tell whether it is being
13488 # built for inclusion in a dll (and should export symbols for example).
13489 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13492 darwin* | rhapsody*)
13493 # PIC is the default on this platform
13494 # Common symbols not allowed in MH_DYLIB files
13495 lt_prog_compiler_pic_F77='-fno-common'
13499 # Just because we use GCC doesn't mean we suddenly get shared libraries
13500 # on systems that don't support them.
13501 lt_prog_compiler_can_build_shared_F77=no
13506 if test -d /usr/nec; then
13507 lt_prog_compiler_pic_F77=-Kconform_pic
13512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13513 # not for PA HP-UX.
13519 lt_prog_compiler_pic_F77='-fPIC'
13525 lt_prog_compiler_pic_F77='-fPIC'
13529 # PORTME Check for flag to pass linker flags through the system compiler.
13532 lt_prog_compiler_wl_F77='-Wl,'
13533 if test "$host_cpu" = ia64; then
13534 # AIX 5 now supports IA64 processor
13535 lt_prog_compiler_static_F77='-Bstatic'
13537 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13541 # PIC is the default on this platform
13542 # Common symbols not allowed in MH_DYLIB files
13543 case $cc_basename in
13545 lt_prog_compiler_pic_F77='-qnocommon'
13546 lt_prog_compiler_wl_F77='-Wl,'
13551 mingw* | pw32* | os2*)
13552 # This hack is so that the source file can tell whether it is being
13553 # built for inclusion in a dll (and should export symbols for example).
13554 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13557 hpux9* | hpux10* | hpux11*)
13558 lt_prog_compiler_wl_F77='-Wl,'
13559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13560 # not for PA HP-UX.
13566 lt_prog_compiler_pic_F77='+Z'
13569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13570 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13573 irix5* | irix6* | nonstopux*)
13574 lt_prog_compiler_wl_F77='-Wl,'
13575 # PIC (with -KPIC) is the default.
13576 lt_prog_compiler_static_F77='-non_shared'
13580 lt_prog_compiler_pic_F77='-KPIC'
13581 lt_prog_compiler_static_F77='-Bstatic'
13585 case $cc_basename in
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 lt_prog_compiler_pic_F77='-KPIC'
13589 lt_prog_compiler_static_F77='-static'
13591 pgcc* | pgf77* | pgf90* | pgf95*)
13592 # Portland Group compilers (*not* the Pentium gcc compiler,
13593 # which looks to be a dead project)
13594 lt_prog_compiler_wl_F77='-Wl,'
13595 lt_prog_compiler_pic_F77='-fpic'
13596 lt_prog_compiler_static_F77='-Bstatic'
13599 lt_prog_compiler_wl_F77='-Wl,'
13600 # All Alpha code is PIC.
13601 lt_prog_compiler_static_F77='-non_shared'
13606 osf3* | osf4* | osf5*)
13607 lt_prog_compiler_wl_F77='-Wl,'
13608 # All OSF/1 code is PIC.
13609 lt_prog_compiler_static_F77='-non_shared'
13613 lt_prog_compiler_pic_F77='-Kpic'
13614 lt_prog_compiler_static_F77='-dn'
13618 lt_prog_compiler_pic_F77='-KPIC'
13619 lt_prog_compiler_static_F77='-Bstatic'
13620 case $cc_basename in
13621 f77* | f90* | f95*)
13622 lt_prog_compiler_wl_F77='-Qoption ld ';;
13624 lt_prog_compiler_wl_F77='-Wl,';;
13629 lt_prog_compiler_wl_F77='-Qoption ld '
13630 lt_prog_compiler_pic_F77='-PIC'
13631 lt_prog_compiler_static_F77='-Bstatic'
13634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13635 lt_prog_compiler_wl_F77='-Wl,'
13636 lt_prog_compiler_pic_F77='-KPIC'
13637 lt_prog_compiler_static_F77='-Bstatic'
13641 if test -d /usr/nec ;then
13642 lt_prog_compiler_pic_F77='-Kconform_pic'
13643 lt_prog_compiler_static_F77='-Bstatic'
13648 lt_prog_compiler_wl_F77='-Wl,'
13649 lt_prog_compiler_can_build_shared_F77=no
13653 lt_prog_compiler_pic_F77='-pic'
13654 lt_prog_compiler_static_F77='-Bstatic'
13658 lt_prog_compiler_can_build_shared_F77=no
13663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13664 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13667 # Check to make sure the PIC flag actually works.
13669 if test -n "$lt_prog_compiler_pic_F77"; then
13671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13673 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 lt_prog_compiler_pic_works_F77=no
13677 ac_outfile=conftest.$ac_objext
13678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13680 # Insert the option either (1) after the last *FLAGS variable, or
13681 # (2) before a word containing "conftest.", or (3) at the end.
13682 # Note that $ac_compile itself does not contain backslashes and begins
13683 # with a dollar sign (not a hyphen), so the echo should work correctly.
13684 # The option is referenced via a variable to avoid confusing sed.
13685 lt_compile=`echo "$ac_compile" | $SED \
13686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13688 -e 's:$: $lt_compiler_flag:'`
13689 (eval echo "\"\$as_me:13689: $lt_compile\"" >&5)
13690 (eval "$lt_compile" 2>conftest.err)
13692 cat conftest.err >&5
13693 echo "$as_me:13693: \$? = $ac_status" >&5
13694 if (exit $ac_status) && test -s "$ac_outfile"; then
13695 # The compiler can only warn and ignore the option if not recognized
13696 # So say no if there are warnings other than the usual output.
13697 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13698 $SED '/^$/d' conftest.err >conftest.er2
13699 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13700 lt_prog_compiler_pic_works_F77=yes
13706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13707 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13709 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13710 case $lt_prog_compiler_pic_F77 in
13712 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13715 lt_prog_compiler_pic_F77=
13716 lt_prog_compiler_can_build_shared_F77=no
13721 # For platforms which do not support PIC, -DPIC is meaningless:
13723 lt_prog_compiler_pic_F77=
13726 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13732 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 lt_cv_prog_compiler_c_o_F77=no
13736 $rm -r conftest 2>/dev/null
13740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13742 lt_compiler_flag="-o out/conftest2.$ac_objext"
13743 # Insert the option either (1) after the last *FLAGS variable, or
13744 # (2) before a word containing "conftest.", or (3) at the end.
13745 # Note that $ac_compile itself does not contain backslashes and begins
13746 # with a dollar sign (not a hyphen), so the echo should work correctly.
13747 lt_compile=`echo "$ac_compile" | $SED \
13748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13750 -e 's:$: $lt_compiler_flag:'`
13751 (eval echo "\"\$as_me:13751: $lt_compile\"" >&5)
13752 (eval "$lt_compile" 2>out/conftest.err)
13754 cat out/conftest.err >&5
13755 echo "$as_me:13755: \$? = $ac_status" >&5
13756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13758 # The compiler can only warn and ignore the option if not recognized
13759 # So say no if there are warnings
13760 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13761 $SED '/^$/d' out/conftest.err >out/conftest.er2
13762 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13763 lt_cv_prog_compiler_c_o_F77=yes
13768 # SGI C++ compiler will create directory out/ii_files/ for
13769 # template instantiation
13770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13771 $rm out/* && rmdir out
13777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13781 hard_links="nottested"
13782 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13783 # do not overwrite the value of need_locks provided by the user
13784 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13790 ln conftest.a conftest.b 2>&5 || hard_links=no
13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13792 echo "$as_me:$LINENO: result: $hard_links" >&5
13793 echo "${ECHO_T}$hard_links" >&6
13794 if test "$hard_links" = no; then
13795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13807 allow_undefined_flag_F77=
13808 enable_shared_with_static_runtimes_F77=no
13810 archive_expsym_cmds_F77=
13811 old_archive_From_new_cmds_F77=
13812 old_archive_from_expsyms_cmds_F77=
13813 export_dynamic_flag_spec_F77=
13814 whole_archive_flag_spec_F77=
13815 thread_safe_flag_spec_F77=
13816 hardcode_libdir_flag_spec_F77=
13817 hardcode_libdir_flag_spec_ld_F77=
13818 hardcode_libdir_separator_F77=
13819 hardcode_direct_F77=no
13820 hardcode_minus_L_F77=no
13821 hardcode_shlibpath_var_F77=unsupported
13822 link_all_deplibs_F77=unknown
13823 hardcode_automatic_F77=no
13825 module_expsym_cmds_F77=
13826 always_export_symbols_F77=no
13827 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13828 # include_expsyms should be a list of space-separated symbols to be *always*
13829 # included in the symbol list
13830 include_expsyms_F77=
13831 # exclude_expsyms can be an extended regexp of symbols to exclude
13832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13834 # as well as any symbol that contains `d'.
13835 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13837 # platforms (ab)use it in PIC code, but their linkers get confused if
13838 # the symbol is explicitly referenced. Since portable code cannot
13839 # rely on this symbol name, it's probably fine to never include it in
13840 # preloaded symbol tables.
13841 extract_expsyms_cmds=
13842 # Just being paranoid about ensuring that cc_basename is set.
13843 for cc_temp in $compiler""; do
13845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13854 cygwin* | mingw* | pw32*)
13855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13856 # When not using gcc, we currently assume that we are using
13857 # Microsoft Visual C++.
13858 if test "$GCC" != yes; then
13868 if test "$with_gnu_ld" = yes; then
13869 # If archive_cmds runs LD, not CC, wlarc should be empty
13872 # Set some defaults for GNU ld with shared library support. These
13873 # are reset later if shared libraries are not supported. Putting them
13874 # here allows them to be overridden if necessary.
13875 runpath_var=LD_RUN_PATH
13876 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13877 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13878 # ancient GNU ld didn't support --whole-archive et. al.
13879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13880 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13882 whole_archive_flag_spec_F77=
13884 supports_anon_versioning=no
13885 case `$LD -v 2>/dev/null` in
13886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13889 *\ 2.11.*) ;; # other 2.11 versions
13890 *) supports_anon_versioning=yes ;;
13893 # See if GNU ld supports shared libraries.
13895 aix3* | aix4* | aix5*)
13896 # On AIX/PPC, the GNU linker is very broken
13897 if test "$host_cpu" != ia64; then
13901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13902 *** to be unable to reliably create shared libraries on AIX.
13903 *** Therefore, libtool is disabling shared libraries support. If you
13904 *** really care for shared libraries, you may want to modify your PATH
13905 *** so that a non-GNU linker is found, and then restart.
13912 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)'
13913 hardcode_libdir_flag_spec_F77='-L$libdir'
13914 hardcode_minus_L_F77=yes
13916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13917 # that the semantics of dynamic libraries on AmigaOS, at least up
13918 # to version 4, is to share data among multiple programs linked
13919 # with the same dynamic library. Since this doesn't match the
13920 # behavior of shared libraries on other platforms, we can't use
13926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13927 allow_undefined_flag_F77=unsupported
13928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13929 # support --undefined. This deserves some investigation. FIXME
13930 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13936 cygwin* | mingw* | pw32*)
13937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13938 # as there is no search path for DLLs.
13939 hardcode_libdir_flag_spec_F77='-L$libdir'
13940 allow_undefined_flag_F77=unsupported
13941 always_export_symbols_F77=no
13942 enable_shared_with_static_runtimes_F77=yes
13943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13947 # If the export-symbols file already is a .def file (1st line
13948 # is EXPORTS), use it as is; otherwise, prepend...
13949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13950 cp $export_symbols $output_objdir/$soname.def;
13952 echo EXPORTS > $output_objdir/$soname.def;
13953 cat $export_symbols >> $output_objdir/$soname.def;
13955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13964 case $cc_basename,$host_cpu in
13965 pgcc*) # Portland Group C compiler
13966 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'
13967 tmp_addflag=' $pic_flag'
13969 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13970 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'
13971 tmp_addflag=' $pic_flag -Mnomain' ;;
13972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13973 tmp_addflag=' -i_dynamic' ;;
13974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13975 tmp_addflag=' -i_dynamic -nofor_main' ;;
13976 ifc* | ifort*) # Intel Fortran compiler
13977 tmp_addflag=' -nofor_main' ;;
13979 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13981 if test $supports_anon_versioning = yes; then
13982 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984 $echo "local: *; };" >> $output_objdir/$libname.ver~
13985 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13994 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13997 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14003 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14007 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14008 *** create shared libraries on Solaris systems. Therefore, libtool
14009 *** is disabling shared libraries support. We urge you to upgrade GNU
14010 *** binutils to release 2.9.1 or newer. Another option is to modify
14011 *** your PATH or compiler configuration so that the native linker is
14012 *** used, and then restart.
14015 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14016 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14017 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14024 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_direct_F77=yes
14027 hardcode_shlibpath_var_F77=no
14031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040 if test "$ld_shlibs_F77" = no; then
14042 hardcode_libdir_flag_spec_F77=
14043 export_dynamic_flag_spec_F77=
14044 whole_archive_flag_spec_F77=
14047 # PORTME fill in a description of your system's linker (not GNU ld)
14050 allow_undefined_flag_F77=unsupported
14051 always_export_symbols_F77=yes
14052 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'
14053 # Note: this linker hardcodes the directories in LIBPATH if there
14054 # are no directories specified by -L.
14055 hardcode_minus_L_F77=yes
14056 if test "$GCC" = yes && test -z "$link_static_flag"; then
14057 # Neither direct hardcoding nor static linking is supported with a
14059 hardcode_direct_F77=unsupported
14064 if test "$host_cpu" = ia64; then
14065 # On IA64, the linker does run time linking by default, so we don't
14066 # have to do anything special.
14067 aix_use_runtimelinking=no
14068 exp_sym_flag='-Bexport'
14071 # If we're using GNU nm, then we don't want the "-C" option.
14072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14073 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14074 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'
14076 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'
14078 aix_use_runtimelinking=no
14080 # Test if we are trying to use run time linking or normal
14081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14082 # need to do runtime linking.
14083 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14084 for ld_flag in $LDFLAGS; do
14085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14086 aix_use_runtimelinking=yes
14092 exp_sym_flag='-bexport'
14093 no_entry_flag='-bnoentry'
14096 # When large executables or shared objects are built, AIX ld can
14097 # have problems creating the table of contents. If linking a library
14098 # or program results in "error TOC overflow" add -mminimal-toc to
14099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14102 archive_cmds_F77=''
14103 hardcode_direct_F77=yes
14104 hardcode_libdir_separator_F77=':'
14105 link_all_deplibs_F77=yes
14107 if test "$GCC" = yes; then
14108 case $host_os in aix4.[012]|aix4.[012].*)
14109 # We only want to do this on AIX 4.2 and lower, the check
14110 # below for broken collect2 doesn't work under 4.3+
14111 collect2name=`${CC} -print-prog-name=collect2`
14112 if test -f "$collect2name" && \
14113 strings "$collect2name" | grep resolve_lib_name >/dev/null
14115 # We have reworked collect2
14116 hardcode_direct_F77=yes
14118 # We have old collect2
14119 hardcode_direct_F77=unsupported
14120 # It fails to find uninstalled libraries when the uninstalled
14121 # path is not listed in the libpath. Setting hardcode_minus_L
14122 # to unsupported forces relinking
14123 hardcode_minus_L_F77=yes
14124 hardcode_libdir_flag_spec_F77='-L$libdir'
14125 hardcode_libdir_separator_F77=
14128 shared_flag='-shared'
14129 if test "$aix_use_runtimelinking" = yes; then
14130 shared_flag="$shared_flag "'${wl}-G'
14134 if test "$host_cpu" = ia64; then
14135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14136 # chokes on -Wl,-G. The following line is correct:
14139 if test "$aix_use_runtimelinking" = yes; then
14140 shared_flag='${wl}-G'
14142 shared_flag='${wl}-bM:SRE'
14147 # It seems that -bexpall does not export symbols beginning with
14148 # underscore (_), so it is better to generate a list of symbols to export.
14149 always_export_symbols_F77=yes
14150 if test "$aix_use_runtimelinking" = yes; then
14151 # Warning - without using the other runtime loading flags (-brtl),
14152 # -berok will link without error, but may produce a broken library.
14153 allow_undefined_flag_F77='-berok'
14154 # Determine the default libpath from the value encoded in an empty executable.
14155 cat >conftest.$ac_ext <<_ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162 (eval $ac_link) 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_f77_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14185 # Check for a 64-bit object if we didn't find anything.
14186 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; }
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14193 rm -f conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14197 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14198 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"
14200 if test "$host_cpu" = ia64; then
14201 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14202 allow_undefined_flag_F77="-z nodefs"
14203 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"
14205 # Determine the default libpath from the value encoded in an empty executable.
14206 cat >conftest.$ac_ext <<_ACEOF
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213 (eval $ac_link) 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_f77_werror_flag"
14221 || test ! -s conftest.err'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14236 # Check for a 64-bit object if we didn't find anything.
14237 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; }
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14244 rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14248 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14249 # Warning - without using the other run time loading flags,
14250 # -berok will link without error, but may produce a broken library.
14251 no_undefined_flag_F77=' ${wl}-bernotok'
14252 allow_undefined_flag_F77=' ${wl}-berok'
14253 # -bexpall does not export symbols beginning with underscore (_)
14254 always_export_symbols_F77=yes
14255 # Exported symbols can be pulled into shared objects from archives
14256 whole_archive_flag_spec_F77=' '
14257 archive_cmds_need_lc_F77=yes
14258 # This is similar to how AIX traditionally builds its shared libraries.
14259 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'
14265 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)'
14266 hardcode_libdir_flag_spec_F77='-L$libdir'
14267 hardcode_minus_L_F77=yes
14268 # see comment about different semantics on the GNU ld section
14273 export_dynamic_flag_spec_F77=-rdynamic
14276 cygwin* | mingw* | pw32*)
14277 # When not using gcc, we currently assume that we are using
14278 # Microsoft Visual C++.
14279 # hardcode_libdir_flag_spec is actually meaningless, as there is
14280 # no search path for DLLs.
14281 hardcode_libdir_flag_spec_F77=' '
14282 allow_undefined_flag_F77=unsupported
14283 # Tell ltmain to make .lib files, not .a files.
14285 # Tell ltmain to make .dll files, not .so files.
14287 # FIXME: Setting linknames here is a bad hack.
14288 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14289 # The linker will automatically build a .lib file if we build a DLL.
14290 old_archive_From_new_cmds_F77='true'
14291 # FIXME: Should let the user specify the lib program.
14292 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14293 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14294 enable_shared_with_static_runtimes_F77=yes
14297 darwin* | rhapsody*)
14299 rhapsody* | darwin1.[012])
14300 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14303 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14304 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14306 case ${MACOSX_DEPLOYMENT_TARGET} in
14308 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14311 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14317 archive_cmds_need_lc_F77=no
14318 hardcode_direct_F77=no
14319 hardcode_automatic_F77=yes
14320 hardcode_shlibpath_var_F77=unsupported
14321 whole_archive_flag_spec_F77=''
14322 link_all_deplibs_F77=yes
14323 if test "$GCC" = yes ; then
14324 output_verbose_link_cmd='echo'
14325 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14326 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14328 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}'
14329 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}'
14331 case $cc_basename in
14333 output_verbose_link_cmd='echo'
14334 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14335 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14337 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}'
14338 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}'
14348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 hardcode_libdir_flag_spec_F77='-L$libdir'
14350 hardcode_shlibpath_var_F77=no
14357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14358 # support. Future versions do this automatically, but an explicit c++rt0.o
14359 # does not break anything, and helps significantly (at the cost of a little
14362 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14363 hardcode_libdir_flag_spec_F77='-R$libdir'
14364 hardcode_direct_F77=yes
14365 hardcode_shlibpath_var_F77=no
14368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14370 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14371 hardcode_direct_F77=yes
14372 hardcode_minus_L_F77=yes
14373 hardcode_shlibpath_var_F77=no
14376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14377 freebsd* | kfreebsd*-gnu | dragonfly*)
14378 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14379 hardcode_libdir_flag_spec_F77='-R$libdir'
14380 hardcode_direct_F77=yes
14381 hardcode_shlibpath_var_F77=no
14385 if test "$GCC" = yes; then
14386 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'
14388 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'
14390 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14391 hardcode_libdir_separator_F77=:
14392 hardcode_direct_F77=yes
14394 # hardcode_minus_L: Not really in the search PATH,
14395 # but as the default location of the library.
14396 hardcode_minus_L_F77=yes
14397 export_dynamic_flag_spec_F77='${wl}-E'
14401 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14404 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14407 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14413 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14420 if test "$with_gnu_ld" = no; then
14423 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14424 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14425 hardcode_libdir_separator_F77=:
14426 hardcode_direct_F77=no
14427 hardcode_shlibpath_var_F77=no
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_direct_F77=no
14432 hardcode_shlibpath_var_F77=no
14434 # hardcode_minus_L: Not really in the search PATH,
14435 # but as the default location of the library.
14436 hardcode_minus_L_F77=yes
14439 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14440 hardcode_libdir_separator_F77=:
14441 hardcode_direct_F77=yes
14442 export_dynamic_flag_spec_F77='${wl}-E'
14444 # hardcode_minus_L: Not really in the search PATH,
14445 # but as the default location of the library.
14446 hardcode_minus_L_F77=yes
14452 irix5* | irix6* | nonstopux*)
14453 if test "$GCC" = yes; then
14454 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'
14456 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'
14457 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460 hardcode_libdir_separator_F77=:
14461 link_all_deplibs_F77=yes
14465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14466 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14468 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14470 hardcode_libdir_flag_spec_F77='-R$libdir'
14471 hardcode_direct_F77=yes
14472 hardcode_shlibpath_var_F77=no
14476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_direct_F77=yes
14478 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14479 hardcode_libdir_separator_F77=:
14480 hardcode_shlibpath_var_F77=no
14484 hardcode_direct_F77=yes
14485 hardcode_shlibpath_var_F77=no
14486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14487 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14489 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14490 export_dynamic_flag_spec_F77='${wl}-E'
14493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14494 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14495 hardcode_libdir_flag_spec_F77='-R$libdir'
14498 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14499 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14506 hardcode_libdir_flag_spec_F77='-L$libdir'
14507 hardcode_minus_L_F77=yes
14508 allow_undefined_flag_F77=unsupported
14509 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'
14510 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14514 if test "$GCC" = yes; then
14515 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14516 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'
14518 allow_undefined_flag_F77=' -expect_unresolved \*'
14519 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'
14521 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14522 hardcode_libdir_separator_F77=:
14525 osf4* | osf5*) # as osf3* with the addition of -msym flag
14526 if test "$GCC" = yes; then
14527 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14528 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'
14529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14531 allow_undefined_flag_F77=' -expect_unresolved \*'
14532 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'
14533 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~
14534 $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'
14536 # Both c and cxx compiler support -rpath directly
14537 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14539 hardcode_libdir_separator_F77=:
14543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14544 hardcode_shlibpath_var_F77=no
14545 export_dynamic_flag_spec_F77='${wl}-Bexport'
14546 runpath_var=LD_RUN_PATH
14547 hardcode_runpath_var=yes
14551 no_undefined_flag_F77=' -z text'
14552 if test "$GCC" = yes; then
14554 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14555 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14556 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14559 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14563 hardcode_libdir_flag_spec_F77='-R$libdir'
14564 hardcode_shlibpath_var_F77=no
14566 solaris2.[0-5] | solaris2.[0-5].*) ;;
14568 # The compiler driver will combine linker options so we
14569 # cannot just pass the convience library names through
14570 # without $wl, iff we do not link with $LD.
14571 # Luckily, gcc supports the same syntax we need for Sun Studio.
14572 # Supported since Solaris 2.6 (maybe 2.5.1?)
14575 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14577 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' ;;
14580 link_all_deplibs_F77=yes
14584 if test "x$host_vendor" = xsequent; then
14585 # Use $CC to link under sequent, because it throws in some extra .o
14586 # files that make .init and .fini sections work.
14587 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14589 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14591 hardcode_libdir_flag_spec_F77='-L$libdir'
14592 hardcode_direct_F77=yes
14593 hardcode_minus_L_F77=yes
14594 hardcode_shlibpath_var_F77=no
14598 case $host_vendor in
14600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601 hardcode_direct_F77=yes # is this really true???
14604 ## LD is ld it makes a PLAMLIB
14605 ## CC just makes a GrossModule.
14606 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14607 reload_cmds_F77='$CC -r -o $output$reload_objs'
14608 hardcode_direct_F77=no
14611 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14612 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14615 runpath_var='LD_RUN_PATH'
14616 hardcode_shlibpath_var_F77=no
14620 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14621 hardcode_shlibpath_var_F77=no
14622 export_dynamic_flag_spec_F77='-Bexport'
14626 if test -d /usr/nec; then
14627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628 hardcode_shlibpath_var_F77=no
14629 runpath_var=LD_RUN_PATH
14630 hardcode_runpath_var=yes
14636 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_direct_F77=yes
14638 hardcode_minus_L_F77=no
14639 hardcode_shlibpath_var_F77=no
14640 hardcode_runpath_var=yes
14641 runpath_var=LD_RUN_PATH
14644 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14645 no_undefined_flag_F77='${wl}-z ${wl}text'
14646 if test "$GCC" = yes; then
14647 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14649 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 runpath_var='LD_RUN_PATH'
14652 hardcode_shlibpath_var_F77=no
14656 no_undefined_flag_F77=' -z text'
14657 # $CC -shared without GNU ld will not create a library from C++
14658 # object files and a static libstdc++, better avoid it by now
14659 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14662 hardcode_libdir_flag_spec_F77=
14663 hardcode_shlibpath_var_F77=no
14664 runpath_var='LD_RUN_PATH'
14668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_libdir_flag_spec_F77='-L$libdir'
14670 hardcode_shlibpath_var_F77=no
14679 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14680 echo "${ECHO_T}$ld_shlibs_F77" >&6
14681 test "$ld_shlibs_F77" = no && can_build_shared=no
14683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14684 if test "$GCC" = yes; then
14685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14689 # Do we need to explicitly link libc?
14691 case "x$archive_cmds_need_lc_F77" in
14693 # Assume -lc should be added
14694 archive_cmds_need_lc_F77=yes
14696 if test "$enable_shared" = yes && test "$GCC" = yes; then
14697 case $archive_cmds_F77 in
14699 # FIXME: we may have to deal with multi-command sequences.
14702 # Test whether the compiler implicitly links with -lc since on some
14703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14704 # to ld, don't add -lc before -lgcc.
14705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } 2>conftest.err; then
14717 libobjs=conftest.$ac_objext
14719 wl=$lt_prog_compiler_wl_F77
14725 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14726 allow_undefined_flag_F77=
14727 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14728 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }
14733 archive_cmds_need_lc_F77=no
14735 archive_cmds_need_lc_F77=yes
14737 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14739 cat conftest.err 1>&5
14742 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14743 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14752 library_names_spec=
14753 libname_spec='lib$name'
14757 postuninstall_cmds=
14761 shlibpath_overrides_runpath=unknown
14763 dynamic_linker="$host_os ld.so"
14764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14765 if test "$GCC" = yes; then
14766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14767 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14768 # if the path contains ";" then we assume it to be the separator
14769 # otherwise default to the standard path separator (i.e. ":") - it is
14770 # assumed that no part of a normal pathname contains ";" but that should
14771 # okay in the real world where ";" in dirpaths is itself problematic.
14772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14779 need_lib_prefix=unknown
14780 hardcode_into_libs=no
14782 # when you set need_version to no, make sure it does not cause -set_version
14783 # flags to be left without arguments
14784 need_version=unknown
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14790 shlibpath_var=LIBPATH
14792 # AIX 3 has no versioning support, so we append a major version to the name.
14793 soname_spec='${libname}${release}${shared_ext}$major'
14800 hardcode_into_libs=yes
14801 if test "$host_cpu" = ia64; then
14802 # AIX 5 supports IA64
14803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14804 shlibpath_var=LD_LIBRARY_PATH
14806 # With GCC up to 2.95.x, collect2 would create an import file
14807 # for dependence libraries. The import file would start with
14808 # the line `#! .'. This would cause the generated library to
14809 # depend on `.', always an invalid library. This was fixed in
14810 # development snapshots of GCC prior to 3.0.
14812 aix4 | aix4.[01] | aix4.[01].*)
14813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14815 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14818 can_build_shared=no
14822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14823 # soname into executable. Probably we can add versioning support to
14824 # collect2, so additional links can be useful in future.
14825 if test "$aix_use_runtimelinking" = yes; then
14826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14827 # instead of lib<name>.a to let people know that these are not
14828 # typical AIX shared libraries.
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 # We preserve .a as extension for shared libraries through AIX4.2
14832 # and later when we are not doing run time linking.
14833 library_names_spec='${libname}${release}.a $libname.a'
14834 soname_spec='${libname}${release}${shared_ext}$major'
14836 shlibpath_var=LIBPATH
14841 library_names_spec='$libname.ixlibrary $libname.a'
14842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14843 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'
14847 library_names_spec='${libname}${shared_ext}'
14848 dynamic_linker="$host_os ld.so"
14849 shlibpath_var=LIBRARY_PATH
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14861 # the default ld.so.conf also contains /usr/contrib/lib and
14862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863 # libtool to hard-code these into programs
14866 cygwin* | mingw* | pw32*)
14867 version_type=windows
14872 case $GCC,$host_os in
14873 yes,cygwin* | yes,mingw* | yes,pw32*)
14874 library_names_spec='$libname.dll.a'
14875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876 postinstall_cmds='base_file=`basename \${file}`~
14877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14878 dldir=$destdir/`dirname \$dlpath`~
14879 test -d \$dldir || mkdir -p \$dldir~
14880 $install_prog $dir/$dlname \$dldir/$dlname~
14881 chmod a+x \$dldir/$dlname'
14882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14883 dlpath=$dir/\$dldll~
14885 shlibpath_overrides_runpath=yes
14889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14894 # MinGW DLLs use traditional 'lib' prefix
14895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14897 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14898 # It is most probably a Windows format PATH printed by
14899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14900 # path with ; separators, and with drive letters. We can handle the
14901 # drive letters (cygwin fileutils understands them), so leave them,
14902 # especially as we might pass files found there to a mingw objdump,
14903 # which wouldn't understand a cygwinified path. Ahh.
14904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14910 # pw32 DLLs use 'pw' prefix rather than 'lib'
14911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14920 dynamic_linker='Win32 ld.exe'
14921 # FIXME: first we should search . and the directory the executable is in
14925 darwin* | rhapsody*)
14926 dynamic_linker="$host_os dyld"
14927 version_type=darwin
14930 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14931 soname_spec='${libname}${release}${major}$shared_ext'
14932 shlibpath_overrides_runpath=yes
14933 shlibpath_var=DYLD_LIBRARY_PATH
14934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14935 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14936 if test "$GCC" = yes; then
14937 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"`
14939 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath=no
14965 hardcode_into_libs=yes
14966 dynamic_linker='GNU ld.so'
14969 freebsd* | dragonfly*)
14970 # DragonFly does not have aout. When/if they implement a new
14971 # versioning mechanism, adjust this.
14972 if test -x /usr/bin/objformat; then
14973 objformat=`/usr/bin/objformat`
14976 freebsd[123]*) objformat=aout ;;
14977 *) objformat=elf ;;
14980 version_type=freebsd-$objformat
14981 case $version_type in
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14992 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=yes
14997 freebsd3.[01]* | freebsdelf3.[01]*)
14998 shlibpath_overrides_runpath=yes
14999 hardcode_into_libs=yes
15002 shlibpath_overrides_runpath=no
15003 hardcode_into_libs=yes
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 hardcode_into_libs=yes
15018 hpux9* | hpux10* | hpux11*)
15019 # Give a soname corresponding to the major version so that dld.sl refuses to
15020 # link against other versions.
15027 hardcode_into_libs=yes
15028 dynamic_linker="$host_os dld.so"
15029 shlibpath_var=LD_LIBRARY_PATH
15030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 if test "X$HPUX_IA64_MODE" = X32; then
15034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15042 hardcode_into_libs=yes
15043 dynamic_linker="$host_os dld.sl"
15044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15053 dynamic_linker="$host_os dld.sl"
15054 shlibpath_var=SHLIB_PATH
15055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15061 postinstall_cmds='chmod 555 $lib'
15064 irix5* | irix6* | nonstopux*)
15066 nonstopux*) version_type=nonstopux ;;
15068 if test "$lt_cv_prog_gnu_ld" = yes; then
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15079 irix5* | nonstopux*)
15080 libsuff= shlibsuff=
15083 case $LD in # libtool.m4 will add one of these switches to LD
15084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15085 libsuff= shlibsuff= libmagic=32-bit;;
15086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15087 libsuff=32 shlibsuff=N32 libmagic=N32;;
15088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15090 *) libsuff= shlibsuff= libmagic=never-match;;
15094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15095 shlibpath_overrides_runpath=no
15096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15098 hardcode_into_libs=yes
15101 # No shared lib support for Linux oldld, aout, or coff.
15102 linux*oldld* | linux*aout* | linux*coff*)
15106 # This must be Linux ELF.
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 shlibpath_overrides_runpath=no
15116 # This implies no fast_install, which is unacceptable.
15117 # Some rework will be needed to allow for fast_install
15118 # before this can be enabled.
15119 hardcode_into_libs=yes
15121 # Append ld.so.conf contents to the search path
15122 if test -f /etc/ld.so.conf; then
15123 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' ' '`
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15127 # We used to test for /lib/ld.so.1 and disable shared libraries on
15128 # powerpc, because MkLinux only supported shared libraries with the
15129 # GNU dynamic linker. Since this was broken with cross compilers,
15130 # most powerpc-linux boxes support dynamic linking these days and
15131 # people can always --disable-shared, the test was removed, and we
15132 # assume the GNU/Linux dynamic linker is in use.
15133 dynamic_linker='GNU/Linux ld.so'
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=no
15144 hardcode_into_libs=yes
15145 dynamic_linker='GNU ld.so'
15152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155 dynamic_linker='NetBSD (a.out) ld.so'
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 dynamic_linker='NetBSD ld.elf_so'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=yes
15163 hardcode_into_libs=yes
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=yes
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes
15186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15189 *) need_version=no ;;
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15196 openbsd2.[89] | openbsd2.[89].*)
15197 shlibpath_overrides_runpath=no
15200 shlibpath_overrides_runpath=yes
15204 shlibpath_overrides_runpath=yes
15209 libname_spec='$name'
15212 library_names_spec='$libname${shared_ext} $libname.a'
15213 dynamic_linker='OS/2 ld.exe'
15214 shlibpath_var=LIBPATH
15217 osf3* | osf4* | osf5*)
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var=LD_LIBRARY_PATH
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=yes
15243 hardcode_into_libs=yes
15244 # ldd complains unless libraries are executable
15245 postinstall_cmds='chmod +x $lib'
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=yes
15254 if test "$with_gnu_ld" = yes; then
15260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 case $host_vendor in
15267 shlibpath_overrides_runpath=no
15269 export_dynamic_flag_spec='${wl}-Blargedynsym'
15270 runpath_var=LD_RUN_PATH
15278 shlibpath_overrides_runpath=no
15279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15285 if test -d /usr/nec ;then
15287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15288 soname_spec='$libname${shared_ext}.$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15304 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15305 echo "${ECHO_T}$dynamic_linker" >&6
15306 test "$dynamic_linker" = no && can_build_shared=no
15308 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15310 hardcode_action_F77=
15311 if test -n "$hardcode_libdir_flag_spec_F77" || \
15312 test -n "$runpath_var_F77" || \
15313 test "X$hardcode_automatic_F77" = "Xyes" ; then
15315 # We can hardcode non-existant directories.
15316 if test "$hardcode_direct_F77" != no &&
15317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15318 # have to relink, otherwise we might link with an installed library
15319 # when we should be linking with a yet-to-be-installed one
15320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15321 test "$hardcode_minus_L_F77" != no; then
15322 # Linking always hardcodes the temporary library directory.
15323 hardcode_action_F77=relink
15325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15326 hardcode_action_F77=immediate
15329 # We cannot hardcode anything, or else we can only hardcode existing
15331 hardcode_action_F77=unsupported
15333 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15334 echo "${ECHO_T}$hardcode_action_F77" >&6
15336 if test "$hardcode_action_F77" = relink; then
15337 # Fast installation is not supported
15338 enable_fast_install=no
15339 elif test "$shlibpath_overrides_runpath" = yes ||
15340 test "$enable_shared" = no; then
15341 # Fast installation is not necessary
15342 enable_fast_install=needless
15347 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15352 echo "$as_me:$LINENO: result: yes" >&5
15353 echo "${ECHO_T}yes" >&6
15355 # FIXME - insert some real tests, host_os isn't really good enough
15358 if test -n "$STRIP" ; then
15359 striplib="$STRIP -x"
15360 echo "$as_me:$LINENO: result: yes" >&5
15361 echo "${ECHO_T}yes" >&6
15363 echo "$as_me:$LINENO: result: no" >&5
15364 echo "${ECHO_T}no" >&6
15368 echo "$as_me:$LINENO: result: no" >&5
15369 echo "${ECHO_T}no" >&6
15376 # The else clause should only fire when bootstrapping the
15377 # libtool distribution, otherwise you forgot to ship ltmain.sh
15378 # with your package, and you will get complaints that there are
15379 # no rules to generate ltmain.sh.
15380 if test -f "$ltmain"; then
15381 # See if we are running on zsh, and set the options which allow our commands through
15382 # without removal of \ escapes.
15383 if test -n "${ZSH_VERSION+set}" ; then
15384 setopt NO_GLOB_SUBST
15386 # Now quote all the things that may contain metacharacters while being
15387 # careful not to overquote the AC_SUBSTed values. We take copies of the
15388 # variables and quote the copies for generation of the libtool script.
15389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15393 deplibs_check_method reload_flag reload_cmds need_locks \
15394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15395 lt_cv_sys_global_symbol_to_c_name_address \
15396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15397 old_postinstall_cmds old_postuninstall_cmds \
15401 lt_prog_compiler_wl_F77 \
15402 lt_prog_compiler_pic_F77 \
15403 lt_prog_compiler_static_F77 \
15404 lt_prog_compiler_no_builtin_flag_F77 \
15405 export_dynamic_flag_spec_F77 \
15406 thread_safe_flag_spec_F77 \
15407 whole_archive_flag_spec_F77 \
15408 enable_shared_with_static_runtimes_F77 \
15409 old_archive_cmds_F77 \
15410 old_archive_from_new_cmds_F77 \
15411 predep_objects_F77 \
15412 postdep_objects_F77 \
15415 compiler_lib_search_path_F77 \
15417 archive_expsym_cmds_F77 \
15418 postinstall_cmds_F77 \
15419 postuninstall_cmds_F77 \
15420 old_archive_from_expsyms_cmds_F77 \
15421 allow_undefined_flag_F77 \
15422 no_undefined_flag_F77 \
15423 export_symbols_cmds_F77 \
15424 hardcode_libdir_flag_spec_F77 \
15425 hardcode_libdir_flag_spec_ld_F77 \
15426 hardcode_libdir_separator_F77 \
15427 hardcode_automatic_F77 \
15429 module_expsym_cmds_F77 \
15430 lt_cv_prog_compiler_c_o_F77 \
15431 exclude_expsyms_F77 \
15432 include_expsyms_F77; do
15435 old_archive_cmds_F77 | \
15436 old_archive_from_new_cmds_F77 | \
15437 archive_cmds_F77 | \
15438 archive_expsym_cmds_F77 | \
15439 module_cmds_F77 | \
15440 module_expsym_cmds_F77 | \
15441 old_archive_from_expsyms_cmds_F77 | \
15442 export_symbols_cmds_F77 | \
15443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15444 postinstall_cmds | postuninstall_cmds | \
15445 old_postinstall_cmds | old_postuninstall_cmds | \
15446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15447 # Double-quote double-evaled strings.
15448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15457 *'\$0 --fallback-echo"')
15458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15464 cat <<__EOF__ >> "$cfgfile"
15465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15469 # Shell to use when invoking shell scripts.
15472 # Whether or not to build shared libraries.
15473 build_libtool_libs=$enable_shared
15475 # Whether or not to build static libraries.
15476 build_old_libs=$enable_static
15478 # Whether or not to add -lc for building shared libraries.
15479 build_libtool_need_lc=$archive_cmds_need_lc_F77
15481 # Whether or not to disallow shared libs when runtime libs are static
15482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15484 # Whether or not to optimize for fast installation.
15485 fast_install=$enable_fast_install
15488 host_alias=$host_alias
15492 # The build system.
15493 build_alias=$build_alias
15497 # An echo program that does not interpret backslashes.
15502 AR_FLAGS=$lt_AR_FLAGS
15507 # A language-specific compiler.
15508 CC=$lt_compiler_F77
15510 # Is the compiler the GNU C compiler?
15516 # The linker used to build libraries.
15519 # Whether we need hard or soft links.
15522 # A BSD-compatible nm program.
15525 # A symbol stripping program
15528 # Used to examine libraries when file_magic_cmd begins "file"
15529 MAGIC_CMD=$MAGIC_CMD
15531 # Used on cygwin: DLL creation program.
15534 # Used on cygwin: object dumper.
15537 # Used on cygwin: assembler.
15540 # The name of the directory that contains temporary libtool files.
15543 # How to create reloadable object files.
15544 reload_flag=$lt_reload_flag
15545 reload_cmds=$lt_reload_cmds
15547 # How to pass a linker flag through the compiler.
15548 wl=$lt_lt_prog_compiler_wl_F77
15550 # Object file suffix (normally "o").
15551 objext="$ac_objext"
15553 # Old archive suffix (normally "a").
15556 # Shared library suffix (normally ".so").
15557 shrext_cmds='$shrext_cmds'
15559 # Executable file suffix (normally "").
15562 # Additional compiler flags for building library objects.
15563 pic_flag=$lt_lt_prog_compiler_pic_F77
15566 # What is the maximum length of a command?
15567 max_cmd_len=$lt_cv_sys_max_cmd_len
15569 # Does compiler simultaneously support -c and -o options?
15570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15572 # Must we lock files when doing compilation?
15573 need_locks=$lt_need_locks
15575 # Do we need the lib prefix for modules?
15576 need_lib_prefix=$need_lib_prefix
15578 # Do we need a version for libraries?
15579 need_version=$need_version
15581 # Whether dlopen is supported.
15582 dlopen_support=$enable_dlopen
15584 # Whether dlopen of programs is supported.
15585 dlopen_self=$enable_dlopen_self
15587 # Whether dlopen of statically linked programs is supported.
15588 dlopen_self_static=$enable_dlopen_self_static
15590 # Compiler flag to prevent dynamic linking.
15591 link_static_flag=$lt_lt_prog_compiler_static_F77
15593 # Compiler flag to turn off builtin functions.
15594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15596 # Compiler flag to allow reflexive dlopens.
15597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15599 # Compiler flag to generate shared objects directly from archives.
15600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15602 # Compiler flag to generate thread-safe objects.
15603 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15605 # Library versioning type.
15606 version_type=$version_type
15608 # Format of library name prefix.
15609 libname_spec=$lt_libname_spec
15611 # List of archive names. First name is the real one, the rest are links.
15612 # The last name is the one that the linker finds with -lNAME.
15613 library_names_spec=$lt_library_names_spec
15615 # The coded name of the library, if different from the real name.
15616 soname_spec=$lt_soname_spec
15618 # Commands used to build and install an old-style archive.
15620 old_archive_cmds=$lt_old_archive_cmds_F77
15621 old_postinstall_cmds=$lt_old_postinstall_cmds
15622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15624 # Create an old-style archive from a shared archive.
15625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15627 # Create a temporary old-style archive to link instead of a shared archive.
15628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15630 # Commands used to build and install a shared archive.
15631 archive_cmds=$lt_archive_cmds_F77
15632 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15633 postinstall_cmds=$lt_postinstall_cmds
15634 postuninstall_cmds=$lt_postuninstall_cmds
15636 # Commands used to build a loadable module (assumed same as above if empty)
15637 module_cmds=$lt_module_cmds_F77
15638 module_expsym_cmds=$lt_module_expsym_cmds_F77
15640 # Commands to strip libraries.
15641 old_striplib=$lt_old_striplib
15642 striplib=$lt_striplib
15644 # Dependencies to place before the objects being linked to create a
15646 predep_objects=$lt_predep_objects_F77
15648 # Dependencies to place after the objects being linked to create a
15650 postdep_objects=$lt_postdep_objects_F77
15652 # Dependencies to place before the objects being linked to create a
15654 predeps=$lt_predeps_F77
15656 # Dependencies to place after the objects being linked to create a
15658 postdeps=$lt_postdeps_F77
15660 # The library search path used internally by the compiler when linking
15661 # a shared library.
15662 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15664 # Method to check whether dependent libraries are shared objects.
15665 deplibs_check_method=$lt_deplibs_check_method
15667 # Command to use when deplibs_check_method == file_magic.
15668 file_magic_cmd=$lt_file_magic_cmd
15670 # Flag that allows shared libraries with undefined symbols to be built.
15671 allow_undefined_flag=$lt_allow_undefined_flag_F77
15673 # Flag that forces no undefined symbols.
15674 no_undefined_flag=$lt_no_undefined_flag_F77
15676 # Commands used to finish a libtool library installation in a directory.
15677 finish_cmds=$lt_finish_cmds
15679 # Same as above, but a single script fragment to be evaled but not shown.
15680 finish_eval=$lt_finish_eval
15682 # Take the output of nm and produce a listing of raw symbols and C names.
15683 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15685 # Transform the output of nm in a proper C declaration
15686 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15688 # Transform the output of nm in a C name address pair
15689 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15691 # This is the shared library runtime path variable.
15692 runpath_var=$runpath_var
15694 # This is the shared library path variable.
15695 shlibpath_var=$shlibpath_var
15697 # Is shlibpath searched before the hard-coded library search path?
15698 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15700 # How to hardcode a shared library path into an executable.
15701 hardcode_action=$hardcode_action_F77
15703 # Whether we should hardcode library paths into libraries.
15704 hardcode_into_libs=$hardcode_into_libs
15706 # Flag to hardcode \$libdir into a binary during linking.
15707 # This must work even if \$libdir does not exist.
15708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15710 # If ld is used when linking, flag to hardcode \$libdir into
15711 # a binary during linking. This must work even if \$libdir does
15713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15715 # Whether we need a single -rpath flag with a separated argument.
15716 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15718 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15719 # resulting binary.
15720 hardcode_direct=$hardcode_direct_F77
15722 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15723 # resulting binary.
15724 hardcode_minus_L=$hardcode_minus_L_F77
15726 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15727 # the resulting binary.
15728 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15730 # Set to yes if building a shared library automatically hardcodes DIR into the library
15731 # and all subsequent libraries and executables linked against it.
15732 hardcode_automatic=$hardcode_automatic_F77
15734 # Variables whose values should be saved in libtool wrapper scripts and
15735 # restored at relink time.
15736 variables_saved_for_relink="$variables_saved_for_relink"
15738 # Whether libtool must link a program against all its dependency libraries.
15739 link_all_deplibs=$link_all_deplibs_F77
15741 # Compile-time system search path for libraries
15742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15744 # Run-time system search path for libraries
15745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15747 # Fix the shell variable \$srcfile for the compiler.
15748 fix_srcfile_path="$fix_srcfile_path_F77"
15750 # Set to yes if exported symbols are required.
15751 always_export_symbols=$always_export_symbols_F77
15753 # The commands to list exported symbols.
15754 export_symbols_cmds=$lt_export_symbols_cmds_F77
15756 # The commands to extract the exported symbol list from a shared archive.
15757 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15759 # Symbols that should not be listed in the preloaded symbols.
15760 exclude_expsyms=$lt_exclude_expsyms_F77
15762 # Symbols that must always be exported.
15763 include_expsyms=$lt_include_expsyms_F77
15765 # ### END LIBTOOL TAG CONFIG: $tagname
15771 # If there is no Makefile yet, we rely on a make rule to execute
15772 # `config.status --recheck' to rerun these tests and create the
15773 # libtool script then.
15774 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15775 if test -f "$ltmain_in"; then
15776 test -f Makefile && make "$ltmain"
15782 ac_cpp='$CPP $CPPFLAGS'
15783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15795 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15799 # Source file extension for Java test sources.
15802 # Object file extension for compiled Java test sources.
15806 # Code to be used in simple compile tests
15807 lt_simple_compile_test_code="class foo {}\n"
15809 # Code to be used in simple link tests
15810 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15812 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15814 # If no C compiler was specified, use CC.
15817 # Allow CC to be a program name with arguments.
15821 # save warnings/boilerplate of simple test code
15822 ac_outfile=conftest.$ac_objext
15823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15825 _lt_compiler_boilerplate=`cat conftest.err`
15828 ac_outfile=conftest.$ac_objext
15829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15831 _lt_linker_boilerplate=`cat conftest.err`
15835 # Allow CC to be a program name with arguments.
15840 for cc_temp in $compiler""; do
15842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15851 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15852 archive_cmds_need_lc_GCJ=no
15854 old_archive_cmds_GCJ=$old_archive_cmds
15857 lt_prog_compiler_no_builtin_flag_GCJ=
15859 if test "$GCC" = yes; then
15860 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15863 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15864 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15865 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 lt_cv_prog_compiler_rtti_exceptions=no
15869 ac_outfile=conftest.$ac_objext
15870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 lt_compiler_flag="-fno-rtti -fno-exceptions"
15872 # Insert the option either (1) after the last *FLAGS variable, or
15873 # (2) before a word containing "conftest.", or (3) at the end.
15874 # Note that $ac_compile itself does not contain backslashes and begins
15875 # with a dollar sign (not a hyphen), so the echo should work correctly.
15876 # The option is referenced via a variable to avoid confusing sed.
15877 lt_compile=`echo "$ac_compile" | $SED \
15878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880 -e 's:$: $lt_compiler_flag:'`
15881 (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882 (eval "$lt_compile" 2>conftest.err)
15884 cat conftest.err >&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 if (exit $ac_status) && test -s "$ac_outfile"; then
15887 # The compiler can only warn and ignore the option if not recognized
15888 # So say no if there are warnings other than the usual output.
15889 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15890 $SED '/^$/d' conftest.err >conftest.er2
15891 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15892 lt_cv_prog_compiler_rtti_exceptions=yes
15898 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15899 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15901 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15902 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15909 lt_prog_compiler_wl_GCJ=
15910 lt_prog_compiler_pic_GCJ=
15911 lt_prog_compiler_static_GCJ=
15913 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15914 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15916 if test "$GCC" = yes; then
15917 lt_prog_compiler_wl_GCJ='-Wl,'
15918 lt_prog_compiler_static_GCJ='-static'
15922 # All AIX code is PIC.
15923 if test "$host_cpu" = ia64; then
15924 # AIX 5 now supports IA64 processor
15925 lt_prog_compiler_static_GCJ='-Bstatic'
15930 # FIXME: we need at least 68020 code to build shared libraries, but
15931 # adding the `-m68020' flag to GCC prevents building anything better,
15933 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15936 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15937 # PIC is the default for these OSes.
15940 mingw* | pw32* | os2*)
15941 # This hack is so that the source file can tell whether it is being
15942 # built for inclusion in a dll (and should export symbols for example).
15943 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15946 darwin* | rhapsody*)
15947 # PIC is the default on this platform
15948 # Common symbols not allowed in MH_DYLIB files
15949 lt_prog_compiler_pic_GCJ='-fno-common'
15953 # Just because we use GCC doesn't mean we suddenly get shared libraries
15954 # on systems that don't support them.
15955 lt_prog_compiler_can_build_shared_GCJ=no
15960 if test -d /usr/nec; then
15961 lt_prog_compiler_pic_GCJ=-Kconform_pic
15966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967 # not for PA HP-UX.
15973 lt_prog_compiler_pic_GCJ='-fPIC'
15979 lt_prog_compiler_pic_GCJ='-fPIC'
15983 # PORTME Check for flag to pass linker flags through the system compiler.
15986 lt_prog_compiler_wl_GCJ='-Wl,'
15987 if test "$host_cpu" = ia64; then
15988 # AIX 5 now supports IA64 processor
15989 lt_prog_compiler_static_GCJ='-Bstatic'
15991 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15995 # PIC is the default on this platform
15996 # Common symbols not allowed in MH_DYLIB files
15997 case $cc_basename in
15999 lt_prog_compiler_pic_GCJ='-qnocommon'
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16005 mingw* | pw32* | os2*)
16006 # This hack is so that the source file can tell whether it is being
16007 # built for inclusion in a dll (and should export symbols for example).
16008 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16011 hpux9* | hpux10* | hpux11*)
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16014 # not for PA HP-UX.
16020 lt_prog_compiler_pic_GCJ='+Z'
16023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16024 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16027 irix5* | irix6* | nonstopux*)
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 # PIC (with -KPIC) is the default.
16030 lt_prog_compiler_static_GCJ='-non_shared'
16034 lt_prog_compiler_pic_GCJ='-KPIC'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16039 case $cc_basename in
16041 lt_prog_compiler_wl_GCJ='-Wl,'
16042 lt_prog_compiler_pic_GCJ='-KPIC'
16043 lt_prog_compiler_static_GCJ='-static'
16045 pgcc* | pgf77* | pgf90* | pgf95*)
16046 # Portland Group compilers (*not* the Pentium gcc compiler,
16047 # which looks to be a dead project)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 lt_prog_compiler_pic_GCJ='-fpic'
16050 lt_prog_compiler_static_GCJ='-Bstatic'
16053 lt_prog_compiler_wl_GCJ='-Wl,'
16054 # All Alpha code is PIC.
16055 lt_prog_compiler_static_GCJ='-non_shared'
16060 osf3* | osf4* | osf5*)
16061 lt_prog_compiler_wl_GCJ='-Wl,'
16062 # All OSF/1 code is PIC.
16063 lt_prog_compiler_static_GCJ='-non_shared'
16067 lt_prog_compiler_pic_GCJ='-Kpic'
16068 lt_prog_compiler_static_GCJ='-dn'
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 case $cc_basename in
16075 f77* | f90* | f95*)
16076 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16078 lt_prog_compiler_wl_GCJ='-Wl,';;
16083 lt_prog_compiler_wl_GCJ='-Qoption ld '
16084 lt_prog_compiler_pic_GCJ='-PIC'
16085 lt_prog_compiler_static_GCJ='-Bstatic'
16088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16089 lt_prog_compiler_wl_GCJ='-Wl,'
16090 lt_prog_compiler_pic_GCJ='-KPIC'
16091 lt_prog_compiler_static_GCJ='-Bstatic'
16095 if test -d /usr/nec ;then
16096 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16097 lt_prog_compiler_static_GCJ='-Bstatic'
16102 lt_prog_compiler_wl_GCJ='-Wl,'
16103 lt_prog_compiler_can_build_shared_GCJ=no
16107 lt_prog_compiler_pic_GCJ='-pic'
16108 lt_prog_compiler_static_GCJ='-Bstatic'
16112 lt_prog_compiler_can_build_shared_GCJ=no
16117 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16118 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16121 # Check to make sure the PIC flag actually works.
16123 if test -n "$lt_prog_compiler_pic_GCJ"; then
16125 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16127 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 lt_prog_compiler_pic_works_GCJ=no
16131 ac_outfile=conftest.$ac_objext
16132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16133 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16134 # Insert the option either (1) after the last *FLAGS variable, or
16135 # (2) before a word containing "conftest.", or (3) at the end.
16136 # Note that $ac_compile itself does not contain backslashes and begins
16137 # with a dollar sign (not a hyphen), so the echo should work correctly.
16138 # The option is referenced via a variable to avoid confusing sed.
16139 lt_compile=`echo "$ac_compile" | $SED \
16140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16142 -e 's:$: $lt_compiler_flag:'`
16143 (eval echo "\"\$as_me:16143: $lt_compile\"" >&5)
16144 (eval "$lt_compile" 2>conftest.err)
16146 cat conftest.err >&5
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 if (exit $ac_status) && test -s "$ac_outfile"; then
16149 # The compiler can only warn and ignore the option if not recognized
16150 # So say no if there are warnings other than the usual output.
16151 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16152 $SED '/^$/d' conftest.err >conftest.er2
16153 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16154 lt_prog_compiler_pic_works_GCJ=yes
16160 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16161 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16163 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16164 case $lt_prog_compiler_pic_GCJ in
16166 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16169 lt_prog_compiler_pic_GCJ=
16170 lt_prog_compiler_can_build_shared_GCJ=no
16175 # For platforms which do not support PIC, -DPIC is meaningless:
16177 lt_prog_compiler_pic_GCJ=
16180 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16184 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16185 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16186 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 lt_cv_prog_compiler_c_o_GCJ=no
16190 $rm -r conftest 2>/dev/null
16194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16196 lt_compiler_flag="-o out/conftest2.$ac_objext"
16197 # Insert the option either (1) after the last *FLAGS variable, or
16198 # (2) before a word containing "conftest.", or (3) at the end.
16199 # Note that $ac_compile itself does not contain backslashes and begins
16200 # with a dollar sign (not a hyphen), so the echo should work correctly.
16201 lt_compile=`echo "$ac_compile" | $SED \
16202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16204 -e 's:$: $lt_compiler_flag:'`
16205 (eval echo "\"\$as_me:16205: $lt_compile\"" >&5)
16206 (eval "$lt_compile" 2>out/conftest.err)
16208 cat out/conftest.err >&5
16209 echo "$as_me:16209: \$? = $ac_status" >&5
16210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16212 # The compiler can only warn and ignore the option if not recognized
16213 # So say no if there are warnings
16214 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16215 $SED '/^$/d' out/conftest.err >out/conftest.er2
16216 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16217 lt_cv_prog_compiler_c_o_GCJ=yes
16222 # SGI C++ compiler will create directory out/ii_files/ for
16223 # template instantiation
16224 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16225 $rm out/* && rmdir out
16231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16235 hard_links="nottested"
16236 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16237 # do not overwrite the value of need_locks provided by the user
16238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16244 ln conftest.a conftest.b 2>&5 || hard_links=no
16245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16246 echo "$as_me:$LINENO: result: $hard_links" >&5
16247 echo "${ECHO_T}$hard_links" >&6
16248 if test "$hard_links" = no; then
16249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16261 allow_undefined_flag_GCJ=
16262 enable_shared_with_static_runtimes_GCJ=no
16264 archive_expsym_cmds_GCJ=
16265 old_archive_From_new_cmds_GCJ=
16266 old_archive_from_expsyms_cmds_GCJ=
16267 export_dynamic_flag_spec_GCJ=
16268 whole_archive_flag_spec_GCJ=
16269 thread_safe_flag_spec_GCJ=
16270 hardcode_libdir_flag_spec_GCJ=
16271 hardcode_libdir_flag_spec_ld_GCJ=
16272 hardcode_libdir_separator_GCJ=
16273 hardcode_direct_GCJ=no
16274 hardcode_minus_L_GCJ=no
16275 hardcode_shlibpath_var_GCJ=unsupported
16276 link_all_deplibs_GCJ=unknown
16277 hardcode_automatic_GCJ=no
16279 module_expsym_cmds_GCJ=
16280 always_export_symbols_GCJ=no
16281 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16282 # include_expsyms should be a list of space-separated symbols to be *always*
16283 # included in the symbol list
16284 include_expsyms_GCJ=
16285 # exclude_expsyms can be an extended regexp of symbols to exclude
16286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16288 # as well as any symbol that contains `d'.
16289 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16291 # platforms (ab)use it in PIC code, but their linkers get confused if
16292 # the symbol is explicitly referenced. Since portable code cannot
16293 # rely on this symbol name, it's probably fine to never include it in
16294 # preloaded symbol tables.
16295 extract_expsyms_cmds=
16296 # Just being paranoid about ensuring that cc_basename is set.
16297 for cc_temp in $compiler""; do
16299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16308 cygwin* | mingw* | pw32*)
16309 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16310 # When not using gcc, we currently assume that we are using
16311 # Microsoft Visual C++.
16312 if test "$GCC" != yes; then
16322 if test "$with_gnu_ld" = yes; then
16323 # If archive_cmds runs LD, not CC, wlarc should be empty
16326 # Set some defaults for GNU ld with shared library support. These
16327 # are reset later if shared libraries are not supported. Putting them
16328 # here allows them to be overridden if necessary.
16329 runpath_var=LD_RUN_PATH
16330 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16331 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16332 # ancient GNU ld didn't support --whole-archive et. al.
16333 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16334 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16336 whole_archive_flag_spec_GCJ=
16338 supports_anon_versioning=no
16339 case `$LD -v 2>/dev/null` in
16340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343 *\ 2.11.*) ;; # other 2.11 versions
16344 *) supports_anon_versioning=yes ;;
16347 # See if GNU ld supports shared libraries.
16349 aix3* | aix4* | aix5*)
16350 # On AIX/PPC, the GNU linker is very broken
16351 if test "$host_cpu" != ia64; then
16355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16356 *** to be unable to reliably create shared libraries on AIX.
16357 *** Therefore, libtool is disabling shared libraries support. If you
16358 *** really care for shared libraries, you may want to modify your PATH
16359 *** so that a non-GNU linker is found, and then restart.
16366 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)'
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_minus_L_GCJ=yes
16370 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16371 # that the semantics of dynamic libraries on AmigaOS, at least up
16372 # to version 4, is to share data among multiple programs linked
16373 # with the same dynamic library. Since this doesn't match the
16374 # behavior of shared libraries on other platforms, we can't use
16380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16381 allow_undefined_flag_GCJ=unsupported
16382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16383 # support --undefined. This deserves some investigation. FIXME
16384 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 cygwin* | mingw* | pw32*)
16391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16392 # as there is no search path for DLLs.
16393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394 allow_undefined_flag_GCJ=unsupported
16395 always_export_symbols_GCJ=no
16396 enable_shared_with_static_runtimes_GCJ=yes
16397 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16399 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16401 # If the export-symbols file already is a .def file (1st line
16402 # is EXPORTS), use it as is; otherwise, prepend...
16403 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16404 cp $export_symbols $output_objdir/$soname.def;
16406 echo EXPORTS > $output_objdir/$soname.def;
16407 cat $export_symbols >> $output_objdir/$soname.def;
16409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418 case $cc_basename,$host_cpu in
16419 pgcc*) # Portland Group C compiler
16420 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'
16421 tmp_addflag=' $pic_flag'
16423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16424 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'
16425 tmp_addflag=' $pic_flag -Mnomain' ;;
16426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16427 tmp_addflag=' -i_dynamic' ;;
16428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16429 tmp_addflag=' -i_dynamic -nofor_main' ;;
16430 ifc* | ifort*) # Intel Fortran compiler
16431 tmp_addflag=' -nofor_main' ;;
16433 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16435 if test $supports_anon_versioning = yes; then
16436 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16438 $echo "local: *; };" >> $output_objdir/$libname.ver~
16439 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16448 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16451 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16457 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16461 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16462 *** create shared libraries on Solaris systems. Therefore, libtool
16463 *** is disabling shared libraries support. We urge you to upgrade GNU
16464 *** binutils to release 2.9.1 or newer. Another option is to modify
16465 *** your PATH or compiler configuration so that the native linker is
16466 *** used, and then restart.
16469 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16478 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct_GCJ=yes
16481 hardcode_shlibpath_var_GCJ=no
16485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16487 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16494 if test "$ld_shlibs_GCJ" = no; then
16496 hardcode_libdir_flag_spec_GCJ=
16497 export_dynamic_flag_spec_GCJ=
16498 whole_archive_flag_spec_GCJ=
16501 # PORTME fill in a description of your system's linker (not GNU ld)
16504 allow_undefined_flag_GCJ=unsupported
16505 always_export_symbols_GCJ=yes
16506 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'
16507 # Note: this linker hardcodes the directories in LIBPATH if there
16508 # are no directories specified by -L.
16509 hardcode_minus_L_GCJ=yes
16510 if test "$GCC" = yes && test -z "$link_static_flag"; then
16511 # Neither direct hardcoding nor static linking is supported with a
16513 hardcode_direct_GCJ=unsupported
16518 if test "$host_cpu" = ia64; then
16519 # On IA64, the linker does run time linking by default, so we don't
16520 # have to do anything special.
16521 aix_use_runtimelinking=no
16522 exp_sym_flag='-Bexport'
16525 # If we're using GNU nm, then we don't want the "-C" option.
16526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16527 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16528 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'
16530 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'
16532 aix_use_runtimelinking=no
16534 # Test if we are trying to use run time linking or normal
16535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16536 # need to do runtime linking.
16537 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16538 for ld_flag in $LDFLAGS; do
16539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16540 aix_use_runtimelinking=yes
16546 exp_sym_flag='-bexport'
16547 no_entry_flag='-bnoentry'
16550 # When large executables or shared objects are built, AIX ld can
16551 # have problems creating the table of contents. If linking a library
16552 # or program results in "error TOC overflow" add -mminimal-toc to
16553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16556 archive_cmds_GCJ=''
16557 hardcode_direct_GCJ=yes
16558 hardcode_libdir_separator_GCJ=':'
16559 link_all_deplibs_GCJ=yes
16561 if test "$GCC" = yes; then
16562 case $host_os in aix4.[012]|aix4.[012].*)
16563 # We only want to do this on AIX 4.2 and lower, the check
16564 # below for broken collect2 doesn't work under 4.3+
16565 collect2name=`${CC} -print-prog-name=collect2`
16566 if test -f "$collect2name" && \
16567 strings "$collect2name" | grep resolve_lib_name >/dev/null
16569 # We have reworked collect2
16570 hardcode_direct_GCJ=yes
16572 # We have old collect2
16573 hardcode_direct_GCJ=unsupported
16574 # It fails to find uninstalled libraries when the uninstalled
16575 # path is not listed in the libpath. Setting hardcode_minus_L
16576 # to unsupported forces relinking
16577 hardcode_minus_L_GCJ=yes
16578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579 hardcode_libdir_separator_GCJ=
16582 shared_flag='-shared'
16583 if test "$aix_use_runtimelinking" = yes; then
16584 shared_flag="$shared_flag "'${wl}-G'
16588 if test "$host_cpu" = ia64; then
16589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16590 # chokes on -Wl,-G. The following line is correct:
16593 if test "$aix_use_runtimelinking" = yes; then
16594 shared_flag='${wl}-G'
16596 shared_flag='${wl}-bM:SRE'
16601 # It seems that -bexpall does not export symbols beginning with
16602 # underscore (_), so it is better to generate a list of symbols to export.
16603 always_export_symbols_GCJ=yes
16604 if test "$aix_use_runtimelinking" = yes; then
16605 # Warning - without using the other runtime loading flags (-brtl),
16606 # -berok will link without error, but may produce a broken library.
16607 allow_undefined_flag_GCJ='-berok'
16608 # Determine the default libpath from the value encoded in an empty executable.
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626 (eval $ac_link) 2>conftest.er1
16628 grep -v '^ *+' conftest.er1 >conftest.err
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16649 # Check for a 64-bit object if we didn't find anything.
16650 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; }
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16657 rm -f conftest.err conftest.$ac_objext \
16658 conftest$ac_exeext conftest.$ac_ext
16659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16661 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16662 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"
16664 if test "$host_cpu" = ia64; then
16665 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16666 allow_undefined_flag_GCJ="-z nodefs"
16667 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"
16669 # Determine the default libpath from the value encoded in an empty executable.
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest$ac_exeext'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16710 # Check for a 64-bit object if we didn't find anything.
16711 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; }
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16718 rm -f conftest.err conftest.$ac_objext \
16719 conftest$ac_exeext conftest.$ac_ext
16720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16722 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723 # Warning - without using the other run time loading flags,
16724 # -berok will link without error, but may produce a broken library.
16725 no_undefined_flag_GCJ=' ${wl}-bernotok'
16726 allow_undefined_flag_GCJ=' ${wl}-berok'
16727 # -bexpall does not export symbols beginning with underscore (_)
16728 always_export_symbols_GCJ=yes
16729 # Exported symbols can be pulled into shared objects from archives
16730 whole_archive_flag_spec_GCJ=' '
16731 archive_cmds_need_lc_GCJ=yes
16732 # This is similar to how AIX traditionally builds its shared libraries.
16733 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'
16739 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)'
16740 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16741 hardcode_minus_L_GCJ=yes
16742 # see comment about different semantics on the GNU ld section
16747 export_dynamic_flag_spec_GCJ=-rdynamic
16750 cygwin* | mingw* | pw32*)
16751 # When not using gcc, we currently assume that we are using
16752 # Microsoft Visual C++.
16753 # hardcode_libdir_flag_spec is actually meaningless, as there is
16754 # no search path for DLLs.
16755 hardcode_libdir_flag_spec_GCJ=' '
16756 allow_undefined_flag_GCJ=unsupported
16757 # Tell ltmain to make .lib files, not .a files.
16759 # Tell ltmain to make .dll files, not .so files.
16761 # FIXME: Setting linknames here is a bad hack.
16762 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16763 # The linker will automatically build a .lib file if we build a DLL.
16764 old_archive_From_new_cmds_GCJ='true'
16765 # FIXME: Should let the user specify the lib program.
16766 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16767 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16768 enable_shared_with_static_runtimes_GCJ=yes
16771 darwin* | rhapsody*)
16773 rhapsody* | darwin1.[012])
16774 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16777 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16778 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16780 case ${MACOSX_DEPLOYMENT_TARGET} in
16782 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16785 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16791 archive_cmds_need_lc_GCJ=no
16792 hardcode_direct_GCJ=no
16793 hardcode_automatic_GCJ=yes
16794 hardcode_shlibpath_var_GCJ=unsupported
16795 whole_archive_flag_spec_GCJ=''
16796 link_all_deplibs_GCJ=yes
16797 if test "$GCC" = yes ; then
16798 output_verbose_link_cmd='echo'
16799 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16800 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16802 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}'
16803 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}'
16805 case $cc_basename in
16807 output_verbose_link_cmd='echo'
16808 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16809 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16810 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16811 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}'
16812 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}'
16822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824 hardcode_shlibpath_var_GCJ=no
16831 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16832 # support. Future versions do this automatically, but an explicit c++rt0.o
16833 # does not break anything, and helps significantly (at the cost of a little
16836 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16837 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16838 hardcode_direct_GCJ=yes
16839 hardcode_shlibpath_var_GCJ=no
16842 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16844 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16845 hardcode_direct_GCJ=yes
16846 hardcode_minus_L_GCJ=yes
16847 hardcode_shlibpath_var_GCJ=no
16850 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16851 freebsd* | kfreebsd*-gnu | dragonfly*)
16852 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16853 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16854 hardcode_direct_GCJ=yes
16855 hardcode_shlibpath_var_GCJ=no
16859 if test "$GCC" = yes; then
16860 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'
16862 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'
16864 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16865 hardcode_libdir_separator_GCJ=:
16866 hardcode_direct_GCJ=yes
16868 # hardcode_minus_L: Not really in the search PATH,
16869 # but as the default location of the library.
16870 hardcode_minus_L_GCJ=yes
16871 export_dynamic_flag_spec_GCJ='${wl}-E'
16875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16878 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16881 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16887 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16894 if test "$with_gnu_ld" = no; then
16897 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16898 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16899 hardcode_libdir_separator_GCJ=:
16900 hardcode_direct_GCJ=no
16901 hardcode_shlibpath_var_GCJ=no
16904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905 hardcode_direct_GCJ=no
16906 hardcode_shlibpath_var_GCJ=no
16908 # hardcode_minus_L: Not really in the search PATH,
16909 # but as the default location of the library.
16910 hardcode_minus_L_GCJ=yes
16913 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16914 hardcode_libdir_separator_GCJ=:
16915 hardcode_direct_GCJ=yes
16916 export_dynamic_flag_spec_GCJ='${wl}-E'
16918 # hardcode_minus_L: Not really in the search PATH,
16919 # but as the default location of the library.
16920 hardcode_minus_L_GCJ=yes
16926 irix5* | irix6* | nonstopux*)
16927 if test "$GCC" = yes; then
16928 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'
16930 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'
16931 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16934 hardcode_libdir_separator_GCJ=:
16935 link_all_deplibs_GCJ=yes
16939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16942 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16945 hardcode_direct_GCJ=yes
16946 hardcode_shlibpath_var_GCJ=no
16950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_direct_GCJ=yes
16952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16953 hardcode_libdir_separator_GCJ=:
16954 hardcode_shlibpath_var_GCJ=no
16958 hardcode_direct_GCJ=yes
16959 hardcode_shlibpath_var_GCJ=no
16960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16961 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16964 export_dynamic_flag_spec_GCJ='${wl}-E'
16967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16972 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981 hardcode_minus_L_GCJ=yes
16982 allow_undefined_flag_GCJ=unsupported
16983 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'
16984 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16988 if test "$GCC" = yes; then
16989 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16990 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'
16992 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16993 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'
16995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16996 hardcode_libdir_separator_GCJ=:
16999 osf4* | osf5*) # as osf3* with the addition of -msym flag
17000 if test "$GCC" = yes; then
17001 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17002 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'
17003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17005 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17006 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'
17007 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~
17008 $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'
17010 # Both c and cxx compiler support -rpath directly
17011 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17013 hardcode_libdir_separator_GCJ=:
17017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17018 hardcode_shlibpath_var_GCJ=no
17019 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17020 runpath_var=LD_RUN_PATH
17021 hardcode_runpath_var=yes
17025 no_undefined_flag_GCJ=' -z text'
17026 if test "$GCC" = yes; then
17028 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17030 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17033 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17038 hardcode_shlibpath_var_GCJ=no
17040 solaris2.[0-5] | solaris2.[0-5].*) ;;
17042 # The compiler driver will combine linker options so we
17043 # cannot just pass the convience library names through
17044 # without $wl, iff we do not link with $LD.
17045 # Luckily, gcc supports the same syntax we need for Sun Studio.
17046 # Supported since Solaris 2.6 (maybe 2.5.1?)
17049 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17051 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' ;;
17054 link_all_deplibs_GCJ=yes
17058 if test "x$host_vendor" = xsequent; then
17059 # Use $CC to link under sequent, because it throws in some extra .o
17060 # files that make .init and .fini sections work.
17061 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066 hardcode_direct_GCJ=yes
17067 hardcode_minus_L_GCJ=yes
17068 hardcode_shlibpath_var_GCJ=no
17072 case $host_vendor in
17074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075 hardcode_direct_GCJ=yes # is this really true???
17078 ## LD is ld it makes a PLAMLIB
17079 ## CC just makes a GrossModule.
17080 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17081 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17082 hardcode_direct_GCJ=no
17085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17086 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17089 runpath_var='LD_RUN_PATH'
17090 hardcode_shlibpath_var_GCJ=no
17094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095 hardcode_shlibpath_var_GCJ=no
17096 export_dynamic_flag_spec_GCJ='-Bexport'
17100 if test -d /usr/nec; then
17101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_shlibpath_var_GCJ=no
17103 runpath_var=LD_RUN_PATH
17104 hardcode_runpath_var=yes
17110 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17111 hardcode_direct_GCJ=yes
17112 hardcode_minus_L_GCJ=no
17113 hardcode_shlibpath_var_GCJ=no
17114 hardcode_runpath_var=yes
17115 runpath_var=LD_RUN_PATH
17118 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17119 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17120 if test "$GCC" = yes; then
17121 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17125 runpath_var='LD_RUN_PATH'
17126 hardcode_shlibpath_var_GCJ=no
17130 no_undefined_flag_GCJ=' -z text'
17131 # $CC -shared without GNU ld will not create a library from C++
17132 # object files and a static libstdc++, better avoid it by now
17133 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17136 hardcode_libdir_flag_spec_GCJ=
17137 hardcode_shlibpath_var_GCJ=no
17138 runpath_var='LD_RUN_PATH'
17142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17144 hardcode_shlibpath_var_GCJ=no
17153 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17154 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17155 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17158 if test "$GCC" = yes; then
17159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17163 # Do we need to explicitly link libc?
17165 case "x$archive_cmds_need_lc_GCJ" in
17167 # Assume -lc should be added
17168 archive_cmds_need_lc_GCJ=yes
17170 if test "$enable_shared" = yes && test "$GCC" = yes; then
17171 case $archive_cmds_GCJ in
17173 # FIXME: we may have to deal with multi-command sequences.
17176 # Test whether the compiler implicitly links with -lc since on some
17177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17178 # to ld, don't add -lc before -lgcc.
17179 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185 (eval $ac_compile) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } 2>conftest.err; then
17191 libobjs=conftest.$ac_objext
17193 wl=$lt_prog_compiler_wl_GCJ
17199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17200 allow_undefined_flag_GCJ=
17201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }
17207 archive_cmds_need_lc_GCJ=no
17209 archive_cmds_need_lc_GCJ=yes
17211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17213 cat conftest.err 1>&5
17216 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17224 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17226 library_names_spec=
17227 libname_spec='lib$name'
17231 postuninstall_cmds=
17235 shlibpath_overrides_runpath=unknown
17237 dynamic_linker="$host_os ld.so"
17238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17239 if test "$GCC" = yes; then
17240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17241 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17242 # if the path contains ";" then we assume it to be the separator
17243 # otherwise default to the standard path separator (i.e. ":") - it is
17244 # assumed that no part of a normal pathname contains ";" but that should
17245 # okay in the real world where ";" in dirpaths is itself problematic.
17246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17253 need_lib_prefix=unknown
17254 hardcode_into_libs=no
17256 # when you set need_version to no, make sure it does not cause -set_version
17257 # flags to be left without arguments
17258 need_version=unknown
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264 shlibpath_var=LIBPATH
17266 # AIX 3 has no versioning support, so we append a major version to the name.
17267 soname_spec='${libname}${release}${shared_ext}$major'
17274 hardcode_into_libs=yes
17275 if test "$host_cpu" = ia64; then
17276 # AIX 5 supports IA64
17277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278 shlibpath_var=LD_LIBRARY_PATH
17280 # With GCC up to 2.95.x, collect2 would create an import file
17281 # for dependence libraries. The import file would start with
17282 # the line `#! .'. This would cause the generated library to
17283 # depend on `.', always an invalid library. This was fixed in
17284 # development snapshots of GCC prior to 3.0.
17286 aix4 | aix4.[01] | aix4.[01].*)
17287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17292 can_build_shared=no
17296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297 # soname into executable. Probably we can add versioning support to
17298 # collect2, so additional links can be useful in future.
17299 if test "$aix_use_runtimelinking" = yes; then
17300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301 # instead of lib<name>.a to let people know that these are not
17302 # typical AIX shared libraries.
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 # We preserve .a as extension for shared libraries through AIX4.2
17306 # and later when we are not doing run time linking.
17307 library_names_spec='${libname}${release}.a $libname.a'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17310 shlibpath_var=LIBPATH
17315 library_names_spec='$libname.ixlibrary $libname.a'
17316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317 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'
17321 library_names_spec='${libname}${shared_ext}'
17322 dynamic_linker="$host_os ld.so"
17323 shlibpath_var=LIBRARY_PATH
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335 # the default ld.so.conf also contains /usr/contrib/lib and
17336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337 # libtool to hard-code these into programs
17340 cygwin* | mingw* | pw32*)
17341 version_type=windows
17346 case $GCC,$host_os in
17347 yes,cygwin* | yes,mingw* | yes,pw32*)
17348 library_names_spec='$libname.dll.a'
17349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350 postinstall_cmds='base_file=`basename \${file}`~
17351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352 dldir=$destdir/`dirname \$dlpath`~
17353 test -d \$dldir || mkdir -p \$dldir~
17354 $install_prog $dir/$dlname \$dldir/$dlname~
17355 chmod a+x \$dldir/$dlname'
17356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357 dlpath=$dir/\$dldll~
17359 shlibpath_overrides_runpath=yes
17363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17368 # MinGW DLLs use traditional 'lib' prefix
17369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372 # It is most probably a Windows format PATH printed by
17373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374 # path with ; separators, and with drive letters. We can handle the
17375 # drive letters (cygwin fileutils understands them), so leave them,
17376 # especially as we might pass files found there to a mingw objdump,
17377 # which wouldn't understand a cygwinified path. Ahh.
17378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17384 # pw32 DLLs use 'pw' prefix rather than 'lib'
17385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17394 dynamic_linker='Win32 ld.exe'
17395 # FIXME: first we should search . and the directory the executable is in
17399 darwin* | rhapsody*)
17400 dynamic_linker="$host_os dyld"
17401 version_type=darwin
17404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405 soname_spec='${libname}${release}${major}$shared_ext'
17406 shlibpath_overrides_runpath=yes
17407 shlibpath_var=DYLD_LIBRARY_PATH
17408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17409 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17410 if test "$GCC" = yes; then
17411 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"`
17413 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 shlibpath_var=LD_LIBRARY_PATH
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=no
17439 hardcode_into_libs=yes
17440 dynamic_linker='GNU ld.so'
17443 freebsd* | dragonfly*)
17444 # DragonFly does not have aout. When/if they implement a new
17445 # versioning mechanism, adjust this.
17446 if test -x /usr/bin/objformat; then
17447 objformat=`/usr/bin/objformat`
17450 freebsd[123]*) objformat=aout ;;
17451 *) objformat=elf ;;
17454 version_type=freebsd-$objformat
17455 case $version_type in
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17466 shlibpath_var=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath=yes
17471 freebsd3.[01]* | freebsdelf3.[01]*)
17472 shlibpath_overrides_runpath=yes
17473 hardcode_into_libs=yes
17476 shlibpath_overrides_runpath=no
17477 hardcode_into_libs=yes
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 hardcode_into_libs=yes
17492 hpux9* | hpux10* | hpux11*)
17493 # Give a soname corresponding to the major version so that dld.sl refuses to
17494 # link against other versions.
17501 hardcode_into_libs=yes
17502 dynamic_linker="$host_os dld.so"
17503 shlibpath_var=LD_LIBRARY_PATH
17504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec='${libname}${release}${shared_ext}$major'
17507 if test "X$HPUX_IA64_MODE" = X32; then
17508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17516 hardcode_into_libs=yes
17517 dynamic_linker="$host_os dld.sl"
17518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17527 dynamic_linker="$host_os dld.sl"
17528 shlibpath_var=SHLIB_PATH
17529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17534 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17535 postinstall_cmds='chmod 555 $lib'
17538 irix5* | irix6* | nonstopux*)
17540 nonstopux*) version_type=nonstopux ;;
17542 if test "$lt_cv_prog_gnu_ld" = yes; then
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17553 irix5* | nonstopux*)
17554 libsuff= shlibsuff=
17557 case $LD in # libtool.m4 will add one of these switches to LD
17558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559 libsuff= shlibsuff= libmagic=32-bit;;
17560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561 libsuff=32 shlibsuff=N32 libmagic=N32;;
17562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564 *) libsuff= shlibsuff= libmagic=never-match;;
17568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569 shlibpath_overrides_runpath=no
17570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572 hardcode_into_libs=yes
17575 # No shared lib support for Linux oldld, aout, or coff.
17576 linux*oldld* | linux*aout* | linux*coff*)
17580 # This must be Linux ELF.
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=no
17590 # This implies no fast_install, which is unacceptable.
17591 # Some rework will be needed to allow for fast_install
17592 # before this can be enabled.
17593 hardcode_into_libs=yes
17595 # Append ld.so.conf contents to the search path
17596 if test -f /etc/ld.so.conf; then
17597 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' ' '`
17598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17601 # We used to test for /lib/ld.so.1 and disable shared libraries on
17602 # powerpc, because MkLinux only supported shared libraries with the
17603 # GNU dynamic linker. Since this was broken with cross compilers,
17604 # most powerpc-linux boxes support dynamic linking these days and
17605 # people can always --disable-shared, the test was removed, and we
17606 # assume the GNU/Linux dynamic linker is in use.
17607 dynamic_linker='GNU/Linux ld.so'
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LD_LIBRARY_PATH
17617 shlibpath_overrides_runpath=no
17618 hardcode_into_libs=yes
17619 dynamic_linker='GNU ld.so'
17626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17629 dynamic_linker='NetBSD (a.out) ld.so'
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 dynamic_linker='NetBSD ld.elf_so'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17637 hardcode_into_libs=yes
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 shlibpath_overrides_runpath=yes
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=yes
17660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17663 *) need_version=no ;;
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667 shlibpath_var=LD_LIBRARY_PATH
17668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17670 openbsd2.[89] | openbsd2.[89].*)
17671 shlibpath_overrides_runpath=no
17674 shlibpath_overrides_runpath=yes
17678 shlibpath_overrides_runpath=yes
17683 libname_spec='$name'
17686 library_names_spec='$libname${shared_ext} $libname.a'
17687 dynamic_linker='OS/2 ld.exe'
17688 shlibpath_var=LIBPATH
17691 osf3* | osf4* | osf5*)
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 shlibpath_var=LD_LIBRARY_PATH
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 shlibpath_var=LD_LIBRARY_PATH
17716 shlibpath_overrides_runpath=yes
17717 hardcode_into_libs=yes
17718 # ldd complains unless libraries are executable
17719 postinstall_cmds='chmod +x $lib'
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=yes
17728 if test "$with_gnu_ld" = yes; then
17734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737 soname_spec='${libname}${release}${shared_ext}$major'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 case $host_vendor in
17741 shlibpath_overrides_runpath=no
17743 export_dynamic_flag_spec='${wl}-Blargedynsym'
17744 runpath_var=LD_RUN_PATH
17752 shlibpath_overrides_runpath=no
17753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17759 if test -d /usr/nec ;then
17761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17762 soname_spec='$libname${shared_ext}.$major'
17763 shlibpath_var=LD_LIBRARY_PATH
17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 shlibpath_var=LD_LIBRARY_PATH
17778 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17779 echo "${ECHO_T}$dynamic_linker" >&6
17780 test "$dynamic_linker" = no && can_build_shared=no
17782 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17784 hardcode_action_GCJ=
17785 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17786 test -n "$runpath_var_GCJ" || \
17787 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17789 # We can hardcode non-existant directories.
17790 if test "$hardcode_direct_GCJ" != no &&
17791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17792 # have to relink, otherwise we might link with an installed library
17793 # when we should be linking with a yet-to-be-installed one
17794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17795 test "$hardcode_minus_L_GCJ" != no; then
17796 # Linking always hardcodes the temporary library directory.
17797 hardcode_action_GCJ=relink
17799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17800 hardcode_action_GCJ=immediate
17803 # We cannot hardcode anything, or else we can only hardcode existing
17805 hardcode_action_GCJ=unsupported
17807 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17808 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17810 if test "$hardcode_action_GCJ" = relink; then
17811 # Fast installation is not supported
17812 enable_fast_install=no
17813 elif test "$shlibpath_overrides_runpath" = yes ||
17814 test "$enable_shared" = no; then
17815 # Fast installation is not necessary
17816 enable_fast_install=needless
17821 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17822 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17823 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17824 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17825 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17826 echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6
17829 # FIXME - insert some real tests, host_os isn't really good enough
17832 if test -n "$STRIP" ; then
17833 striplib="$STRIP -x"
17834 echo "$as_me:$LINENO: result: yes" >&5
17835 echo "${ECHO_T}yes" >&6
17837 echo "$as_me:$LINENO: result: no" >&5
17838 echo "${ECHO_T}no" >&6
17842 echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6
17848 if test "x$enable_dlopen" != xyes; then
17849 enable_dlopen=unknown
17850 enable_dlopen_self=unknown
17851 enable_dlopen_self_static=unknown
17858 lt_cv_dlopen="load_add_on"
17860 lt_cv_dlopen_self=yes
17864 lt_cv_dlopen="LoadLibrary"
17869 lt_cv_dlopen="dlopen"
17874 # if libdl is installed we need to link against it
17875 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 ac_check_lib_save_LIBS=$LIBS
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 /* Override any gcc2 internal prototype to avoid an error. */
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_dl_dlopen=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_dl_dlopen=no
17933 rm -f conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17939 if test $ac_cv_lib_dl_dlopen = yes; then
17940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17943 lt_cv_dlopen="dyld"
17945 lt_cv_dlopen_self=yes
17952 echo "$as_me:$LINENO: checking for shl_load" >&5
17953 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17954 if test "${ac_cv_func_shl_load+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17965 #define shl_load innocuous_shl_load
17967 /* System header to define __stub macros and hopefully few prototypes,
17968 which can conflict with char shl_load (); below.
17969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970 <limits.h> exists even on freestanding compilers. */
17973 # include <limits.h>
17975 # include <assert.h>
17980 /* Override any gcc2 internal prototype to avoid an error. */
17985 /* We use char because int might match the return type of a gcc2
17986 builtin and then its argument prototype would still apply. */
17988 /* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17994 char (*f) () = shl_load;
18003 return f != shl_load;
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 (eval $ac_link) 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_func_shl_load=yes
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_func_shl_load=no
18037 rm -f conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
18040 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18041 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18042 if test $ac_cv_func_shl_load = yes; then
18043 lt_cv_dlopen="shl_load"
18045 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18046 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18047 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 ac_check_lib_save_LIBS=$LIBS
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18059 /* Override any gcc2 internal prototype to avoid an error. */
18063 /* We use char because int might match the return type of a gcc2
18064 builtin and then its argument prototype would still apply. */
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag"
18084 || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_dld_shl_load=yes
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_cv_lib_dld_shl_load=no
18103 rm -f conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18109 if test $ac_cv_lib_dld_shl_load = yes; then
18110 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18112 echo "$as_me:$LINENO: checking for dlopen" >&5
18113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18114 if test "${ac_cv_func_dlopen+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18125 #define dlopen innocuous_dlopen
18127 /* System header to define __stub macros and hopefully few prototypes,
18128 which can conflict with char dlopen (); below.
18129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18130 <limits.h> exists even on freestanding compilers. */
18133 # include <limits.h>
18135 # include <assert.h>
18140 /* Override any gcc2 internal prototype to avoid an error. */
18145 /* We use char because int might match the return type of a gcc2
18146 builtin and then its argument prototype would still apply. */
18148 /* The GNU C library defines this for functions which it implements
18149 to always fail with ENOSYS. Some functions are actually named
18150 something starting with __ and the normal name is an alias. */
18151 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18154 char (*f) () = dlopen;
18163 return f != dlopen;
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18170 (eval $ac_link) 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_func_dlopen=yes
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 ac_cv_func_dlopen=no
18197 rm -f conftest.err conftest.$ac_objext \
18198 conftest$ac_exeext conftest.$ac_ext
18200 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18201 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18202 if test $ac_cv_func_dlopen = yes; then
18203 lt_cv_dlopen="dlopen"
18205 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 ac_check_lib_save_LIBS=$LIBS
18212 cat >conftest.$ac_ext <<_ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_lib_dl_dlopen=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_lib_dl_dlopen=no
18263 rm -f conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18269 if test $ac_cv_lib_dl_dlopen = yes; then
18270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18272 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18273 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18274 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lsvld $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18286 /* Override any gcc2 internal prototype to avoid an error. */
18290 /* We use char because int might match the return type of a gcc2
18291 builtin and then its argument prototype would still apply. */
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18303 (eval $ac_link) 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -z "$ac_c_werror_flag"
18311 || test ! -s conftest.err'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest$ac_exeext'
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_cv_lib_svld_dlopen=yes
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 ac_cv_lib_svld_dlopen=no
18330 rm -f conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18334 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18335 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18336 if test $ac_cv_lib_svld_dlopen = yes; then
18337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18339 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18340 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 ac_check_lib_save_LIBS=$LIBS
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 /* Override any gcc2 internal prototype to avoid an error. */
18357 /* We use char because int might match the return type of a gcc2
18358 builtin and then its argument prototype would still apply. */
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370 (eval $ac_link) 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag"
18378 || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_lib_dld_dld_link=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_lib_dld_dld_link=no
18397 rm -f conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18403 if test $ac_cv_lib_dld_dld_link = yes; then
18404 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18425 if test "x$lt_cv_dlopen" != xno; then
18431 case $lt_cv_dlopen in
18433 save_CPPFLAGS="$CPPFLAGS"
18434 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18436 save_LDFLAGS="$LDFLAGS"
18437 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18440 LIBS="$lt_cv_dlopen_libs $LIBS"
18442 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18443 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18444 if test "${lt_cv_dlopen_self+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18447 if test "$cross_compiling" = yes; then :
18448 lt_cv_dlopen_self=cross
18450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18451 lt_status=$lt_dlunknown
18452 cat > conftest.$ac_ext <<EOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18463 # define LT_DLGLOBAL RTLD_GLOBAL
18466 # define LT_DLGLOBAL DL_GLOBAL
18468 # define LT_DLGLOBAL 0
18472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473 find out it does not work in some platform. */
18474 #ifndef LT_DLLAZY_OR_NOW
18476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18479 # define LT_DLLAZY_OR_NOW DL_LAZY
18482 # define LT_DLLAZY_OR_NOW RTLD_NOW
18485 # define LT_DLLAZY_OR_NOW DL_NOW
18487 # define LT_DLLAZY_OR_NOW 0
18495 extern "C" void exit (int);
18498 void fnord() { int i=42;}
18501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18502 int status = $lt_dlunknown;
18506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508 /* dlclose (self); */
18514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515 (eval $ac_link) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18519 (./conftest; exit; ) >&5 2>/dev/null
18521 case x$lt_status in
18522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18527 # compilation failed
18528 lt_cv_dlopen_self=no
18535 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18536 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18538 if test "x$lt_cv_dlopen_self" = xyes; then
18539 LDFLAGS="$LDFLAGS $link_static_flag"
18540 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18541 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18542 if test "${lt_cv_dlopen_self_static+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 if test "$cross_compiling" = yes; then :
18546 lt_cv_dlopen_self_static=cross
18548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549 lt_status=$lt_dlunknown
18550 cat > conftest.$ac_ext <<EOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18561 # define LT_DLGLOBAL RTLD_GLOBAL
18564 # define LT_DLGLOBAL DL_GLOBAL
18566 # define LT_DLGLOBAL 0
18570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571 find out it does not work in some platform. */
18572 #ifndef LT_DLLAZY_OR_NOW
18574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18577 # define LT_DLLAZY_OR_NOW DL_LAZY
18580 # define LT_DLLAZY_OR_NOW RTLD_NOW
18583 # define LT_DLLAZY_OR_NOW DL_NOW
18585 # define LT_DLLAZY_OR_NOW 0
18593 extern "C" void exit (int);
18596 void fnord() { int i=42;}
18599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600 int status = $lt_dlunknown;
18604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18606 /* dlclose (self); */
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18617 (./conftest; exit; ) >&5 2>/dev/null
18619 case x$lt_status in
18620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18622 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18625 # compilation failed
18626 lt_cv_dlopen_self_static=no
18633 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18634 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18637 CPPFLAGS="$save_CPPFLAGS"
18638 LDFLAGS="$save_LDFLAGS"
18643 case $lt_cv_dlopen_self in
18644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18645 *) enable_dlopen_self=unknown ;;
18648 case $lt_cv_dlopen_self_static in
18649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18650 *) enable_dlopen_self_static=unknown ;;
18655 # The else clause should only fire when bootstrapping the
18656 # libtool distribution, otherwise you forgot to ship ltmain.sh
18657 # with your package, and you will get complaints that there are
18658 # no rules to generate ltmain.sh.
18659 if test -f "$ltmain"; then
18660 # See if we are running on zsh, and set the options which allow our commands through
18661 # without removal of \ escapes.
18662 if test -n "${ZSH_VERSION+set}" ; then
18663 setopt NO_GLOB_SUBST
18665 # Now quote all the things that may contain metacharacters while being
18666 # careful not to overquote the AC_SUBSTed values. We take copies of the
18667 # variables and quote the copies for generation of the libtool script.
18668 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18670 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18671 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18672 deplibs_check_method reload_flag reload_cmds need_locks \
18673 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18674 lt_cv_sys_global_symbol_to_c_name_address \
18675 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18676 old_postinstall_cmds old_postuninstall_cmds \
18680 lt_prog_compiler_wl_GCJ \
18681 lt_prog_compiler_pic_GCJ \
18682 lt_prog_compiler_static_GCJ \
18683 lt_prog_compiler_no_builtin_flag_GCJ \
18684 export_dynamic_flag_spec_GCJ \
18685 thread_safe_flag_spec_GCJ \
18686 whole_archive_flag_spec_GCJ \
18687 enable_shared_with_static_runtimes_GCJ \
18688 old_archive_cmds_GCJ \
18689 old_archive_from_new_cmds_GCJ \
18690 predep_objects_GCJ \
18691 postdep_objects_GCJ \
18694 compiler_lib_search_path_GCJ \
18696 archive_expsym_cmds_GCJ \
18697 postinstall_cmds_GCJ \
18698 postuninstall_cmds_GCJ \
18699 old_archive_from_expsyms_cmds_GCJ \
18700 allow_undefined_flag_GCJ \
18701 no_undefined_flag_GCJ \
18702 export_symbols_cmds_GCJ \
18703 hardcode_libdir_flag_spec_GCJ \
18704 hardcode_libdir_flag_spec_ld_GCJ \
18705 hardcode_libdir_separator_GCJ \
18706 hardcode_automatic_GCJ \
18708 module_expsym_cmds_GCJ \
18709 lt_cv_prog_compiler_c_o_GCJ \
18710 exclude_expsyms_GCJ \
18711 include_expsyms_GCJ; do
18714 old_archive_cmds_GCJ | \
18715 old_archive_from_new_cmds_GCJ | \
18716 archive_cmds_GCJ | \
18717 archive_expsym_cmds_GCJ | \
18718 module_cmds_GCJ | \
18719 module_expsym_cmds_GCJ | \
18720 old_archive_from_expsyms_cmds_GCJ | \
18721 export_symbols_cmds_GCJ | \
18722 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18723 postinstall_cmds | postuninstall_cmds | \
18724 old_postinstall_cmds | old_postuninstall_cmds | \
18725 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18726 # Double-quote double-evaled strings.
18727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18736 *'\$0 --fallback-echo"')
18737 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18743 cat <<__EOF__ >> "$cfgfile"
18744 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18748 # Shell to use when invoking shell scripts.
18751 # Whether or not to build shared libraries.
18752 build_libtool_libs=$enable_shared
18754 # Whether or not to build static libraries.
18755 build_old_libs=$enable_static
18757 # Whether or not to add -lc for building shared libraries.
18758 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18760 # Whether or not to disallow shared libs when runtime libs are static
18761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18763 # Whether or not to optimize for fast installation.
18764 fast_install=$enable_fast_install
18767 host_alias=$host_alias
18771 # The build system.
18772 build_alias=$build_alias
18776 # An echo program that does not interpret backslashes.
18781 AR_FLAGS=$lt_AR_FLAGS
18786 # A language-specific compiler.
18787 CC=$lt_compiler_GCJ
18789 # Is the compiler the GNU C compiler?
18795 # The linker used to build libraries.
18798 # Whether we need hard or soft links.
18801 # A BSD-compatible nm program.
18804 # A symbol stripping program
18807 # Used to examine libraries when file_magic_cmd begins "file"
18808 MAGIC_CMD=$MAGIC_CMD
18810 # Used on cygwin: DLL creation program.
18813 # Used on cygwin: object dumper.
18816 # Used on cygwin: assembler.
18819 # The name of the directory that contains temporary libtool files.
18822 # How to create reloadable object files.
18823 reload_flag=$lt_reload_flag
18824 reload_cmds=$lt_reload_cmds
18826 # How to pass a linker flag through the compiler.
18827 wl=$lt_lt_prog_compiler_wl_GCJ
18829 # Object file suffix (normally "o").
18830 objext="$ac_objext"
18832 # Old archive suffix (normally "a").
18835 # Shared library suffix (normally ".so").
18836 shrext_cmds='$shrext_cmds'
18838 # Executable file suffix (normally "").
18841 # Additional compiler flags for building library objects.
18842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18845 # What is the maximum length of a command?
18846 max_cmd_len=$lt_cv_sys_max_cmd_len
18848 # Does compiler simultaneously support -c and -o options?
18849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18851 # Must we lock files when doing compilation?
18852 need_locks=$lt_need_locks
18854 # Do we need the lib prefix for modules?
18855 need_lib_prefix=$need_lib_prefix
18857 # Do we need a version for libraries?
18858 need_version=$need_version
18860 # Whether dlopen is supported.
18861 dlopen_support=$enable_dlopen
18863 # Whether dlopen of programs is supported.
18864 dlopen_self=$enable_dlopen_self
18866 # Whether dlopen of statically linked programs is supported.
18867 dlopen_self_static=$enable_dlopen_self_static
18869 # Compiler flag to prevent dynamic linking.
18870 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18872 # Compiler flag to turn off builtin functions.
18873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18875 # Compiler flag to allow reflexive dlopens.
18876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18878 # Compiler flag to generate shared objects directly from archives.
18879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18881 # Compiler flag to generate thread-safe objects.
18882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18884 # Library versioning type.
18885 version_type=$version_type
18887 # Format of library name prefix.
18888 libname_spec=$lt_libname_spec
18890 # List of archive names. First name is the real one, the rest are links.
18891 # The last name is the one that the linker finds with -lNAME.
18892 library_names_spec=$lt_library_names_spec
18894 # The coded name of the library, if different from the real name.
18895 soname_spec=$lt_soname_spec
18897 # Commands used to build and install an old-style archive.
18899 old_archive_cmds=$lt_old_archive_cmds_GCJ
18900 old_postinstall_cmds=$lt_old_postinstall_cmds
18901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18909 # Commands used to build and install a shared archive.
18910 archive_cmds=$lt_archive_cmds_GCJ
18911 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18912 postinstall_cmds=$lt_postinstall_cmds
18913 postuninstall_cmds=$lt_postuninstall_cmds
18915 # Commands used to build a loadable module (assumed same as above if empty)
18916 module_cmds=$lt_module_cmds_GCJ
18917 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18919 # Commands to strip libraries.
18920 old_striplib=$lt_old_striplib
18921 striplib=$lt_striplib
18923 # Dependencies to place before the objects being linked to create a
18925 predep_objects=$lt_predep_objects_GCJ
18927 # Dependencies to place after the objects being linked to create a
18929 postdep_objects=$lt_postdep_objects_GCJ
18931 # Dependencies to place before the objects being linked to create a
18933 predeps=$lt_predeps_GCJ
18935 # Dependencies to place after the objects being linked to create a
18937 postdeps=$lt_postdeps_GCJ
18939 # The library search path used internally by the compiler when linking
18940 # a shared library.
18941 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18943 # Method to check whether dependent libraries are shared objects.
18944 deplibs_check_method=$lt_deplibs_check_method
18946 # Command to use when deplibs_check_method == file_magic.
18947 file_magic_cmd=$lt_file_magic_cmd
18949 # Flag that allows shared libraries with undefined symbols to be built.
18950 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18952 # Flag that forces no undefined symbols.
18953 no_undefined_flag=$lt_no_undefined_flag_GCJ
18955 # Commands used to finish a libtool library installation in a directory.
18956 finish_cmds=$lt_finish_cmds
18958 # Same as above, but a single script fragment to be evaled but not shown.
18959 finish_eval=$lt_finish_eval
18961 # Take the output of nm and produce a listing of raw symbols and C names.
18962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18964 # Transform the output of nm in a proper C declaration
18965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18967 # Transform the output of nm in a C name address pair
18968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18970 # This is the shared library runtime path variable.
18971 runpath_var=$runpath_var
18973 # This is the shared library path variable.
18974 shlibpath_var=$shlibpath_var
18976 # Is shlibpath searched before the hard-coded library search path?
18977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18979 # How to hardcode a shared library path into an executable.
18980 hardcode_action=$hardcode_action_GCJ
18982 # Whether we should hardcode library paths into libraries.
18983 hardcode_into_libs=$hardcode_into_libs
18985 # Flag to hardcode \$libdir into a binary during linking.
18986 # This must work even if \$libdir does not exist.
18987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18989 # If ld is used when linking, flag to hardcode \$libdir into
18990 # a binary during linking. This must work even if \$libdir does
18992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18994 # Whether we need a single -rpath flag with a separated argument.
18995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18998 # resulting binary.
18999 hardcode_direct=$hardcode_direct_GCJ
19001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19002 # resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L_GCJ
19005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19006 # the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19009 # Set to yes if building a shared library automatically hardcodes DIR into the library
19010 # and all subsequent libraries and executables linked against it.
19011 hardcode_automatic=$hardcode_automatic_GCJ
19013 # Variables whose values should be saved in libtool wrapper scripts and
19014 # restored at relink time.
19015 variables_saved_for_relink="$variables_saved_for_relink"
19017 # Whether libtool must link a program against all its dependency libraries.
19018 link_all_deplibs=$link_all_deplibs_GCJ
19020 # Compile-time system search path for libraries
19021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19023 # Run-time system search path for libraries
19024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19026 # Fix the shell variable \$srcfile for the compiler.
19027 fix_srcfile_path="$fix_srcfile_path_GCJ"
19029 # Set to yes if exported symbols are required.
19030 always_export_symbols=$always_export_symbols_GCJ
19032 # The commands to list exported symbols.
19033 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19035 # The commands to extract the exported symbol list from a shared archive.
19036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19038 # Symbols that should not be listed in the preloaded symbols.
19039 exclude_expsyms=$lt_exclude_expsyms_GCJ
19041 # Symbols that must always be exported.
19042 include_expsyms=$lt_include_expsyms_GCJ
19044 # ### END LIBTOOL TAG CONFIG: $tagname
19050 # If there is no Makefile yet, we rely on a make rule to execute
19051 # `config.status --recheck' to rerun these tests and create the
19052 # libtool script then.
19053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19054 if test -f "$ltmain_in"; then
19055 test -f Makefile && make "$ltmain"
19061 ac_cpp='$CPP $CPPFLAGS'
19062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077 # Source file extension for RC test sources.
19080 # Object file extension for compiled RC test sources.
19084 # Code to be used in simple compile tests
19085 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19087 # Code to be used in simple link tests
19088 lt_simple_link_test_code="$lt_simple_compile_test_code"
19090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19092 # If no C compiler was specified, use CC.
19095 # Allow CC to be a program name with arguments.
19099 # save warnings/boilerplate of simple test code
19100 ac_outfile=conftest.$ac_objext
19101 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19103 _lt_compiler_boilerplate=`cat conftest.err`
19106 ac_outfile=conftest.$ac_objext
19107 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19109 _lt_linker_boilerplate=`cat conftest.err`
19113 # Allow CC to be a program name with arguments.
19118 for cc_temp in $compiler""; do
19120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19128 lt_cv_prog_compiler_c_o_RC=yes
19130 # The else clause should only fire when bootstrapping the
19131 # libtool distribution, otherwise you forgot to ship ltmain.sh
19132 # with your package, and you will get complaints that there are
19133 # no rules to generate ltmain.sh.
19134 if test -f "$ltmain"; then
19135 # See if we are running on zsh, and set the options which allow our commands through
19136 # without removal of \ escapes.
19137 if test -n "${ZSH_VERSION+set}" ; then
19138 setopt NO_GLOB_SUBST
19140 # Now quote all the things that may contain metacharacters while being
19141 # careful not to overquote the AC_SUBSTed values. We take copies of the
19142 # variables and quote the copies for generation of the libtool script.
19143 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19145 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19146 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19147 deplibs_check_method reload_flag reload_cmds need_locks \
19148 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19149 lt_cv_sys_global_symbol_to_c_name_address \
19150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19151 old_postinstall_cmds old_postuninstall_cmds \
19155 lt_prog_compiler_wl_RC \
19156 lt_prog_compiler_pic_RC \
19157 lt_prog_compiler_static_RC \
19158 lt_prog_compiler_no_builtin_flag_RC \
19159 export_dynamic_flag_spec_RC \
19160 thread_safe_flag_spec_RC \
19161 whole_archive_flag_spec_RC \
19162 enable_shared_with_static_runtimes_RC \
19163 old_archive_cmds_RC \
19164 old_archive_from_new_cmds_RC \
19165 predep_objects_RC \
19166 postdep_objects_RC \
19169 compiler_lib_search_path_RC \
19171 archive_expsym_cmds_RC \
19172 postinstall_cmds_RC \
19173 postuninstall_cmds_RC \
19174 old_archive_from_expsyms_cmds_RC \
19175 allow_undefined_flag_RC \
19176 no_undefined_flag_RC \
19177 export_symbols_cmds_RC \
19178 hardcode_libdir_flag_spec_RC \
19179 hardcode_libdir_flag_spec_ld_RC \
19180 hardcode_libdir_separator_RC \
19181 hardcode_automatic_RC \
19183 module_expsym_cmds_RC \
19184 lt_cv_prog_compiler_c_o_RC \
19185 exclude_expsyms_RC \
19186 include_expsyms_RC; do
19189 old_archive_cmds_RC | \
19190 old_archive_from_new_cmds_RC | \
19191 archive_cmds_RC | \
19192 archive_expsym_cmds_RC | \
19194 module_expsym_cmds_RC | \
19195 old_archive_from_expsyms_cmds_RC | \
19196 export_symbols_cmds_RC | \
19197 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19198 postinstall_cmds | postuninstall_cmds | \
19199 old_postinstall_cmds | old_postuninstall_cmds | \
19200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19201 # Double-quote double-evaled strings.
19202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19211 *'\$0 --fallback-echo"')
19212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19218 cat <<__EOF__ >> "$cfgfile"
19219 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19223 # Shell to use when invoking shell scripts.
19226 # Whether or not to build shared libraries.
19227 build_libtool_libs=$enable_shared
19229 # Whether or not to build static libraries.
19230 build_old_libs=$enable_static
19232 # Whether or not to add -lc for building shared libraries.
19233 build_libtool_need_lc=$archive_cmds_need_lc_RC
19235 # Whether or not to disallow shared libs when runtime libs are static
19236 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19238 # Whether or not to optimize for fast installation.
19239 fast_install=$enable_fast_install
19242 host_alias=$host_alias
19246 # The build system.
19247 build_alias=$build_alias
19251 # An echo program that does not interpret backslashes.
19256 AR_FLAGS=$lt_AR_FLAGS
19261 # A language-specific compiler.
19264 # Is the compiler the GNU C compiler?
19270 # The linker used to build libraries.
19273 # Whether we need hard or soft links.
19276 # A BSD-compatible nm program.
19279 # A symbol stripping program
19282 # Used to examine libraries when file_magic_cmd begins "file"
19283 MAGIC_CMD=$MAGIC_CMD
19285 # Used on cygwin: DLL creation program.
19288 # Used on cygwin: object dumper.
19291 # Used on cygwin: assembler.
19294 # The name of the directory that contains temporary libtool files.
19297 # How to create reloadable object files.
19298 reload_flag=$lt_reload_flag
19299 reload_cmds=$lt_reload_cmds
19301 # How to pass a linker flag through the compiler.
19302 wl=$lt_lt_prog_compiler_wl_RC
19304 # Object file suffix (normally "o").
19305 objext="$ac_objext"
19307 # Old archive suffix (normally "a").
19310 # Shared library suffix (normally ".so").
19311 shrext_cmds='$shrext_cmds'
19313 # Executable file suffix (normally "").
19316 # Additional compiler flags for building library objects.
19317 pic_flag=$lt_lt_prog_compiler_pic_RC
19320 # What is the maximum length of a command?
19321 max_cmd_len=$lt_cv_sys_max_cmd_len
19323 # Does compiler simultaneously support -c and -o options?
19324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19326 # Must we lock files when doing compilation?
19327 need_locks=$lt_need_locks
19329 # Do we need the lib prefix for modules?
19330 need_lib_prefix=$need_lib_prefix
19332 # Do we need a version for libraries?
19333 need_version=$need_version
19335 # Whether dlopen is supported.
19336 dlopen_support=$enable_dlopen
19338 # Whether dlopen of programs is supported.
19339 dlopen_self=$enable_dlopen_self
19341 # Whether dlopen of statically linked programs is supported.
19342 dlopen_self_static=$enable_dlopen_self_static
19344 # Compiler flag to prevent dynamic linking.
19345 link_static_flag=$lt_lt_prog_compiler_static_RC
19347 # Compiler flag to turn off builtin functions.
19348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19350 # Compiler flag to allow reflexive dlopens.
19351 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19353 # Compiler flag to generate shared objects directly from archives.
19354 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19356 # Compiler flag to generate thread-safe objects.
19357 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19359 # Library versioning type.
19360 version_type=$version_type
19362 # Format of library name prefix.
19363 libname_spec=$lt_libname_spec
19365 # List of archive names. First name is the real one, the rest are links.
19366 # The last name is the one that the linker finds with -lNAME.
19367 library_names_spec=$lt_library_names_spec
19369 # The coded name of the library, if different from the real name.
19370 soname_spec=$lt_soname_spec
19372 # Commands used to build and install an old-style archive.
19374 old_archive_cmds=$lt_old_archive_cmds_RC
19375 old_postinstall_cmds=$lt_old_postinstall_cmds
19376 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19378 # Create an old-style archive from a shared archive.
19379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19381 # Create a temporary old-style archive to link instead of a shared archive.
19382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19384 # Commands used to build and install a shared archive.
19385 archive_cmds=$lt_archive_cmds_RC
19386 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19387 postinstall_cmds=$lt_postinstall_cmds
19388 postuninstall_cmds=$lt_postuninstall_cmds
19390 # Commands used to build a loadable module (assumed same as above if empty)
19391 module_cmds=$lt_module_cmds_RC
19392 module_expsym_cmds=$lt_module_expsym_cmds_RC
19394 # Commands to strip libraries.
19395 old_striplib=$lt_old_striplib
19396 striplib=$lt_striplib
19398 # Dependencies to place before the objects being linked to create a
19400 predep_objects=$lt_predep_objects_RC
19402 # Dependencies to place after the objects being linked to create a
19404 postdep_objects=$lt_postdep_objects_RC
19406 # Dependencies to place before the objects being linked to create a
19408 predeps=$lt_predeps_RC
19410 # Dependencies to place after the objects being linked to create a
19412 postdeps=$lt_postdeps_RC
19414 # The library search path used internally by the compiler when linking
19415 # a shared library.
19416 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19418 # Method to check whether dependent libraries are shared objects.
19419 deplibs_check_method=$lt_deplibs_check_method
19421 # Command to use when deplibs_check_method == file_magic.
19422 file_magic_cmd=$lt_file_magic_cmd
19424 # Flag that allows shared libraries with undefined symbols to be built.
19425 allow_undefined_flag=$lt_allow_undefined_flag_RC
19427 # Flag that forces no undefined symbols.
19428 no_undefined_flag=$lt_no_undefined_flag_RC
19430 # Commands used to finish a libtool library installation in a directory.
19431 finish_cmds=$lt_finish_cmds
19433 # Same as above, but a single script fragment to be evaled but not shown.
19434 finish_eval=$lt_finish_eval
19436 # Take the output of nm and produce a listing of raw symbols and C names.
19437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19439 # Transform the output of nm in a proper C declaration
19440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19442 # Transform the output of nm in a C name address pair
19443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19445 # This is the shared library runtime path variable.
19446 runpath_var=$runpath_var
19448 # This is the shared library path variable.
19449 shlibpath_var=$shlibpath_var
19451 # Is shlibpath searched before the hard-coded library search path?
19452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19454 # How to hardcode a shared library path into an executable.
19455 hardcode_action=$hardcode_action_RC
19457 # Whether we should hardcode library paths into libraries.
19458 hardcode_into_libs=$hardcode_into_libs
19460 # Flag to hardcode \$libdir into a binary during linking.
19461 # This must work even if \$libdir does not exist.
19462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19464 # If ld is used when linking, flag to hardcode \$libdir into
19465 # a binary during linking. This must work even if \$libdir does
19467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19469 # Whether we need a single -rpath flag with a separated argument.
19470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19472 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_direct=$hardcode_direct_RC
19476 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19477 # resulting binary.
19478 hardcode_minus_L=$hardcode_minus_L_RC
19480 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19481 # the resulting binary.
19482 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19484 # Set to yes if building a shared library automatically hardcodes DIR into the library
19485 # and all subsequent libraries and executables linked against it.
19486 hardcode_automatic=$hardcode_automatic_RC
19488 # Variables whose values should be saved in libtool wrapper scripts and
19489 # restored at relink time.
19490 variables_saved_for_relink="$variables_saved_for_relink"
19492 # Whether libtool must link a program against all its dependency libraries.
19493 link_all_deplibs=$link_all_deplibs_RC
19495 # Compile-time system search path for libraries
19496 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19498 # Run-time system search path for libraries
19499 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19501 # Fix the shell variable \$srcfile for the compiler.
19502 fix_srcfile_path="$fix_srcfile_path_RC"
19504 # Set to yes if exported symbols are required.
19505 always_export_symbols=$always_export_symbols_RC
19507 # The commands to list exported symbols.
19508 export_symbols_cmds=$lt_export_symbols_cmds_RC
19510 # The commands to extract the exported symbol list from a shared archive.
19511 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19513 # Symbols that should not be listed in the preloaded symbols.
19514 exclude_expsyms=$lt_exclude_expsyms_RC
19516 # Symbols that must always be exported.
19517 include_expsyms=$lt_include_expsyms_RC
19519 # ### END LIBTOOL TAG CONFIG: $tagname
19525 # If there is no Makefile yet, we rely on a make rule to execute
19526 # `config.status --recheck' to rerun these tests and create the
19527 # libtool script then.
19528 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19529 if test -f "$ltmain_in"; then
19530 test -f Makefile && make "$ltmain"
19536 ac_cpp='$CPP $CPPFLAGS'
19537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19546 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19547 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19548 { (exit 1); exit 1; }; }
19552 # Append the new tag name to the list of available tags.
19553 if test -n "$tagname" ; then
19554 available_tags="$available_tags $tagname"
19560 # Now substitute the updated list of available tags.
19561 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19562 mv "${ofile}T" "$ofile"
19566 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19567 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19568 { (exit 1); exit 1; }; }
19574 # This can be used to rebuild libtool when needed
19575 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19577 # Always use our own libtool.
19578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19580 # Prevent multiple expansion
19602 # NTP has (so far) been relying on leading-edge autogen.
19603 # Therefore, by default:
19604 # - use the version we ship with
19605 # - do not install it
19606 # - build a static copy (AC_DISABLE_SHARED - done earlier)
19607 case "${enable_local_libopts+set}" in
19609 *) enable_local_libopts=yes ;;
19611 case "${enable_libopts_install+set}" in
19613 *) enable_libopts_install=no ;;
19616 NEED_LIBOPTS_DIR=''
19618 LIBOPTS_DIR=libopts
19620 # Check whether --enable-local-libopts or --disable-local-libopts was given.
19621 if test "${enable_local_libopts+set}" = set; then
19622 enableval="$enable_local_libopts"
19624 if test x$enableval = xyes ; then
19625 { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
19626 echo "$as_me: Using supplied libopts tearoff" >&6;}
19627 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19628 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19629 NEED_LIBOPTS_DIR=true
19633 # Check whether --enable-libopts-install or --disable-libopts-install was given.
19634 if test "${enable_libopts_install+set}" = set; then
19635 enableval="$enable_libopts_install"
19640 if test "X${enable_libopts_install}" != Xno; then
19641 INSTALL_LIBOPTS_TRUE=
19642 INSTALL_LIBOPTS_FALSE='#'
19644 INSTALL_LIBOPTS_TRUE='#'
19645 INSTALL_LIBOPTS_FALSE=
19649 if test -z "${NEED_LIBOPTS_DIR}" ; then
19650 echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
19651 echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
19653 # Check whether --with-autoopts-config or --without-autoopts-config was given.
19654 if test "${with_autoopts_config+set}" = set; then
19655 withval="$with_autoopts_config"
19656 lo_cv_with_autoopts_config=${with_autoopts_config}
19658 echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
19659 echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
19660 if test "${lo_cv_with_autoopts_config+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 if autoopts-config --help 2>/dev/null 1>&2
19664 then lo_cv_with_autoopts_config=autoopts-config
19665 elif libopts-config --help 2>/dev/null 1>&2
19666 then lo_cv_with_autoopts_config=libopts-config
19667 else lo_cv_with_autoopts_config=no ; fi
19669 echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
19670 echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
19672 fi; # end of AC_ARG_WITH
19674 if test "${lo_cv_test_autoopts+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 if test -z "${lo_cv_with_autoopts_config}" \
19679 -o X"${lo_cv_with_autoopts_config}" = Xno
19681 if autoopts-config --help 2>/dev/null 1>&2
19682 then lo_cv_with_autoopts_config=autoopts-config
19683 elif libopts-config --help 2>/dev/null 1>&2
19684 then lo_cv_with_autoopts_config=libopts-config
19685 else lo_cv_with_autoopts_config=false ; fi
19687 lo_cv_test_autoopts=`
19688 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19689 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19690 then lo_cv_test_autoopts=no ; fi
19694 echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
19695 echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
19697 if test "X${lo_cv_test_autoopts}" != Xno
19699 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19700 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19702 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19703 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19704 NEED_LIBOPTS_DIR=true
19706 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19710 if test -n "${NEED_LIBOPTS_DIR}"; then
19712 NEED_LIBOPTS_FALSE='#'
19714 NEED_LIBOPTS_TRUE='#'
19715 NEED_LIBOPTS_FALSE=
19720 LIBOPTS_DIR=libopts
19722 ac_config_files="$ac_config_files libopts/Makefile"
19726 if test -n "${NEED_LIBOPTS_DIR}" ; then
19729 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
19730 # =================
19732 # =================
19733 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19734 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19735 if test "${ac_cv_header_stdc+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 cat >conftest.$ac_ext <<_ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 #include <stdlib.h>
19745 #include <stdarg.h>
19746 #include <string.h>
19757 rm -f conftest.$ac_objext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19759 (eval $ac_compile) 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_c_werror_flag"
19767 || test ! -s conftest.err'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest.$ac_objext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_header_stdc=yes
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_header_stdc=no
19786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19788 if test $ac_cv_header_stdc = yes; then
19789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19790 cat >conftest.$ac_ext <<_ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <string.h>
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800 $EGREP "memchr" >/dev/null 2>&1; then
19803 ac_cv_header_stdc=no
19809 if test $ac_cv_header_stdc = yes; then
19810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <stdlib.h>
19820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821 $EGREP "free" >/dev/null 2>&1; then
19824 ac_cv_header_stdc=no
19830 if test $ac_cv_header_stdc = yes; then
19831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19832 if test "$cross_compiling" = yes; then
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 #if ((' ' & 0x0FF) == 0x020)
19843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19846 # define ISLOWER(c) \
19847 (('a' <= (c) && (c) <= 'i') \
19848 || ('j' <= (c) && (c) <= 'r') \
19849 || ('s' <= (c) && (c) <= 'z'))
19850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19858 for (i = 0; i < 256; i++)
19859 if (XOR (islower (i), ISLOWER (i))
19860 || toupper (i) != TOUPPER (i))
19865 rm -f conftest$ac_exeext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19867 (eval $ac_link) 2>&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19878 echo "$as_me: program exited with status $ac_status" >&5
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ( exit $ac_status )
19883 ac_cv_header_stdc=no
19885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19890 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19891 if test $ac_cv_header_stdc = yes; then
19893 cat >>confdefs.h <<\_ACEOF
19894 #define STDC_HEADERS 1
19899 # =================
19901 # =================
19907 ac_header_dirent=no
19908 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19909 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19910 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19911 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <sys/types.h>
19933 rm -f conftest.$ac_objext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935 (eval $ac_compile) 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -z "$ac_c_werror_flag"
19943 || test ! -s conftest.err'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955 eval "$as_ac_Header=yes"
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 eval "$as_ac_Header=no"
19962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 cat >>confdefs.h <<_ACEOF
19968 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19971 ac_header_dirent=$ac_hdr; break
19975 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19976 if test $ac_header_dirent = dirent.h; then
19977 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19978 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19979 if test "${ac_cv_search_opendir+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 ac_func_search_save_LIBS=$LIBS
19983 ac_cv_search_opendir=no
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19991 /* Override any gcc2 internal prototype to avoid an error. */
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008 (eval $ac_link) 2>conftest.er1
20010 grep -v '^ *+' conftest.er1 >conftest.err
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
20015 { ac_try='test -z "$ac_c_werror_flag"
20016 || test ! -s conftest.err'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest$ac_exeext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_search_opendir="none required"
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20034 rm -f conftest.err conftest.$ac_objext \
20035 conftest$ac_exeext conftest.$ac_ext
20036 if test "$ac_cv_search_opendir" = no; then
20037 for ac_lib in dir; do
20038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20046 /* Override any gcc2 internal prototype to avoid an error. */
20050 /* We use char because int might match the return type of a gcc2
20051 builtin and then its argument prototype would still apply. */
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20063 (eval $ac_link) 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_c_werror_flag"
20071 || test ! -s conftest.err'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest$ac_exeext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_cv_search_opendir="-l$ac_lib"
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20090 rm -f conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_func_search_save_LIBS
20096 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20097 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20098 if test "$ac_cv_search_opendir" != no; then
20099 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20104 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20105 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20106 if test "${ac_cv_search_opendir+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 ac_func_search_save_LIBS=$LIBS
20110 ac_cv_search_opendir=no
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 /* Override any gcc2 internal prototype to avoid an error. */
20122 /* We use char because int might match the return type of a gcc2
20123 builtin and then its argument prototype would still apply. */
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag"
20143 || test ! -s conftest.err'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_search_opendir="none required"
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163 if test "$ac_cv_search_opendir" = no; then
20164 for ac_lib in x; do
20165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any gcc2 internal prototype to avoid an error. */
20177 /* We use char because int might match the return type of a gcc2
20178 builtin and then its argument prototype would still apply. */
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190 (eval $ac_link) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -z "$ac_c_werror_flag"
20198 || test ! -s conftest.err'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest$ac_exeext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_cv_search_opendir="-l$ac_lib"
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20217 rm -f conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_func_search_save_LIBS
20223 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20224 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20225 if test "$ac_cv_search_opendir" != no; then
20226 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20233 # =================
20235 # =================
20256 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
20257 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
20258 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
20261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20263 echo "$as_me:$LINENO: checking for $ac_header" >&5
20264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20271 # Is the header compilable?
20272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <$ac_header>
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag"
20293 || test ! -s conftest.err'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 ac_header_compiler=yes
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_header_compiler=no
20312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20314 echo "${ECHO_T}$ac_header_compiler" >&6
20316 # Is the header present?
20317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #include <$ac_header>
20327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } >/dev/null; then
20335 if test -s conftest.err; then
20336 ac_cpp_err=$ac_c_preproc_warn_flag
20337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20344 if test -z "$ac_cpp_err"; then
20345 ac_header_preproc=yes
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_header_preproc=no
20352 rm -f conftest.err conftest.$ac_ext
20353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20354 echo "${ECHO_T}$ac_header_preproc" >&6
20356 # So? What about this header?
20357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20363 ac_header_preproc=yes
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20380 ## ------------------------------------------ ##
20381 ## Report this to the AC_PACKAGE_NAME lists. ##
20382 ## ------------------------------------------ ##
20385 sed "s/^/$as_me: WARNING: /" >&2
20388 echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 eval "$as_ac_Header=\$ac_header_preproc"
20395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20400 cat >>confdefs.h <<_ACEOF
20401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20409 # --------------------------------------------
20410 # Verify certain entries from AC_CHECK_HEADERS
20411 # --------------------------------------------
20412 for f in sys_types sys_mman sys_param sys_stat sys_wait \
20413 string errno stdlib memory setjmp
20414 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
20415 test "${as_ac_var}" = set || \
20416 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
20417 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
20418 { (exit 1); exit 1; }; }
20421 # ================================================
20422 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
20423 # if varargs.h is present define HAVE_VARARGS_H.
20424 # ================================================
20427 for ac_header in stdarg.h varargs.h
20429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20431 echo "$as_me:$LINENO: checking for $ac_header" >&5
20432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20439 # Is the header compilable?
20440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 $ac_includes_default
20449 #include <$ac_header>
20451 rm -f conftest.$ac_objext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20453 (eval $ac_compile) 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_c_werror_flag"
20461 || test ! -s conftest.err'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; } &&
20467 { ac_try='test -s conftest.$ac_objext'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_header_compiler=yes
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_compiler=no
20480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20482 echo "${ECHO_T}$ac_header_compiler" >&6
20484 # Is the header present?
20485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <$ac_header>
20495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } >/dev/null; then
20503 if test -s conftest.err; then
20504 ac_cpp_err=$ac_c_preproc_warn_flag
20505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20512 if test -z "$ac_cpp_err"; then
20513 ac_header_preproc=yes
20515 echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20518 ac_header_preproc=no
20520 rm -f conftest.err conftest.$ac_ext
20521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6
20524 # So? What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20531 ac_header_preproc=yes
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20548 ## ------------------------------------------ ##
20549 ## Report this to the AC_PACKAGE_NAME lists. ##
20550 ## ------------------------------------------ ##
20553 sed "s/^/$as_me: WARNING: /" >&2
20556 echo "$as_me:$LINENO: checking for $ac_header" >&5
20557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 eval "$as_ac_Header=\$ac_header_preproc"
20563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20576 if test `eval echo '${'$as_ac_Header'}'` != yes; then
20577 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
20578 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
20579 { (exit 1); exit 1; }; }
20582 # ================================================
20583 # Similarly for the string.h and strings.h headers
20584 # ================================================
20587 for ac_header in string.h strings.h
20589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20591 echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20599 # Is the header compilable?
20600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 $ac_includes_default
20609 #include <$ac_header>
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag"
20621 || test ! -s conftest.err'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_header_compiler=yes
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_header_compiler=no
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642 echo "${ECHO_T}$ac_header_compiler" >&6
20644 # Is the header present?
20645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <$ac_header>
20655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } >/dev/null; then
20663 if test -s conftest.err; then
20664 ac_cpp_err=$ac_c_preproc_warn_flag
20665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20672 if test -z "$ac_cpp_err"; then
20673 ac_header_preproc=yes
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_header_preproc=no
20680 rm -f conftest.err conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6
20684 # So? What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691 ac_header_preproc=yes
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20708 ## ------------------------------------------ ##
20709 ## Report this to the AC_PACKAGE_NAME lists. ##
20710 ## ------------------------------------------ ##
20713 sed "s/^/$as_me: WARNING: /" >&2
20716 echo "$as_me:$LINENO: checking for $ac_header" >&5
20717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 eval "$as_ac_Header=\$ac_header_preproc"
20723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20736 if test `eval echo '${'$as_ac_Header'}'` != yes; then
20737 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
20738 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
20739 { (exit 1); exit 1; }; }
20742 # =====================
20743 # ...and limits headers
20744 # =====================
20748 for ac_header in limits.h sys/limits.h values.h
20750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752 echo "$as_me:$LINENO: checking for $ac_header" >&5
20753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20760 # Is the header compilable?
20761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 $ac_includes_default
20770 #include <$ac_header>
20772 rm -f conftest.$ac_objext
20773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774 (eval $ac_compile) 2>conftest.er1
20776 grep -v '^ *+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag"
20782 || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_header_compiler=yes
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 ac_header_compiler=no
20801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803 echo "${ECHO_T}$ac_header_compiler" >&6
20805 # Is the header present?
20806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <$ac_header>
20816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } >/dev/null; then
20824 if test -s conftest.err; then
20825 ac_cpp_err=$ac_c_preproc_warn_flag
20826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20833 if test -z "$ac_cpp_err"; then
20834 ac_header_preproc=yes
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 ac_header_preproc=no
20841 rm -f conftest.err conftest.$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20843 echo "${ECHO_T}$ac_header_preproc" >&6
20845 # So? What about this header?
20846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20852 ac_header_preproc=yes
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20869 ## ------------------------------------------ ##
20870 ## Report this to the AC_PACKAGE_NAME lists. ##
20871 ## ------------------------------------------ ##
20874 sed "s/^/$as_me: WARNING: /" >&2
20877 echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 eval "$as_ac_Header=\$ac_header_preproc"
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20889 cat >>confdefs.h <<_ACEOF
20890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20897 if test `eval echo '${'$as_ac_Header'}'` != yes; then
20898 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
20899 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
20900 { (exit 1); exit 1; }; }
20903 # ========================
20904 # ...and int types headers
20905 # ========================
20908 for ac_header in stdint.h inttypes.h
20910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20912 echo "$as_me:$LINENO: checking for $ac_header" >&5
20913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20920 # Is the header compilable?
20921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 $ac_includes_default
20930 #include <$ac_header>
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934 (eval $ac_compile) 2>conftest.er1
20936 grep -v '^ *+' conftest.er1 >conftest.err
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } &&
20941 { ac_try='test -z "$ac_c_werror_flag"
20942 || test ! -s conftest.err'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 ac_header_compiler=yes
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_header_compiler=no
20961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963 echo "${ECHO_T}$ac_header_compiler" >&6
20965 # Is the header present?
20966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <$ac_header>
20976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } >/dev/null; then
20984 if test -s conftest.err; then
20985 ac_cpp_err=$ac_c_preproc_warn_flag
20986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20993 if test -z "$ac_cpp_err"; then
20994 ac_header_preproc=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_header_preproc=no
21001 rm -f conftest.err conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21003 echo "${ECHO_T}$ac_header_preproc" >&6
21005 # So? What about this header?
21006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21012 ac_header_preproc=yes
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21029 ## ------------------------------------------ ##
21030 ## Report this to the AC_PACKAGE_NAME lists. ##
21031 ## ------------------------------------------ ##
21034 sed "s/^/$as_me: WARNING: /" >&2
21037 echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 eval "$as_ac_Header=\$ac_header_preproc"
21044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21057 echo "$as_me:$LINENO: checking for int8_t" >&5
21058 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
21059 if test "${ac_cv_type_int8_t+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21062 cat >conftest.$ac_ext <<_ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21068 $ac_includes_default
21074 if (sizeof (int8_t))
21080 rm -f conftest.$ac_objext
21081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21082 (eval $ac_compile) 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
21089 { ac_try='test -z "$ac_c_werror_flag"
21090 || test ! -s conftest.err'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; } &&
21096 { ac_try='test -s conftest.$ac_objext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 ac_cv_type_int8_t=yes
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ac_cv_type_int8_t=no
21109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21111 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
21112 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
21113 if test $ac_cv_type_int8_t = yes; then
21115 cat >>confdefs.h <<_ACEOF
21116 #define HAVE_INT8_T 1
21121 echo "$as_me:$LINENO: checking for uint8_t" >&5
21122 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21123 if test "${ac_cv_type_uint8_t+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 $ac_includes_default
21138 if (sizeof (uint8_t))
21144 rm -f conftest.$ac_objext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146 (eval $ac_compile) 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
21153 { ac_try='test -z "$ac_c_werror_flag"
21154 || test ! -s conftest.err'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; } &&
21160 { ac_try='test -s conftest.$ac_objext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_type_uint8_t=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_cv_type_uint8_t=no
21173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21175 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21176 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21177 if test $ac_cv_type_uint8_t = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define HAVE_UINT8_T 1
21185 echo "$as_me:$LINENO: checking for int16_t" >&5
21186 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
21187 if test "${ac_cv_type_int16_t+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 cat >conftest.$ac_ext <<_ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21196 $ac_includes_default
21202 if (sizeof (int16_t))
21208 rm -f conftest.$ac_objext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag"
21218 || test ! -s conftest.err'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try='test -s conftest.$ac_objext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_type_int16_t=yes
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ac_cv_type_int16_t=no
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
21240 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
21241 if test $ac_cv_type_int16_t = yes; then
21243 cat >>confdefs.h <<_ACEOF
21244 #define HAVE_INT16_T 1
21249 echo "$as_me:$LINENO: checking for uint16_t" >&5
21250 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21251 if test "${ac_cv_type_uint16_t+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21264 if ((uint16_t *) 0)
21266 if (sizeof (uint16_t))
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag"
21282 || test ! -s conftest.err'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_type_uint16_t=yes
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_cv_type_uint16_t=no
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21303 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21304 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21305 if test $ac_cv_type_uint16_t = yes; then
21307 cat >>confdefs.h <<_ACEOF
21308 #define HAVE_UINT16_T 1
21313 echo "$as_me:$LINENO: checking for int32_t" >&5
21314 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
21315 if test "${ac_cv_type_int32_t+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 $ac_includes_default
21330 if (sizeof (int32_t))
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
21345 { ac_try='test -z "$ac_c_werror_flag"
21346 || test ! -s conftest.err'
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); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_type_int32_t=yes
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_cv_type_int32_t=no
21365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
21368 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
21369 if test $ac_cv_type_int32_t = yes; then
21371 cat >>confdefs.h <<_ACEOF
21372 #define HAVE_INT32_T 1
21377 echo "$as_me:$LINENO: checking for uint32_t" >&5
21378 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21379 if test "${ac_cv_type_uint32_t+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21392 if ((uint32_t *) 0)
21394 if (sizeof (uint32_t))
21400 rm -f conftest.$ac_objext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402 (eval $ac_compile) 2>conftest.er1
21404 grep -v '^ *+' conftest.er1 >conftest.err
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } &&
21409 { ac_try='test -z "$ac_c_werror_flag"
21410 || test ! -s conftest.err'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_cv_type_uint32_t=yes
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_cv_type_uint32_t=no
21429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21432 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21433 if test $ac_cv_type_uint32_t = yes; then
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE_UINT32_T 1
21441 echo "$as_me:$LINENO: checking for intptr_t" >&5
21442 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21443 if test "${ac_cv_type_intptr_t+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 $ac_includes_default
21456 if ((intptr_t *) 0)
21458 if (sizeof (intptr_t))
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
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); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_type_intptr_t=yes
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_cv_type_intptr_t=no
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21495 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
21496 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21497 if test $ac_cv_type_intptr_t = yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_INTPTR_T 1
21505 echo "$as_me:$LINENO: checking for uint_t" >&5
21506 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
21507 if test "${ac_cv_type_uint_t+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 $ac_includes_default
21522 if (sizeof (uint_t))
21528 rm -f conftest.$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } &&
21537 { ac_try='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_type_uint_t=yes
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_cv_type_uint_t=no
21557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21559 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
21560 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
21561 if test $ac_cv_type_uint_t = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_UINT_T 1
21571 # ====================
21572 # uintptr type & sizes
21573 # ====================
21574 echo "$as_me:$LINENO: checking for uintptr_t" >&5
21575 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
21576 if test "${ac_cv_type_uintptr_t+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21589 if ((uintptr_t *) 0)
21591 if (sizeof (uintptr_t))
21597 rm -f conftest.$ac_objext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599 (eval $ac_compile) 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
21606 { ac_try='test -z "$ac_c_werror_flag"
21607 || 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_objext'
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_type_uintptr_t=yes
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_cv_type_uintptr_t=no
21626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21628 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21629 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
21630 if test $ac_cv_type_uintptr_t = yes; then
21632 cat >>confdefs.h <<_ACEOF
21633 #define HAVE_UINTPTR_T 1
21639 cat >>confdefs.h <<\_ACEOF
21640 #define uintptr_t unsigned long
21645 echo "$as_me:$LINENO: checking for char*" >&5
21646 echo $ECHO_N "checking for char*... $ECHO_C" >&6
21647 if test "${ac_cv_type_charp+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21662 if (sizeof (char*))
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670 (eval $ac_compile) 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } &&
21677 { ac_try='test -z "$ac_c_werror_flag"
21678 || test ! -s conftest.err'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; } &&
21684 { ac_try='test -s conftest.$ac_objext'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 ac_cv_type_charp=yes
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 ac_cv_type_charp=no
21697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
21700 echo "${ECHO_T}$ac_cv_type_charp" >&6
21702 echo "$as_me:$LINENO: checking size of char*" >&5
21703 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
21704 if test "${ac_cv_sizeof_charp+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 if test "$ac_cv_type_charp" = yes; then
21708 # The cast to unsigned long works around a bug in the HP C Compiler
21709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21711 # This bug is HP SR number 8606223364.
21712 if test "$cross_compiling" = yes; then
21713 # Depending upon the size, compute the lo and hi bounds.
21714 cat >conftest.$ac_ext <<_ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 $ac_includes_default
21724 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
21731 rm -f conftest.$ac_objext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21733 (eval $ac_compile) 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -z "$ac_c_werror_flag"
21741 || test ! -s conftest.err'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } &&
21747 { ac_try='test -s conftest.$ac_objext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21765 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21772 rm -f conftest.$ac_objext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21774 (eval $ac_compile) 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
21781 { ac_try='test -z "$ac_c_werror_flag"
21782 || test ! -s conftest.err'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; } &&
21788 { ac_try='test -s conftest.$ac_objext'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ac_hi=$ac_mid; break
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_lo=`expr $ac_mid + 1`
21800 if test $ac_lo -le $ac_mid; then
21804 ac_mid=`expr 2 '*' $ac_mid + 1`
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21809 echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 cat >conftest.$ac_ext <<_ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 $ac_includes_default
21822 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
21829 rm -f conftest.$ac_objext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831 (eval $ac_compile) 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_c_werror_flag"
21839 || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21863 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872 (eval $ac_compile) 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -z "$ac_c_werror_flag"
21880 || test ! -s conftest.err'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_lo=$ac_mid; break
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21897 ac_hi=`expr '(' $ac_mid ')' - 1`
21898 if test $ac_mid -le $ac_hi; then
21902 ac_mid=`expr 2 '*' $ac_mid`
21904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21915 # Binary search between lo and hi bounds.
21916 while test "x$ac_lo" != "x$ac_hi"; do
21917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21928 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21935 rm -f conftest.$ac_objext
21936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21937 (eval $ac_compile) 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } &&
21944 { ac_try='test -z "$ac_c_werror_flag"
21945 || test ! -s conftest.err'
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; } &&
21951 { ac_try='test -s conftest.$ac_objext'
21952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953 (eval $ac_try) 2>&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); }; }; then
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_lo=`expr '(' $ac_mid ')' + 1`
21964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21967 ?*) ac_cv_sizeof_charp=$ac_lo;;
21968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
21969 See \`config.log' for more details." >&5
21970 echo "$as_me: error: cannot compute sizeof (char*), 77
21971 See \`config.log' for more details." >&2;}
21972 { (exit 1); exit 1; }; } ;;
21975 if test "$cross_compiling" = yes; then
21976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21977 See \`config.log' for more details." >&5
21978 echo "$as_me: error: cannot run test program while cross compiling
21979 See \`config.log' for more details." >&2;}
21980 { (exit 1); exit 1; }; }
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 long longval () { return (long) (sizeof (char*)); }
21990 unsigned long ulongval () { return (long) (sizeof (char*)); }
21992 #include <stdlib.h>
21997 FILE *f = fopen ("conftest.val", "w");
22000 if (((long) (sizeof (char*))) < 0)
22002 long i = longval ();
22003 if (i != ((long) (sizeof (char*))))
22005 fprintf (f, "%ld\n", i);
22009 unsigned long i = ulongval ();
22010 if (i != ((long) (sizeof (char*))))
22012 fprintf (f, "%lu\n", i);
22014 exit (ferror (f) || fclose (f) != 0);
22020 rm -f conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022 (eval $ac_link) 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 ac_cv_sizeof_charp=`cat conftest.val`
22033 echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 ( exit $ac_status )
22038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
22039 See \`config.log' for more details." >&5
22040 echo "$as_me: error: cannot compute sizeof (char*), 77
22041 See \`config.log' for more details." >&2;}
22042 { (exit 1); exit 1; }; }
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22049 ac_cv_sizeof_charp=0
22052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
22053 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
22054 cat >>confdefs.h <<_ACEOF
22055 #define SIZEOF_CHARP $ac_cv_sizeof_charp
22059 echo "$as_me:$LINENO: checking for int" >&5
22060 echo $ECHO_N "checking for int... $ECHO_C" >&6
22061 if test "${ac_cv_type_int+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 $ac_includes_default
22082 rm -f conftest.$ac_objext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22084 (eval $ac_compile) 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try='test -z "$ac_c_werror_flag"
22092 || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22113 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22114 echo "${ECHO_T}$ac_cv_type_int" >&6
22116 echo "$as_me:$LINENO: checking size of int" >&5
22117 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22118 if test "${ac_cv_sizeof_int+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 if test "$ac_cv_type_int" = yes; then
22122 # The cast to unsigned long works around a bug in the HP C Compiler
22123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22125 # This bug is HP SR number 8606223364.
22126 if test "$cross_compiling" = yes; then
22127 # Depending upon the size, compute the lo and hi bounds.
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try='test -z "$ac_c_werror_flag"
22155 || test ! -s conftest.err'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; } &&
22161 { ac_try='test -s conftest.$ac_objext'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; }; then
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22179 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22186 rm -f conftest.$ac_objext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188 (eval $ac_compile) 2>conftest.er1
22190 grep -v '^ *+' conftest.er1 >conftest.err
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -z "$ac_c_werror_flag"
22196 || test ! -s conftest.err'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; } &&
22202 { ac_try='test -s conftest.$ac_objext'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 ac_hi=$ac_mid; break
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ac_lo=`expr $ac_mid + 1`
22214 if test $ac_lo -le $ac_mid; then
22218 ac_mid=`expr 2 '*' $ac_mid + 1`
22220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 $ac_includes_default
22236 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
22243 rm -f conftest.$ac_objext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245 (eval $ac_compile) 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_c_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22277 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
22284 rm -f conftest.$ac_objext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286 (eval $ac_compile) 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } &&
22293 { ac_try='test -z "$ac_c_werror_flag"
22294 || test ! -s conftest.err'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_lo=$ac_mid; break
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_hi=`expr '(' $ac_mid ')' - 1`
22312 if test $ac_mid -le $ac_hi; then
22316 ac_mid=`expr 2 '*' $ac_mid`
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329 # Binary search between lo and hi bounds.
22330 while test "x$ac_lo" != "x$ac_hi"; do
22331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22332 cat >conftest.$ac_ext <<_ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 $ac_includes_default
22342 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22349 rm -f conftest.$ac_objext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351 (eval $ac_compile) 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
22358 { ac_try='test -z "$ac_c_werror_flag"
22359 || test ! -s conftest.err'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; } &&
22365 { ac_try='test -s conftest.$ac_objext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_lo=`expr '(' $ac_mid ')' + 1`
22378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22381 ?*) ac_cv_sizeof_int=$ac_lo;;
22382 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22383 See \`config.log' for more details." >&5
22384 echo "$as_me: error: cannot compute sizeof (int), 77
22385 See \`config.log' for more details." >&2;}
22386 { (exit 1); exit 1; }; } ;;
22389 if test "$cross_compiling" = yes; then
22390 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22391 See \`config.log' for more details." >&5
22392 echo "$as_me: error: cannot run test program while cross compiling
22393 See \`config.log' for more details." >&2;}
22394 { (exit 1); exit 1; }; }
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22403 long longval () { return (long) (sizeof (int)); }
22404 unsigned long ulongval () { return (long) (sizeof (int)); }
22406 #include <stdlib.h>
22411 FILE *f = fopen ("conftest.val", "w");
22414 if (((long) (sizeof (int))) < 0)
22416 long i = longval ();
22417 if (i != ((long) (sizeof (int))))
22419 fprintf (f, "%ld\n", i);
22423 unsigned long i = ulongval ();
22424 if (i != ((long) (sizeof (int))))
22426 fprintf (f, "%lu\n", i);
22428 exit (ferror (f) || fclose (f) != 0);
22434 rm -f conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436 (eval $ac_link) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_cv_sizeof_int=`cat conftest.val`
22447 echo "$as_me: program exited with status $ac_status" >&5
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451 ( exit $ac_status )
22452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22453 See \`config.log' for more details." >&5
22454 echo "$as_me: error: cannot compute sizeof (int), 77
22455 See \`config.log' for more details." >&2;}
22456 { (exit 1); exit 1; }; }
22458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
22468 cat >>confdefs.h <<_ACEOF
22469 #define SIZEOF_INT $ac_cv_sizeof_int
22473 echo "$as_me:$LINENO: checking for long" >&5
22474 echo $ECHO_N "checking for long... $ECHO_C" >&6
22475 if test "${ac_cv_type_long+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22496 rm -f conftest.$ac_objext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22498 (eval $ac_compile) 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag"
22506 || test ! -s conftest.err'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest.$ac_objext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_cv_type_long=yes
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22527 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22528 echo "${ECHO_T}$ac_cv_type_long" >&6
22530 echo "$as_me:$LINENO: checking size of long" >&5
22531 echo $ECHO_N "checking size of long... $ECHO_C" >&6
22532 if test "${ac_cv_sizeof_long+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 if test "$ac_cv_type_long" = yes; then
22536 # The cast to unsigned long works around a bug in the HP C Compiler
22537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22539 # This bug is HP SR number 8606223364.
22540 if test "$cross_compiling" = yes; then
22541 # Depending upon the size, compute the lo and hi bounds.
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 $ac_includes_default
22552 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
22559 rm -f conftest.$ac_objext
22560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22561 (eval $ac_compile) 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
22568 { ac_try='test -z "$ac_c_werror_flag"
22569 || test ! -s conftest.err'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; } &&
22575 { ac_try='test -s conftest.$ac_objext'
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22593 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602 (eval $ac_compile) 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
22609 { ac_try='test -z "$ac_c_werror_flag"
22610 || test ! -s conftest.err'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try='test -s conftest.$ac_objext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_hi=$ac_mid; break
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_lo=`expr $ac_mid + 1`
22628 if test $ac_lo -le $ac_mid; then
22632 ac_mid=`expr 2 '*' $ac_mid + 1`
22634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 $ac_includes_default
22650 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659 (eval $ac_compile) 2>conftest.er1
22661 grep -v '^ *+' conftest.er1 >conftest.err
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag"
22667 || test ! -s conftest.err'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; } &&
22673 { ac_try='test -s conftest.$ac_objext'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; }; then
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22691 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700 (eval $ac_compile) 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest.$ac_objext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_lo=$ac_mid; break
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ac_hi=`expr '(' $ac_mid ')' - 1`
22726 if test $ac_mid -le $ac_hi; then
22730 ac_mid=`expr 2 '*' $ac_mid`
22732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22735 echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743 # Binary search between lo and hi bounds.
22744 while test "x$ac_lo" != "x$ac_hi"; do
22745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 $ac_includes_default
22756 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22763 rm -f conftest.$ac_objext
22764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765 (eval $ac_compile) 2>conftest.er1
22767 grep -v '^ *+' conftest.er1 >conftest.err
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
22772 { ac_try='test -z "$ac_c_werror_flag"
22773 || test ! -s conftest.err'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; } &&
22779 { ac_try='test -s conftest.$ac_objext'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790 ac_lo=`expr '(' $ac_mid ')' + 1`
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 ?*) ac_cv_sizeof_long=$ac_lo;;
22796 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22797 See \`config.log' for more details." >&5
22798 echo "$as_me: error: cannot compute sizeof (long), 77
22799 See \`config.log' for more details." >&2;}
22800 { (exit 1); exit 1; }; } ;;
22803 if test "$cross_compiling" = yes; then
22804 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22805 See \`config.log' for more details." >&5
22806 echo "$as_me: error: cannot run test program while cross compiling
22807 See \`config.log' for more details." >&2;}
22808 { (exit 1); exit 1; }; }
22810 cat >conftest.$ac_ext <<_ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 long longval () { return (long) (sizeof (long)); }
22818 unsigned long ulongval () { return (long) (sizeof (long)); }
22820 #include <stdlib.h>
22825 FILE *f = fopen ("conftest.val", "w");
22828 if (((long) (sizeof (long))) < 0)
22830 long i = longval ();
22831 if (i != ((long) (sizeof (long))))
22833 fprintf (f, "%ld\n", i);
22837 unsigned long i = ulongval ();
22838 if (i != ((long) (sizeof (long))))
22840 fprintf (f, "%lu\n", i);
22842 exit (ferror (f) || fclose (f) != 0);
22848 rm -f conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850 (eval $ac_link) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_cv_sizeof_long=`cat conftest.val`
22861 echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ( exit $ac_status )
22866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22867 See \`config.log' for more details." >&5
22868 echo "$as_me: error: cannot compute sizeof (long), 77
22869 See \`config.log' for more details." >&2;}
22870 { (exit 1); exit 1; }; }
22872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22877 ac_cv_sizeof_long=0
22880 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22881 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22882 cat >>confdefs.h <<_ACEOF
22883 #define SIZEOF_LONG $ac_cv_sizeof_long
22887 echo "$as_me:$LINENO: checking for short" >&5
22888 echo $ECHO_N "checking for short... $ECHO_C" >&6
22889 if test "${ac_cv_type_short+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22904 if (sizeof (short))
22910 rm -f conftest.$ac_objext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912 (eval $ac_compile) 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } &&
22919 { ac_try='test -z "$ac_c_werror_flag"
22920 || test ! -s conftest.err'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest.$ac_objext'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 ac_cv_type_short=yes
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_cv_type_short=no
22939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22942 echo "${ECHO_T}$ac_cv_type_short" >&6
22944 echo "$as_me:$LINENO: checking size of short" >&5
22945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
22946 if test "${ac_cv_sizeof_short+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 if test "$ac_cv_type_short" = yes; then
22950 # The cast to unsigned long works around a bug in the HP C Compiler
22951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22953 # This bug is HP SR number 8606223364.
22954 if test "$cross_compiling" = yes; then
22955 # Depending upon the size, compute the lo and hi bounds.
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
22973 rm -f conftest.$ac_objext
22974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22975 (eval $ac_compile) 2>conftest.er1
22977 grep -v '^ *+' conftest.er1 >conftest.err
22979 cat conftest.err >&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } &&
22982 { ac_try='test -z "$ac_c_werror_flag"
22983 || test ! -s conftest.err'
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; } &&
22989 { ac_try='test -s conftest.$ac_objext'
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; }; then
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 $ac_includes_default
23007 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23014 rm -f conftest.$ac_objext
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016 (eval $ac_compile) 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } &&
23023 { ac_try='test -z "$ac_c_werror_flag"
23024 || test ! -s conftest.err'
23025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026 (eval $ac_try) 2>&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; } &&
23030 { ac_try='test -s conftest.$ac_objext'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; }; then
23036 ac_hi=$ac_mid; break
23038 echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23041 ac_lo=`expr $ac_mid + 1`
23042 if test $ac_lo -le $ac_mid; then
23046 ac_mid=`expr 2 '*' $ac_mid + 1`
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 $ac_includes_default
23064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
23071 rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073 (eval $ac_compile) 2>conftest.er1
23075 grep -v '^ *+' conftest.er1 >conftest.err
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try='test -z "$ac_c_werror_flag"
23081 || test ! -s conftest.err'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; } &&
23087 { ac_try='test -s conftest.$ac_objext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23105 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
23112 rm -f conftest.$ac_objext
23113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23114 (eval $ac_compile) 2>conftest.er1
23116 grep -v '^ *+' conftest.er1 >conftest.err
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } &&
23121 { ac_try='test -z "$ac_c_werror_flag"
23122 || test ! -s conftest.err'
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; } &&
23128 { ac_try='test -s conftest.$ac_objext'
23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130 (eval $ac_try) 2>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; }; then
23134 ac_lo=$ac_mid; break
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_hi=`expr '(' $ac_mid ')' - 1`
23140 if test $ac_mid -le $ac_hi; then
23144 ac_mid=`expr 2 '*' $ac_mid`
23146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 # Binary search between lo and hi bounds.
23158 while test "x$ac_lo" != "x$ac_hi"; do
23159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 $ac_includes_default
23170 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23177 rm -f conftest.$ac_objext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179 (eval $ac_compile) 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest.$ac_objext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_lo=`expr '(' $ac_mid ')' + 1`
23206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23209 ?*) ac_cv_sizeof_short=$ac_lo;;
23210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23211 See \`config.log' for more details." >&5
23212 echo "$as_me: error: cannot compute sizeof (short), 77
23213 See \`config.log' for more details." >&2;}
23214 { (exit 1); exit 1; }; } ;;
23217 if test "$cross_compiling" = yes; then
23218 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23219 See \`config.log' for more details." >&5
23220 echo "$as_me: error: cannot run test program while cross compiling
23221 See \`config.log' for more details." >&2;}
23222 { (exit 1); exit 1; }; }
23224 cat >conftest.$ac_ext <<_ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23230 $ac_includes_default
23231 long longval () { return (long) (sizeof (short)); }
23232 unsigned long ulongval () { return (long) (sizeof (short)); }
23234 #include <stdlib.h>
23239 FILE *f = fopen ("conftest.val", "w");
23242 if (((long) (sizeof (short))) < 0)
23244 long i = longval ();
23245 if (i != ((long) (sizeof (short))))
23247 fprintf (f, "%ld\n", i);
23251 unsigned long i = ulongval ();
23252 if (i != ((long) (sizeof (short))))
23254 fprintf (f, "%lu\n", i);
23256 exit (ferror (f) || fclose (f) != 0);
23262 rm -f conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264 (eval $ac_link) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269 (eval $ac_try) 2>&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); }; }; then
23273 ac_cv_sizeof_short=`cat conftest.val`
23275 echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ( exit $ac_status )
23280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23281 See \`config.log' for more details." >&5
23282 echo "$as_me: error: cannot compute sizeof (short), 77
23283 See \`config.log' for more details." >&2;}
23284 { (exit 1); exit 1; }; }
23286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23291 ac_cv_sizeof_short=0
23294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23295 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
23296 cat >>confdefs.h <<_ACEOF
23297 #define SIZEOF_SHORT $ac_cv_sizeof_short
23302 # ----------------------------------------------------------------------
23303 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
23304 # ----------------------------------------------------------------------
23306 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
23307 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
23308 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 ac_check_lib_save_LIBS=$LIBS
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 /* Override any gcc2 internal prototype to avoid an error. */
23324 /* We use char because int might match the return type of a gcc2
23325 builtin and then its argument prototype would still apply. */
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337 (eval $ac_link) 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } &&
23344 { ac_try='test -z "$ac_c_werror_flag"
23345 || test ! -s conftest.err'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest$ac_exeext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_cv_lib_gen_pathfind=yes
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_cv_lib_gen_pathfind=no
23364 rm -f conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext conftest.$ac_ext
23366 LIBS=$ac_check_lib_save_LIBS
23368 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
23369 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
23370 if test $ac_cv_lib_gen_pathfind = yes; then
23371 cat >>confdefs.h <<_ACEOF
23372 #define HAVE_LIBGEN 1
23380 for ac_func in vprintf
23382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23383 echo "$as_me:$LINENO: checking for $ac_func" >&5
23384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23385 if eval "test \"\${$as_ac_var+set}\" = set"; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23396 #define $ac_func innocuous_$ac_func
23398 /* System header to define __stub macros and hopefully few prototypes,
23399 which can conflict with char $ac_func (); below.
23400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23401 <limits.h> exists even on freestanding compilers. */
23404 # include <limits.h>
23406 # include <assert.h>
23411 /* Override any gcc2 internal prototype to avoid an error. */
23416 /* We use char because int might match the return type of a gcc2
23417 builtin and then its argument prototype would still apply. */
23419 /* The GNU C library defines this for functions which it implements
23420 to always fail with ENOSYS. Some functions are actually named
23421 something starting with __ and the normal name is an alias. */
23422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23425 char (*f) () = $ac_func;
23434 return f != $ac_func;
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441 (eval $ac_link) 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -z "$ac_c_werror_flag"
23449 || test ! -s conftest.err'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest$ac_exeext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 eval "$as_ac_var=yes"
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 eval "$as_ac_var=no"
23468 rm -f conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext conftest.$ac_ext
23471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23473 if test `eval echo '${'$as_ac_var'}'` = yes; then
23474 cat >>confdefs.h <<_ACEOF
23475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23478 echo "$as_me:$LINENO: checking for _doprnt" >&5
23479 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
23480 if test "${ac_cv_func__doprnt+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 cat >conftest.$ac_ext <<_ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23491 #define _doprnt innocuous__doprnt
23493 /* System header to define __stub macros and hopefully few prototypes,
23494 which can conflict with char _doprnt (); below.
23495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23496 <limits.h> exists even on freestanding compilers. */
23499 # include <limits.h>
23501 # include <assert.h>
23506 /* Override any gcc2 internal prototype to avoid an error. */
23511 /* We use char because int might match the return type of a gcc2
23512 builtin and then its argument prototype would still apply. */
23514 /* The GNU C library defines this for functions which it implements
23515 to always fail with ENOSYS. Some functions are actually named
23516 something starting with __ and the normal name is an alias. */
23517 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23520 char (*f) () = _doprnt;
23529 return f != _doprnt;
23534 rm -f conftest.$ac_objext conftest$ac_exeext
23535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536 (eval $ac_link) 2>conftest.er1
23538 grep -v '^ *+' conftest.er1 >conftest.err
23540 cat conftest.err >&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } &&
23543 { ac_try='test -z "$ac_c_werror_flag"
23544 || test ! -s conftest.err'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest$ac_exeext'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_cv_func__doprnt=yes
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_cv_func__doprnt=no
23563 rm -f conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext conftest.$ac_ext
23566 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23567 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
23568 if test $ac_cv_func__doprnt = yes; then
23570 cat >>confdefs.h <<\_ACEOF
23571 #define HAVE_DOPRNT 1
23586 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
23588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23589 echo "$as_me:$LINENO: checking for $ac_func" >&5
23590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23591 if eval "test \"\${$as_ac_var+set}\" = set"; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23602 #define $ac_func innocuous_$ac_func
23604 /* System header to define __stub macros and hopefully few prototypes,
23605 which can conflict with char $ac_func (); below.
23606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23607 <limits.h> exists even on freestanding compilers. */
23610 # include <limits.h>
23612 # include <assert.h>
23617 /* Override any gcc2 internal prototype to avoid an error. */
23622 /* We use char because int might match the return type of a gcc2
23623 builtin and then its argument prototype would still apply. */
23625 /* The GNU C library defines this for functions which it implements
23626 to always fail with ENOSYS. Some functions are actually named
23627 something starting with __ and the normal name is an alias. */
23628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23631 char (*f) () = $ac_func;
23640 return f != $ac_func;
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 eval "$as_ac_var=yes"
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 eval "$as_ac_var=no"
23674 rm -f conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext conftest.$ac_ext
23677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23679 if test `eval echo '${'$as_ac_var'}'` = yes; then
23680 cat >>confdefs.h <<_ACEOF
23681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23687 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
23689 # Check to see if a reg expr header is specified.
23692 # Check whether --with-regex-header or --without-regex-header was given.
23693 if test "${with_regex_header+set}" = set; then
23694 withval="$with_regex_header"
23695 libopts_cv_with_regex_header=${with_regex_header}
23697 echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
23698 echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
23699 if test "${libopts_cv_with_regex_header+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23702 libopts_cv_with_regex_header=no
23704 echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
23705 echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
23707 fi; # end of AC_ARG_WITH
23709 if test "X${libopts_cv_with_regex_header}" != Xno
23711 cat >>confdefs.h <<_ACEOF
23712 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
23717 cat >>confdefs.h <<\_ACEOF
23718 #define REGEX_HEADER <regex.h>
23725 # Check to see if a working libregex can be found.
23728 # Check whether --with-libregex or --without-libregex was given.
23729 if test "${with_libregex+set}" = set; then
23730 withval="$with_libregex"
23731 libopts_cv_with_libregex_root=${with_libregex}
23733 echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
23734 echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
23735 if test "${libopts_cv_with_libregex_root+set}" = set; then
23736 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 libopts_cv_with_libregex_root=no
23740 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
23741 echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
23743 fi; # end of AC_ARG_WITH libregex
23745 if test "${with_libguile+set}" = set && \
23746 test "${withval}" = no
23747 then ## disabled by request
23748 libopts_cv_with_libregex_root=no
23749 libopts_cv_with_libregex_cflags=no
23750 libopts_cv_with_libregex_libs=no
23754 # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
23755 if test "${with_libregex_cflags+set}" = set; then
23756 withval="$with_libregex_cflags"
23757 libopts_cv_with_libregex_cflags=${with_regex_cflags}
23759 echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
23760 echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
23761 if test "${libopts_cv_with_libregex_cflags+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 libopts_cv_with_libregex_cflags=no
23766 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
23767 echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
23769 fi; # end of AC_ARG_WITH libregex-cflags
23772 # Check whether --with-libregex-libs or --without-libregex-libs was given.
23773 if test "${with_libregex_libs+set}" = set; then
23774 withval="$with_libregex_libs"
23775 libopts_cv_with_libregex_libs=${with_regex_libs}
23777 echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
23778 echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
23779 if test "${libopts_cv_with_libregex_libs+set}" = set; then
23780 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 libopts_cv_with_libregex_libs=no
23784 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
23785 echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
23787 fi; # end of AC_ARG_WITH libregex-libs
23789 case "X${libopts_cv_with_libregex_cflags}" in
23791 case "X${libopts_cv_with_libregex_root}" in
23792 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
23793 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
23796 case "X${libopts_cv_with_libregex_libs}" in
23798 case "X${libopts_cv_with_libregex_root}" in
23799 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
23800 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
23803 libopts_save_CPPFLAGS="${CPPFLAGS}"
23804 libopts_save_LIBS="${LIBS}"
23805 fi ## disabled by request
23807 case "X${libopts_cv_with_libregex_cflags}" in
23809 libopts_cv_with_libregex_cflags="" ;;
23810 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
23812 case "X${libopts_cv_with_libregex_libs}" in
23814 libopts_cv_with_libregex_libs="" ;;
23816 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
23820 echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
23821 echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
23822 if test "${libopts_cv_with_libregex+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23826 if test "$cross_compiling" = yes; then
23827 libopts_cv_with_libregex=no
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23836 #include <stdlib.h>
23837 #include <sys/types.h>
23838 #include REGEX_HEADER
23840 void comp_re( char const* pzPat ) {
23841 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
23842 if (res == 0) return;
23846 comp_re( "^.*\$" );
23847 comp_re( "()|no.*" );
23849 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
23850 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
23851 fputs( "error: regex -->.<-- did not match\n", stderr );
23856 rm -f conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858 (eval $ac_link) 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 libopts_cv_with_libregex=yes
23869 echo "$as_me: program exited with status $ac_status" >&5
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23873 ( exit $ac_status )
23874 libopts_cv_with_libregex=no
23876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23877 fi # end of AC_TRY_RUN
23880 # end of AC_CACHE_VAL for libopts_cv_with_libregex
23881 echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
23882 echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
23884 if test "X${libopts_cv_with_libregex}" != Xno
23887 cat >>confdefs.h <<\_ACEOF
23888 #define WITH_LIBREGEX 1
23892 CPPFLAGS="${libopts_save_CPPFLAGS}"
23893 LIBS="${libopts_save_LIBS}"
23898 # Check to see if pathfind(3) works.
23900 echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
23901 echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
23902 if test "${libopts_cv_run_pathfind+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 if test "$cross_compiling" = yes; then
23907 libopts_cv_run_pathfind=no
23910 cat >conftest.$ac_ext <<_ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h. */
23916 #include <string.h>
23917 #include <stdlib.h>
23918 int main (int argc, char** argv) {
23919 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
23920 return (pz == 0) ? 1 : 0;
23923 rm -f conftest$ac_exeext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23925 (eval $ac_link) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930 (eval $ac_try) 2>&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); }; }; then
23934 libopts_cv_run_pathfind=yes
23936 echo "$as_me: program exited with status $ac_status" >&5
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ( exit $ac_status )
23941 libopts_cv_run_pathfind=no
23943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944 fi # end of TRY_RUN
23947 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
23948 echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
23949 echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
23951 if test "X${libopts_cv_run_pathfind}" != Xno
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_PATHFIND 1
23962 # Check to see if /dev/zero is readable device.
23964 echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
23965 echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
23966 if test "${libopts_cv_test_dev_zero+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 libopts_cv_test_dev_zero=`exec 2> /dev/null
23971 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
23972 test -z "${dzero}" && exit 1
23975 then libopts_cv_test_dev_zero=no
23976 elif test -z "$libopts_cv_test_dev_zero"
23977 then libopts_cv_test_dev_zero=no
23981 # end of CACHE_VAL of libopts_cv_test_dev_zero
23982 echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
23983 echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
23985 if test "X${libopts_cv_test_dev_zero}" != Xno
23988 cat >>confdefs.h <<\_ACEOF
23989 #define HAVE_DEV_ZERO 1
23996 # Check to see if we have a functional realpath(3C).
23998 echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
23999 echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
24000 if test "${libopts_cv_run_realpath+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24004 if test "$cross_compiling" = yes; then
24005 libopts_cv_run_realpath=no
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 #include <limits.h>
24015 #include <stdlib.h>
24016 int main (int argc, char** argv) {
24020 char zPath[PATH_MAX+1];
24022 char *pz = realpath(argv[0], zPath);
24023 return (pz == zPath) ? 0 : 1;
24026 rm -f conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028 (eval $ac_link) 2>&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; }; then
24037 libopts_cv_run_realpath=yes
24039 echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ( exit $ac_status )
24044 libopts_cv_run_realpath=no
24046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047 fi # end of TRY_RUN
24050 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24051 echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
24052 echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
24054 if test "X${libopts_cv_run_realpath}" != Xno
24057 cat >>confdefs.h <<\_ACEOF
24058 #define HAVE_REALPATH 1
24065 # Check to see if strftime() works.
24067 echo "$as_me:$LINENO: checking whether strftime() works" >&5
24068 echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
24069 if test "${libopts_cv_run_strftime+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 if test "$cross_compiling" = yes; then
24074 libopts_cv_run_strftime=no
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24084 #include <string.h>
24087 static char const z[] = "Thursday Aug 28 240";
24089 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24090 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24091 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24092 tm.tm_mday = 28; /* day of the month [1, 31] */
24093 tm.tm_mon = 7; /* months since January [0, 11] */
24094 tm.tm_year = 86; /* years since 1900 */
24095 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24096 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24097 tm.tm_isdst = 1; /* flag for daylight savings time */
24098 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24099 return (strcmp( t_buf, z ) != 0); }
24101 rm -f conftest$ac_exeext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24103 (eval $ac_link) 2>&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 libopts_cv_run_strftime=yes
24114 echo "$as_me: program exited with status $ac_status" >&5
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ( exit $ac_status )
24119 libopts_cv_run_strftime=no
24121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24122 fi # end of TRY_RUN
24125 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24126 echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
24127 echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
24129 if test "X${libopts_cv_run_strftime}" != Xno
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_STRFTIME 1
24140 # Check to see if fopen accepts "b" mode.
24142 echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
24143 echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
24144 if test "${libopts_cv_run_fopen_binary+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 if test "$cross_compiling" = yes; then
24149 libopts_cv_run_fopen_binary=no
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24159 int main (int argc, char** argv) {
24160 FILE* fp = fopen("conftest.$ac_ext", "rb");
24161 return (fp == NULL) ? 1 : fclose(fp); }
24163 rm -f conftest$ac_exeext
24164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24165 (eval $ac_link) 2>&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; }; then
24174 libopts_cv_run_fopen_binary=yes
24176 echo "$as_me: program exited with status $ac_status" >&5
24177 echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24180 ( exit $ac_status )
24181 libopts_cv_run_fopen_binary=no
24183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24184 fi # end of TRY_RUN
24187 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24188 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
24189 echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
24191 if test "X${libopts_cv_run_fopen_binary}" != Xno
24194 cat >>confdefs.h <<\_ACEOF
24195 #define FOPEN_BINARY_FLAG "b"
24200 cat >>confdefs.h <<\_ACEOF
24201 #define FOPEN_BINARY_FLAG ""
24208 # Check to see if fopen accepts "t" mode.
24210 echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
24211 echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
24212 if test "${libopts_cv_run_fopen_text+set}" = set; then
24213 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 if test "$cross_compiling" = yes; then
24217 libopts_cv_run_fopen_text=no
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24227 int main (int argc, char** argv) {
24228 FILE* fp = fopen("conftest.$ac_ext", "rt");
24229 return (fp == NULL) ? 1 : fclose(fp); }
24231 rm -f conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 libopts_cv_run_fopen_text=yes
24244 echo "$as_me: program exited with status $ac_status" >&5
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ( exit $ac_status )
24249 libopts_cv_run_fopen_text=no
24251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24252 fi # end of TRY_RUN
24255 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24256 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
24257 echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
24259 if test "X${libopts_cv_run_fopen_text}" != Xno
24262 cat >>confdefs.h <<\_ACEOF
24263 #define FOPEN_TEXT_FLAG "t"
24268 cat >>confdefs.h <<\_ACEOF
24269 #define FOPEN_TEXT_FLAG ""
24276 # Check to see if not wanting optional option args.
24278 # Check whether --enable-optional-args or --disable-optional-args was given.
24279 if test "${enable_optional_args+set}" = set; then
24280 enableval="$enable_optional_args"
24281 libopts_cv_enable_optional_args=${enable_optional_args}
24283 echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
24284 echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
24285 if test "${libopts_cv_enable_optional_args+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 libopts_cv_enable_optional_args=yes
24290 echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
24291 echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
24293 fi; # end of AC_ARG_ENABLE
24295 if test "X${libopts_cv_enable_optional_args}" = Xno
24298 cat >>confdefs.h <<\_ACEOF
24299 #define NO_OPTIONAL_OPT_ARGS 1
24309 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
24310 # =================
24312 # =================
24313 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24314 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24315 if test "${ac_cv_header_stdc+set}" = set; then
24316 echo $ECHO_N "(cached) $ECHO_C" >&6
24318 cat >conftest.$ac_ext <<_ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24324 #include <stdlib.h>
24325 #include <stdarg.h>
24326 #include <string.h>
24337 rm -f conftest.$ac_objext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24339 (eval $ac_compile) 2>conftest.er1
24341 grep -v '^ *+' conftest.er1 >conftest.err
24343 cat conftest.err >&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } &&
24346 { ac_try='test -z "$ac_c_werror_flag"
24347 || test ! -s conftest.err'
24348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349 (eval $ac_try) 2>&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; } &&
24353 { ac_try='test -s conftest.$ac_objext'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; }; then
24359 ac_cv_header_stdc=yes
24361 echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24364 ac_cv_header_stdc=no
24366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24368 if test $ac_cv_header_stdc = yes; then
24369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24370 cat >conftest.$ac_ext <<_ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 #include <string.h>
24379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24380 $EGREP "memchr" >/dev/null 2>&1; then
24383 ac_cv_header_stdc=no
24389 if test $ac_cv_header_stdc = yes; then
24390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 #include <stdlib.h>
24400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24401 $EGREP "free" >/dev/null 2>&1; then
24404 ac_cv_header_stdc=no
24410 if test $ac_cv_header_stdc = yes; then
24411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24412 if test "$cross_compiling" = yes; then
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24422 #if ((' ' & 0x0FF) == 0x020)
24423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24426 # define ISLOWER(c) \
24427 (('a' <= (c) && (c) <= 'i') \
24428 || ('j' <= (c) && (c) <= 'r') \
24429 || ('s' <= (c) && (c) <= 'z'))
24430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24438 for (i = 0; i < 256; i++)
24439 if (XOR (islower (i), ISLOWER (i))
24440 || toupper (i) != TOUPPER (i))
24445 rm -f conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447 (eval $ac_link) 2>&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; }; then
24458 echo "$as_me: program exited with status $ac_status" >&5
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ( exit $ac_status )
24463 ac_cv_header_stdc=no
24465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24471 if test $ac_cv_header_stdc = yes; then
24473 cat >>confdefs.h <<\_ACEOF
24474 #define STDC_HEADERS 1
24479 # =================
24481 # =================
24487 ac_header_dirent=no
24488 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24489 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24491 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24493 echo $ECHO_N "(cached) $ECHO_C" >&6
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 #include <sys/types.h>
24513 rm -f conftest.$ac_objext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24515 (eval $ac_compile) 2>conftest.er1
24517 grep -v '^ *+' conftest.er1 >conftest.err
24519 cat conftest.err >&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } &&
24522 { ac_try='test -z "$ac_c_werror_flag"
24523 || test ! -s conftest.err'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; } &&
24529 { ac_try='test -s conftest.$ac_objext'
24530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531 (eval $ac_try) 2>&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; }; then
24535 eval "$as_ac_Header=yes"
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 eval "$as_ac_Header=no"
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24547 cat >>confdefs.h <<_ACEOF
24548 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24551 ac_header_dirent=$ac_hdr; break
24555 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24556 if test $ac_header_dirent = dirent.h; then
24557 echo "$as_me:$LINENO: checking for library containing opendir" >&5
24558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24559 if test "${ac_cv_search_opendir+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 ac_func_search_save_LIBS=$LIBS
24563 ac_cv_search_opendir=no
24564 cat >conftest.$ac_ext <<_ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h. */
24571 /* Override any gcc2 internal prototype to avoid an error. */
24575 /* We use char because int might match the return type of a gcc2
24576 builtin and then its argument prototype would still apply. */
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588 (eval $ac_link) 2>conftest.er1
24590 grep -v '^ *+' conftest.er1 >conftest.err
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
24595 { ac_try='test -z "$ac_c_werror_flag"
24596 || test ! -s conftest.err'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; } &&
24602 { ac_try='test -s conftest$ac_exeext'
24603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604 (eval $ac_try) 2>&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; }; then
24608 ac_cv_search_opendir="none required"
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24614 rm -f conftest.err conftest.$ac_objext \
24615 conftest$ac_exeext conftest.$ac_ext
24616 if test "$ac_cv_search_opendir" = no; then
24617 for ac_lib in dir; do
24618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24626 /* Override any gcc2 internal prototype to avoid an error. */
24630 /* We use char because int might match the return type of a gcc2
24631 builtin and then its argument prototype would still apply. */
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643 (eval $ac_link) 2>conftest.er1
24645 grep -v '^ *+' conftest.er1 >conftest.err
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag"
24651 || test ! -s conftest.err'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; } &&
24657 { ac_try='test -s conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 ac_cv_search_opendir="-l$ac_lib"
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24670 rm -f conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24674 LIBS=$ac_func_search_save_LIBS
24676 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24677 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24678 if test "$ac_cv_search_opendir" != no; then
24679 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24684 echo "$as_me:$LINENO: checking for library containing opendir" >&5
24685 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24686 if test "${ac_cv_search_opendir+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24689 ac_func_search_save_LIBS=$LIBS
24690 ac_cv_search_opendir=no
24691 cat >conftest.$ac_ext <<_ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24698 /* Override any gcc2 internal prototype to avoid an error. */
24702 /* We use char because int might match the return type of a gcc2
24703 builtin and then its argument prototype would still apply. */
24713 rm -f conftest.$ac_objext conftest$ac_exeext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24715 (eval $ac_link) 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
24722 { ac_try='test -z "$ac_c_werror_flag"
24723 || test ! -s conftest.err'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; } &&
24729 { ac_try='test -s conftest$ac_exeext'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 ac_cv_search_opendir="none required"
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24741 rm -f conftest.err conftest.$ac_objext \
24742 conftest$ac_exeext conftest.$ac_ext
24743 if test "$ac_cv_search_opendir" = no; then
24744 for ac_lib in x; do
24745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24753 /* Override any gcc2 internal prototype to avoid an error. */
24757 /* We use char because int might match the return type of a gcc2
24758 builtin and then its argument prototype would still apply. */
24768 rm -f conftest.$ac_objext conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770 (eval $ac_link) 2>conftest.er1
24772 grep -v '^ *+' conftest.er1 >conftest.err
24774 cat conftest.err >&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } &&
24777 { ac_try='test -z "$ac_c_werror_flag"
24778 || test ! -s conftest.err'
24779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780 (eval $ac_try) 2>&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); }; } &&
24784 { ac_try='test -s conftest$ac_exeext'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; }; then
24790 ac_cv_search_opendir="-l$ac_lib"
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24797 rm -f conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
24801 LIBS=$ac_func_search_save_LIBS
24803 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24804 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24805 if test "$ac_cv_search_opendir" != no; then
24806 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24813 # =================
24815 # =================
24836 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
24837 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
24838 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
24841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24843 echo "$as_me:$LINENO: checking for $ac_header" >&5
24844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24851 # Is the header compilable?
24852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24861 #include <$ac_header>
24863 rm -f conftest.$ac_objext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865 (eval $ac_compile) 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest.$ac_objext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_header_compiler=yes
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890 ac_header_compiler=no
24892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24894 echo "${ECHO_T}$ac_header_compiler" >&6
24896 # Is the header present?
24897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 #include <$ac_header>
24907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24910 grep -v '^ *+' conftest.er1 >conftest.err
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } >/dev/null; then
24915 if test -s conftest.err; then
24916 ac_cpp_err=$ac_c_preproc_warn_flag
24917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24924 if test -z "$ac_cpp_err"; then
24925 ac_header_preproc=yes
24927 echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24930 ac_header_preproc=no
24932 rm -f conftest.err conftest.$ac_ext
24933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24934 echo "${ECHO_T}$ac_header_preproc" >&6
24936 # So? What about this header?
24937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24943 ac_header_preproc=yes
24946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24960 ## ------------------------------------------ ##
24961 ## Report this to the AC_PACKAGE_NAME lists. ##
24962 ## ------------------------------------------ ##
24965 sed "s/^/$as_me: WARNING: /" >&2
24968 echo "$as_me:$LINENO: checking for $ac_header" >&5
24969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24973 eval "$as_ac_Header=\$ac_header_preproc"
24975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24980 cat >>confdefs.h <<_ACEOF
24981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24989 # --------------------------------------------
24990 # Verify certain entries from AC_CHECK_HEADERS
24991 # --------------------------------------------
24992 for f in sys_types sys_mman sys_param sys_stat sys_wait \
24993 string errno stdlib memory setjmp
24994 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
24995 test "${as_ac_var}" = set || \
24996 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
24997 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
24998 { (exit 1); exit 1; }; }
25001 # ================================================
25002 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
25003 # if varargs.h is present define HAVE_VARARGS_H.
25004 # ================================================
25007 for ac_header in stdarg.h varargs.h
25009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25011 echo "$as_me:$LINENO: checking for $ac_header" >&5
25012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25019 # Is the header compilable?
25020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 $ac_includes_default
25029 #include <$ac_header>
25031 rm -f conftest.$ac_objext
25032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25033 (eval $ac_compile) 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } &&
25040 { ac_try='test -z "$ac_c_werror_flag"
25041 || test ! -s conftest.err'
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; } &&
25047 { ac_try='test -s conftest.$ac_objext'
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
25053 ac_header_compiler=yes
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_header_compiler=no
25060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25062 echo "${ECHO_T}$ac_header_compiler" >&6
25064 # Is the header present?
25065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 #include <$ac_header>
25075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25078 grep -v '^ *+' conftest.er1 >conftest.err
25080 cat conftest.err >&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } >/dev/null; then
25083 if test -s conftest.err; then
25084 ac_cpp_err=$ac_c_preproc_warn_flag
25085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25092 if test -z "$ac_cpp_err"; then
25093 ac_header_preproc=yes
25095 echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25098 ac_header_preproc=no
25100 rm -f conftest.err conftest.$ac_ext
25101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25102 echo "${ECHO_T}$ac_header_preproc" >&6
25104 # So? What about this header?
25105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25111 ac_header_preproc=yes
25114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25128 ## ------------------------------------------ ##
25129 ## Report this to the AC_PACKAGE_NAME lists. ##
25130 ## ------------------------------------------ ##
25133 sed "s/^/$as_me: WARNING: /" >&2
25136 echo "$as_me:$LINENO: checking for $ac_header" >&5
25137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 eval "$as_ac_Header=\$ac_header_preproc"
25143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25148 cat >>confdefs.h <<_ACEOF
25149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25156 if test `eval echo '${'$as_ac_Header'}'` != yes; then
25157 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
25158 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
25159 { (exit 1); exit 1; }; }
25162 # ================================================
25163 # Similarly for the string.h and strings.h headers
25164 # ================================================
25167 for ac_header in string.h strings.h
25169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25171 echo "$as_me:$LINENO: checking for $ac_header" >&5
25172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25179 # Is the header compilable?
25180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 $ac_includes_default
25189 #include <$ac_header>
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193 (eval $ac_compile) 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest.$ac_objext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_header_compiler=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_header_compiler=no
25220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25222 echo "${ECHO_T}$ac_header_compiler" >&6
25224 # Is the header present?
25225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25233 #include <$ac_header>
25235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } >/dev/null; then
25243 if test -s conftest.err; then
25244 ac_cpp_err=$ac_c_preproc_warn_flag
25245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25252 if test -z "$ac_cpp_err"; then
25253 ac_header_preproc=yes
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ac_header_preproc=no
25260 rm -f conftest.err conftest.$ac_ext
25261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25262 echo "${ECHO_T}$ac_header_preproc" >&6
25264 # So? What about this header?
25265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25271 ac_header_preproc=yes
25274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25288 ## ------------------------------------------ ##
25289 ## Report this to the AC_PACKAGE_NAME lists. ##
25290 ## ------------------------------------------ ##
25293 sed "s/^/$as_me: WARNING: /" >&2
25296 echo "$as_me:$LINENO: checking for $ac_header" >&5
25297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 eval "$as_ac_Header=\$ac_header_preproc"
25303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25308 cat >>confdefs.h <<_ACEOF
25309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25316 if test `eval echo '${'$as_ac_Header'}'` != yes; then
25317 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
25318 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
25319 { (exit 1); exit 1; }; }
25322 # =====================
25323 # ...and limits headers
25324 # =====================
25328 for ac_header in limits.h sys/limits.h values.h
25330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25332 echo "$as_me:$LINENO: checking for $ac_header" >&5
25333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25340 # Is the header compilable?
25341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 $ac_includes_default
25350 #include <$ac_header>
25352 rm -f conftest.$ac_objext
25353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25354 (eval $ac_compile) 2>conftest.er1
25356 grep -v '^ *+' conftest.er1 >conftest.err
25358 cat conftest.err >&5
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); } &&
25361 { ac_try='test -z "$ac_c_werror_flag"
25362 || test ! -s conftest.err'
25363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364 (eval $ac_try) 2>&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); }; } &&
25368 { ac_try='test -s conftest.$ac_objext'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; }; then
25374 ac_header_compiler=yes
25376 echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25379 ac_header_compiler=no
25381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25383 echo "${ECHO_T}$ac_header_compiler" >&6
25385 # Is the header present?
25386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25388 cat >conftest.$ac_ext <<_ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25394 #include <$ac_header>
25396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } >/dev/null; then
25404 if test -s conftest.err; then
25405 ac_cpp_err=$ac_c_preproc_warn_flag
25406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25413 if test -z "$ac_cpp_err"; then
25414 ac_header_preproc=yes
25416 echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25419 ac_header_preproc=no
25421 rm -f conftest.err conftest.$ac_ext
25422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25423 echo "${ECHO_T}$ac_header_preproc" >&6
25425 # So? What about this header?
25426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25432 ac_header_preproc=yes
25435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25449 ## ------------------------------------------ ##
25450 ## Report this to the AC_PACKAGE_NAME lists. ##
25451 ## ------------------------------------------ ##
25454 sed "s/^/$as_me: WARNING: /" >&2
25457 echo "$as_me:$LINENO: checking for $ac_header" >&5
25458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25462 eval "$as_ac_Header=\$ac_header_preproc"
25464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25469 cat >>confdefs.h <<_ACEOF
25470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25477 if test `eval echo '${'$as_ac_Header'}'` != yes; then
25478 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
25479 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
25480 { (exit 1); exit 1; }; }
25483 # ========================
25484 # ...and int types headers
25485 # ========================
25488 for ac_header in stdint.h inttypes.h
25490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25492 echo "$as_me:$LINENO: checking for $ac_header" >&5
25493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25500 # Is the header compilable?
25501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25509 $ac_includes_default
25510 #include <$ac_header>
25512 rm -f conftest.$ac_objext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514 (eval $ac_compile) 2>conftest.er1
25516 grep -v '^ *+' conftest.er1 >conftest.err
25518 cat conftest.err >&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } &&
25521 { ac_try='test -z "$ac_c_werror_flag"
25522 || test ! -s conftest.err'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; } &&
25528 { ac_try='test -s conftest.$ac_objext'
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; }; then
25534 ac_header_compiler=yes
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25539 ac_header_compiler=no
25541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25543 echo "${ECHO_T}$ac_header_compiler" >&6
25545 # Is the header present?
25546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <$ac_header>
25556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25559 grep -v '^ *+' conftest.er1 >conftest.err
25561 cat conftest.err >&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } >/dev/null; then
25564 if test -s conftest.err; then
25565 ac_cpp_err=$ac_c_preproc_warn_flag
25566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25573 if test -z "$ac_cpp_err"; then
25574 ac_header_preproc=yes
25576 echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25579 ac_header_preproc=no
25581 rm -f conftest.err conftest.$ac_ext
25582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25583 echo "${ECHO_T}$ac_header_preproc" >&6
25585 # So? What about this header?
25586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25592 ac_header_preproc=yes
25595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25609 ## ------------------------------------------ ##
25610 ## Report this to the AC_PACKAGE_NAME lists. ##
25611 ## ------------------------------------------ ##
25614 sed "s/^/$as_me: WARNING: /" >&2
25617 echo "$as_me:$LINENO: checking for $ac_header" >&5
25618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25620 echo $ECHO_N "(cached) $ECHO_C" >&6
25622 eval "$as_ac_Header=\$ac_header_preproc"
25624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25629 cat >>confdefs.h <<_ACEOF
25630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25637 echo "$as_me:$LINENO: checking for int8_t" >&5
25638 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25639 if test "${ac_cv_type_int8_t+set}" = set; then
25640 echo $ECHO_N "(cached) $ECHO_C" >&6
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25648 $ac_includes_default
25654 if (sizeof (int8_t))
25660 rm -f conftest.$ac_objext
25661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25662 (eval $ac_compile) 2>conftest.er1
25664 grep -v '^ *+' conftest.er1 >conftest.err
25666 cat conftest.err >&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } &&
25669 { ac_try='test -z "$ac_c_werror_flag"
25670 || test ! -s conftest.err'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; } &&
25676 { ac_try='test -s conftest.$ac_objext'
25677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678 (eval $ac_try) 2>&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); }; }; then
25682 ac_cv_type_int8_t=yes
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25687 ac_cv_type_int8_t=no
25689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25691 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25692 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25693 if test $ac_cv_type_int8_t = yes; then
25695 cat >>confdefs.h <<_ACEOF
25696 #define HAVE_INT8_T 1
25701 echo "$as_me:$LINENO: checking for uint8_t" >&5
25702 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
25703 if test "${ac_cv_type_uint8_t+set}" = set; then
25704 echo $ECHO_N "(cached) $ECHO_C" >&6
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 $ac_includes_default
25718 if (sizeof (uint8_t))
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726 (eval $ac_compile) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
25746 ac_cv_type_uint8_t=yes
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 ac_cv_type_uint8_t=no
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25755 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
25756 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
25757 if test $ac_cv_type_uint8_t = yes; then
25759 cat >>confdefs.h <<_ACEOF
25760 #define HAVE_UINT8_T 1
25765 echo "$as_me:$LINENO: checking for int16_t" >&5
25766 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
25767 if test "${ac_cv_type_int16_t+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25782 if (sizeof (int16_t))
25788 rm -f conftest.$ac_objext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790 (eval $ac_compile) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest.$ac_objext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 ac_cv_type_int16_t=yes
25812 echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25815 ac_cv_type_int16_t=no
25817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25819 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
25820 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
25821 if test $ac_cv_type_int16_t = yes; then
25823 cat >>confdefs.h <<_ACEOF
25824 #define HAVE_INT16_T 1
25829 echo "$as_me:$LINENO: checking for uint16_t" >&5
25830 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
25831 if test "${ac_cv_type_uint16_t+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 cat >conftest.$ac_ext <<_ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 $ac_includes_default
25844 if ((uint16_t *) 0)
25846 if (sizeof (uint16_t))
25852 rm -f conftest.$ac_objext
25853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25854 (eval $ac_compile) 2>conftest.er1
25856 grep -v '^ *+' conftest.er1 >conftest.err
25858 cat conftest.err >&5
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } &&
25861 { ac_try='test -z "$ac_c_werror_flag"
25862 || test ! -s conftest.err'
25863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864 (eval $ac_try) 2>&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); }; } &&
25868 { ac_try='test -s conftest.$ac_objext'
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; }; then
25874 ac_cv_type_uint16_t=yes
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25879 ac_cv_type_uint16_t=no
25881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25883 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
25884 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
25885 if test $ac_cv_type_uint16_t = yes; then
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_UINT16_T 1
25893 echo "$as_me:$LINENO: checking for int32_t" >&5
25894 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
25895 if test "${ac_cv_type_int32_t+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25898 cat >conftest.$ac_ext <<_ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25904 $ac_includes_default
25910 if (sizeof (int32_t))
25916 rm -f conftest.$ac_objext
25917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25918 (eval $ac_compile) 2>conftest.er1
25920 grep -v '^ *+' conftest.er1 >conftest.err
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
25925 { ac_try='test -z "$ac_c_werror_flag"
25926 || test ! -s conftest.err'
25927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928 (eval $ac_try) 2>&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); }; } &&
25932 { ac_try='test -s conftest.$ac_objext'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 ac_cv_type_int32_t=yes
25940 echo "$as_me: failed program was:" >&5
25941 sed 's/^/| /' conftest.$ac_ext >&5
25943 ac_cv_type_int32_t=no
25945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25947 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
25948 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
25949 if test $ac_cv_type_int32_t = yes; then
25951 cat >>confdefs.h <<_ACEOF
25952 #define HAVE_INT32_T 1
25957 echo "$as_me:$LINENO: checking for uint32_t" >&5
25958 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
25959 if test "${ac_cv_type_uint32_t+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 $ac_includes_default
25972 if ((uint32_t *) 0)
25974 if (sizeof (uint32_t))
25980 rm -f conftest.$ac_objext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982 (eval $ac_compile) 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
25989 { ac_try='test -z "$ac_c_werror_flag"
25990 || test ! -s conftest.err'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest.$ac_objext'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 ac_cv_type_uint32_t=yes
26004 echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 ac_cv_type_uint32_t=no
26009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26011 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26012 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26013 if test $ac_cv_type_uint32_t = yes; then
26015 cat >>confdefs.h <<_ACEOF
26016 #define HAVE_UINT32_T 1
26021 echo "$as_me:$LINENO: checking for intptr_t" >&5
26022 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
26023 if test "${ac_cv_type_intptr_t+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26026 cat >conftest.$ac_ext <<_ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h. */
26032 $ac_includes_default
26036 if ((intptr_t *) 0)
26038 if (sizeof (intptr_t))
26044 rm -f conftest.$ac_objext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26046 (eval $ac_compile) 2>conftest.er1
26048 grep -v '^ *+' conftest.er1 >conftest.err
26050 cat conftest.err >&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } &&
26053 { ac_try='test -z "$ac_c_werror_flag"
26054 || test ! -s conftest.err'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; } &&
26060 { ac_try='test -s conftest.$ac_objext'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
26066 ac_cv_type_intptr_t=yes
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26071 ac_cv_type_intptr_t=no
26073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26075 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
26076 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
26077 if test $ac_cv_type_intptr_t = yes; then
26079 cat >>confdefs.h <<_ACEOF
26080 #define HAVE_INTPTR_T 1
26085 echo "$as_me:$LINENO: checking for uint_t" >&5
26086 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
26087 if test "${ac_cv_type_uint_t+set}" = set; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 $ac_includes_default
26102 if (sizeof (uint_t))
26108 rm -f conftest.$ac_objext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26110 (eval $ac_compile) 2>conftest.er1
26112 grep -v '^ *+' conftest.er1 >conftest.err
26114 cat conftest.err >&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
26117 { ac_try='test -z "$ac_c_werror_flag"
26118 || test ! -s conftest.err'
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; } &&
26124 { ac_try='test -s conftest.$ac_objext'
26125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); }; }; then
26130 ac_cv_type_uint_t=yes
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26135 ac_cv_type_uint_t=no
26137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26139 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
26140 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
26141 if test $ac_cv_type_uint_t = yes; then
26143 cat >>confdefs.h <<_ACEOF
26144 #define HAVE_UINT_T 1
26151 # ====================
26152 # uintptr type & sizes
26153 # ====================
26154 echo "$as_me:$LINENO: checking for uintptr_t" >&5
26155 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26156 if test "${ac_cv_type_uintptr_t+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 $ac_includes_default
26169 if ((uintptr_t *) 0)
26171 if (sizeof (uintptr_t))
26177 rm -f conftest.$ac_objext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26179 (eval $ac_compile) 2>conftest.er1
26181 grep -v '^ *+' conftest.er1 >conftest.err
26183 cat conftest.err >&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } &&
26186 { ac_try='test -z "$ac_c_werror_flag"
26187 || test ! -s conftest.err'
26188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189 (eval $ac_try) 2>&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; } &&
26193 { ac_try='test -s conftest.$ac_objext'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199 ac_cv_type_uintptr_t=yes
26201 echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 ac_cv_type_uintptr_t=no
26206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26208 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26209 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26210 if test $ac_cv_type_uintptr_t = yes; then
26212 cat >>confdefs.h <<_ACEOF
26213 #define HAVE_UINTPTR_T 1
26219 cat >>confdefs.h <<\_ACEOF
26220 #define uintptr_t unsigned long
26225 echo "$as_me:$LINENO: checking for char*" >&5
26226 echo $ECHO_N "checking for char*... $ECHO_C" >&6
26227 if test "${ac_cv_type_charp+set}" = set; then
26228 echo $ECHO_N "(cached) $ECHO_C" >&6
26230 cat >conftest.$ac_ext <<_ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 $ac_includes_default
26242 if (sizeof (char*))
26248 rm -f conftest.$ac_objext
26249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26250 (eval $ac_compile) 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } &&
26257 { ac_try='test -z "$ac_c_werror_flag"
26258 || test ! -s conftest.err'
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; } &&
26264 { ac_try='test -s conftest.$ac_objext'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; }; then
26270 ac_cv_type_charp=yes
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_type_charp=no
26277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26279 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
26280 echo "${ECHO_T}$ac_cv_type_charp" >&6
26282 echo "$as_me:$LINENO: checking size of char*" >&5
26283 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
26284 if test "${ac_cv_sizeof_charp+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26287 if test "$ac_cv_type_charp" = yes; then
26288 # The cast to unsigned long works around a bug in the HP C Compiler
26289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26291 # This bug is HP SR number 8606223364.
26292 if test "$cross_compiling" = yes; then
26293 # Depending upon the size, compute the lo and hi bounds.
26294 cat >conftest.$ac_ext <<_ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 $ac_includes_default
26304 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
26311 rm -f conftest.$ac_objext
26312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313 (eval $ac_compile) 2>conftest.er1
26315 grep -v '^ *+' conftest.er1 >conftest.err
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } &&
26320 { ac_try='test -z "$ac_c_werror_flag"
26321 || test ! -s conftest.err'
26322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323 (eval $ac_try) 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); }; } &&
26327 { ac_try='test -s conftest.$ac_objext'
26328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329 (eval $ac_try) 2>&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); }; }; then
26335 cat >conftest.$ac_ext <<_ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h. */
26341 $ac_includes_default
26345 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26352 rm -f conftest.$ac_objext
26353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354 (eval $ac_compile) 2>conftest.er1
26356 grep -v '^ *+' conftest.er1 >conftest.err
26358 cat conftest.err >&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } &&
26361 { ac_try='test -z "$ac_c_werror_flag"
26362 || test ! -s conftest.err'
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; } &&
26368 { ac_try='test -s conftest.$ac_objext'
26369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370 (eval $ac_try) 2>&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; }; then
26374 ac_hi=$ac_mid; break
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ac_lo=`expr $ac_mid + 1`
26380 if test $ac_lo -le $ac_mid; then
26384 ac_mid=`expr 2 '*' $ac_mid + 1`
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 cat >conftest.$ac_ext <<_ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26398 $ac_includes_default
26402 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411 (eval $ac_compile) 2>conftest.er1
26413 grep -v '^ *+' conftest.er1 >conftest.err
26415 cat conftest.err >&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } &&
26418 { ac_try='test -z "$ac_c_werror_flag"
26419 || test ! -s conftest.err'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; } &&
26425 { ac_try='test -s conftest.$ac_objext'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; }; then
26433 cat >conftest.$ac_ext <<_ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 $ac_includes_default
26443 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
26450 rm -f conftest.$ac_objext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452 (eval $ac_compile) 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -z "$ac_c_werror_flag"
26460 || test ! -s conftest.err'
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; } &&
26466 { ac_try='test -s conftest.$ac_objext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
26472 ac_lo=$ac_mid; break
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 ac_hi=`expr '(' $ac_mid ')' - 1`
26478 if test $ac_mid -le $ac_hi; then
26482 ac_mid=`expr 2 '*' $ac_mid`
26484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495 # Binary search between lo and hi bounds.
26496 while test "x$ac_lo" != "x$ac_hi"; do
26497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26498 cat >conftest.$ac_ext <<_ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 $ac_includes_default
26508 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26515 rm -f conftest.$ac_objext
26516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517 (eval $ac_compile) 2>conftest.er1
26519 grep -v '^ *+' conftest.er1 >conftest.err
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } &&
26524 { ac_try='test -z "$ac_c_werror_flag"
26525 || test ! -s conftest.err'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; } &&
26531 { ac_try='test -s conftest.$ac_objext'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
26539 echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26542 ac_lo=`expr '(' $ac_mid ')' + 1`
26544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26547 ?*) ac_cv_sizeof_charp=$ac_lo;;
26548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26549 See \`config.log' for more details." >&5
26550 echo "$as_me: error: cannot compute sizeof (char*), 77
26551 See \`config.log' for more details." >&2;}
26552 { (exit 1); exit 1; }; } ;;
26555 if test "$cross_compiling" = yes; then
26556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26557 See \`config.log' for more details." >&5
26558 echo "$as_me: error: cannot run test program while cross compiling
26559 See \`config.log' for more details." >&2;}
26560 { (exit 1); exit 1; }; }
26562 cat >conftest.$ac_ext <<_ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h. */
26568 $ac_includes_default
26569 long longval () { return (long) (sizeof (char*)); }
26570 unsigned long ulongval () { return (long) (sizeof (char*)); }
26572 #include <stdlib.h>
26577 FILE *f = fopen ("conftest.val", "w");
26580 if (((long) (sizeof (char*))) < 0)
26582 long i = longval ();
26583 if (i != ((long) (sizeof (char*))))
26585 fprintf (f, "%ld\n", i);
26589 unsigned long i = ulongval ();
26590 if (i != ((long) (sizeof (char*))))
26592 fprintf (f, "%lu\n", i);
26594 exit (ferror (f) || fclose (f) != 0);
26600 rm -f conftest$ac_exeext
26601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26602 (eval $ac_link) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 ac_cv_sizeof_charp=`cat conftest.val`
26613 echo "$as_me: program exited with status $ac_status" >&5
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ( exit $ac_status )
26618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26619 See \`config.log' for more details." >&5
26620 echo "$as_me: error: cannot compute sizeof (char*), 77
26621 See \`config.log' for more details." >&2;}
26622 { (exit 1); exit 1; }; }
26624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26629 ac_cv_sizeof_charp=0
26632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
26633 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
26634 cat >>confdefs.h <<_ACEOF
26635 #define SIZEOF_CHARP $ac_cv_sizeof_charp
26639 echo "$as_me:$LINENO: checking for int" >&5
26640 echo $ECHO_N "checking for int... $ECHO_C" >&6
26641 if test "${ac_cv_type_int+set}" = set; then
26642 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 cat >conftest.$ac_ext <<_ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26650 $ac_includes_default
26662 rm -f conftest.$ac_objext
26663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26664 (eval $ac_compile) 2>conftest.er1
26666 grep -v '^ *+' conftest.er1 >conftest.err
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } &&
26671 { ac_try='test -z "$ac_c_werror_flag"
26672 || test ! -s conftest.err'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; } &&
26678 { ac_try='test -s conftest.$ac_objext'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26693 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26694 echo "${ECHO_T}$ac_cv_type_int" >&6
26696 echo "$as_me:$LINENO: checking size of int" >&5
26697 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26698 if test "${ac_cv_sizeof_int+set}" = set; then
26699 echo $ECHO_N "(cached) $ECHO_C" >&6
26701 if test "$ac_cv_type_int" = yes; then
26702 # The cast to unsigned long works around a bug in the HP C Compiler
26703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26705 # This bug is HP SR number 8606223364.
26706 if test "$cross_compiling" = yes; then
26707 # Depending upon the size, compute the lo and hi bounds.
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26714 $ac_includes_default
26718 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26725 rm -f conftest.$ac_objext
26726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26727 (eval $ac_compile) 2>conftest.er1
26729 grep -v '^ *+' conftest.er1 >conftest.err
26731 cat conftest.err >&5
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); } &&
26734 { ac_try='test -z "$ac_c_werror_flag"
26735 || test ! -s conftest.err'
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; } &&
26741 { ac_try='test -s conftest.$ac_objext'
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; }; then
26749 cat >conftest.$ac_ext <<_ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26755 $ac_includes_default
26759 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26766 rm -f conftest.$ac_objext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768 (eval $ac_compile) 2>conftest.er1
26770 grep -v '^ *+' conftest.er1 >conftest.err
26772 cat conftest.err >&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } &&
26775 { ac_try='test -z "$ac_c_werror_flag"
26776 || test ! -s conftest.err'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; } &&
26782 { ac_try='test -s conftest.$ac_objext'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; }; then
26788 ac_hi=$ac_mid; break
26790 echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26793 ac_lo=`expr $ac_mid + 1`
26794 if test $ac_lo -le $ac_mid; then
26798 ac_mid=`expr 2 '*' $ac_mid + 1`
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26806 cat >conftest.$ac_ext <<_ACEOF
26809 cat confdefs.h >>conftest.$ac_ext
26810 cat >>conftest.$ac_ext <<_ACEOF
26811 /* end confdefs.h. */
26812 $ac_includes_default
26816 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26823 rm -f conftest.$ac_objext
26824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26825 (eval $ac_compile) 2>conftest.er1
26827 grep -v '^ *+' conftest.er1 >conftest.err
26829 cat conftest.err >&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } &&
26832 { ac_try='test -z "$ac_c_werror_flag"
26833 || test ! -s conftest.err'
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; } &&
26839 { ac_try='test -s conftest.$ac_objext'
26840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841 (eval $ac_try) 2>&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); }; }; then
26847 cat >conftest.$ac_ext <<_ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h. */
26853 $ac_includes_default
26857 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26864 rm -f conftest.$ac_objext
26865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866 (eval $ac_compile) 2>conftest.er1
26868 grep -v '^ *+' conftest.er1 >conftest.err
26870 cat conftest.err >&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } &&
26873 { ac_try='test -z "$ac_c_werror_flag"
26874 || test ! -s conftest.err'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest.$ac_objext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886 ac_lo=$ac_mid; break
26888 echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26891 ac_hi=`expr '(' $ac_mid ')' - 1`
26892 if test $ac_mid -le $ac_hi; then
26896 ac_mid=`expr 2 '*' $ac_mid`
26898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26901 echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26909 # Binary search between lo and hi bounds.
26910 while test "x$ac_lo" != "x$ac_hi"; do
26911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26918 $ac_includes_default
26922 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26929 rm -f conftest.$ac_objext
26930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26931 (eval $ac_compile) 2>conftest.er1
26933 grep -v '^ *+' conftest.er1 >conftest.err
26935 cat conftest.err >&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } &&
26938 { ac_try='test -z "$ac_c_werror_flag"
26939 || test ! -s conftest.err'
26940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941 (eval $ac_try) 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest.$ac_objext'
26946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947 (eval $ac_try) 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; }; then
26953 echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26956 ac_lo=`expr '(' $ac_mid ')' + 1`
26958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26961 ?*) ac_cv_sizeof_int=$ac_lo;;
26962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26963 See \`config.log' for more details." >&5
26964 echo "$as_me: error: cannot compute sizeof (int), 77
26965 See \`config.log' for more details." >&2;}
26966 { (exit 1); exit 1; }; } ;;
26969 if test "$cross_compiling" = yes; then
26970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26971 See \`config.log' for more details." >&5
26972 echo "$as_me: error: cannot run test program while cross compiling
26973 See \`config.log' for more details." >&2;}
26974 { (exit 1); exit 1; }; }
26976 cat >conftest.$ac_ext <<_ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26982 $ac_includes_default
26983 long longval () { return (long) (sizeof (int)); }
26984 unsigned long ulongval () { return (long) (sizeof (int)); }
26986 #include <stdlib.h>
26991 FILE *f = fopen ("conftest.val", "w");
26994 if (((long) (sizeof (int))) < 0)
26996 long i = longval ();
26997 if (i != ((long) (sizeof (int))))
26999 fprintf (f, "%ld\n", i);
27003 unsigned long i = ulongval ();
27004 if (i != ((long) (sizeof (int))))
27006 fprintf (f, "%lu\n", i);
27008 exit (ferror (f) || fclose (f) != 0);
27014 rm -f conftest$ac_exeext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27016 (eval $ac_link) 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27025 ac_cv_sizeof_int=`cat conftest.val`
27027 echo "$as_me: program exited with status $ac_status" >&5
27028 echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27031 ( exit $ac_status )
27032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27033 See \`config.log' for more details." >&5
27034 echo "$as_me: error: cannot compute sizeof (int), 77
27035 See \`config.log' for more details." >&2;}
27036 { (exit 1); exit 1; }; }
27038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27047 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27048 cat >>confdefs.h <<_ACEOF
27049 #define SIZEOF_INT $ac_cv_sizeof_int
27053 echo "$as_me:$LINENO: checking for long" >&5
27054 echo $ECHO_N "checking for long... $ECHO_C" >&6
27055 if test "${ac_cv_type_long+set}" = set; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27064 $ac_includes_default
27076 rm -f conftest.$ac_objext
27077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27078 (eval $ac_compile) 2>conftest.er1
27080 grep -v '^ *+' conftest.er1 >conftest.err
27082 cat conftest.err >&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } &&
27085 { ac_try='test -z "$ac_c_werror_flag"
27086 || test ! -s conftest.err'
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; }; then
27098 ac_cv_type_long=yes
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27107 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27108 echo "${ECHO_T}$ac_cv_type_long" >&6
27110 echo "$as_me:$LINENO: checking size of long" >&5
27111 echo $ECHO_N "checking size of long... $ECHO_C" >&6
27112 if test "${ac_cv_sizeof_long+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 if test "$ac_cv_type_long" = yes; then
27116 # The cast to unsigned long works around a bug in the HP C Compiler
27117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27119 # This bug is HP SR number 8606223364.
27120 if test "$cross_compiling" = yes; then
27121 # Depending upon the size, compute the lo and hi bounds.
27122 cat >conftest.$ac_ext <<_ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h. */
27128 $ac_includes_default
27132 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27139 rm -f conftest.$ac_objext
27140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27141 (eval $ac_compile) 2>conftest.er1
27143 grep -v '^ *+' conftest.er1 >conftest.err
27145 cat conftest.err >&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } &&
27148 { ac_try='test -z "$ac_c_werror_flag"
27149 || test ! -s conftest.err'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; } &&
27155 { ac_try='test -s conftest.$ac_objext'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; }; then
27163 cat >conftest.$ac_ext <<_ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27169 $ac_includes_default
27173 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 ac_hi=$ac_mid; break
27204 echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27207 ac_lo=`expr $ac_mid + 1`
27208 if test $ac_lo -le $ac_mid; then
27212 ac_mid=`expr 2 '*' $ac_mid + 1`
27214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 cat >conftest.$ac_ext <<_ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h. */
27226 $ac_includes_default
27230 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27237 rm -f conftest.$ac_objext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239 (eval $ac_compile) 2>conftest.er1
27241 grep -v '^ *+' conftest.er1 >conftest.err
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } &&
27246 { ac_try='test -z "$ac_c_werror_flag"
27247 || test ! -s conftest.err'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest.$ac_objext'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27261 cat >conftest.$ac_ext <<_ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h. */
27267 $ac_includes_default
27271 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27278 rm -f conftest.$ac_objext
27279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27280 (eval $ac_compile) 2>conftest.er1
27282 grep -v '^ *+' conftest.er1 >conftest.err
27284 cat conftest.err >&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); } &&
27287 { ac_try='test -z "$ac_c_werror_flag"
27288 || test ! -s conftest.err'
27289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290 (eval $ac_try) 2>&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; } &&
27294 { ac_try='test -s conftest.$ac_objext'
27295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296 (eval $ac_try) 2>&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; }; then
27300 ac_lo=$ac_mid; break
27302 echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27305 ac_hi=`expr '(' $ac_mid ')' - 1`
27306 if test $ac_mid -le $ac_hi; then
27310 ac_mid=`expr 2 '*' $ac_mid`
27312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27323 # Binary search between lo and hi bounds.
27324 while test "x$ac_lo" != "x$ac_hi"; do
27325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27326 cat >conftest.$ac_ext <<_ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 $ac_includes_default
27336 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27343 rm -f conftest.$ac_objext
27344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27345 (eval $ac_compile) 2>conftest.er1
27347 grep -v '^ *+' conftest.er1 >conftest.err
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } &&
27352 { ac_try='test -z "$ac_c_werror_flag"
27353 || test ! -s conftest.err'
27354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355 (eval $ac_try) 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; } &&
27359 { ac_try='test -s conftest.$ac_objext'
27360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361 (eval $ac_try) 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 ac_lo=`expr '(' $ac_mid ')' + 1`
27372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27375 ?*) ac_cv_sizeof_long=$ac_lo;;
27376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (long), 77
27379 See \`config.log' for more details." >&2;}
27380 { (exit 1); exit 1; }; } ;;
27383 if test "$cross_compiling" = yes; then
27384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27385 See \`config.log' for more details." >&5
27386 echo "$as_me: error: cannot run test program while cross compiling
27387 See \`config.log' for more details." >&2;}
27388 { (exit 1); exit 1; }; }
27390 cat >conftest.$ac_ext <<_ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27396 $ac_includes_default
27397 long longval () { return (long) (sizeof (long)); }
27398 unsigned long ulongval () { return (long) (sizeof (long)); }
27400 #include <stdlib.h>
27405 FILE *f = fopen ("conftest.val", "w");
27408 if (((long) (sizeof (long))) < 0)
27410 long i = longval ();
27411 if (i != ((long) (sizeof (long))))
27413 fprintf (f, "%ld\n", i);
27417 unsigned long i = ulongval ();
27418 if (i != ((long) (sizeof (long))))
27420 fprintf (f, "%lu\n", i);
27422 exit (ferror (f) || fclose (f) != 0);
27428 rm -f conftest$ac_exeext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27430 (eval $ac_link) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27439 ac_cv_sizeof_long=`cat conftest.val`
27441 echo "$as_me: program exited with status $ac_status" >&5
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ( exit $ac_status )
27446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27447 See \`config.log' for more details." >&5
27448 echo "$as_me: error: cannot compute sizeof (long), 77
27449 See \`config.log' for more details." >&2;}
27450 { (exit 1); exit 1; }; }
27452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27457 ac_cv_sizeof_long=0
27460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27461 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27462 cat >>confdefs.h <<_ACEOF
27463 #define SIZEOF_LONG $ac_cv_sizeof_long
27467 echo "$as_me:$LINENO: checking for short" >&5
27468 echo $ECHO_N "checking for short... $ECHO_C" >&6
27469 if test "${ac_cv_type_short+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 $ac_includes_default
27484 if (sizeof (short))
27490 rm -f conftest.$ac_objext
27491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27492 (eval $ac_compile) 2>conftest.er1
27494 grep -v '^ *+' conftest.er1 >conftest.err
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } &&
27499 { ac_try='test -z "$ac_c_werror_flag"
27500 || test ! -s conftest.err'
27501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502 (eval $ac_try) 2>&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; } &&
27506 { ac_try='test -s conftest.$ac_objext'
27507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508 (eval $ac_try) 2>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; }; then
27512 ac_cv_type_short=yes
27514 echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27517 ac_cv_type_short=no
27519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27521 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27522 echo "${ECHO_T}$ac_cv_type_short" >&6
27524 echo "$as_me:$LINENO: checking size of short" >&5
27525 echo $ECHO_N "checking size of short... $ECHO_C" >&6
27526 if test "${ac_cv_sizeof_short+set}" = set; then
27527 echo $ECHO_N "(cached) $ECHO_C" >&6
27529 if test "$ac_cv_type_short" = yes; then
27530 # The cast to unsigned long works around a bug in the HP C Compiler
27531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533 # This bug is HP SR number 8606223364.
27534 if test "$cross_compiling" = yes; then
27535 # Depending upon the size, compute the lo and hi bounds.
27536 cat >conftest.$ac_ext <<_ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27542 $ac_includes_default
27546 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27553 rm -f conftest.$ac_objext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27555 (eval $ac_compile) 2>conftest.er1
27557 grep -v '^ *+' conftest.er1 >conftest.err
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag"
27563 || test ! -s conftest.err'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest.$ac_objext'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27577 cat >conftest.$ac_ext <<_ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h. */
27583 $ac_includes_default
27587 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596 (eval $ac_compile) 2>conftest.er1
27598 grep -v '^ *+' conftest.er1 >conftest.err
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } &&
27603 { ac_try='test -z "$ac_c_werror_flag"
27604 || test ! -s conftest.err'
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest.$ac_objext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 ac_hi=$ac_mid; break
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 ac_lo=`expr $ac_mid + 1`
27622 if test $ac_lo -le $ac_mid; then
27626 ac_mid=`expr 2 '*' $ac_mid + 1`
27628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 $ac_includes_default
27644 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653 (eval $ac_compile) 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag"
27661 || test ! -s conftest.err'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; } &&
27667 { ac_try='test -s conftest.$ac_objext'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27675 cat >conftest.$ac_ext <<_ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27681 $ac_includes_default
27685 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27692 rm -f conftest.$ac_objext
27693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27694 (eval $ac_compile) 2>conftest.er1
27696 grep -v '^ *+' conftest.er1 >conftest.err
27698 cat conftest.err >&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } &&
27701 { ac_try='test -z "$ac_c_werror_flag"
27702 || test ! -s conftest.err'
27703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704 (eval $ac_try) 2>&5
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; } &&
27708 { ac_try='test -s conftest.$ac_objext'
27709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710 (eval $ac_try) 2>&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); }; }; then
27714 ac_lo=$ac_mid; break
27716 echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27719 ac_hi=`expr '(' $ac_mid ')' - 1`
27720 if test $ac_mid -le $ac_hi; then
27724 ac_mid=`expr 2 '*' $ac_mid`
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737 # Binary search between lo and hi bounds.
27738 while test "x$ac_lo" != "x$ac_hi"; do
27739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27740 cat >conftest.$ac_ext <<_ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27746 $ac_includes_default
27750 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27757 rm -f conftest.$ac_objext
27758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27759 (eval $ac_compile) 2>conftest.er1
27761 grep -v '^ *+' conftest.er1 >conftest.err
27763 cat conftest.err >&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } &&
27766 { ac_try='test -z "$ac_c_werror_flag"
27767 || test ! -s conftest.err'
27768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769 (eval $ac_try) 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; } &&
27773 { ac_try='test -s conftest.$ac_objext'
27774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775 (eval $ac_try) 2>&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; }; then
27781 echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27784 ac_lo=`expr '(' $ac_mid ')' + 1`
27786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 ?*) ac_cv_sizeof_short=$ac_lo;;
27790 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27791 See \`config.log' for more details." >&5
27792 echo "$as_me: error: cannot compute sizeof (short), 77
27793 See \`config.log' for more details." >&2;}
27794 { (exit 1); exit 1; }; } ;;
27797 if test "$cross_compiling" = yes; then
27798 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27799 See \`config.log' for more details." >&5
27800 echo "$as_me: error: cannot run test program while cross compiling
27801 See \`config.log' for more details." >&2;}
27802 { (exit 1); exit 1; }; }
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 $ac_includes_default
27811 long longval () { return (long) (sizeof (short)); }
27812 unsigned long ulongval () { return (long) (sizeof (short)); }
27814 #include <stdlib.h>
27819 FILE *f = fopen ("conftest.val", "w");
27822 if (((long) (sizeof (short))) < 0)
27824 long i = longval ();
27825 if (i != ((long) (sizeof (short))))
27827 fprintf (f, "%ld\n", i);
27831 unsigned long i = ulongval ();
27832 if (i != ((long) (sizeof (short))))
27834 fprintf (f, "%lu\n", i);
27836 exit (ferror (f) || fclose (f) != 0);
27842 rm -f conftest$ac_exeext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844 (eval $ac_link) 2>&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27849 (eval $ac_try) 2>&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); }; }; then
27853 ac_cv_sizeof_short=`cat conftest.val`
27855 echo "$as_me: program exited with status $ac_status" >&5
27856 echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27859 ( exit $ac_status )
27860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27861 See \`config.log' for more details." >&5
27862 echo "$as_me: error: cannot compute sizeof (short), 77
27863 See \`config.log' for more details." >&2;}
27864 { (exit 1); exit 1; }; }
27866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27871 ac_cv_sizeof_short=0
27874 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27875 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27876 cat >>confdefs.h <<_ACEOF
27877 #define SIZEOF_SHORT $ac_cv_sizeof_short
27882 # ----------------------------------------------------------------------
27883 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
27884 # ----------------------------------------------------------------------
27886 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
27887 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
27888 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 ac_check_lib_save_LIBS=$LIBS
27893 cat >conftest.$ac_ext <<_ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 /* Override any gcc2 internal prototype to avoid an error. */
27904 /* We use char because int might match the return type of a gcc2
27905 builtin and then its argument prototype would still apply. */
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917 (eval $ac_link) 2>conftest.er1
27919 grep -v '^ *+' conftest.er1 >conftest.err
27921 cat conftest.err >&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); } &&
27924 { ac_try='test -z "$ac_c_werror_flag"
27925 || test ! -s conftest.err'
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; } &&
27931 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27937 ac_cv_lib_gen_pathfind=yes
27939 echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27942 ac_cv_lib_gen_pathfind=no
27944 rm -f conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27946 LIBS=$ac_check_lib_save_LIBS
27948 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
27949 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
27950 if test $ac_cv_lib_gen_pathfind = yes; then
27951 cat >>confdefs.h <<_ACEOF
27952 #define HAVE_LIBGEN 1
27960 for ac_func in vprintf
27962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27963 echo "$as_me:$LINENO: checking for $ac_func" >&5
27964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27965 if eval "test \"\${$as_ac_var+set}\" = set"; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27968 cat >conftest.$ac_ext <<_ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27976 #define $ac_func innocuous_$ac_func
27978 /* System header to define __stub macros and hopefully few prototypes,
27979 which can conflict with char $ac_func (); below.
27980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27981 <limits.h> exists even on freestanding compilers. */
27984 # include <limits.h>
27986 # include <assert.h>
27991 /* Override any gcc2 internal prototype to avoid an error. */
27996 /* We use char because int might match the return type of a gcc2
27997 builtin and then its argument prototype would still apply. */
27999 /* The GNU C library defines this for functions which it implements
28000 to always fail with ENOSYS. Some functions are actually named
28001 something starting with __ and the normal name is an alias. */
28002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28005 char (*f) () = $ac_func;
28014 return f != $ac_func;
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28021 (eval $ac_link) 2>conftest.er1
28023 grep -v '^ *+' conftest.er1 >conftest.err
28025 cat conftest.err >&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
28028 { ac_try='test -z "$ac_c_werror_flag"
28029 || test ! -s conftest.err'
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest$ac_exeext'
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; }; then
28041 eval "$as_ac_var=yes"
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 eval "$as_ac_var=no"
28048 rm -f conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
28051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28053 if test `eval echo '${'$as_ac_var'}'` = yes; then
28054 cat >>confdefs.h <<_ACEOF
28055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28058 echo "$as_me:$LINENO: checking for _doprnt" >&5
28059 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28060 if test "${ac_cv_func__doprnt+set}" = set; then
28061 echo $ECHO_N "(cached) $ECHO_C" >&6
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28069 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28071 #define _doprnt innocuous__doprnt
28073 /* System header to define __stub macros and hopefully few prototypes,
28074 which can conflict with char _doprnt (); below.
28075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28076 <limits.h> exists even on freestanding compilers. */
28079 # include <limits.h>
28081 # include <assert.h>
28086 /* Override any gcc2 internal prototype to avoid an error. */
28091 /* We use char because int might match the return type of a gcc2
28092 builtin and then its argument prototype would still apply. */
28094 /* The GNU C library defines this for functions which it implements
28095 to always fail with ENOSYS. Some functions are actually named
28096 something starting with __ and the normal name is an alias. */
28097 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28100 char (*f) () = _doprnt;
28109 return f != _doprnt;
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28116 (eval $ac_link) 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
28123 { ac_try='test -z "$ac_c_werror_flag"
28124 || test ! -s conftest.err'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest$ac_exeext'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; }; then
28136 ac_cv_func__doprnt=yes
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28141 ac_cv_func__doprnt=no
28143 rm -f conftest.err conftest.$ac_objext \
28144 conftest$ac_exeext conftest.$ac_ext
28146 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28147 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28148 if test $ac_cv_func__doprnt = yes; then
28150 cat >>confdefs.h <<\_ACEOF
28151 #define HAVE_DOPRNT 1
28166 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
28168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 echo "$as_me:$LINENO: checking for $ac_func" >&5
28170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28171 if eval "test \"\${$as_ac_var+set}\" = set"; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28182 #define $ac_func innocuous_$ac_func
28184 /* System header to define __stub macros and hopefully few prototypes,
28185 which can conflict with char $ac_func (); below.
28186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187 <limits.h> exists even on freestanding compilers. */
28190 # include <limits.h>
28192 # include <assert.h>
28197 /* Override any gcc2 internal prototype to avoid an error. */
28202 /* We use char because int might match the return type of a gcc2
28203 builtin and then its argument prototype would still apply. */
28205 /* The GNU C library defines this for functions which it implements
28206 to always fail with ENOSYS. Some functions are actually named
28207 something starting with __ and the normal name is an alias. */
28208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28211 char (*f) () = $ac_func;
28220 return f != $ac_func;
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227 (eval $ac_link) 2>conftest.er1
28229 grep -v '^ *+' conftest.er1 >conftest.err
28231 cat conftest.err >&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
28234 { ac_try='test -z "$ac_c_werror_flag"
28235 || test ! -s conftest.err'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest$ac_exeext'
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
28247 eval "$as_ac_var=yes"
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 eval "$as_ac_var=no"
28254 rm -f conftest.err conftest.$ac_objext \
28255 conftest$ac_exeext conftest.$ac_ext
28257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28259 if test `eval echo '${'$as_ac_var'}'` = yes; then
28260 cat >>confdefs.h <<_ACEOF
28261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28267 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
28270 # end of AC_DEFUN of LIBOPTS_CHECK
28273 echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
28274 echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28290 rm -f conftest.$ac_objext
28291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28292 (eval $ac_compile) 2>conftest.er1
28294 grep -v '^ *+' conftest.er1 >conftest.err
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -z "$ac_c_werror_flag"
28300 || test ! -s conftest.err'
28301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302 (eval $ac_try) 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; } &&
28306 { ac_try='test -s conftest.$ac_objext'
28307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308 (eval $ac_try) 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; }; then
28312 ac_cv_cpp_warning=yes
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ac_cv_cpp_warning=no
28319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28320 echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
28321 echo "${ECHO_T}$ac_cv_cpp_warning" >&6
28323 case "$ac_cv_cpp_warning" in
28326 cat >>confdefs.h <<\_ACEOF
28327 #define NO_OPTION_NAME_WARNINGS 1
28330 echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
28331 echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6
28335 # Checks for libraries.
28337 # Checks for header files.
28338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28340 if test "${ac_cv_header_stdc+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349 #include <stdlib.h>
28350 #include <stdarg.h>
28351 #include <string.h>
28362 rm -f conftest.$ac_objext
28363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28364 (eval $ac_compile) 2>conftest.er1
28366 grep -v '^ *+' conftest.er1 >conftest.err
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
28371 { ac_try='test -z "$ac_c_werror_flag"
28372 || test ! -s conftest.err'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; } &&
28378 { ac_try='test -s conftest.$ac_objext'
28379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380 (eval $ac_try) 2>&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 ac_cv_header_stdc=yes
28386 echo "$as_me: failed program was:" >&5
28387 sed 's/^/| /' conftest.$ac_ext >&5
28389 ac_cv_header_stdc=no
28391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28393 if test $ac_cv_header_stdc = yes; then
28394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28395 cat >conftest.$ac_ext <<_ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28401 #include <string.h>
28404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28405 $EGREP "memchr" >/dev/null 2>&1; then
28408 ac_cv_header_stdc=no
28414 if test $ac_cv_header_stdc = yes; then
28415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28422 #include <stdlib.h>
28425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28426 $EGREP "free" >/dev/null 2>&1; then
28429 ac_cv_header_stdc=no
28435 if test $ac_cv_header_stdc = yes; then
28436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28437 if test "$cross_compiling" = yes; then
28440 cat >conftest.$ac_ext <<_ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28447 #if ((' ' & 0x0FF) == 0x020)
28448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28451 # define ISLOWER(c) \
28452 (('a' <= (c) && (c) <= 'i') \
28453 || ('j' <= (c) && (c) <= 'r') \
28454 || ('s' <= (c) && (c) <= 'z'))
28455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28463 for (i = 0; i < 256; i++)
28464 if (XOR (islower (i), ISLOWER (i))
28465 || toupper (i) != TOUPPER (i))
28470 rm -f conftest$ac_exeext
28471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28472 (eval $ac_link) 2>&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 (eval $ac_try) 2>&5
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28483 echo "$as_me: program exited with status $ac_status" >&5
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28487 ( exit $ac_status )
28488 ac_cv_header_stdc=no
28490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
28496 if test $ac_cv_header_stdc = yes; then
28498 cat >>confdefs.h <<\_ACEOF
28499 #define STDC_HEADERS 1
28516 for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
28518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28520 echo "$as_me:$LINENO: checking for $ac_header" >&5
28521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28528 # Is the header compilable?
28529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28531 cat >conftest.$ac_ext <<_ACEOF
28534 cat confdefs.h >>conftest.$ac_ext
28535 cat >>conftest.$ac_ext <<_ACEOF
28536 /* end confdefs.h. */
28537 $ac_includes_default
28538 #include <$ac_header>
28540 rm -f conftest.$ac_objext
28541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28542 (eval $ac_compile) 2>conftest.er1
28544 grep -v '^ *+' conftest.er1 >conftest.err
28546 cat conftest.err >&5
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); } &&
28549 { ac_try='test -z "$ac_c_werror_flag"
28550 || test ! -s conftest.err'
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; } &&
28556 { ac_try='test -s conftest.$ac_objext'
28557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558 (eval $ac_try) 2>&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; }; then
28562 ac_header_compiler=yes
28564 echo "$as_me: failed program was:" >&5
28565 sed 's/^/| /' conftest.$ac_ext >&5
28567 ac_header_compiler=no
28569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28571 echo "${ECHO_T}$ac_header_compiler" >&6
28573 # Is the header present?
28574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28576 cat >conftest.$ac_ext <<_ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28582 #include <$ac_header>
28584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28587 grep -v '^ *+' conftest.er1 >conftest.err
28589 cat conftest.err >&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); } >/dev/null; then
28592 if test -s conftest.err; then
28593 ac_cpp_err=$ac_c_preproc_warn_flag
28594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28601 if test -z "$ac_cpp_err"; then
28602 ac_header_preproc=yes
28604 echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28607 ac_header_preproc=no
28609 rm -f conftest.err conftest.$ac_ext
28610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28611 echo "${ECHO_T}$ac_header_preproc" >&6
28613 # So? What about this header?
28614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28620 ac_header_preproc=yes
28623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28637 ## ------------------------------------------ ##
28638 ## Report this to the AC_PACKAGE_NAME lists. ##
28639 ## ------------------------------------------ ##
28642 sed "s/^/$as_me: WARNING: /" >&2
28645 echo "$as_me:$LINENO: checking for $ac_header" >&5
28646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28650 eval "$as_ac_Header=\$ac_header_preproc"
28652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28657 cat >>confdefs.h <<_ACEOF
28658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28666 # Checks for typedefs, structures, and compiler characteristics.
28667 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28668 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28669 if test "${ac_cv_c_const+set}" = set; then
28670 echo $ECHO_N "(cached) $ECHO_C" >&6
28672 cat >conftest.$ac_ext <<_ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h. */
28682 /* FIXME: Include the comments suggested by Paul. */
28683 #ifndef __cplusplus
28684 /* Ultrix mips cc rejects this. */
28685 typedef int charset[2];
28687 /* SunOS 4.1.1 cc rejects this. */
28688 char const *const *ccp;
28690 /* NEC SVR4.0.2 mips cc rejects this. */
28691 struct point {int x, y;};
28692 static struct point const zero = {0,0};
28693 /* AIX XL C 1.02.0.0 rejects this.
28694 It does not let you subtract one const X* pointer from another in
28695 an arm of an if-expression whose if-part is not a constant
28697 const char *g = "string";
28698 ccp = &g + (g ? g-g : 0);
28699 /* HPUX 7.0 cc rejects these. */
28702 ccp = (char const *const *) p;
28703 { /* SCO 3.2v4 cc rejects this. */
28705 char const *s = 0 ? (char *) 0 : (char const *) 0;
28709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28710 int x[] = {25, 17};
28711 const int *foo = &x[0];
28714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28715 typedef const int *iptr;
28719 { /* AIX XL C 1.02.0.0 rejects this saying
28720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28721 struct s { int j; const int *ap[3]; };
28722 struct s *b; b->j = 5;
28724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28725 const int foo = 10;
28733 rm -f conftest.$ac_objext
28734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28735 (eval $ac_compile) 2>conftest.er1
28737 grep -v '^ *+' conftest.er1 >conftest.err
28739 cat conftest.err >&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
28742 { ac_try='test -z "$ac_c_werror_flag"
28743 || test ! -s conftest.err'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; } &&
28749 { ac_try='test -s conftest.$ac_objext'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28764 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28765 echo "${ECHO_T}$ac_cv_c_const" >&6
28766 if test $ac_cv_c_const = no; then
28768 cat >>confdefs.h <<\_ACEOF
28774 echo "$as_me:$LINENO: checking for size_t" >&5
28775 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28776 if test "${ac_cv_type_size_t+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 cat >conftest.$ac_ext <<_ACEOF
28782 cat confdefs.h >>conftest.$ac_ext
28783 cat >>conftest.$ac_ext <<_ACEOF
28784 /* end confdefs.h. */
28785 $ac_includes_default
28791 if (sizeof (size_t))
28797 rm -f conftest.$ac_objext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28799 (eval $ac_compile) 2>conftest.er1
28801 grep -v '^ *+' conftest.er1 >conftest.err
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } &&
28806 { ac_try='test -z "$ac_c_werror_flag"
28807 || test ! -s conftest.err'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; } &&
28813 { ac_try='test -s conftest.$ac_objext'
28814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 (eval $ac_try) 2>&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); }; }; then
28819 ac_cv_type_size_t=yes
28821 echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28824 ac_cv_type_size_t=no
28826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28828 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28829 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28830 if test $ac_cv_type_size_t = yes; then
28834 cat >>confdefs.h <<_ACEOF
28835 #define size_t unsigned
28840 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28841 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28842 if test "${ac_cv_header_time+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 cat >conftest.$ac_ext <<_ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28851 #include <sys/types.h>
28852 #include <sys/time.h>
28858 if ((struct tm *) 0)
28864 rm -f conftest.$ac_objext
28865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28866 (eval $ac_compile) 2>conftest.er1
28868 grep -v '^ *+' conftest.er1 >conftest.err
28870 cat conftest.err >&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
28873 { ac_try='test -z "$ac_c_werror_flag"
28874 || test ! -s conftest.err'
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_cv_header_time=yes
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 ac_cv_header_time=no
28893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28896 echo "${ECHO_T}$ac_cv_header_time" >&6
28897 if test $ac_cv_header_time = yes; then
28899 cat >>confdefs.h <<\_ACEOF
28900 #define TIME_WITH_SYS_TIME 1
28905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
28907 if test "${ac_cv_struct_tm+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 cat >conftest.$ac_ext <<_ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h. */
28916 #include <sys/types.h>
28922 struct tm *tp; tp->tm_sec;
28927 rm -f conftest.$ac_objext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28929 (eval $ac_compile) 2>conftest.er1
28931 grep -v '^ *+' conftest.er1 >conftest.err
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag"
28937 || test ! -s conftest.err'
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; } &&
28943 { ac_try='test -s conftest.$ac_objext'
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; }; then
28949 ac_cv_struct_tm=time.h
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28954 ac_cv_struct_tm=sys/time.h
28956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28958 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28959 echo "${ECHO_T}$ac_cv_struct_tm" >&6
28960 if test $ac_cv_struct_tm = sys/time.h; then
28962 cat >>confdefs.h <<\_ACEOF
28963 #define TM_IN_SYS_TIME 1
28969 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
28970 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
28971 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 cat >conftest.$ac_ext <<_ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h. */
28982 #include <sys/types.h>
28983 #include <sys/socket.h>
28988 struct sockaddr_storage s; s.ss_family = 1;
28993 rm -f conftest.$ac_objext
28994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995 (eval $ac_compile) 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_c_werror_flag"
29003 || test ! -s conftest.err'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_have_ss_family_in_struct_ss="yes"
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_cv_have_ss_family_in_struct_ss="no"
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29025 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
29026 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
29027 case "$ac_cv_have_ss_family_in_struct_ss" in
29030 cat >>confdefs.h <<\_ACEOF
29031 #define HAVE_SS_FAMILY_IN_SS 1
29037 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
29038 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
29039 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
29040 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 cat >conftest.$ac_ext <<_ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h. */
29050 #include <sys/types.h>
29051 #include <sys/socket.h>
29056 struct sockaddr_storage s; s.__ss_family = 1;
29061 rm -f conftest.$ac_objext
29062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29063 (eval $ac_compile) 2>conftest.er1
29065 grep -v '^ *+' conftest.er1 >conftest.err
29067 cat conftest.err >&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
29070 { ac_try='test -z "$ac_c_werror_flag"
29071 || test ! -s conftest.err'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; } &&
29077 { ac_try='test -s conftest.$ac_objext'
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; }; then
29083 ac_cv_have___ss_family_in_struct_ss="yes"
29085 echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29088 ac_cv_have___ss_family_in_struct_ss="no"
29091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29094 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
29095 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
29096 case "$ac_cv_have___ss_family_in_struct_ss" in
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE___SS_FAMILY_IN_SS 1
29106 case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
29109 cat >>confdefs.h <<_ACEOF
29110 #define ss_family __ss_family
29114 cat >>confdefs.h <<_ACEOF
29115 #define ss_len __ss_len
29121 # Checks for library functions.
29122 echo "$as_me:$LINENO: checking for working memcmp" >&5
29123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
29124 if test "${ac_cv_func_memcmp_working+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 if test "$cross_compiling" = yes; then
29128 ac_cv_func_memcmp_working=no
29130 cat >conftest.$ac_ext <<_ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 $ac_includes_default
29141 /* Some versions of memcmp are not 8-bit clean. */
29142 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
29143 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29146 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29147 or more and with at least one buffer not starting on a 4-byte boundary.
29148 William Lewis provided this test program. */
29153 for (i = 0; i < 4; i++)
29157 strcpy (a, "--------01111111");
29158 strcpy (b, "--------10000000");
29159 if (memcmp (a, b, 16) >= 0)
29169 rm -f conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171 (eval $ac_link) 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_func_memcmp_working=yes
29182 echo "$as_me: program exited with status $ac_status" >&5
29183 echo "$as_me: failed program was:" >&5
29184 sed 's/^/| /' conftest.$ac_ext >&5
29186 ( exit $ac_status )
29187 ac_cv_func_memcmp_working=no
29189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29192 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29193 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
29194 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
29195 "memcmp.$ac_objext" | \
29196 *" memcmp.$ac_objext" | \
29197 "memcmp.$ac_objext "* | \
29198 *" memcmp.$ac_objext "* ) ;;
29199 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
29203 echo "$as_me:$LINENO: checking for function prototypes" >&5
29204 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
29205 if test "$ac_cv_prog_cc_stdc" != no; then
29206 echo "$as_me:$LINENO: result: yes" >&5
29207 echo "${ECHO_T}yes" >&6
29209 cat >>confdefs.h <<\_ACEOF
29210 #define PROTOTYPES 1
29214 cat >>confdefs.h <<\_ACEOF
29215 #define __PROTOTYPES 1
29219 echo "$as_me:$LINENO: result: no" >&5
29220 echo "${ECHO_T}no" >&6
29223 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
29224 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
29225 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 ac_cv_func_setvbuf_reversed=no
29229 cat >conftest.$ac_ext <<_ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29237 int (setvbuf) (FILE *, int, char *, size_t);
29242 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249 (eval $ac_link) 2>conftest.er1
29251 grep -v '^ *+' conftest.er1 >conftest.err
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
29256 { ac_try='test -z "$ac_c_werror_flag"
29257 || test ! -s conftest.err'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest$ac_exeext'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; }; then
29269 cat >conftest.$ac_ext <<_ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h. */
29277 int (setvbuf) (FILE *, int, char *, size_t);
29282 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29289 (eval $ac_link) 2>conftest.er1
29291 grep -v '^ *+' conftest.er1 >conftest.err
29293 cat conftest.err >&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
29296 { ac_try='test -z "$ac_c_werror_flag"
29297 || test ! -s conftest.err'
29298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29299 (eval $ac_try) 2>&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); }; } &&
29303 { ac_try='test -s conftest$ac_exeext'
29304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305 (eval $ac_try) 2>&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; }; then
29309 # It compiles and links either way, so it must not be declared
29310 # with a prototype and most likely this is a K&R C compiler.
29312 if test "$cross_compiling" = yes; then
29313 : # Assume setvbuf is not reversed when cross-compiling.
29315 cat >conftest.$ac_ext <<_ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h. */
29325 /* This call has the arguments reversed.
29326 A reversed system may check and see that the address of buf
29327 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
29329 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
29332 exit (0); /* Non-reversed systems SEGV here. */
29337 rm -f conftest$ac_exeext
29338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29339 (eval $ac_link) 2>&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 ac_cv_func_setvbuf_reversed=yes
29350 echo "$as_me: program exited with status $ac_status" >&5
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29354 ( exit $ac_status )
29357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29359 ac_cv_func_setvbuf_reversed=yes
29361 echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29365 rm -f conftest.err conftest.$ac_objext \
29366 conftest$ac_exeext conftest.$ac_ext
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29372 rm -f conftest.err conftest.$ac_objext \
29373 conftest$ac_exeext conftest.$ac_ext
29375 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
29376 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
29377 if test $ac_cv_func_setvbuf_reversed = yes; then
29379 cat >>confdefs.h <<\_ACEOF
29380 #define SETVBUF_REVERSED 1
29385 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29386 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29387 if test "${ac_cv_type_signal+set}" = set; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29396 #include <sys/types.h>
29397 #include <signal.h>
29402 extern "C" void (*signal (int, void (*)(int)))(int);
29404 void (*signal ()) ();
29415 rm -f conftest.$ac_objext
29416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29417 (eval $ac_compile) 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag"
29425 || test ! -s conftest.err'
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; } &&
29431 { ac_try='test -s conftest.$ac_objext'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 ac_cv_type_signal=void
29439 echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29442 ac_cv_type_signal=int
29444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29446 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29447 echo "${ECHO_T}$ac_cv_type_signal" >&6
29449 cat >>confdefs.h <<_ACEOF
29450 #define RETSIGTYPE $ac_cv_type_signal
29455 for ac_func in alarm
29457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29458 echo "$as_me:$LINENO: checking for $ac_func" >&5
29459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29460 if eval "test \"\${$as_ac_var+set}\" = set"; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29471 #define $ac_func innocuous_$ac_func
29473 /* System header to define __stub macros and hopefully few prototypes,
29474 which can conflict with char $ac_func (); below.
29475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29476 <limits.h> exists even on freestanding compilers. */
29479 # include <limits.h>
29481 # include <assert.h>
29486 /* Override any gcc2 internal prototype to avoid an error. */
29491 /* We use char because int might match the return type of a gcc2
29492 builtin and then its argument prototype would still apply. */
29494 /* The GNU C library defines this for functions which it implements
29495 to always fail with ENOSYS. Some functions are actually named
29496 something starting with __ and the normal name is an alias. */
29497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29500 char (*f) () = $ac_func;
29509 return f != $ac_func;
29514 rm -f conftest.$ac_objext conftest$ac_exeext
29515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516 (eval $ac_link) 2>conftest.er1
29518 grep -v '^ *+' conftest.er1 >conftest.err
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } &&
29523 { ac_try='test -z "$ac_c_werror_flag"
29524 || test ! -s conftest.err'
29525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526 (eval $ac_try) 2>&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; } &&
29530 { ac_try='test -s conftest$ac_exeext'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; }; then
29536 eval "$as_ac_var=yes"
29538 echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29541 eval "$as_ac_var=no"
29543 rm -f conftest.err conftest.$ac_objext \
29544 conftest$ac_exeext conftest.$ac_ext
29546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29548 if test `eval echo '${'$as_ac_var'}'` = yes; then
29549 cat >>confdefs.h <<_ACEOF
29550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29556 echo "$as_me:$LINENO: checking for gethostent" >&5
29557 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
29558 if test "${ac_cv_func_gethostent+set}" = set; then
29559 echo $ECHO_N "(cached) $ECHO_C" >&6
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
29568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29569 #define gethostent innocuous_gethostent
29571 /* System header to define __stub macros and hopefully few prototypes,
29572 which can conflict with char gethostent (); below.
29573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29574 <limits.h> exists even on freestanding compilers. */
29577 # include <limits.h>
29579 # include <assert.h>
29584 /* Override any gcc2 internal prototype to avoid an error. */
29589 /* We use char because int might match the return type of a gcc2
29590 builtin and then its argument prototype would still apply. */
29591 char gethostent ();
29592 /* The GNU C library defines this for functions which it implements
29593 to always fail with ENOSYS. Some functions are actually named
29594 something starting with __ and the normal name is an alias. */
29595 #if defined (__stub_gethostent) || defined (__stub___gethostent)
29598 char (*f) () = gethostent;
29607 return f != gethostent;
29612 rm -f conftest.$ac_objext conftest$ac_exeext
29613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29614 (eval $ac_link) 2>conftest.er1
29616 grep -v '^ *+' conftest.er1 >conftest.err
29618 cat conftest.err >&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } &&
29621 { ac_try='test -z "$ac_c_werror_flag"
29622 || test ! -s conftest.err'
29623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624 (eval $ac_try) 2>&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; } &&
29628 { ac_try='test -s conftest$ac_exeext'
29629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630 (eval $ac_try) 2>&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); }; }; then
29634 ac_cv_func_gethostent=yes
29636 echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29639 ac_cv_func_gethostent=no
29641 rm -f conftest.err conftest.$ac_objext \
29642 conftest$ac_exeext conftest.$ac_ext
29644 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
29645 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
29646 if test $ac_cv_func_gethostent = yes; then
29650 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
29651 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
29652 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
29653 echo $ECHO_N "(cached) $ECHO_C" >&6
29655 ac_check_lib_save_LIBS=$LIBS
29656 LIBS="-lnsl -lsocket $LIBS"
29657 cat >conftest.$ac_ext <<_ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h. */
29664 /* Override any gcc2 internal prototype to avoid an error. */
29668 /* We use char because int might match the return type of a gcc2
29669 builtin and then its argument prototype would still apply. */
29670 char gethostent ();
29679 rm -f conftest.$ac_objext conftest$ac_exeext
29680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29681 (eval $ac_link) 2>conftest.er1
29683 grep -v '^ *+' conftest.er1 >conftest.err
29685 cat conftest.err >&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } &&
29688 { ac_try='test -z "$ac_c_werror_flag"
29689 || test ! -s conftest.err'
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; } &&
29695 { ac_try='test -s conftest$ac_exeext'
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 ac_cv_lib_nsl_gethostent=yes
29703 echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.$ac_ext >&5
29706 ac_cv_lib_nsl_gethostent=no
29708 rm -f conftest.err conftest.$ac_objext \
29709 conftest$ac_exeext conftest.$ac_ext
29710 LIBS=$ac_check_lib_save_LIBS
29712 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
29713 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
29714 if test $ac_cv_lib_nsl_gethostent = yes; then
29715 cat >>confdefs.h <<_ACEOF
29716 #define HAVE_LIBNSL 1
29728 for ac_func in gettimeofday inet_ntoa memset
29730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29731 echo "$as_me:$LINENO: checking for $ac_func" >&5
29732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29733 if eval "test \"\${$as_ac_var+set}\" = set"; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29736 cat >conftest.$ac_ext <<_ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29744 #define $ac_func innocuous_$ac_func
29746 /* System header to define __stub macros and hopefully few prototypes,
29747 which can conflict with char $ac_func (); below.
29748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29749 <limits.h> exists even on freestanding compilers. */
29752 # include <limits.h>
29754 # include <assert.h>
29759 /* Override any gcc2 internal prototype to avoid an error. */
29764 /* We use char because int might match the return type of a gcc2
29765 builtin and then its argument prototype would still apply. */
29767 /* The GNU C library defines this for functions which it implements
29768 to always fail with ENOSYS. Some functions are actually named
29769 something starting with __ and the normal name is an alias. */
29770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29773 char (*f) () = $ac_func;
29782 return f != $ac_func;
29787 rm -f conftest.$ac_objext conftest$ac_exeext
29788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29789 (eval $ac_link) 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } &&
29796 { ac_try='test -z "$ac_c_werror_flag"
29797 || test ! -s conftest.err'
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest$ac_exeext'
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; }; then
29809 eval "$as_ac_var=yes"
29811 echo "$as_me: failed program was:" >&5
29812 sed 's/^/| /' conftest.$ac_ext >&5
29814 eval "$as_ac_var=no"
29816 rm -f conftest.err conftest.$ac_objext \
29817 conftest$ac_exeext conftest.$ac_ext
29819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29821 if test `eval echo '${'$as_ac_var'}'` = yes; then
29822 cat >>confdefs.h <<_ACEOF
29823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29830 for ac_func in socket
29832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833 echo "$as_me:$LINENO: checking for $ac_func" >&5
29834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29835 if eval "test \"\${$as_ac_var+set}\" = set"; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29838 cat >conftest.$ac_ext <<_ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h. */
29844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29846 #define $ac_func innocuous_$ac_func
29848 /* System header to define __stub macros and hopefully few prototypes,
29849 which can conflict with char $ac_func (); below.
29850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29851 <limits.h> exists even on freestanding compilers. */
29854 # include <limits.h>
29856 # include <assert.h>
29861 /* Override any gcc2 internal prototype to avoid an error. */
29866 /* We use char because int might match the return type of a gcc2
29867 builtin and then its argument prototype would still apply. */
29869 /* The GNU C library defines this for functions which it implements
29870 to always fail with ENOSYS. Some functions are actually named
29871 something starting with __ and the normal name is an alias. */
29872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29875 char (*f) () = $ac_func;
29884 return f != $ac_func;
29889 rm -f conftest.$ac_objext conftest$ac_exeext
29890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29891 (eval $ac_link) 2>conftest.er1
29893 grep -v '^ *+' conftest.er1 >conftest.err
29895 cat conftest.err >&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } &&
29898 { ac_try='test -z "$ac_c_werror_flag"
29899 || test ! -s conftest.err'
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest$ac_exeext'
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
29911 eval "$as_ac_var=yes"
29913 echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29916 eval "$as_ac_var=no"
29918 rm -f conftest.err conftest.$ac_objext \
29919 conftest$ac_exeext conftest.$ac_ext
29921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29923 if test `eval echo '${'$as_ac_var'}'` = yes; then
29924 cat >>confdefs.h <<_ACEOF
29925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29930 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
29931 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
29932 if test "${ac_cv_lib_socket_socket+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29935 ac_check_lib_save_LIBS=$LIBS
29936 LIBS="-lsocket $LIBS"
29937 cat >conftest.$ac_ext <<_ACEOF
29940 cat confdefs.h >>conftest.$ac_ext
29941 cat >>conftest.$ac_ext <<_ACEOF
29942 /* end confdefs.h. */
29944 /* Override any gcc2 internal prototype to avoid an error. */
29948 /* We use char because int might match the return type of a gcc2
29949 builtin and then its argument prototype would still apply. */
29959 rm -f conftest.$ac_objext conftest$ac_exeext
29960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29961 (eval $ac_link) 2>conftest.er1
29963 grep -v '^ *+' conftest.er1 >conftest.err
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
29968 { ac_try='test -z "$ac_c_werror_flag"
29969 || test ! -s conftest.err'
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; } &&
29975 { ac_try='test -s conftest$ac_exeext'
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 ac_cv_lib_socket_socket=yes
29983 echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29986 ac_cv_lib_socket_socket=no
29988 rm -f conftest.err conftest.$ac_objext \
29989 conftest$ac_exeext conftest.$ac_ext
29990 LIBS=$ac_check_lib_save_LIBS
29992 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
29993 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
29994 if test $ac_cv_lib_socket_socket = yes; then
29995 cat >>confdefs.h <<_ACEOF
29996 #define HAVE_LIBSOCKET 1
29999 LIBS="-lsocket $LIBS"
30007 for ac_func in sqrt
30009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30010 echo "$as_me:$LINENO: checking for $ac_func" >&5
30011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30012 if eval "test \"\${$as_ac_var+set}\" = set"; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30015 cat >conftest.$ac_ext <<_ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h. */
30021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30023 #define $ac_func innocuous_$ac_func
30025 /* System header to define __stub macros and hopefully few prototypes,
30026 which can conflict with char $ac_func (); below.
30027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028 <limits.h> exists even on freestanding compilers. */
30031 # include <limits.h>
30033 # include <assert.h>
30038 /* Override any gcc2 internal prototype to avoid an error. */
30043 /* We use char because int might match the return type of a gcc2
30044 builtin and then its argument prototype would still apply. */
30046 /* The GNU C library defines this for functions which it implements
30047 to always fail with ENOSYS. Some functions are actually named
30048 something starting with __ and the normal name is an alias. */
30049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30052 char (*f) () = $ac_func;
30061 return f != $ac_func;
30066 rm -f conftest.$ac_objext conftest$ac_exeext
30067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30068 (eval $ac_link) 2>conftest.er1
30070 grep -v '^ *+' conftest.er1 >conftest.err
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); } &&
30075 { ac_try='test -z "$ac_c_werror_flag"
30076 || test ! -s conftest.err'
30077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078 (eval $ac_try) 2>&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest$ac_exeext'
30083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084 (eval $ac_try) 2>&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; }; then
30088 eval "$as_ac_var=yes"
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 eval "$as_ac_var=no"
30095 rm -f conftest.err conftest.$ac_objext \
30096 conftest$ac_exeext conftest.$ac_ext
30098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30100 if test `eval echo '${'$as_ac_var'}'` = yes; then
30101 cat >>confdefs.h <<_ACEOF
30102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30107 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
30108 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
30109 if test "${ac_cv_lib_m_sqrt+set}" = set; then
30110 echo $ECHO_N "(cached) $ECHO_C" >&6
30112 ac_check_lib_save_LIBS=$LIBS
30114 cat >conftest.$ac_ext <<_ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h. */
30121 /* Override any gcc2 internal prototype to avoid an error. */
30125 /* We use char because int might match the return type of a gcc2
30126 builtin and then its argument prototype would still apply. */
30136 rm -f conftest.$ac_objext conftest$ac_exeext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138 (eval $ac_link) 2>conftest.er1
30140 grep -v '^ *+' conftest.er1 >conftest.err
30142 cat conftest.err >&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } &&
30145 { ac_try='test -z "$ac_c_werror_flag"
30146 || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest$ac_exeext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_cv_lib_m_sqrt=yes
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30163 ac_cv_lib_m_sqrt=no
30165 rm -f conftest.err conftest.$ac_objext \
30166 conftest$ac_exeext conftest.$ac_ext
30167 LIBS=$ac_check_lib_save_LIBS
30169 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
30170 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
30171 if test $ac_cv_lib_m_sqrt = yes; then
30172 cat >>confdefs.h <<_ACEOF
30173 #define HAVE_LIBM 1
30184 for ac_func in strrchr
30186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30187 echo "$as_me:$LINENO: checking for $ac_func" >&5
30188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_var+set}\" = set"; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 cat >conftest.$ac_ext <<_ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30200 #define $ac_func innocuous_$ac_func
30202 /* System header to define __stub macros and hopefully few prototypes,
30203 which can conflict with char $ac_func (); below.
30204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30205 <limits.h> exists even on freestanding compilers. */
30208 # include <limits.h>
30210 # include <assert.h>
30215 /* Override any gcc2 internal prototype to avoid an error. */
30220 /* We use char because int might match the return type of a gcc2
30221 builtin and then its argument prototype would still apply. */
30223 /* The GNU C library defines this for functions which it implements
30224 to always fail with ENOSYS. Some functions are actually named
30225 something starting with __ and the normal name is an alias. */
30226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30229 char (*f) () = $ac_func;
30238 return f != $ac_func;
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30245 (eval $ac_link) 2>conftest.er1
30247 grep -v '^ *+' conftest.er1 >conftest.err
30249 cat conftest.err >&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); } &&
30252 { ac_try='test -z "$ac_c_werror_flag"
30253 || test ! -s conftest.err'
30254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255 (eval $ac_try) 2>&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); }; } &&
30259 { ac_try='test -s conftest$ac_exeext'
30260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30261 (eval $ac_try) 2>&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); }; }; then
30265 eval "$as_ac_var=yes"
30267 echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30270 eval "$as_ac_var=no"
30272 rm -f conftest.err conftest.$ac_objext \
30273 conftest$ac_exeext conftest.$ac_ext
30275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30277 if test `eval echo '${'$as_ac_var'}'` = yes; then
30278 cat >>confdefs.h <<_ACEOF
30279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
30291 *) CFLAGS="$CFLAGS -Wp,-H18816"
30296 CFLAGS="$CFLAGS -DADJTIME_MISSING"
30299 CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
30303 echo "$as_me:$LINENO: checking for bin subdirectory" >&5
30304 echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
30306 # Check whether --with-binsubdir or --without-binsubdir was given.
30307 if test "${with_binsubdir+set}" = set; then
30308 withval="$with_binsubdir"
30309 use_binsubdir="$withval"
30311 use_binsubdir="bin"
30314 case "$use_binsubdir" in
30320 { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
30321 echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
30322 { (exit 1); exit 1; }; }
30325 echo "$as_me:$LINENO: result: $use_binsubdir" >&5
30326 echo "${ECHO_T}$use_binsubdir" >&6
30327 BINSUBDIR=$use_binsubdir
30330 ac_config_files="$ac_config_files Makefile"
30332 cat >confcache <<\_ACEOF
30333 # This file is a shell script that caches the results of configure
30334 # tests run on this system so they can be shared between configure
30335 # scripts and configure runs, see configure's option --config-cache.
30336 # It is not useful on other systems. If it contains results you don't
30337 # want to keep, you may remove or edit it.
30339 # config.status only pays attention to the cache file if you give it
30340 # the --recheck option to rerun configure.
30342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30344 # following values.
30348 # The following way of writing the cache mishandles newlines in values,
30349 # but we know of no workaround that is simple, portable, and efficient.
30350 # So, don't put newlines in cache variables' values.
30351 # Ultrix sh set writes to stderr and can't be redirected directly,
30352 # and sets the high bit in the cache file unless we assign to the vars.
30355 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30357 # `set' does not quote correctly, so add quotes (double-quote
30358 # substitution turns \\\\ into \\, and sed turns \\ into \).
30361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30364 # `set' quotes correctly as required by POSIX, so do not add quotes.
30366 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30375 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30377 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30378 if test -w $cache_file; then
30379 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30380 cat confcache >$cache_file
30382 echo "not updating unwritable cache $cache_file"
30387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30388 # Let make expand exec_prefix.
30389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30393 # trailing colons and then remove the whole line if VPATH becomes empty
30394 # (actually we leave an empty line to preserve line numbers).
30395 if test "x$srcdir" = x.; then
30396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30397 s/:*\$(srcdir):*/:/;
30398 s/:*\${srcdir}:*/:/;
30400 s/^\([^=]*=[ ]*\):*/\1/;
30406 DEFS=-DHAVE_CONFIG_H
30410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30411 # 1. Remove the extension, and $U if already installed.
30412 ac_i=`echo "$ac_i" |
30413 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30415 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30416 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30418 LIBOBJS=$ac_libobjs
30420 LTLIBOBJS=$ac_ltlibobjs
30423 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30424 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&5
30426 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30427 Usually this means the macro was only invoked conditionally." >&2;}
30428 { (exit 1); exit 1; }; }
30430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30431 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30432 Usually this means the macro was only invoked conditionally." >&5
30433 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30434 Usually this means the macro was only invoked conditionally." >&2;}
30435 { (exit 1); exit 1; }; }
30437 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30438 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30439 Usually this means the macro was only invoked conditionally." >&5
30440 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30441 Usually this means the macro was only invoked conditionally." >&2;}
30442 { (exit 1); exit 1; }; }
30444 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30445 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30446 Usually this means the macro was only invoked conditionally." >&5
30447 echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30448 Usually this means the macro was only invoked conditionally." >&2;}
30449 { (exit 1); exit 1; }; }
30451 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30452 { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
30453 Usually this means the macro was only invoked conditionally." >&5
30454 echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
30455 Usually this means the macro was only invoked conditionally." >&2;}
30456 { (exit 1); exit 1; }; }
30459 : ${CONFIG_STATUS=./config.status}
30460 ac_clean_files_save=$ac_clean_files
30461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30464 cat >$CONFIG_STATUS <<_ACEOF
30466 # Generated by $as_me.
30467 # Run this file to recreate the current configuration.
30468 # Compiler output produced by configure, useful for debugging
30469 # configure, is in config.log if it exists.
30472 ac_cs_recheck=false
30474 SHELL=\${CONFIG_SHELL-$SHELL}
30477 cat >>$CONFIG_STATUS <<\_ACEOF
30478 ## --------------------- ##
30479 ## M4sh Initialization. ##
30480 ## --------------------- ##
30482 # Be Bourne compatible
30483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30486 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30487 # is contrary to our usage. Disable this feature.
30488 alias -g '${1+"$@"}'='"$@"'
30489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30492 DUALCASE=1; export DUALCASE # for MKS sh
30494 # Support unset when possible.
30495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30502 # Work around bugs in pre-3.0 UWIN ksh.
30503 $as_unset ENV MAIL MAILPATH
30510 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30511 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30512 LC_TELEPHONE LC_TIME
30514 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30515 eval $as_var=C; export $as_var
30521 # Required to use basename.
30522 if expr a : '\(a\)' >/dev/null 2>&1; then
30528 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30529 as_basename=basename
30535 # Name of the executable.
30536 as_me=`$as_basename "$0" ||
30537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30538 X"$0" : 'X\(//\)$' \| \
30539 X"$0" : 'X\(/\)$' \| \
30540 . : '\(.\)' 2>/dev/null ||
30542 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30543 /^X\/\(\/\/\)$/{ s//\1/; q; }
30544 /^X\/\(\/\).*/{ s//\1/; q; }
30548 # PATH needs CR, and LINENO needs CR and PATH.
30549 # Avoid depending upon Character Ranges.
30550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30553 as_cr_digits='0123456789'
30554 as_cr_alnum=$as_cr_Letters$as_cr_digits
30556 # The user is always right.
30557 if test "${PATH_SEPARATOR+set}" != set; then
30558 echo "#! /bin/sh" >conf$$.sh
30559 echo "exit 0" >>conf$$.sh
30561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30570 as_lineno_1=$LINENO
30571 as_lineno_2=$LINENO
30572 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30573 test "x$as_lineno_1" != "x$as_lineno_2" &&
30574 test "x$as_lineno_3" = "x$as_lineno_2" || {
30575 # Find who we are. Look in the path if we contain no path at all
30578 *[\\/]* ) as_myself=$0 ;;
30579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30583 test -z "$as_dir" && as_dir=.
30584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30589 # We did not find ourselves, most probably we were run as `sh COMMAND'
30590 # in which case we are not to be found in the path.
30591 if test "x$as_myself" = x; then
30594 if test ! -f "$as_myself"; then
30595 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30596 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30597 { (exit 1); exit 1; }; }
30599 case $CONFIG_SHELL in
30601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30605 test -z "$as_dir" && as_dir=.
30606 for as_base in sh bash ksh sh5; do
30609 if ("$as_dir/$as_base" -c '
30610 as_lineno_1=$LINENO
30611 as_lineno_2=$LINENO
30612 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30613 test "x$as_lineno_1" != "x$as_lineno_2" &&
30614 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30615 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30616 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30617 CONFIG_SHELL=$as_dir/$as_base
30618 export CONFIG_SHELL
30619 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30628 # uniformly replaced by the line number. The first 'sed' inserts a
30629 # line-number line before each line; the second 'sed' does the real
30630 # work. The second script uses 'N' to pair each line-number line
30631 # with the numbered line, and appends trailing '-' during
30632 # substitution so that $LINENO is not a special case at line end.
30633 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30634 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30635 sed '=' <$as_myself |
30640 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30643 s,^['$as_cr_digits']*\n,,
30644 ' >$as_me.lineno &&
30645 chmod +x $as_me.lineno ||
30646 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30647 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30648 { (exit 1); exit 1; }; }
30650 # Don't try to exec as it changes $[0], causing all sort of problems
30651 # (the dirname of $[0] is not the place where we might find the
30652 # original and so on. Autoconf is especially sensible to this).
30654 # Exit status is that of the last command.
30659 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30660 *c*,-n*) ECHO_N= ECHO_C='
30662 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30663 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30666 if expr a : '\(a\)' >/dev/null 2>&1; then
30672 rm -f conf$$ conf$$.exe conf$$.file
30674 if ln -s conf$$.file conf$$ 2>/dev/null; then
30675 # We could just check for DJGPP; but this test a) works b) is more generic
30676 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30677 if test -f conf$$.exe; then
30678 # Don't use ln at all; we don't have any links
30683 elif ln conf$$.file conf$$ 2>/dev/null; then
30688 rm -f conf$$ conf$$.exe conf$$.file
30690 if mkdir -p . 2>/dev/null; then
30693 test -d ./-p && rmdir ./-p
30697 as_executable_p="test -f"
30699 # Sed expression to map a string onto a valid CPP name.
30700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30702 # Sed expression to map a string onto a valid variable name.
30703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30707 # We need space, tab and new line, in precisely that order.
30717 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30718 # report actual input values of CONFIG_FILES etc. instead of their
30719 # values after options handling. Logging --version etc. is OK.
30723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30724 ## Running $as_me. ##
30729 This file was extended by $as_me, which was
30730 generated by GNU Autoconf 2.59. Invocation command line was
30732 CONFIG_FILES = $CONFIG_FILES
30733 CONFIG_HEADERS = $CONFIG_HEADERS
30734 CONFIG_LINKS = $CONFIG_LINKS
30735 CONFIG_COMMANDS = $CONFIG_COMMANDS
30739 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30743 # Files that config.status was made for.
30744 if test -n "$ac_config_files"; then
30745 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30748 if test -n "$ac_config_headers"; then
30749 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30752 if test -n "$ac_config_links"; then
30753 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30756 if test -n "$ac_config_commands"; then
30757 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30760 cat >>$CONFIG_STATUS <<\_ACEOF
30763 \`$as_me' instantiates files from templates according to the
30764 current configuration.
30766 Usage: $0 [OPTIONS] [FILE]...
30768 -h, --help print this help, then exit
30769 -V, --version print version number, then exit
30770 -q, --quiet do not print progress messages
30771 -d, --debug don't remove temporary files
30772 --recheck update $as_me by reconfiguring in the same conditions
30773 --file=FILE[:TEMPLATE]
30774 instantiate the configuration file FILE
30775 --header=FILE[:TEMPLATE]
30776 instantiate the configuration header FILE
30778 Configuration files:
30781 Configuration headers:
30784 Configuration commands:
30787 Report bugs to <bug-autoconf@gnu.org>."
30790 cat >>$CONFIG_STATUS <<_ACEOF
30793 configured by $0, generated by GNU Autoconf 2.59,
30794 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30796 Copyright (C) 2003 Free Software Foundation, Inc.
30797 This config.status script is free software; the Free Software Foundation
30798 gives unlimited permission to copy, distribute and modify it."
30803 cat >>$CONFIG_STATUS <<\_ACEOF
30804 # If no file are specified by the user, then we need to provide default
30805 # value. By we need to know if files were specified by the user.
30811 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30812 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30820 *) # This is not an option, so the user has probably given explicit
30823 ac_need_defaults=false;;
30827 # Handling of the options.
30829 cat >>$CONFIG_STATUS <<\_ACEOF
30830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30832 --version | --vers* | -V )
30833 echo "$ac_cs_version"; exit 0 ;;
30835 # Conflict between --help and --header
30836 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30837 Try \`$0 --help' for more information." >&5
30838 echo "$as_me: error: ambiguous option: $1
30839 Try \`$0 --help' for more information." >&2;}
30840 { (exit 1); exit 1; }; };;
30841 --help | --hel | -h )
30842 echo "$ac_cs_usage"; exit 0 ;;
30843 --debug | --d* | -d )
30845 --file | --fil | --fi | --f )
30847 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30848 ac_need_defaults=false;;
30849 --header | --heade | --head | --hea )
30851 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30852 ac_need_defaults=false;;
30853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30854 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30857 # This is an error.
30858 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30859 Try \`$0 --help' for more information." >&5
30860 echo "$as_me: error: unrecognized option: $1
30861 Try \`$0 --help' for more information." >&2;}
30862 { (exit 1); exit 1; }; } ;;
30864 *) ac_config_targets="$ac_config_targets $1" ;;
30870 ac_configure_extra_args=
30872 if $ac_cs_silent; then
30874 ac_configure_extra_args="$ac_configure_extra_args --silent"
30878 cat >>$CONFIG_STATUS <<_ACEOF
30879 if \$ac_cs_recheck; then
30880 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30881 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30886 cat >>$CONFIG_STATUS <<_ACEOF
30888 # INIT-COMMANDS section.
30891 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30897 cat >>$CONFIG_STATUS <<\_ACEOF
30898 for ac_config_target in $ac_config_targets
30900 case "$ac_config_target" in
30901 # Handling of arguments.
30902 "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
30903 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30904 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30905 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30906 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30907 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30908 { (exit 1); exit 1; }; };;
30912 # If the user did not use the arguments to specify the items to instantiate,
30913 # then the envvar interface is used. Set only those that are not.
30914 # We use the long form for the default assignment because of an extremely
30915 # bizarre bug on SunOS 4.1.3.
30916 if $ac_need_defaults; then
30917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30922 # Have a temporary directory for convenience. Make it in the build tree
30923 # simply because there is no reason to put it here, and in addition,
30924 # creating and moving files from /tmp can sometimes cause problems.
30925 # Create a temporary directory, and hook for its removal unless debugging.
30928 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30929 trap '{ (exit 1); exit 1; }' 1 2 13 15
30932 # Create a (secure) tmp directory for tmp files.
30935 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30936 test -n "$tmp" && test -d "$tmp"
30939 tmp=./confstat$$-$RANDOM
30940 (umask 077 && mkdir $tmp)
30943 echo "$me: cannot create a temporary directory in ." >&2
30944 { (exit 1); exit 1; }
30949 cat >>$CONFIG_STATUS <<_ACEOF
30952 # CONFIG_FILES section.
30955 # No need to generate the scripts if there are no CONFIG_FILES.
30956 # This happens for instance when ./config.status config.h
30957 if test -n "\$CONFIG_FILES"; then
30958 # Protect against being on the right side of a sed subst in config.status.
30959 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30960 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30961 s,@SHELL@,$SHELL,;t t
30962 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30963 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30964 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30965 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30966 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30967 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30968 s,@exec_prefix@,$exec_prefix,;t t
30969 s,@prefix@,$prefix,;t t
30970 s,@program_transform_name@,$program_transform_name,;t t
30971 s,@bindir@,$bindir,;t t
30972 s,@sbindir@,$sbindir,;t t
30973 s,@libexecdir@,$libexecdir,;t t
30974 s,@datadir@,$datadir,;t t
30975 s,@sysconfdir@,$sysconfdir,;t t
30976 s,@sharedstatedir@,$sharedstatedir,;t t
30977 s,@localstatedir@,$localstatedir,;t t
30978 s,@libdir@,$libdir,;t t
30979 s,@includedir@,$includedir,;t t
30980 s,@oldincludedir@,$oldincludedir,;t t
30981 s,@infodir@,$infodir,;t t
30982 s,@mandir@,$mandir,;t t
30983 s,@build_alias@,$build_alias,;t t
30984 s,@host_alias@,$host_alias,;t t
30985 s,@target_alias@,$target_alias,;t t
30986 s,@DEFS@,$DEFS,;t t
30987 s,@ECHO_C@,$ECHO_C,;t t
30988 s,@ECHO_N@,$ECHO_N,;t t
30989 s,@ECHO_T@,$ECHO_T,;t t
30990 s,@LIBS@,$LIBS,;t t
30991 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30992 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30993 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30994 s,@CYGPATH_W@,$CYGPATH_W,;t t
30995 s,@PACKAGE@,$PACKAGE,;t t
30996 s,@VERSION@,$VERSION,;t t
30997 s,@ACLOCAL@,$ACLOCAL,;t t
30998 s,@AUTOCONF@,$AUTOCONF,;t t
30999 s,@AUTOMAKE@,$AUTOMAKE,;t t
31000 s,@AUTOHEADER@,$AUTOHEADER,;t t
31001 s,@MAKEINFO@,$MAKEINFO,;t t
31002 s,@install_sh@,$install_sh,;t t
31003 s,@STRIP@,$STRIP,;t t
31004 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31005 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31006 s,@mkdir_p@,$mkdir_p,;t t
31008 s,@SET_MAKE@,$SET_MAKE,;t t
31009 s,@am__leading_dot@,$am__leading_dot,;t t
31010 s,@AMTAR@,$AMTAR,;t t
31011 s,@am__tar@,$am__tar,;t t
31012 s,@am__untar@,$am__untar,;t t
31013 s,@build@,$build,;t t
31014 s,@build_cpu@,$build_cpu,;t t
31015 s,@build_vendor@,$build_vendor,;t t
31016 s,@build_os@,$build_os,;t t
31017 s,@host@,$host,;t t
31018 s,@host_cpu@,$host_cpu,;t t
31019 s,@host_vendor@,$host_vendor,;t t
31020 s,@host_os@,$host_os,;t t
31022 s,@CFLAGS@,$CFLAGS,;t t
31023 s,@LDFLAGS@,$LDFLAGS,;t t
31024 s,@CPPFLAGS@,$CPPFLAGS,;t t
31025 s,@ac_ct_CC@,$ac_ct_CC,;t t
31026 s,@EXEEXT@,$EXEEXT,;t t
31027 s,@OBJEXT@,$OBJEXT,;t t
31028 s,@DEPDIR@,$DEPDIR,;t t
31029 s,@am__include@,$am__include,;t t
31030 s,@am__quote@,$am__quote,;t t
31031 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31032 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31033 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31034 s,@CCDEPMODE@,$CCDEPMODE,;t t
31035 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31036 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31037 s,@EGREP@,$EGREP,;t t
31038 s,@LN_S@,$LN_S,;t t
31039 s,@ECHO@,$ECHO,;t t
31041 s,@ac_ct_AR@,$ac_ct_AR,;t t
31042 s,@RANLIB@,$RANLIB,;t t
31043 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31046 s,@CXXFLAGS@,$CXXFLAGS,;t t
31047 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31048 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31049 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31050 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31051 s,@CXXCPP@,$CXXCPP,;t t
31053 s,@FFLAGS@,$FFLAGS,;t t
31054 s,@ac_ct_F77@,$ac_ct_F77,;t t
31055 s,@LIBTOOL@,$LIBTOOL,;t t
31056 s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
31057 s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
31058 s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
31059 s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
31060 s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
31061 s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
31062 s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
31063 s,@LIBOBJS@,$LIBOBJS,;t t
31064 s,@BINSUBDIR@,$BINSUBDIR,;t t
31065 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31070 cat >>$CONFIG_STATUS <<\_ACEOF
31071 # Split the substitutions into bite-sized pieces for seds with
31072 # small command number limits, like on Digital OSF/1 and HP-UX.
31073 ac_max_sed_lines=48
31074 ac_sed_frag=1 # Number of current file.
31075 ac_beg=1 # First line for current file.
31076 ac_end=$ac_max_sed_lines # Line after last line for current file.
31079 while $ac_more_lines; do
31080 if test $ac_beg -gt 1; then
31081 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31083 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31085 if test ! -s $tmp/subs.frag; then
31086 ac_more_lines=false
31088 # The purpose of the label and of the branching condition is to
31089 # speed up the sed processing (if there are no `@' at all, there
31090 # is no need to browse any of the substitutions).
31091 # These are the two extra sed commands mentioned above.
31093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31094 if test -z "$ac_sed_cmds"; then
31095 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31097 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31099 ac_sed_frag=`expr $ac_sed_frag + 1`
31101 ac_end=`expr $ac_end + $ac_max_sed_lines`
31104 if test -z "$ac_sed_cmds"; then
31107 fi # test -n "$CONFIG_FILES"
31110 cat >>$CONFIG_STATUS <<\_ACEOF
31111 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31114 - | *:- | *:-:* ) # input from stdin
31116 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31118 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31120 * ) ac_file_in=$ac_file.in ;;
31123 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31124 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31126 X"$ac_file" : 'X\(//\)[^/]' \| \
31127 X"$ac_file" : 'X\(//\)$' \| \
31128 X"$ac_file" : 'X\(/\)' \| \
31129 . : '\(.\)' 2>/dev/null ||
31131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31133 /^X\(\/\/\)$/{ s//\1/; q; }
31134 /^X\(\/\).*/{ s//\1/; q; }
31136 { if $as_mkdir_p; then
31141 while test ! -d "$as_dir"; do
31142 as_dirs="$as_dir $as_dirs"
31143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145 X"$as_dir" : 'X\(//\)[^/]' \| \
31146 X"$as_dir" : 'X\(//\)$' \| \
31147 X"$as_dir" : 'X\(/\)' \| \
31148 . : '\(.\)' 2>/dev/null ||
31150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31152 /^X\(\/\/\)$/{ s//\1/; q; }
31153 /^X\(\/\).*/{ s//\1/; q; }
31156 test ! -n "$as_dirs" || mkdir $as_dirs
31157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31159 { (exit 1); exit 1; }; }; }
31163 if test "$ac_dir" != .; then
31164 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31165 # A "../" for each directory in $ac_dir_suffix.
31166 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31168 ac_dir_suffix= ac_top_builddir=
31172 .) # No --srcdir option. We are building in place.
31174 if test -z "$ac_top_builddir"; then
31177 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31179 [\\/]* | ?:[\\/]* ) # Absolute path.
31180 ac_srcdir=$srcdir$ac_dir_suffix;
31181 ac_top_srcdir=$srcdir ;;
31182 *) # Relative path.
31183 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31184 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31187 # Do not use `cd foo && pwd` to compute absolute paths, because
31188 # the directories may not exist.
31190 .) ac_abs_builddir="$ac_dir";;
31193 .) ac_abs_builddir=`pwd`;;
31194 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31195 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31198 case $ac_abs_builddir in
31199 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31201 case ${ac_top_builddir}. in
31202 .) ac_abs_top_builddir=$ac_abs_builddir;;
31203 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31204 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31207 case $ac_abs_builddir in
31208 .) ac_abs_srcdir=$ac_srcdir;;
31211 .) ac_abs_srcdir=$ac_abs_builddir;;
31212 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31213 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31216 case $ac_abs_builddir in
31217 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31219 case $ac_top_srcdir in
31220 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31221 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31222 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31229 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31232 if test x"$ac_file" != x-; then
31233 { echo "$as_me:$LINENO: creating $ac_file" >&5
31234 echo "$as_me: creating $ac_file" >&6;}
31237 # Let's still pretend it is `configure' which instantiates (i.e., don't
31238 # use $as_me), people would be surprised to read:
31239 # /* config.h. Generated by config.status. */
31240 if test x"$ac_file" = x-; then
31243 configure_input="$ac_file. "
31245 configure_input=$configure_input"Generated from `echo $ac_file_in |
31246 sed 's,.*/,,'` by configure."
31248 # First look for the input files in the build tree, otherwise in the
31250 ac_file_inputs=`IFS=:
31251 for f in $ac_file_in; do
31253 -) echo $tmp/stdin ;;
31255 # Absolute (can't be DOS-style, as IFS=:)
31256 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31257 echo "$as_me: error: cannot find input file: $f" >&2;}
31258 { (exit 1); exit 1; }; }
31261 if test -f "$f"; then
31264 elif test -f "$srcdir/$f"; then
31269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31270 echo "$as_me: error: cannot find input file: $f" >&2;}
31271 { (exit 1); exit 1; }; }
31274 done` || { (exit 1); exit 1; }
31276 cat >>$CONFIG_STATUS <<_ACEOF
31280 cat >>$CONFIG_STATUS <<\_ACEOF
31282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31283 s,@configure_input@,$configure_input,;t t
31284 s,@srcdir@,$ac_srcdir,;t t
31285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31286 s,@top_srcdir@,$ac_top_srcdir,;t t
31287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31288 s,@builddir@,$ac_builddir,;t t
31289 s,@abs_builddir@,$ac_abs_builddir,;t t
31290 s,@top_builddir@,$ac_top_builddir,;t t
31291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31292 s,@INSTALL@,$ac_INSTALL,;t t
31293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31295 if test x"$ac_file" != x-; then
31296 mv $tmp/out $ac_file
31304 cat >>$CONFIG_STATUS <<\_ACEOF
31307 # CONFIG_HEADER section.
31310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31313 # ac_d sets the value in "#define NAME VALUE" lines.
31314 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31315 ac_dB='[ ].*$,\1#\2'
31318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31319 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31320 ac_uB='$,\1#\2define\3'
31324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31327 - | *:- | *:-:* ) # input from stdin
31329 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31331 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31333 * ) ac_file_in=$ac_file.in ;;
31336 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31337 echo "$as_me: creating $ac_file" >&6;}
31339 # First look for the input files in the build tree, otherwise in the
31341 ac_file_inputs=`IFS=:
31342 for f in $ac_file_in; do
31344 -) echo $tmp/stdin ;;
31346 # Absolute (can't be DOS-style, as IFS=:)
31347 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31348 echo "$as_me: error: cannot find input file: $f" >&2;}
31349 { (exit 1); exit 1; }; }
31350 # Do quote $f, to prevent DOS paths from being IFS'd.
31353 if test -f "$f"; then
31356 elif test -f "$srcdir/$f"; then
31361 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31362 echo "$as_me: error: cannot find input file: $f" >&2;}
31363 { (exit 1); exit 1; }; }
31366 done` || { (exit 1); exit 1; }
31367 # Remove the trailing spaces.
31368 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31372 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31373 # `conftest.undefs', that substitutes the proper values into
31374 # config.h.in to produce config.h. The first handles `#define'
31375 # templates, and the second `#undef' templates.
31376 # And first: Protect against being on the right side of a sed subst in
31377 # config.status. Protect against being in an unquoted here document
31378 # in config.status.
31379 rm -f conftest.defines conftest.undefs
31380 # Using a here document instead of a string reduces the quoting nightmare.
31381 # Putting comments in sed scripts is not portable.
31383 # `end' is used to avoid that the second main sed command (meant for
31384 # 0-ary CPP macros) applies to n-ary macro definitions.
31385 # See the Autoconf documentation for `clear'.
31386 cat >confdef2sed.sed <<\_ACEOF
31391 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31393 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31396 # If some macros were called several times there might be several times
31397 # the same #defines, which is useless. Nevertheless, we may not want to
31398 # sort them, since we want the *last* AC-DEFINE to be honored.
31399 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31400 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31401 rm -f confdef2sed.sed
31403 # This sed command replaces #undef with comments. This is necessary, for
31404 # example, in the case of _POSIX_SOURCE, which is predefined and required
31405 # on some systems where configure will not decide to define it.
31406 cat >>conftest.undefs <<\_ACEOF
31407 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31410 # Break up conftest.defines because some shells have a limit on the size
31411 # of here documents, and old seds have small limits too (100 cmds).
31412 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31413 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31414 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31415 echo ' :' >>$CONFIG_STATUS
31416 rm -f conftest.tail
31417 while grep . conftest.defines >/dev/null
31419 # Write a limited-size here document to $tmp/defines.sed.
31420 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31421 # Speed up: don't consider the non `#define' lines.
31422 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31423 # Work around the forget-to-reset-the-flag bug.
31424 echo 't clr' >>$CONFIG_STATUS
31425 echo ': clr' >>$CONFIG_STATUS
31426 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31428 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31430 mv $tmp/out $tmp/in
31432 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31433 rm -f conftest.defines
31434 mv conftest.tail conftest.defines
31436 rm -f conftest.defines
31437 echo ' fi # grep' >>$CONFIG_STATUS
31438 echo >>$CONFIG_STATUS
31440 # Break up conftest.undefs because some shells have a limit on the size
31441 # of here documents, and old seds have small limits too (100 cmds).
31442 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31443 rm -f conftest.tail
31444 while grep . conftest.undefs >/dev/null
31446 # Write a limited-size here document to $tmp/undefs.sed.
31447 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31448 # Speed up: don't consider the non `#undef'
31449 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31450 # Work around the forget-to-reset-the-flag bug.
31451 echo 't clr' >>$CONFIG_STATUS
31452 echo ': clr' >>$CONFIG_STATUS
31453 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31455 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31457 mv $tmp/out $tmp/in
31459 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31460 rm -f conftest.undefs
31461 mv conftest.tail conftest.undefs
31463 rm -f conftest.undefs
31465 cat >>$CONFIG_STATUS <<\_ACEOF
31466 # Let's still pretend it is `configure' which instantiates (i.e., don't
31467 # use $as_me), people would be surprised to read:
31468 # /* config.h. Generated by config.status. */
31469 if test x"$ac_file" = x-; then
31470 echo "/* Generated by configure. */" >$tmp/config.h
31472 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31474 cat $tmp/in >>$tmp/config.h
31476 if test x"$ac_file" != x-; then
31477 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31478 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31479 echo "$as_me: $ac_file is unchanged" >&6;}
31481 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31483 X"$ac_file" : 'X\(//\)[^/]' \| \
31484 X"$ac_file" : 'X\(//\)$' \| \
31485 X"$ac_file" : 'X\(/\)' \| \
31486 . : '\(.\)' 2>/dev/null ||
31488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31490 /^X\(\/\/\)$/{ s//\1/; q; }
31491 /^X\(\/\).*/{ s//\1/; q; }
31493 { if $as_mkdir_p; then
31498 while test ! -d "$as_dir"; do
31499 as_dirs="$as_dir $as_dirs"
31500 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31502 X"$as_dir" : 'X\(//\)[^/]' \| \
31503 X"$as_dir" : 'X\(//\)$' \| \
31504 X"$as_dir" : 'X\(/\)' \| \
31505 . : '\(.\)' 2>/dev/null ||
31507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31509 /^X\(\/\/\)$/{ s//\1/; q; }
31510 /^X\(\/\).*/{ s//\1/; q; }
31513 test ! -n "$as_dirs" || mkdir $as_dirs
31514 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31516 { (exit 1); exit 1; }; }; }
31519 mv $tmp/config.h $ac_file
31523 rm -f $tmp/config.h
31525 # Compute $ac_file's index in $config_headers.
31527 for _am_header in $config_headers :; do
31528 case $_am_header in
31529 $ac_file | $ac_file:* )
31532 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31535 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31536 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31537 X$ac_file : 'X\(//\)[^/]' \| \
31538 X$ac_file : 'X\(//\)$' \| \
31539 X$ac_file : 'X\(/\)' \| \
31540 . : '\(.\)' 2>/dev/null ||
31542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31544 /^X\(\/\/\)$/{ s//\1/; q; }
31545 /^X\(\/\).*/{ s//\1/; q; }
31546 s/.*/./; q'`/stamp-h$_am_stamp_count
31549 cat >>$CONFIG_STATUS <<\_ACEOF
31552 # CONFIG_COMMANDS section.
31554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31555 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31556 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31557 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31558 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31559 X"$ac_dest" : 'X\(//\)[^/]' \| \
31560 X"$ac_dest" : 'X\(//\)$' \| \
31561 X"$ac_dest" : 'X\(/\)' \| \
31562 . : '\(.\)' 2>/dev/null ||
31564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31566 /^X\(\/\/\)$/{ s//\1/; q; }
31567 /^X\(\/\).*/{ s//\1/; q; }
31569 { if $as_mkdir_p; then
31574 while test ! -d "$as_dir"; do
31575 as_dirs="$as_dir $as_dirs"
31576 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31578 X"$as_dir" : 'X\(//\)[^/]' \| \
31579 X"$as_dir" : 'X\(//\)$' \| \
31580 X"$as_dir" : 'X\(/\)' \| \
31581 . : '\(.\)' 2>/dev/null ||
31583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31585 /^X\(\/\/\)$/{ s//\1/; q; }
31586 /^X\(\/\).*/{ s//\1/; q; }
31589 test ! -n "$as_dirs" || mkdir $as_dirs
31590 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31591 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31592 { (exit 1); exit 1; }; }; }
31596 if test "$ac_dir" != .; then
31597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31598 # A "../" for each directory in $ac_dir_suffix.
31599 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31601 ac_dir_suffix= ac_top_builddir=
31605 .) # No --srcdir option. We are building in place.
31607 if test -z "$ac_top_builddir"; then
31610 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31612 [\\/]* | ?:[\\/]* ) # Absolute path.
31613 ac_srcdir=$srcdir$ac_dir_suffix;
31614 ac_top_srcdir=$srcdir ;;
31615 *) # Relative path.
31616 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31617 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31620 # Do not use `cd foo && pwd` to compute absolute paths, because
31621 # the directories may not exist.
31623 .) ac_abs_builddir="$ac_dir";;
31626 .) ac_abs_builddir=`pwd`;;
31627 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31628 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31631 case $ac_abs_builddir in
31632 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31634 case ${ac_top_builddir}. in
31635 .) ac_abs_top_builddir=$ac_abs_builddir;;
31636 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31637 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31640 case $ac_abs_builddir in
31641 .) ac_abs_srcdir=$ac_srcdir;;
31644 .) ac_abs_srcdir=$ac_abs_builddir;;
31645 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31646 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31649 case $ac_abs_builddir in
31650 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31652 case $ac_top_srcdir in
31653 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31654 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31655 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31660 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31661 echo "$as_me: executing $ac_dest commands" >&6;}
31663 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31664 # Strip MF so we end up with the name of the file.
31665 mf=`echo "$mf" | sed -e 's/:.*$//'`
31666 # Check whether this is an Automake generated Makefile or not.
31667 # We used to match only the files named `Makefile.in', but
31668 # some people rename them; so instead we look at the file content.
31669 # Grep'ing the first line is not enough: some people post-process
31670 # each Makefile.in and add a new line on top of each file to say so.
31671 # So let's grep whole file.
31672 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31673 dirpart=`(dirname "$mf") 2>/dev/null ||
31674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31675 X"$mf" : 'X\(//\)[^/]' \| \
31676 X"$mf" : 'X\(//\)$' \| \
31677 X"$mf" : 'X\(/\)' \| \
31678 . : '\(.\)' 2>/dev/null ||
31680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31682 /^X\(\/\/\)$/{ s//\1/; q; }
31683 /^X\(\/\).*/{ s//\1/; q; }
31688 # Extract the definition of DEPDIR, am__include, and am__quote
31689 # from the Makefile without running `make'.
31690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31691 test -z "$DEPDIR" && continue
31692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31693 test -z "am__include" && continue
31694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31695 # When using ansi2knr, U may be empty or an underscore; expand it
31696 U=`sed -n 's/^U = //p' < "$mf"`
31697 # Find all dependency output files, they are included files with
31698 # $(DEPDIR) in their names. We invoke sed twice because it is the
31699 # simplest approach to changing $(DEPDIR) to its actual value in the
31701 for file in `sed -n "
31702 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31704 # Make sure the directory exists.
31705 test -f "$dirpart/$file" && continue
31706 fdir=`(dirname "$file") 2>/dev/null ||
31707 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31708 X"$file" : 'X\(//\)[^/]' \| \
31709 X"$file" : 'X\(//\)$' \| \
31710 X"$file" : 'X\(/\)' \| \
31711 . : '\(.\)' 2>/dev/null ||
31713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31715 /^X\(\/\/\)$/{ s//\1/; q; }
31716 /^X\(\/\).*/{ s//\1/; q; }
31718 { if $as_mkdir_p; then
31719 mkdir -p $dirpart/$fdir
31721 as_dir=$dirpart/$fdir
31723 while test ! -d "$as_dir"; do
31724 as_dirs="$as_dir $as_dirs"
31725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31727 X"$as_dir" : 'X\(//\)[^/]' \| \
31728 X"$as_dir" : 'X\(//\)$' \| \
31729 X"$as_dir" : 'X\(/\)' \| \
31730 . : '\(.\)' 2>/dev/null ||
31732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31734 /^X\(\/\/\)$/{ s//\1/; q; }
31735 /^X\(\/\).*/{ s//\1/; q; }
31738 test ! -n "$as_dirs" || mkdir $as_dirs
31739 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31740 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31741 { (exit 1); exit 1; }; }; }
31743 # echo "creating $dirpart/$file"
31744 echo '# dummy' > "$dirpart/$file"
31752 cat >>$CONFIG_STATUS <<\_ACEOF
31754 { (exit 0); exit 0; }
31756 chmod +x $CONFIG_STATUS
31757 ac_clean_files=$ac_clean_files_save
31760 # configure is writing to config.log, and then calls config.status.
31761 # config.status does its own redirection, appending to config.log.
31762 # Unfortunately, on DOS this fails, as config.log is still kept open
31763 # by configure, so config.status won't be able to write to it; its
31764 # output is simply discarded. So we exec the FD to /dev/null,
31765 # effectively closing config.log, so it can be properly (re)opened and
31766 # appended to by config.status. When coming back to configure, we
31767 # need to make the FD available again.
31768 if test "$no_create" != yes; then
31770 ac_config_status_args=
31771 test "$silent" = yes &&
31772 ac_config_status_args="$ac_config_status_args --quiet"
31774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31777 # would make configure fail if this is the last instruction.
31778 $ac_cs_success || { (exit 1); exit 1; }