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 "$lt_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="ar.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
996 if test -n "$ac_init_help"; then
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --disable-rpath do not hardcode runtime library paths
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058 ac_dir_suffix= ac_top_builddir=
1062 .) # No --srcdir option. We are building in place.
1064 if test -z "$ac_top_builddir"; then
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1080 .) ac_abs_builddir="$ac_dir";;
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1127 $ac_configure --help
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_must_keep_next=false
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 -* ) ac_must_keep_next=true ;;
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1268 # The following way of writing the cache mishandles newlines in values,
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1298 if test -n "$ac_subst_files"; then
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -s confdefs.h; then
1320 sed "/^$/d" confdefs.h | sort
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1403 # Check that the precious variables saved in the cache have kept the same
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 elif test -f $ac_dir/install.sh; then
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 elif test -f $ac_dir/shtool; then
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1599 program_prefix=${target_alias}-
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1722 if test -z "$ac_cv_prog_CC"; then
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 test -n "$CC" && break
1861 if test -z "$CC"; then
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$ac_ct_CC" && break
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1937 cat >conftest.$ac_ext <<_ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975 test -f "$ac_file" || continue
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 # This is the source file.
1983 # We found the default executable, but exeext='' is most
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 if test "$cross_compiling" = maybe; then
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 cat >conftest.$ac_ext <<_ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1 >conftest.err
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204 GCC=`test $ac_compiler_gnu = yes && echo yes`
2205 ac_test_CFLAGS=${CFLAGS+set}
2206 ac_save_CFLAGS=$CFLAGS
2208 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210 if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2232 grep -v '^ *+' conftest.er1 >conftest.err
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261 if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263 elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2270 if test "$GCC" = yes; then
2276 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 ac_cv_prog_cc_stdc=no
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2291 #include <sys/types.h>
2292 #include <sys/stat.h>
2293 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294 struct buf { int x; };
2295 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296 static char *e (p, i)
2302 static char *f (char * (*g) (char **, int), char **p, ...)
2307 s = g (p, va_arg (v,int));
2312 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321 int test (int i, double x);
2322 struct s1 {int (*f) (int a);};
2323 struct s2 {int (*f) (double a);};
2324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2335 # Don't try gcc -ansi; that turns off useful extensions and
2336 # breaks some systems' header files.
2337 # AIX -qlanglvl=ansi
2338 # Ultrix and OSF/1 -std1
2339 # HP-UX 10.20 and later -Ae
2340 # HP-UX older versions -Aa -D_HPUX_SOURCE
2341 # SVR4 -Xc -D__EXTENSIONS__
2342 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1 >conftest.err
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext
2376 rm -f conftest.$ac_ext conftest.$ac_objext
2381 case "x$ac_cv_prog_cc_stdc" in
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384 echo "${ECHO_T}none needed" >&6 ;;
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391 # Some people use a C++ compiler to compile C. Since we use `exit',
2392 # in C++ we need to declare it. In case someone uses the same compiler
2393 # for both compiling C and C++ we need to have the C++ compiler decide
2394 # the declaration of exit, since it's the most demanding environment.
2395 cat >conftest.$ac_ext <<_ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543 if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 ac_func_search_save_LIBS=$LIBS
2547 ac_cv_search_strerror=no
2548 cat >conftest.$ac_ext <<_ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2555 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2570 rm -f conftest.$ac_objext conftest$ac_exeext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2574 grep -v '^ *+' conftest.er1 >conftest.err
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2610 /* Override any gcc2 internal prototype to avoid an error. */
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2654 rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2658 LIBS=$ac_func_search_save_LIBS
2660 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662 if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2668 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2669 am__api_version="1.9"
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2737 rm -rf conftest.one conftest.two conftest.dir
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2750 echo "$as_me:$LINENO: result: $INSTALL" >&5
2751 echo "${ECHO_T}$INSTALL" >&6
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 echo timestamp > conftest.file
2766 # Do `set' in a subshell so we don't clobber the current shell's
2767 # arguments. Must try -L first in case configure is actually a
2768 # symlink; some systems play weird games with the mod time of symlinks
2769 # (eg FreeBSD returns the mod time of the symlink's containing
2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2773 if test "$*" = "X"; then
2775 set X `ls -t $srcdir/configure conftest.file`
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786 alias in your environment" >&5
2787 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
2792 test "$2" = conftest.file
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799 Check your system clock" >&5
2800 echo "$as_me: error: newly created file is older than distributed files!
2801 Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
2804 echo "$as_me:$LINENO: result: yes" >&5
2805 echo "${ECHO_T}yes" >&6
2806 test "$program_prefix" != NONE &&
2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2808 # Use a double $ so make ignores it.
2809 test "$program_suffix" != NONE &&
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811 # Double any \ or $. echo might interpret backslashes.
2812 # By default was `s,x,x', remove it if useless.
2813 cat <<\_ACEOF >conftest.sed
2814 s/[\\$]/&&/g;s/;s,x,x,$//
2816 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 # expand $ac_aux_dir to an absolute path
2820 am_aux_dir=`cd $ac_aux_dir && pwd`
2822 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823 # Use eval to expand $SHELL
2824 if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2853 for d in ./-p ./--version;
2855 test -d $d && rmdir $d
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2861 mkdir_p='$(install_sh) -d'
2865 for ac_prog in gawk mawk nawk awk
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896 echo "${ECHO_T}$AWK" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2902 test -n "$AWK" && break
2905 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.make <<\_ACEOF
2913 @echo 'ac_maketemp="$(MAKE)"'
2915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2917 if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2920 eval ac_cv_prog_make_${ac_make}_set=no
2924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2929 echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 SET_MAKE="MAKE=${MAKE-make}"
2934 rm -rf .tst 2>/dev/null
2935 mkdir .tst 2>/dev/null
2936 if test -d .tst; then
2941 rmdir .tst 2>/dev/null
2943 DEPDIR="${am__leading_dot}deps"
2945 ac_config_commands="$ac_config_commands depfiles"
2948 am_make=${MAKE-make}
2949 cat > confinc << 'END'
2954 # If we don't find an include directive, just comment out the code.
2955 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2960 # First try GNU make style include.
2961 echo "include confinc" > confmf
2962 # We grep out `Entering directory' and `Leaving directory'
2963 # messages which can occur if `w' ends up in MAKEFLAGS.
2964 # In particular we don't look at `^make:' because GNU make might
2965 # be invoked under some other name (usually "gmake"), in which
2966 # case it prints its new name instead of `make'.
2967 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2972 # Now try BSD make style include.
2973 if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2983 echo "$as_me:$LINENO: result: $_am_result" >&5
2984 echo "${ECHO_T}$_am_result" >&6
2985 rm -f confinc confmf
2987 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988 if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2992 if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2998 if test "x$enable_dependency_tracking" != xno; then
3008 # test to see if srcdir already configured
3009 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3016 # test whether we have cygpath
3017 if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3026 # Define the identity of the package.
3028 VERSION=${BFD_VERSION}
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE "$PACKAGE"
3036 cat >>confdefs.h <<_ACEOF
3037 #define VERSION "$VERSION"
3040 # Some tools Automake needs.
3042 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058 # Installed binaries are usually stripped using `strip' when the user
3059 # run `make install-strip'. However `strip' might not be the right
3060 # tool to use in cross-compilation environments, therefore Automake
3061 # will honor the `STRIP' environment variable to overrule this program.
3062 if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}strip; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 STRIP=$ac_cv_prog_STRIP
3091 if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093 echo "${ECHO_T}$STRIP" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_STRIP"; then
3102 # Extract the first word of "strip", so it can be a program name with args.
3103 set dummy strip; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130 if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132 echo "${ECHO_T}$ac_ct_STRIP" >&6
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3140 STRIP="$ac_cv_prog_STRIP"
3144 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3146 # We need awk for the "check" target. The system "awk" is bad on
3148 # Always define AMTAR for backward compatibility.
3150 AMTAR=${AMTAR-"${am_missing_run}tar"}
3152 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3157 depcc="$CC" am_compiler_list=
3159 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3245 am_cv_CC_dependencies_compiler_type=none
3249 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259 am__fastdepCC_FALSE='#'
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CC"; then
3302 echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3310 if test -z "$ac_cv_prog_CC"; then
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="gcc"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341 echo "${ECHO_T}$ac_ct_CC" >&6
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}cc; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3390 if test -z "$ac_cv_prog_CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3421 echo "${ECHO_T}$ac_ct_CC" >&6
3423 echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6
3433 if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_CC+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3478 if test -n "$CC"; then
3479 echo "$as_me:$LINENO: result: $CC" >&5
3480 echo "${ECHO_T}$CC" >&6
3482 echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3526 test -n "$CC" && break
3529 if test -z "$CC"; then
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3568 test -n "$ac_ct_CC" && break
3577 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }; }
3585 # Provide some information about the compiler.
3586 echo "$as_me:$LINENO:" \
3587 "checking for C compiler version" >&5
3588 ac_compiler=`set X $ac_compile; echo $2`
3589 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3590 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3595 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3600 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
3605 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3663 GCC=`test $ac_compiler_gnu = yes && echo yes`
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3667 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3669 if test "${ac_cv_prog_cc_g+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3719 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3729 if test "$GCC" = yes; then
3735 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3736 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3737 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_cv_prog_cc_stdc=no
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3750 #include <sys/types.h>
3751 #include <sys/stat.h>
3752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3753 struct buf { int x; };
3754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755 static char *e (p, i)
3761 static char *f (char * (*g) (char **, int), char **p, ...)
3766 s = g (p, va_arg (v,int));
3771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3772 function prototypes and stuff, but not '\xHH' hex character constants.
3773 These don't provoke an error unfortunately, instead are silently treated
3774 as 'x'. The following induces an error, until -std1 is added to get
3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3776 array size at least. It's necessary to write '\x00'==0 to get something
3777 that's true only with -std1. */
3778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 # Don't try gcc -ansi; that turns off useful extensions and
3795 # breaks some systems' header files.
3796 # AIX -qlanglvl=ansi
3797 # Ultrix and OSF/1 -std1
3798 # HP-UX 10.20 and later -Ae
3799 # HP-UX older versions -Aa -D_HPUX_SOURCE
3800 # SVR4 -Xc -D__EXTENSIONS__
3801 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803 CC="$ac_save_CC $ac_arg"
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_prog_cc_stdc=$ac_arg
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3833 rm -f conftest.err conftest.$ac_objext
3835 rm -f conftest.$ac_ext conftest.$ac_objext
3840 case "x$ac_cv_prog_cc_stdc" in
3842 echo "$as_me:$LINENO: result: none needed" >&5
3843 echo "${ECHO_T}none needed" >&6 ;;
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3847 CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 # Some people use a C++ compiler to compile C. Since we use `exit',
3851 # in C++ we need to declare it. In case someone uses the same compiler
3852 # for both compiling C and C++ we need to have the C++ compiler decide
3853 # the declaration of exit, since it's the most demanding environment.
3854 cat >conftest.$ac_ext <<_ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 for ac_declaration in \
3883 'extern "C" void std::exit (int) throw (); using std::exit;' \
3884 'extern "C" void std::exit (int); using std::exit;' \
3885 'extern "C" void exit (int) throw ();' \
3886 'extern "C" void exit (int);' \
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 if test -n "$ac_declaration"; then
3982 echo '#ifdef __cplusplus' >>confdefs.h
3983 echo $ac_declaration >>confdefs.h
3984 echo '#endif' >>confdefs.h
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 cat >>confdefs.h <<\_ACEOF
4001 #define _GNU_SOURCE 1
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4012 # On Suns, sometimes $CPP names a directory.
4013 if test -n "$CPP" && test -d "$CPP"; then
4016 if test -z "$CPP"; then
4017 if test "${ac_cv_prog_CPP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 # Double quotes because CPP needs to be expanded
4021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 for ac_c_preproc_warn_flag in '' yes
4026 # Use a header file that comes with gcc, so configuring glibc
4027 # with a fresh cross-compiler works.
4028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029 # <limits.h> exists even on freestanding compilers.
4030 # On the NeXT, cc -E runs the code through the compiler's parser,
4031 # not just through cpp. "Syntax error" is here to catch this case.
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4039 # include <limits.h>
4041 # include <assert.h>
4045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } >/dev/null; then
4053 if test -s conftest.err; then
4054 ac_cpp_err=$ac_c_preproc_warn_flag
4055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4062 if test -z "$ac_cpp_err"; then
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 # Broken: fails on valid input.
4071 rm -f conftest.err conftest.$ac_ext
4073 # OK, works on sane cases. Now check whether non-existent headers
4074 # can be detected and how.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_c_preproc_warn_flag
4093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4100 if test -z "$ac_cpp_err"; then
4101 # Broken: success on invalid input.
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 # Passes both tests.
4111 rm -f conftest.err conftest.$ac_ext
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then
4128 echo "$as_me:$LINENO: result: $CPP" >&5
4129 echo "${ECHO_T}$CPP" >&6
4131 for ac_c_preproc_warn_flag in '' yes
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4146 # include <limits.h>
4148 # include <assert.h>
4152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 grep -v '^ *+' conftest.er1 >conftest.err
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev/null; then
4160 if test -s conftest.err; then
4161 ac_cpp_err=$ac_c_preproc_warn_flag
4162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4169 if test -z "$ac_cpp_err"; then
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 # Broken: fails on valid input.
4178 rm -f conftest.err conftest.$ac_ext
4180 # OK, works on sane cases. Now check whether non-existent headers
4181 # can be detected and how.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 grep -v '^ *+' conftest.er1 >conftest.err
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } >/dev/null; then
4198 if test -s conftest.err; then
4199 ac_cpp_err=$ac_c_preproc_warn_flag
4200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4207 if test -z "$ac_cpp_err"; then
4208 # Broken: success on invalid input.
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # Passes both tests.
4218 rm -f conftest.err conftest.$ac_ext
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then
4226 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4227 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." >&5
4230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&2;}
4232 { (exit 1); exit 1; }; }; }
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 echo "$as_me:$LINENO: checking for egrep" >&5
4243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4244 if test "${ac_cv_prog_egrep+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4248 then ac_cv_prog_egrep='grep -E'
4249 else ac_cv_prog_egrep='egrep'
4252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4254 EGREP=$ac_cv_prog_egrep
4257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4259 if test "${ac_cv_header_stdc+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_header_stdc=yes
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cv_header_stdc=no
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312 if test $ac_cv_header_stdc = yes; then
4313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "memchr" >/dev/null 2>&1; then
4327 ac_cv_header_stdc=no
4333 if test $ac_cv_header_stdc = yes; then
4334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "free" >/dev/null 2>&1; then
4348 ac_cv_header_stdc=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4356 if test "$cross_compiling" = yes; then
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4366 #if ((' ' & 0x0FF) == 0x020)
4367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370 # define ISLOWER(c) \
4371 (('a' <= (c) && (c) <= 'i') \
4372 || ('j' <= (c) && (c) <= 'r') \
4373 || ('s' <= (c) && (c) <= 'z'))
4374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382 for (i = 0; i < 256; i++)
4383 if (XOR (islower (i), ISLOWER (i))
4384 || toupper (i) != TOUPPER (i))
4389 rm -f conftest$ac_exeext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391 (eval $ac_link) 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4402 echo "$as_me: program exited with status $ac_status" >&5
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4407 ac_cv_header_stdc=no
4409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4415 if test $ac_cv_header_stdc = yes; then
4417 cat >>confdefs.h <<\_ACEOF
4418 #define STDC_HEADERS 1
4423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4434 inttypes.h stdint.h unistd.h
4436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437 echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 $ac_includes_default
4450 #include <$ac_header>
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 eval "$as_ac_Header=yes"
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 eval "$as_ac_Header=no"
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486 cat >>confdefs.h <<_ACEOF
4487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4496 if test "${ac_cv_header_minix_config_h+set}" = set; then
4497 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4498 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4499 if test "${ac_cv_header_minix_config_h+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4503 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505 # Is the header compilable?
4506 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4507 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 $ac_includes_default
4515 #include <minix/config.h>
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_header_compiler=yes
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_header_compiler=no
4546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4548 echo "${ECHO_T}$ac_header_compiler" >&6
4550 # Is the header present?
4551 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4552 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <minix/config.h>
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null; then
4569 if test -s conftest.err; then
4570 ac_cpp_err=$ac_c_preproc_warn_flag
4571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4578 if test -z "$ac_cpp_err"; then
4579 ac_header_preproc=yes
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_header_preproc=no
4586 rm -f conftest.err conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4588 echo "${ECHO_T}$ac_header_preproc" >&6
4590 # So? What about this header?
4591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4594 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4596 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4597 ac_header_preproc=yes
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4601 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4603 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4605 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4607 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4611 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 ## ------------------------------------------ ##
4615 ## Report this to the AC_PACKAGE_NAME lists. ##
4616 ## ------------------------------------------ ##
4619 sed "s/^/$as_me: WARNING: /" >&2
4622 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4623 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4624 if test "${ac_cv_header_minix_config_h+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_header_minix_config_h=$ac_header_preproc
4629 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4630 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4633 if test $ac_cv_header_minix_config_h = yes; then
4640 if test "$MINIX" = yes; then
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _POSIX_SOURCE 1
4647 cat >>confdefs.h <<\_ACEOF
4648 #define _POSIX_1_SOURCE 2
4652 cat >>confdefs.h <<\_ACEOF
4660 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4661 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4662 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4672 # define __EXTENSIONS__ 1
4673 $ac_includes_default
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_safe_to_define___extensions__=yes
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_safe_to_define___extensions__=no
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4714 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4715 test $ac_cv_safe_to_define___extensions__ = yes &&
4716 cat >>confdefs.h <<\_ACEOF
4717 #define __EXTENSIONS__ 1
4720 cat >>confdefs.h <<\_ACEOF
4721 #define _ALL_SOURCE 1
4724 cat >>confdefs.h <<\_ACEOF
4725 #define _GNU_SOURCE 1
4728 cat >>confdefs.h <<\_ACEOF
4729 #define _POSIX_PTHREAD_SEMANTICS 1
4732 cat >>confdefs.h <<\_ACEOF
4733 #define _TANDEM_SOURCE 1
4739 macro_version='2.1a'
4740 macro_revision='1.2435'
4753 ltmain="$ac_aux_dir/ltmain.sh"
4763 # Check whether --enable-shared or --disable-shared was given.
4764 if test "${enable_shared+set}" = set; then
4765 enableval="$enable_shared"
4766 p=${PACKAGE-default}
4768 yes) enable_shared=yes ;;
4769 no) enable_shared=no ;;
4772 # Look at the argument we got. We use all the common list separators.
4773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774 for pkg in $enableval; do
4776 if test "X$pkg" = "X$p"; then
4794 # Check whether --enable-static or --disable-static was given.
4795 if test "${enable_static+set}" = set; then
4796 enableval="$enable_static"
4797 p=${PACKAGE-default}
4799 yes) enable_static=yes ;;
4800 no) enable_static=no ;;
4803 # Look at the argument we got. We use all the common list separators.
4804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4805 for pkg in $enableval; do
4807 if test "X$pkg" = "X$p"; then
4826 # Check whether --with-pic or --without-pic was given.
4827 if test "${with_pic+set}" = set; then
4834 test -z "$pic_mode" && pic_mode=default
4842 # Check whether --enable-fast-install or --disable-fast-install was given.
4843 if test "${enable_fast_install+set}" = set; then
4844 enableval="$enable_fast_install"
4845 p=${PACKAGE-default}
4847 yes) enable_fast_install=yes ;;
4848 no) enable_fast_install=no ;;
4850 enable_fast_install=no
4851 # Look at the argument we got. We use all the common list separators.
4852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4853 for pkg in $enableval; do
4855 if test "X$pkg" = "X$p"; then
4856 enable_fast_install=yes
4863 enable_fast_install=yes
4873 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4874 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4875 if test "${lt_cv_path_SED+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 # Loop through the user's path and test for sed and gsed.
4879 # Then use that list of sed's as ones to test for truncation.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for lt_ac_prog in sed gsed; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4888 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4896 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4897 # along with /bin/sed that truncates output.
4898 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4899 test ! -f $lt_ac_sed && continue
4900 cat /dev/null > conftest.in
4902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4903 # Check for GNU sed and select it if it is found.
4904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4905 lt_cv_path_SED=$lt_ac_sed
4909 cat conftest.in conftest.in >conftest.tmp
4910 mv conftest.tmp conftest.in
4911 cp conftest.in conftest.nl
4913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4914 cmp -s conftest.out conftest.nl || break
4915 # 10000 chars as input seems more than enough
4916 test $lt_ac_count -gt 10 && break
4917 lt_ac_count=`expr $lt_ac_count + 1`
4918 if test $lt_ac_count -gt $lt_ac_max; then
4919 lt_ac_max=$lt_ac_count
4920 lt_cv_path_SED=$lt_ac_sed
4929 echo "$as_me:$LINENO: result: $SED" >&5
4930 echo "${ECHO_T}$SED" >&6
4932 test -z "$SED" && SED=sed
4933 Xsed="$SED -e 1s/^X//"
4945 echo "$as_me:$LINENO: checking for fgrep" >&5
4946 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4947 if test "${ac_cv_prog_fgrep+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4951 then ac_cv_prog_fgrep='grep -F'
4952 else ac_cv_prog_fgrep='fgrep'
4955 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4956 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4957 FGREP=$ac_cv_prog_fgrep
4960 test -z "$GREP" && GREP=grep
4980 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4981 if test "${with_gnu_ld+set}" = set; then
4982 withval="$with_gnu_ld"
4983 test "$withval" = no || with_gnu_ld=yes
4988 if test "$GCC" = yes; then
4989 # Check if gcc -print-prog-name=ld gives a path.
4990 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4994 # gcc leaves a trailing carriage return which upsets mingw
4995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5000 # Accept absolute paths.
5002 re_direlt='/[^/][^/]*/\.\./'
5003 # Canonicalize the pathname of ld
5004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5008 test -z "$LD" && LD="$ac_prog"
5011 # If it fails, then pretend we aren't using GCC.
5015 # If it is relative, then search for the first ld in PATH.
5019 elif test "$with_gnu_ld" = yes; then
5020 echo "$as_me:$LINENO: checking for GNU ld" >&5
5021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5026 if test "${lt_cv_path_LD+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 if test -z "$LD"; then
5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH; do
5033 test -z "$ac_dir" && ac_dir=.
5034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5035 lt_cv_path_LD="$ac_dir/$ac_prog"
5036 # Check to see if the program is GNU ld. I'd rather use --version,
5037 # but apparently some variants of GNU ld only accept -v.
5038 # Break only if it was the GNU/non-GNU ld that we prefer.
5039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5040 *GNU* | *'with BFD'*)
5041 test "$with_gnu_ld" != no && break
5044 test "$with_gnu_ld" != yes && break
5051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5056 if test -n "$LD"; then
5057 echo "$as_me:$LINENO: result: $LD" >&5
5058 echo "${ECHO_T}$LD" >&6
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5065 { (exit 1); exit 1; }; }
5066 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5072 case `$LD -v 2>&1 </dev/null` in
5073 *GNU* | *'with BFD'*)
5074 lt_cv_prog_gnu_ld=yes
5077 lt_cv_prog_gnu_ld=no
5081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5083 with_gnu_ld=$lt_cv_prog_gnu_ld
5094 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5095 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5096 if test "${lt_cv_path_NM+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 if test -n "$NM"; then
5100 # Let the user override the test.
5103 lt_nm_to_check="${ac_tool_prefix}nm"
5104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5105 lt_nm_to_check="$lt_nm_to_check nm"
5107 for lt_tmp_nm in $lt_nm_to_check; do
5108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5111 test -z "$ac_dir" && ac_dir=.
5112 tmp_nm="$ac_dir/$lt_tmp_nm"
5113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5114 # Check to see if the nm accepts a BSD-compat flag.
5115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5116 # nm: unknown option "B" ignored
5117 # Tru64's nm complains that /dev/null is an invalid object file
5118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5119 */dev/null* | *'Invalid file or object type'*)
5120 lt_cv_path_NM="$tmp_nm -B"
5124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5126 lt_cv_path_NM="$tmp_nm -p"
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5140 : ${lt_cv_path_NM=no}
5143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5144 echo "${ECHO_T}$lt_cv_path_NM" >&6
5145 if test "$lt_cv_path_NM" != "no"; then
5148 # Didn't find any BSD compatible name lister, look for dumpbin.
5149 if test -n "$ac_tool_prefix"; then
5150 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 if test -n "$DUMPBIN"; then
5160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 DUMPBIN=$ac_cv_prog_DUMPBIN
5179 if test -n "$DUMPBIN"; then
5180 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5181 echo "${ECHO_T}$DUMPBIN" >&6
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5187 test -n "$DUMPBIN" && break
5190 if test -z "$DUMPBIN"; then
5191 ac_ct_DUMPBIN=$DUMPBIN
5192 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5194 # Extract the first word of "$ac_prog", so it can be a program name with args.
5195 set dummy $ac_prog; ac_word=$2
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 if test -n "$ac_ct_DUMPBIN"; then
5202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5221 if test -n "$ac_ct_DUMPBIN"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5223 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5229 test -n "$ac_ct_DUMPBIN" && break
5231 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5233 DUMPBIN=$ac_ct_DUMPBIN
5237 if test "$DUMPBIN" != ":"; then
5241 test -z "$NM" && NM=nm
5248 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5249 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5250 if test "${lt_cv_nm_interface+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 lt_cv_nm_interface="BSD nm"
5254 echo "int some_variable = 0;" > conftest.$ac_ext
5255 (eval echo "\"\$as_me:5255: $ac_compile\"" >&5)
5256 (eval "$ac_compile" 2>conftest.err)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:5258: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260 cat conftest.err >&5
5261 (eval echo "\"\$as_me:5261: output\"" >&5)
5262 cat conftest.out >&5
5263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264 lt_cv_nm_interface="MS dumpbin"
5268 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5269 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5274 if test "$LN_S" = "ln -s"; then
5275 echo "$as_me:$LINENO: result: yes" >&5
5276 echo "${ECHO_T}yes" >&6
5278 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5279 echo "${ECHO_T}no, using $LN_S" >&6
5282 # find the maximum length of command line arguments
5283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 # On DJGPP, this test can blow up pretty badly due to problems in libc
5294 # (any single argument exceeding 2000 bytes causes a buffer overrun
5295 # during glob expansion). Even if it were fixed, the result of this
5296 # check would be larger than it should be.
5297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5301 # Under GNU Hurd, this test is not required because there is
5302 # no limit to the length of command line arguments.
5303 # Libtool will interpret -1 as no limit whatsoever
5304 lt_cv_sys_max_cmd_len=-1;
5308 # On Win9x/ME, this test blows up -- it succeeds, but takes
5309 # about 5 minutes as the teststring grows exponentially.
5310 # Worse, since 9x/ME are not pre-emptively multitasking,
5311 # you end up with a "frozen" computer, even though with patience
5312 # the test eventually succeeds (with a max line length of 256k).
5313 # Instead, let's just punt: use the minimum linelength reported by
5314 # all of the supported platforms: 8192 (on NT/2K/XP).
5315 lt_cv_sys_max_cmd_len=8192;
5319 # On AmigaOS with pdksh, this test takes hours, literally.
5320 # So we just punt and use a minimum line length of 8192.
5321 lt_cv_sys_max_cmd_len=8192;
5324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5325 # This has been around since 386BSD, at least. Likely further.
5326 if test -x /sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5328 elif test -x /usr/sbin/sysctl; then
5329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5333 # And add a safety zone
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5340 lt_cv_sys_max_cmd_len=196608
5344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5346 # nice to cause kernel panics so lets avoid the loop below.
5347 # First set a reasonable default.
5348 lt_cv_sys_max_cmd_len=16384
5350 if test -x /sbin/sysconfig; then
5351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5357 lt_cv_sys_max_cmd_len=102400
5359 sysv5* | sco5v6* | sysv4.2uw2*)
5360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5361 if test -n "$kargmax"; then
5362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5364 lt_cv_sys_max_cmd_len=32768
5368 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5369 if test -n $lt_cv_sys_max_cmd_len; then
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373 # Make teststring a little bigger before we do anything with it.
5374 # a 1K string should be a reasonable start.
5375 for i in 1 2 3 4 5 6 7 8 ; do
5376 teststring=$teststring$teststring
5378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5379 # If test is not a shell built-in, we'll probably end up computing a
5380 # maximum length that is only half of the actual maximum length, but
5382 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5383 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5384 test $i != 17 # 1/2 MB should be enough
5387 teststring=$teststring$teststring
5389 # Only check the string length outside the loop.
5390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5392 # Add a significant safety factor because C++ compilers can tack on
5393 # massive amounts of additional arguments before passing them to the
5394 # linker. It appears as though 1/2 is a usable value.
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5406 echo "$as_me:$LINENO: result: none" >&5
5407 echo "${ECHO_T}none" >&6
5409 max_cmd_len=$lt_cv_sys_max_cmd_len
5421 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5422 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5423 # Try some XSI features
5426 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5427 = c,a/b,, ) >/dev/null 2>&1 \
5429 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5430 echo "${ECHO_T}$xsi_shell" >&6
5433 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5434 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5438 && lt_shell_append=yes
5439 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5440 echo "${ECHO_T}$lt_shell_append" >&6
5443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5453 # test EBCDIC or ASCII
5454 case `echo X|tr X '\101'` in
5455 A) # ASCII based system
5456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5457 lt_SP2NL='tr \040 \012'
5458 lt_NL2SP='tr \015\012 \040\040'
5460 *) # EBCDIC based system
5461 lt_SP2NL='tr \100 \n'
5462 lt_NL2SP='tr \r\n \100\100'
5474 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5475 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5476 if test "${lt_cv_ld_reload_flag+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 lt_cv_ld_reload_flag='-r'
5481 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5482 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5483 reload_flag=$lt_cv_ld_reload_flag
5484 case $reload_flag in
5486 *) reload_flag=" $reload_flag" ;;
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5491 if test "$GCC" = yes; then
5492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5508 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5509 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5510 if test "${lt_cv_deplibs_check_method+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 lt_cv_file_magic_cmd='$MAGIC_CMD'
5514 lt_cv_file_magic_test_file=
5515 lt_cv_deplibs_check_method='unknown'
5516 # Need to set the preceding variable on all platforms that support
5517 # interlibrary dependencies.
5518 # 'none' -- dependencies not supported.
5519 # `unknown' -- same as none, but documents that we really don't know.
5520 # 'pass_all' -- all dependencies passed with no checks.
5521 # 'test_compile' -- check by making test program.
5522 # 'file_magic [[regex]]' -- check by looking for files in library path
5523 # which responds to the $file_magic_cmd with a given extended regex.
5524 # If you have `file' or equivalent on your system and you're not sure
5525 # whether `pass_all' will *always* work, you probably want this one.
5529 lt_cv_deplibs_check_method=pass_all
5533 lt_cv_deplibs_check_method=pass_all
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5538 lt_cv_file_magic_cmd='/usr/bin/file -L'
5539 lt_cv_file_magic_test_file=/shlib/libc.so
5543 # func_win32_libid is a shell function defined in ltmain.sh
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5549 # Base MSYS/MinGW do not provide the 'file' command needed by
5550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5551 # unless we find 'file', for example because we are cross-compiling.
5552 if ( file / ) >/dev/null 2>&1; then
5553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554 lt_cv_file_magic_cmd='func_win32_libid'
5556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5561 darwin* | rhapsody*)
5562 lt_cv_deplibs_check_method=pass_all
5565 freebsd* | dragonfly*)
5566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5569 # Not sure whether the presence of OpenBSD here was a mistake.
5570 # Let's accept both of them until this is cleared up.
5571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5572 lt_cv_file_magic_cmd=/usr/bin/file
5573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5577 lt_cv_deplibs_check_method=pass_all
5582 lt_cv_deplibs_check_method=pass_all
5585 hpux10.20* | hpux11*)
5586 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5593 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]'
5594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5598 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5608 irix5* | irix6* | nonstopux*)
5610 *-32|*"-32 ") libmagic=32-bit;;
5611 *-n32|*"-n32 ") libmagic=N32;;
5612 *-64|*"-64 ") libmagic=64-bit;;
5613 *) libmagic=never-match;;
5615 lt_cv_deplibs_check_method=pass_all
5618 # This must be Linux ELF.
5619 linux* | k*bsd*-gnu)
5620 lt_cv_deplibs_check_method=pass_all
5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5633 lt_cv_file_magic_cmd=/usr/bin/file
5634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5638 lt_cv_deplibs_check_method=pass_all
5642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5649 osf3* | osf4* | osf5*)
5650 lt_cv_deplibs_check_method=pass_all
5654 lt_cv_deplibs_check_method=pass_all
5658 lt_cv_deplibs_check_method=pass_all
5661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5662 lt_cv_deplibs_check_method=pass_all
5666 case $host_vendor in
5668 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]'
5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5672 lt_cv_deplibs_check_method=pass_all
5675 lt_cv_file_magic_cmd='/bin/file'
5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5679 lt_cv_file_magic_cmd='/bin/file'
5680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5681 lt_cv_file_magic_test_file=/lib/libc.so
5684 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_deplibs_check_method=pass_all
5693 lt_cv_deplibs_check_method=pass_all
5698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5700 file_magic_cmd=$lt_cv_file_magic_cmd
5701 deplibs_check_method=$lt_cv_deplibs_check_method
5702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}ar; ac_word=$2
5718 echo "$as_me:$LINENO: checking for $ac_word" >&5
5719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720 if test "${ac_cv_prog_AR+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 if test -n "$AR"; then
5724 ac_cv_prog_AR="$AR" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_AR="${ac_tool_prefix}ar"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 if test -n "$AR"; then
5744 echo "$as_me:$LINENO: result: $AR" >&5
5745 echo "${ECHO_T}$AR" >&6
5747 echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5752 if test -z "$ac_cv_prog_AR"; then
5754 # Extract the first word of "ar", so it can be a program name with args.
5755 set dummy ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$ac_ct_AR"; then
5762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_ac_ct_AR="ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5782 if test -n "$ac_ct_AR"; then
5783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5784 echo "${ECHO_T}$ac_ct_AR" >&6
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5795 test -z "$AR" && AR=ar
5796 test -z "$AR_FLAGS" && AR_FLAGS=cru
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}strip; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_STRIP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$STRIP"; then
5817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 STRIP=$ac_cv_prog_STRIP
5836 if test -n "$STRIP"; then
5837 echo "$as_me:$LINENO: result: $STRIP" >&5
5838 echo "${ECHO_T}$STRIP" >&6
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5845 if test -z "$ac_cv_prog_STRIP"; then
5847 # Extract the first word of "strip", so it can be a program name with args.
5848 set dummy strip; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$ac_ct_STRIP"; then
5855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_STRIP="strip"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5875 if test -n "$ac_ct_STRIP"; then
5876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5877 echo "${ECHO_T}$ac_ct_STRIP" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5885 STRIP="$ac_cv_prog_STRIP"
5888 test -z "$STRIP" && STRIP=:
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5898 echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900 if test "${ac_cv_prog_RANLIB+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -n "$RANLIB"; then
5904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 RANLIB=$ac_cv_prog_RANLIB
5923 if test -n "$RANLIB"; then
5924 echo "$as_me:$LINENO: result: $RANLIB" >&5
5925 echo "${ECHO_T}$RANLIB" >&6
5927 echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5932 if test -z "$ac_cv_prog_RANLIB"; then
5933 ac_ct_RANLIB=$RANLIB
5934 # Extract the first word of "ranlib", so it can be a program name with args.
5935 set dummy ranlib; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$ac_ct_RANLIB"; then
5942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_RANLIB="ranlib"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5962 if test -n "$ac_ct_RANLIB"; then
5963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5970 RANLIB=$ac_ct_RANLIB
5972 RANLIB="$ac_cv_prog_RANLIB"
5975 test -z "$RANLIB" && RANLIB=:
5982 # Determine commands to create old-style static archives.
5983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5984 old_postinstall_cmds='chmod 644 $oldlib'
5985 old_postuninstall_cmds=
5987 if test -n "$RANLIB"; then
5990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6032 # If no C compiler was specified, use CC.
6035 # If no C compiler flags were specified, use CFLAGS.
6036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038 # Allow CC to be a program name with arguments.
6042 # Check for command to grab the raw symbol name followed by C symbol from nm.
6043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 # These are sane defaults that work on at least a few old systems.
6050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6052 # Character class describing NM global symbol codes.
6053 symcode='[BCDEGRST]'
6055 # Regexp to match symbols that can be accessed directly from C.
6056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058 # Define system-specific variables.
6063 cygwin* | mingw* | pw32*)
6064 symcode='[ABCDGISTW]'
6067 if test "$host_cpu" = ia64; then
6068 symcode='[ABCDEGRST]'
6072 symcode='[BCDEGRST]'
6075 symcode='[BCDEGQRST]'
6086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6094 # If we're using GNU nm, then use its standard symbol codes.
6095 case `$NM -V 2>&1` in
6096 *GNU* | *'with BFD'*)
6097 symcode='[ABCDGIRSTW]' ;;
6100 # Transform an extracted symbol line into a proper C declaration.
6101 # Some systems (esp. on ia64) link data and code symbols differently,
6102 # so use this general approach.
6103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105 # Transform an extracted symbol line into symbol name and symbol address
6106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6108 # Handle CRLF in mingw tool chain
6112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 # Try without a prefix underscore, then with it.
6117 for ac_symprfx in "" "_"; do
6119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6120 symxfrm="\\1 $ac_symprfx\\2 \\2"
6122 # Write the raw and C identifiers.
6123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124 # Fake it for dumpbin and say T for any non-static function
6125 # and D for any global variable.
6126 # Also find C++ and __fastcall symbols from MSVC++,
6127 # which start with @ or ?.
6128 lt_cv_sys_global_symbol_pipe="$AWK '"\
6129 " {last_section=section; section=\$ 3};"\
6130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6131 " \$ 0!~/External *\|/{next};"\
6132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 " {if(hide[section]) next};"\
6134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6138 " ' prfx=^$ac_symprfx"
6140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6143 # Check to see that the pipe works correctly.
6147 cat > conftest.$ac_ext <<_LT_EOF
6152 void nm_test_func(void);
6153 void nm_test_func(void){}
6157 int main(){nm_test_var='a';nm_test_func();return(0);}
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; then
6165 # Now try to grab the symbols.
6167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && test -s "$nlist"; then
6172 # Try sorting and uniquifying the output.
6173 if sort "$nlist" | uniq > "$nlist"T; then
6174 mv -f "$nlist"T "$nlist"
6179 # Make sure that we snagged all the symbols we need.
6180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6182 cat <<_LT_EOF > conftest.$ac_ext
6188 # Now generate the symbol file.
6189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191 cat <<_LT_EOF >> conftest.$ac_ext
6193 /* The mapping between symbol names and symbols. */
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6200 { "@PROGRAM@", (void *) 0 },
6202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203 cat <<\_LT_EOF >> conftest.$ac_ext
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210 return lt__PROGRAM__LTX_preloaded_symbols;
6218 # Now try linking the two files.
6219 mv conftest.$ac_objext conftstm.$ac_objext
6220 lt_save_LIBS="$LIBS"
6221 lt_save_CFLAGS="$CFLAGS"
6222 LIBS="conftstm.$ac_objext"
6223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6231 LIBS="$lt_save_LIBS"
6232 CFLAGS="$lt_save_CFLAGS"
6234 echo "cannot find nm_test_func in $nlist" >&5
6237 echo "cannot find nm_test_var in $nlist" >&5
6240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243 echo "$progname: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6246 rm -f conftest* conftst*
6248 # Do not use the global_symbol_pipe unless it works.
6249 if test "$pipe_works" = yes; then
6252 lt_cv_sys_global_symbol_pipe=
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259 lt_cv_sys_global_symbol_to_cdecl=
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262 echo "$as_me:$LINENO: result: failed" >&5
6263 echo "${ECHO_T}failed" >&6
6265 echo "$as_me:$LINENO: result: ok" >&5
6266 echo "${ECHO_T}ok" >&6
6285 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6286 if test "${enable_libtool_lock+set}" = set; then
6287 enableval="$enable_libtool_lock"
6290 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6292 # Some flags need to be propagated to the compiler or linker for good
6296 # Find out which ABI we are using.
6297 echo 'int i;' > conftest.$ac_ext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; then
6303 case `/usr/bin/file conftest.$ac_objext` in
6315 # Find out which ABI we are using.
6316 echo '#line 6316 "configure"' > conftest.$ac_ext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; then
6322 if test "$lt_cv_prog_gnu_ld" = yes; then
6323 case `/usr/bin/file conftest.$ac_objext` in
6325 LD="${LD-ld} -melf32bsmip"
6328 LD="${LD-ld} -melf32bmipn32"
6331 LD="${LD-ld} -melf64bmip"
6335 case `/usr/bin/file conftest.$ac_objext` in
6351 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6352 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6353 # Find out which ABI we are using.
6354 echo 'int i;' > conftest.$ac_ext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; then
6360 case `/usr/bin/file conftest.o` in
6363 x86_64-*kfreebsd*-gnu)
6364 LD="${LD-ld} -m elf_i386_fbsd"
6367 LD="${LD-ld} -m elf_i386"
6369 ppc64-*linux*|powerpc64-*linux*)
6370 LD="${LD-ld} -m elf32ppclinux"
6373 LD="${LD-ld} -m elf_s390"
6376 LD="${LD-ld} -m elf32_sparc"
6382 x86_64-*kfreebsd*-gnu)
6383 LD="${LD-ld} -m elf_x86_64_fbsd"
6386 LD="${LD-ld} -m elf_x86_64"
6388 ppc*-*linux*|powerpc*-*linux*)
6389 LD="${LD-ld} -m elf64ppc"
6391 s390*-*linux*|s390*-*tpf*)
6392 LD="${LD-ld} -m elf64_s390"
6395 LD="${LD-ld} -m elf64_sparc"
6405 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6406 SAVE_CFLAGS="$CFLAGS"
6407 CFLAGS="$CFLAGS -belf"
6408 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6409 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6410 if test "${lt_cv_cc_needs_belf+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6438 grep -v '^ *+' conftest.er1 >conftest.err
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 lt_cv_cc_needs_belf=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 lt_cv_cc_needs_belf=no
6463 rm -f conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6473 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6476 CFLAGS="$SAVE_CFLAGS"
6480 # Find out which ABI we are using.
6481 echo 'int i;' > conftest.$ac_ext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; then
6487 case `/usr/bin/file conftest.o` in
6489 case $lt_cv_prog_gnu_ld in
6490 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6491 *) LD="${LD-ld} -64" ;;
6500 need_locks="$enable_libtool_lock"
6503 for ac_header in dlfcn.h
6505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6519 #include <$ac_header>
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 eval "$as_ac_Header=yes"
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 eval "$as_ac_Header=no"
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 # This can be used to rebuild libtool when needed
6566 LIBTOOL_DEPS="$ltmain"
6568 # Always use our own libtool.
6569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6595 test -z "$LN_S" && LN_S="ln -s"
6610 if test -n "${ZSH_VERSION+set}" ; then
6611 setopt NO_GLOB_SUBST
6614 echo "$as_me:$LINENO: checking for objdir" >&5
6615 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6616 if test "${lt_cv_objdir+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 rm -f .libs 2>/dev/null
6620 mkdir .libs 2>/dev/null
6621 if test -d .libs; then
6624 # MS-DOS does not allow filenames that begin with a dot.
6627 rmdir .libs 2>/dev/null
6629 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6630 echo "${ECHO_T}$lt_cv_objdir" >&6
6631 objdir=$lt_cv_objdir
6637 cat >>confdefs.h <<_ACEOF
6638 #define LT_OBJDIR "$lt_cv_objdir/"
6659 # AIX sometimes has problems with the GCC collect2 program. For some
6660 # reason, if we set the COLLECT_NAMES environment variable, the problems
6661 # vanish in a puff of smoke.
6662 if test "X${COLLECT_NAMES+set}" != Xset; then
6664 export COLLECT_NAMES
6669 # Sed substitution that helps us do robust quoting. It backslashifies
6670 # metacharacters that are still active within double-quoted strings.
6671 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6673 # Same as above, but do not quote variable references.
6674 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6676 # Sed substitution to delay expansion of an escaped shell variable in a
6677 # double_quote_subst'ed string.
6678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6680 # Sed substitution to delay expansion of an escaped single quote.
6681 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6683 # Sed substitution to avoid accidental globbing in evaled expressions
6684 no_glob_subst='s/\*/\\\*/g'
6688 can_build_shared=yes
6690 # All known linkers require a `.a' archive for static linking (except MSVC,
6691 # which needs '.lib').
6694 with_gnu_ld="$lt_cv_prog_gnu_ld"
6697 old_CFLAGS="$CFLAGS"
6699 # Set sane defaults for various variables
6700 test -z "$CC" && CC=cc
6701 test -z "$LTCC" && LTCC=$CC
6702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6703 test -z "$LD" && LD=ld
6704 test -z "$ac_objext" && ac_objext=o
6706 for cc_temp in $compiler""; do
6708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6714 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6717 # Only perform the check for file, if the check method requires it
6718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6719 case $deplibs_check_method in
6721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6722 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6723 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6724 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6732 lt_save_MAGIC_CMD="$MAGIC_CMD"
6733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6735 for ac_dir in $ac_dummy; do
6737 test -z "$ac_dir" && ac_dir=.
6738 if test -f $ac_dir/${ac_tool_prefix}file; then
6739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6740 if test -n "$file_magic_test_file"; then
6741 case $deplibs_check_method in
6743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6746 $EGREP "$file_magic_regex" > /dev/null; then
6751 *** Warning: the command libtool uses to detect shared libraries,
6752 *** $file_magic_cmd, produces output that libtool cannot recognize.
6753 *** The result is that libtool may fail to recognize shared libraries
6754 *** as such. This will affect the creation of libtool libraries that
6755 *** depend on shared libraries, but programs linked with such libtool
6756 *** libraries will work regardless of this problem. Nevertheless, you
6757 *** may want to report the problem to your system manager and/or to
6758 *** bug-libtool@gnu.org
6768 MAGIC_CMD="$lt_save_MAGIC_CMD"
6773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6774 if test -n "$MAGIC_CMD"; then
6775 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6776 echo "${ECHO_T}$MAGIC_CMD" >&6
6778 echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6
6786 if test -z "$lt_cv_path_MAGIC_CMD"; then
6787 if test -n "$ac_tool_prefix"; then
6788 echo "$as_me:$LINENO: checking for file" >&5
6789 echo $ECHO_N "checking for file... $ECHO_C" >&6
6790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6798 lt_save_MAGIC_CMD="$MAGIC_CMD"
6799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6801 for ac_dir in $ac_dummy; do
6803 test -z "$ac_dir" && ac_dir=.
6804 if test -f $ac_dir/file; then
6805 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6806 if test -n "$file_magic_test_file"; then
6807 case $deplibs_check_method in
6809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6812 $EGREP "$file_magic_regex" > /dev/null; then
6817 *** Warning: the command libtool uses to detect shared libraries,
6818 *** $file_magic_cmd, produces output that libtool cannot recognize.
6819 *** The result is that libtool may fail to recognize shared libraries
6820 *** as such. This will affect the creation of libtool libraries that
6821 *** depend on shared libraries, but programs linked with such libtool
6822 *** libraries will work regardless of this problem. Nevertheless, you
6823 *** may want to report the problem to your system manager and/or to
6824 *** bug-libtool@gnu.org
6834 MAGIC_CMD="$lt_save_MAGIC_CMD"
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if test -n "$MAGIC_CMD"; then
6841 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6842 echo "${ECHO_T}$MAGIC_CMD" >&6
6844 echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6
6858 # Use C for the default configuration in the libtool script
6862 ac_cpp='$CPP $CPPFLAGS'
6863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868 # Source file extension for C test sources.
6871 # Object file extension for compiled C test sources.
6875 # Code to be used in simple compile tests
6876 lt_simple_compile_test_code="int some_variable = 0;"
6878 # Code to be used in simple link tests
6879 lt_simple_link_test_code='int main(){return(0);}'
6887 # If no C compiler was specified, use CC.
6890 # If no C compiler flags were specified, use CFLAGS.
6891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6893 # Allow CC to be a program name with arguments.
6896 # Save the default compiler, since it gets overwritten when the other
6897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6898 compiler_DEFAULT=$CC
6900 # save warnings/boilerplate of simple test code
6901 ac_outfile=conftest.$ac_objext
6902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6904 _lt_compiler_boilerplate=`cat conftest.err`
6907 ac_outfile=conftest.$ac_objext
6908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6910 _lt_linker_boilerplate=`cat conftest.err`
6915 ## There is no encapsulation within the following macros, do not change
6916 ## the running order or otherwise move them around unless you know exactly
6917 ## what you are doing...
6918 if test -n "$compiler"; then
6920 lt_prog_compiler_no_builtin_flag=
6922 if test "$GCC" = yes; then
6923 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6925 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 lt_cv_prog_compiler_rtti_exceptions=no
6931 ac_outfile=conftest.$ac_objext
6932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6933 lt_compiler_flag="-fno-rtti -fno-exceptions"
6934 # Insert the option either (1) after the last *FLAGS variable, or
6935 # (2) before a word containing "conftest.", or (3) at the end.
6936 # Note that $ac_compile itself does not contain backslashes and begins
6937 # with a dollar sign (not a hyphen), so the echo should work correctly.
6938 # The option is referenced via a variable to avoid confusing sed.
6939 lt_compile=`echo "$ac_compile" | $SED \
6940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6942 -e 's:$: $lt_compiler_flag:'`
6943 (eval echo "\"\$as_me:6943: $lt_compile\"" >&5)
6944 (eval "$lt_compile" 2>conftest.err)
6946 cat conftest.err >&5
6947 echo "$as_me:6947: \$? = $ac_status" >&5
6948 if (exit $ac_status) && test -s "$ac_outfile"; then
6949 # The compiler can only warn and ignore the option if not recognized
6950 # So say no if there are warnings other than the usual output.
6951 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6954 lt_cv_prog_compiler_rtti_exceptions=yes
6960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6961 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6976 lt_prog_compiler_wl=
6977 lt_prog_compiler_pic=
6978 lt_prog_compiler_static=
6980 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6981 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6983 if test "$GCC" = yes; then
6984 lt_prog_compiler_wl='-Wl,'
6985 lt_prog_compiler_static='-static'
6989 # All AIX code is PIC.
6990 if test "$host_cpu" = ia64; then
6991 # AIX 5 now supports IA64 processor
6992 lt_prog_compiler_static='-Bstatic'
6997 if test "$host_cpu" = m68k; then
6998 # FIXME: we need at least 68020 code to build shared libraries, but
6999 # adding the `-m68020' flag to GCC prevents building anything better,
7001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7006 # PIC is the default for these OSes.
7009 mingw* | cygwin* | pw32* | os2*)
7010 # This hack is so that the source file can tell whether it is being
7011 # built for inclusion in a dll (and should export symbols for example).
7012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7013 # (--disable-auto-import) libraries
7014 lt_prog_compiler_pic='-DDLL_EXPORT'
7017 darwin* | rhapsody*)
7018 # PIC is the default on this platform
7019 # Common symbols not allowed in MH_DYLIB files
7020 lt_prog_compiler_pic='-fno-common'
7024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7031 lt_prog_compiler_pic='-fPIC'
7037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7038 # Instead, we relocate shared libraries at runtime.
7042 # Just because we use GCC doesn't mean we suddenly get shared libraries
7043 # on systems that don't support them.
7044 lt_prog_compiler_can_build_shared=no
7049 # QNX uses GNU C++, but need to define -shared option too, otherwise
7051 lt_prog_compiler_pic='-fPIC -shared'
7055 if test -d /usr/nec; then
7056 lt_prog_compiler_pic=-Kconform_pic
7061 lt_prog_compiler_pic='-fPIC'
7065 # PORTME Check for flag to pass linker flags through the system compiler.
7068 lt_prog_compiler_wl='-Wl,'
7069 if test "$host_cpu" = ia64; then
7070 # AIX 5 now supports IA64 processor
7071 lt_prog_compiler_static='-Bstatic'
7073 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7077 # PIC is the default on this platform
7078 # Common symbols not allowed in MH_DYLIB files
7079 case $cc_basename in
7081 lt_prog_compiler_pic='-qnocommon'
7082 lt_prog_compiler_wl='-Wl,'
7087 mingw* | cygwin* | pw32* | os2*)
7088 # This hack is so that the source file can tell whether it is being
7089 # built for inclusion in a dll (and should export symbols for example).
7090 lt_prog_compiler_pic='-DDLL_EXPORT'
7093 hpux9* | hpux10* | hpux11*)
7094 lt_prog_compiler_wl='-Wl,'
7095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7102 lt_prog_compiler_pic='+Z'
7105 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7106 lt_prog_compiler_static='${wl}-a ${wl}archive'
7109 irix5* | irix6* | nonstopux*)
7110 lt_prog_compiler_wl='-Wl,'
7111 # PIC (with -KPIC) is the default.
7112 lt_prog_compiler_static='-non_shared'
7115 linux* | k*bsd*-gnu)
7116 case $cc_basename in
7118 lt_prog_compiler_wl='-Wl,'
7119 lt_prog_compiler_pic='-KPIC'
7120 lt_prog_compiler_static='-static'
7122 pgcc* | pgf77* | pgf90* | pgf95*)
7123 # Portland Group compilers (*not* the Pentium gcc compiler,
7124 # which looks to be a dead project)
7125 lt_prog_compiler_wl='-Wl,'
7126 lt_prog_compiler_pic='-fpic'
7127 lt_prog_compiler_static='-Bstatic'
7130 lt_prog_compiler_wl='-Wl,'
7131 # All Alpha code is PIC.
7132 lt_prog_compiler_static='-non_shared'
7135 case `$CC -V 2>&1 | sed 5q` in
7138 lt_prog_compiler_pic='-KPIC'
7139 lt_prog_compiler_static='-Bstatic'
7140 lt_prog_compiler_wl='-Wl,'
7143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7144 lt_prog_compiler_pic='-KPIC'
7145 lt_prog_compiler_static='-Bstatic'
7146 lt_prog_compiler_wl=''
7154 lt_prog_compiler_pic='-KPIC'
7155 lt_prog_compiler_static='-Bstatic'
7159 # QNX uses GNU C++, but need to define -shared option too, otherwise
7161 lt_prog_compiler_pic='-fPIC -shared'
7164 osf3* | osf4* | osf5*)
7165 lt_prog_compiler_wl='-Wl,'
7166 # All OSF/1 code is PIC.
7167 lt_prog_compiler_static='-non_shared'
7171 lt_prog_compiler_static='-non_shared'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-Bstatic'
7177 case $cc_basename in
7179 lt_prog_compiler_wl='-Qoption ld ';;
7181 lt_prog_compiler_wl='-Wl,';;
7186 lt_prog_compiler_wl='-Qoption ld '
7187 lt_prog_compiler_pic='-PIC'
7188 lt_prog_compiler_static='-Bstatic'
7191 sysv4 | sysv4.2uw2* | sysv4.3*)
7192 lt_prog_compiler_wl='-Wl,'
7193 lt_prog_compiler_pic='-KPIC'
7194 lt_prog_compiler_static='-Bstatic'
7198 if test -d /usr/nec ;then
7199 lt_prog_compiler_pic='-Kconform_pic'
7200 lt_prog_compiler_static='-Bstatic'
7204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7205 lt_prog_compiler_wl='-Wl,'
7206 lt_prog_compiler_pic='-KPIC'
7207 lt_prog_compiler_static='-Bstatic'
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_can_build_shared=no
7216 lt_prog_compiler_pic='-pic'
7217 lt_prog_compiler_static='-Bstatic'
7221 lt_prog_compiler_can_build_shared=no
7227 # For platforms which do not support PIC, -DPIC is meaningless:
7229 lt_prog_compiler_pic=
7232 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7236 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7244 # Check to make sure the PIC flag actually works.
7246 if test -n "$lt_prog_compiler_pic"; then
7247 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7249 if test "${lt_prog_compiler_pic_works+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 lt_prog_compiler_pic_works=no
7253 ac_outfile=conftest.$ac_objext
7254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7256 # Insert the option either (1) after the last *FLAGS variable, or
7257 # (2) before a word containing "conftest.", or (3) at the end.
7258 # Note that $ac_compile itself does not contain backslashes and begins
7259 # with a dollar sign (not a hyphen), so the echo should work correctly.
7260 # The option is referenced via a variable to avoid confusing sed.
7261 lt_compile=`echo "$ac_compile" | $SED \
7262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7264 -e 's:$: $lt_compiler_flag:'`
7265 (eval echo "\"\$as_me:7265: $lt_compile\"" >&5)
7266 (eval "$lt_compile" 2>conftest.err)
7268 cat conftest.err >&5
7269 echo "$as_me:7269: \$? = $ac_status" >&5
7270 if (exit $ac_status) && test -s "$ac_outfile"; then
7271 # The compiler can only warn and ignore the option if not recognized
7272 # So say no if there are warnings other than the usual output.
7273 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7276 lt_prog_compiler_pic_works=yes
7282 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7283 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7285 if test x"$lt_prog_compiler_pic_works" = xyes; then
7286 case $lt_prog_compiler_pic in
7288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7291 lt_prog_compiler_pic=
7292 lt_prog_compiler_can_build_shared=no
7303 # Check to make sure the static flag actually works.
7305 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7306 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7307 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7308 if test "${lt_prog_compiler_static_works+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 lt_prog_compiler_static_works=no
7312 save_LDFLAGS="$LDFLAGS"
7313 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7316 # The linker can only warn and ignore the option if not recognized
7317 # So say no if there are warnings
7318 if test -s conftest.err; then
7319 # Append any errors to the config.log.
7320 cat conftest.err 1>&5
7321 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7323 if diff conftest.exp conftest.er2 >/dev/null; then
7324 lt_prog_compiler_static_works=yes
7327 lt_prog_compiler_static_works=yes
7331 LDFLAGS="$save_LDFLAGS"
7334 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7335 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7337 if test x"$lt_prog_compiler_static_works" = xyes; then
7340 lt_prog_compiler_static=
7349 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7350 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 lt_cv_prog_compiler_c_o=no
7355 $RM -r conftest 2>/dev/null
7359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7361 lt_compiler_flag="-o out/conftest2.$ac_objext"
7362 # Insert the option either (1) after the last *FLAGS variable, or
7363 # (2) before a word containing "conftest.", or (3) at the end.
7364 # Note that $ac_compile itself does not contain backslashes and begins
7365 # with a dollar sign (not a hyphen), so the echo should work correctly.
7366 lt_compile=`echo "$ac_compile" | $SED \
7367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7369 -e 's:$: $lt_compiler_flag:'`
7370 (eval echo "\"\$as_me:7370: $lt_compile\"" >&5)
7371 (eval "$lt_compile" 2>out/conftest.err)
7373 cat out/conftest.err >&5
7374 echo "$as_me:7374: \$? = $ac_status" >&5
7375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7377 # The compiler can only warn and ignore the option if not recognized
7378 # So say no if there are warnings
7379 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7382 lt_cv_prog_compiler_c_o=yes
7387 # SGI C++ compiler will create directory out/ii_files/ for
7388 # template instantiation
7389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7390 $RM out/* && rmdir out
7396 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7397 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7404 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 lt_cv_prog_compiler_c_o=no
7410 $RM -r conftest 2>/dev/null
7414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7416 lt_compiler_flag="-o out/conftest2.$ac_objext"
7417 # Insert the option either (1) after the last *FLAGS variable, or
7418 # (2) before a word containing "conftest.", or (3) at the end.
7419 # Note that $ac_compile itself does not contain backslashes and begins
7420 # with a dollar sign (not a hyphen), so the echo should work correctly.
7421 lt_compile=`echo "$ac_compile" | $SED \
7422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424 -e 's:$: $lt_compiler_flag:'`
7425 (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
7426 (eval "$lt_compile" 2>out/conftest.err)
7428 cat out/conftest.err >&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7432 # The compiler can only warn and ignore the option if not recognized
7433 # So say no if there are warnings
7434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7437 lt_cv_prog_compiler_c_o=yes
7442 # SGI C++ compiler will create directory out/ii_files/ for
7443 # template instantiation
7444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7445 $RM out/* && rmdir out
7451 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7457 hard_links="nottested"
7458 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7459 # do not overwrite the value of need_locks provided by the user
7460 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466 ln conftest.a conftest.b 2>&5 || hard_links=no
7467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7468 echo "$as_me:$LINENO: result: $hard_links" >&5
7469 echo "${ECHO_T}$hard_links" >&6
7470 if test "$hard_links" = no; then
7471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7484 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7488 allow_undefined_flag=
7489 always_export_symbols=no
7491 archive_expsym_cmds=
7492 compiler_needs_object=no
7493 enable_shared_with_static_runtimes=no
7494 export_dynamic_flag_spec=
7495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7496 hardcode_automatic=no
7498 hardcode_direct_absolute=no
7499 hardcode_libdir_flag_spec=
7500 hardcode_libdir_flag_spec_ld=
7501 hardcode_libdir_separator=
7503 hardcode_shlibpath_var=unsupported
7505 link_all_deplibs=unknown
7508 old_archive_from_new_cmds=
7509 old_archive_from_expsyms_cmds=
7510 thread_safe_flag_spec=
7511 whole_archive_flag_spec=
7512 # include_expsyms should be a list of space-separated symbols to be *always*
7513 # included in the symbol list
7515 # exclude_expsyms can be an extended regexp of symbols to exclude
7516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7518 # as well as any symbol that contains `d'.
7519 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7521 # platforms (ab)use it in PIC code, but their linkers get confused if
7522 # the symbol is explicitly referenced. Since portable code cannot
7523 # rely on this symbol name, it's probably fine to never include it in
7524 # preloaded symbol tables.
7525 extract_expsyms_cmds=
7528 cygwin* | mingw* | pw32*)
7529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7530 # When not using gcc, we currently assume that we are using
7531 # Microsoft Visual C++.
7532 if test "$GCC" != yes; then
7537 # we just hope/assume this is gcc and not c89 (= MSVC++)
7546 if test "$with_gnu_ld" = yes; then
7547 # If archive_cmds runs LD, not CC, wlarc should be empty
7550 # Set some defaults for GNU ld with shared library support. These
7551 # are reset later if shared libraries are not supported. Putting them
7552 # here allows them to be overridden if necessary.
7553 runpath_var=LD_RUN_PATH
7554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7555 export_dynamic_flag_spec='${wl}--export-dynamic'
7556 # ancient GNU ld didn't support --whole-archive et. al.
7557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7560 whole_archive_flag_spec=
7562 supports_anon_versioning=no
7563 case `$LD -v 2>&1` in
7564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7567 *\ 2.11.*) ;; # other 2.11 versions
7568 *) supports_anon_versioning=yes ;;
7571 # See if GNU ld supports shared libraries.
7574 # On AIX/PPC, the GNU linker is very broken
7575 if test "$host_cpu" != ia64; then
7579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7580 *** to be unable to reliably create shared libraries on AIX.
7581 *** Therefore, libtool is disabling shared libraries support. If you
7582 *** really care for shared libraries, you may want to modify your PATH
7583 *** so that a non-GNU linker is found, and then restart.
7590 if test "$host_cpu" = m68k; then
7591 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)'
7592 hardcode_libdir_flag_spec='-L$libdir'
7593 hardcode_minus_L=yes
7596 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7597 # that the semantics of dynamic libraries on AmigaOS, at least up
7598 # to version 4, is to share data among multiple programs linked
7599 # with the same dynamic library. Since this doesn't match the
7600 # behavior of shared libraries on other platforms, we can't use
7606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7607 allow_undefined_flag=unsupported
7608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7609 # support --undefined. This deserves some investigation. FIXME
7610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7616 cygwin* | mingw* | pw32*)
7617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7618 # as there is no search path for DLLs.
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 allow_undefined_flag=unsupported
7621 always_export_symbols=no
7622 enable_shared_with_static_runtimes=yes
7623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7627 # If the export-symbols file already is a .def file (1st line
7628 # is EXPORTS), use it as is; otherwise, prepend...
7629 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7630 cp $export_symbols $output_objdir/$soname.def;
7632 echo EXPORTS > $output_objdir/$soname.def;
7633 cat $export_symbols >> $output_objdir/$soname.def;
7635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7643 hardcode_shlibpath_var=no
7644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7645 export_dynamic_flag_spec='${wl}-E'
7646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7647 # Instead, shared libraries are loaded at an image base (0x10000000 by
7648 # default) and relocated if they conflict, which is a slow very memory
7649 # consuming and fragmenting process. To avoid this, we pick a random,
7650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7651 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7653 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7656 gnu* | linux* | tpf* | k*bsd*-gnu)
7658 if test "$host_os" = linux-dietlibc; then
7659 case $cc_basename in
7660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7664 && test "$tmp_diet" = no
7667 case $cc_basename,$host_cpu in
7668 pgcc*) # Portland Group C compiler
7669 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'
7670 tmp_addflag=' $pic_flag'
7672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7673 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'
7674 tmp_addflag=' $pic_flag -Mnomain' ;;
7675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7676 tmp_addflag=' -i_dynamic' ;;
7677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7678 tmp_addflag=' -i_dynamic -nofor_main' ;;
7679 ifc* | ifort*) # Intel Fortran compiler
7680 tmp_addflag=' -nofor_main' ;;
7682 case `$CC -V 2>&1 | sed 5q` in
7683 *Sun\ C*) # Sun C 5.9
7684 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7685 compiler_needs_object=yes
7686 tmp_sharedflag='-G' ;;
7687 *Sun\ F*) # Sun Fortran 8.3
7688 tmp_sharedflag='-G' ;;
7690 tmp_sharedflag='-shared' ;;
7692 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694 if test "x$supports_anon_versioning" = xyes; then
7695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7697 echo "local: *; };" >> $output_objdir/$libname.ver~
7698 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7716 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7721 *** create shared libraries on Solaris systems. Therefore, libtool
7722 *** is disabling shared libraries support. We urge you to upgrade GNU
7723 *** binutils to release 2.9.1 or newer. Another option is to modify
7724 *** your PATH or compiler configuration so that the native linker is
7725 *** used, and then restart.
7728 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7737 case `$LD -v 2>&1` in
7738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7743 *** reliably create shared libraries on SCO systems. Therefore, libtool
7744 *** is disabling shared libraries support. We urge you to upgrade GNU
7745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7746 *** your PATH or compiler configuration so that the native linker is
7747 *** used, and then restart.
7752 # For security reasons, it is highly recommended that you always
7753 # use absolute paths for naming shared libraries, and exclude the
7754 # DT_RUNPATH tag from executables and libraries. But doing so
7755 # requires that you compile everything twice, which is a pain.
7756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7771 hardcode_shlibpath_var=no
7775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7784 if test "$ld_shlibs" = no; then
7786 hardcode_libdir_flag_spec=
7787 export_dynamic_flag_spec=
7788 whole_archive_flag_spec=
7791 # PORTME fill in a description of your system's linker (not GNU ld)
7794 allow_undefined_flag=unsupported
7795 always_export_symbols=yes
7796 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'
7797 # Note: this linker hardcodes the directories in LIBPATH if there
7798 # are no directories specified by -L.
7799 hardcode_minus_L=yes
7800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7801 # Neither direct hardcoding nor static linking is supported with a
7803 hardcode_direct=unsupported
7808 if test "$host_cpu" = ia64; then
7809 # On IA64, the linker does run time linking by default, so we don't
7810 # have to do anything special.
7811 aix_use_runtimelinking=no
7812 exp_sym_flag='-Bexport'
7815 # If we're using GNU nm, then we don't want the "-C" option.
7816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7818 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'
7820 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'
7822 aix_use_runtimelinking=no
7824 # Test if we are trying to use run time linking or normal
7825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7826 # need to do runtime linking.
7827 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7828 for ld_flag in $LDFLAGS; do
7829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7830 aix_use_runtimelinking=yes
7837 exp_sym_flag='-bexport'
7838 no_entry_flag='-bnoentry'
7841 # When large executables or shared objects are built, AIX ld can
7842 # have problems creating the table of contents. If linking a library
7843 # or program results in "error TOC overflow" add -mminimal-toc to
7844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7849 hardcode_direct_absolute=yes
7850 hardcode_libdir_separator=':'
7851 link_all_deplibs=yes
7852 file_list_spec='${wl}-f,'
7854 if test "$GCC" = yes; then
7855 case $host_os in aix4.[012]|aix4.[012].*)
7856 # We only want to do this on AIX 4.2 and lower, the check
7857 # below for broken collect2 doesn't work under 4.3+
7858 collect2name=`${CC} -print-prog-name=collect2`
7859 if test -f "$collect2name" &&
7860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7862 # We have reworked collect2
7865 # We have old collect2
7866 hardcode_direct=unsupported
7867 # It fails to find uninstalled libraries when the uninstalled
7868 # path is not listed in the libpath. Setting hardcode_minus_L
7869 # to unsupported forces relinking
7870 hardcode_minus_L=yes
7871 hardcode_libdir_flag_spec='-L$libdir'
7872 hardcode_libdir_separator=
7876 shared_flag='-shared'
7877 if test "$aix_use_runtimelinking" = yes; then
7878 shared_flag="$shared_flag "'${wl}-G'
7882 if test "$host_cpu" = ia64; then
7883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7884 # chokes on -Wl,-G. The following line is correct:
7887 if test "$aix_use_runtimelinking" = yes; then
7888 shared_flag='${wl}-G'
7890 shared_flag='${wl}-bM:SRE'
7895 # It seems that -bexpall does not export symbols beginning with
7896 # underscore (_), so it is better to generate a list of symbols to export.
7897 always_export_symbols=yes
7898 if test "$aix_use_runtimelinking" = yes; then
7899 # Warning - without using the other runtime loading flags (-brtl),
7900 # -berok will link without error, but may produce a broken library.
7901 allow_undefined_flag='-berok'
7902 # Determine the default libpath from the value encoded in an
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7942 lt_aix_libpath_sed='
7943 /Import File Strings/,/^$/ {
7949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7950 # Check for a 64-bit object if we didn't find anything.
7951 if test -z "$aix_libpath"; then
7952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7959 rm -f conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7964 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7966 if test "$host_cpu" = ia64; then
7967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7968 allow_undefined_flag="-z nodefs"
7969 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7971 # Determine the default libpath from the value encoded in an
7973 cat >conftest.$ac_ext <<_ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8011 lt_aix_libpath_sed='
8012 /Import File Strings/,/^$/ {
8018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8019 # Check for a 64-bit object if we didn't find anything.
8020 if test -z "$aix_libpath"; then
8021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8028 rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 # Warning - without using the other run time loading flags,
8034 # -berok will link without error, but may produce a broken library.
8035 no_undefined_flag=' ${wl}-bernotok'
8036 allow_undefined_flag=' ${wl}-berok'
8037 # Exported symbols can be pulled into shared objects from archives
8038 whole_archive_flag_spec='$convenience'
8039 archive_cmds_need_lc=yes
8040 # This is similar to how AIX traditionally builds its shared libraries.
8041 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8047 if test "$host_cpu" = m68k; then
8048 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_minus_L=yes
8052 # see comment about different semantics on the GNU ld section
8057 export_dynamic_flag_spec=-rdynamic
8060 cygwin* | mingw* | pw32*)
8061 # When not using gcc, we currently assume that we are using
8062 # Microsoft Visual C++.
8063 # hardcode_libdir_flag_spec is actually meaningless, as there is
8064 # no search path for DLLs.
8065 hardcode_libdir_flag_spec=' '
8066 allow_undefined_flag=unsupported
8067 # Tell ltmain to make .lib files, not .a files.
8069 # Tell ltmain to make .dll files, not .so files.
8071 # FIXME: Setting linknames here is a bad hack.
8072 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8073 # The linker will automatically build a .lib file if we build a DLL.
8074 old_archive_from_new_cmds='true'
8075 # FIXME: Should let the user specify the lib program.
8076 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8077 fix_srcfile_path='`cygpath -w "$srcfile"`'
8078 enable_shared_with_static_runtimes=yes
8081 darwin* | rhapsody*)
8083 rhapsody* | darwin1.[012])
8084 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8087 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8089 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8092 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8097 archive_cmds_need_lc=no
8099 hardcode_automatic=yes
8100 hardcode_shlibpath_var=unsupported
8101 whole_archive_flag_spec=''
8102 link_all_deplibs=yes
8103 if test "$GCC" = yes ; then
8104 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "${LT_MULTI_MODULE}"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi-module to the
8113 echo "int foo(void){return 1;}" > conftest.c
8114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib ${wl}-single_module conftest.c
8116 if test -f libconftest.dylib; then
8117 lt_cv_apple_cc_single_mod=yes
8118 rm libconftest.dylib
8124 output_verbose_link_cmd=echo
8125 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8126 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8127 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8129 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8130 archive_expsym_cmds='sed "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}'
8132 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8133 module_expsym_cmds='sed -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}'
8135 case $cc_basename in
8137 output_verbose_link_cmd=echo
8138 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8139 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8141 archive_expsym_cmds='sed "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}'
8142 module_expsym_cmds='sed "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}'
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_libdir_flag_spec='-L$libdir'
8154 hardcode_shlibpath_var=no
8161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8162 # support. Future versions do this automatically, but an explicit c++rt0.o
8163 # does not break anything, and helps significantly (at the cost of a little
8166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8167 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176 hardcode_minus_L=yes
8177 hardcode_shlibpath_var=no
8180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8181 freebsd* | dragonfly*)
8182 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8183 hardcode_libdir_flag_spec='-R$libdir'
8185 hardcode_shlibpath_var=no
8189 if test "$GCC" = yes; then
8190 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'
8192 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'
8194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8195 hardcode_libdir_separator=:
8198 # hardcode_minus_L: Not really in the search PATH,
8199 # but as the default location of the library.
8200 hardcode_minus_L=yes
8201 export_dynamic_flag_spec='${wl}-E'
8205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8210 if test "$with_gnu_ld" = no; then
8211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8212 hardcode_libdir_flag_spec_ld='+b $libdir'
8213 hardcode_libdir_separator=:
8215 hardcode_direct_absolute=yes
8216 export_dynamic_flag_spec='${wl}-E'
8217 # hardcode_minus_L: Not really in the search PATH,
8218 # but as the default location of the library.
8219 hardcode_minus_L=yes
8224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8227 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8239 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8249 if test "$with_gnu_ld" = no; then
8250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8251 hardcode_libdir_separator=:
8256 hardcode_shlibpath_var=no
8260 hardcode_direct_absolute=yes
8261 export_dynamic_flag_spec='${wl}-E'
8263 # hardcode_minus_L: Not really in the search PATH,
8264 # but as the default location of the library.
8265 hardcode_minus_L=yes
8271 irix5* | irix6* | nonstopux*)
8272 if test "$GCC" = yes; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8274 # Try to use the -exported_symbol ld option, if it does not
8275 # work, assume that -exports_file does not work either and
8276 # implicitly export all symbols.
8277 save_LDFLAGS="$LDFLAGS"
8278 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8279 cat >conftest.$ac_ext <<_ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8286 grep -v '^ *+' conftest.er1 >conftest.err
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8311 rm -f conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LDFLAGS="$save_LDFLAGS"
8315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8318 archive_cmds_need_lc='no'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8322 link_all_deplibs=yes
8326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8331 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_shlibpath_var=no
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 hardcode_libdir_separator=:
8341 hardcode_shlibpath_var=no
8349 hardcode_shlibpath_var=no
8350 hardcode_direct_absolute=yes
8351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8355 export_dynamic_flag_spec='${wl}-E'
8358 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-R$libdir'
8363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 allow_undefined_flag=unsupported
8374 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'
8375 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8379 if test "$GCC" = yes; then
8380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8381 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8383 allow_undefined_flag=' -expect_unresolved \*'
8384 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8386 archive_cmds_need_lc='no'
8387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8388 hardcode_libdir_separator=:
8391 osf4* | osf5*) # as osf3* with the addition of -msym flag
8392 if test "$GCC" = yes; then
8393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8394 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 allow_undefined_flag=' -expect_unresolved \*'
8398 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8399 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8400 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8402 # Both c and cxx compiler support -rpath directly
8403 hardcode_libdir_flag_spec='-rpath $libdir'
8405 archive_cmds_need_lc='no'
8406 hardcode_libdir_separator=:
8410 no_undefined_flag=' -z defs'
8411 if test "$GCC" = yes; then
8413 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8415 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8417 case `$CC -V 2>&1` in
8420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8426 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8432 hardcode_libdir_flag_spec='-R$libdir'
8433 hardcode_shlibpath_var=no
8435 solaris2.[0-5] | solaris2.[0-5].*) ;;
8437 # The compiler driver will combine and reorder linker options,
8438 # but understands `-z linker_flag'. GCC discards it without `$wl',
8439 # but is careful enough not to reorder.
8440 # Supported since Solaris 2.6 (maybe 2.5.1?)
8441 if test "$GCC" = yes; then
8442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8448 link_all_deplibs=yes
8452 if test "x$host_vendor" = xsequent; then
8453 # Use $CC to link under sequent, because it throws in some extra .o
8454 # files that make .init and .fini sections work.
8455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8459 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_minus_L=yes
8462 hardcode_shlibpath_var=no
8466 case $host_vendor in
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=yes # is this really true???
8472 ## LD is ld it makes a PLAMLIB
8473 ## CC just makes a GrossModule.
8474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8475 reload_cmds='$CC -r -o $output$reload_objs'
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8483 runpath_var='LD_RUN_PATH'
8484 hardcode_shlibpath_var=no
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_shlibpath_var=no
8490 export_dynamic_flag_spec='-Bexport'
8494 if test -d /usr/nec; then
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_shlibpath_var=no
8497 runpath_var=LD_RUN_PATH
8498 hardcode_runpath_var=yes
8503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8504 no_undefined_flag='${wl}-z,text'
8505 archive_cmds_need_lc=no
8506 hardcode_shlibpath_var=no
8507 runpath_var='LD_RUN_PATH'
8509 if test "$GCC" = yes; then
8510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 sysv5* | sco3.2v5* | sco5v6*)
8519 # Note: We can NOT use -z defs as we might desire, because we do not
8520 # link with -lc, and that would cause any symbols used from libc to
8521 # always be unresolved, which means just about no library would
8522 # ever link correctly. If we're not using GNU ld we use -z text
8523 # though, which does catch some bad symbols but isn't as heavy-handed
8525 no_undefined_flag='${wl}-z,text'
8526 allow_undefined_flag='${wl}-z,nodefs'
8527 archive_cmds_need_lc=no
8528 hardcode_shlibpath_var=no
8529 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8530 hardcode_libdir_separator=':'
8531 link_all_deplibs=yes
8532 export_dynamic_flag_spec='${wl}-Bexport'
8533 runpath_var='LD_RUN_PATH'
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_shlibpath_var=no
8555 if test x$host_vendor = xsni; then
8557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8558 export_dynamic_flag_spec='${wl}-Blargedynsym'
8564 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8565 echo "${ECHO_T}$ld_shlibs" >&6
8566 test "$ld_shlibs" = no && can_build_shared=no
8568 with_gnu_ld=$with_gnu_ld
8585 # Do we need to explicitly link libc?
8587 case "x$archive_cmds_need_lc" in
8589 # Assume -lc should be added
8590 archive_cmds_need_lc=yes
8592 if test "$enable_shared" = yes && test "$GCC" = yes; then
8593 case $archive_cmds in
8595 # FIXME: we may have to deal with multi-command sequences.
8598 # Test whether the compiler implicitly links with -lc since on some
8599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8600 # to ld, don't add -lc before -lgcc.
8601 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8602 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } 2>conftest.err; then
8613 libobjs=conftest.$ac_objext
8615 wl=$lt_prog_compiler_wl
8616 pic_flag=$lt_prog_compiler_pic
8622 lt_save_allow_undefined_flag=$allow_undefined_flag
8623 allow_undefined_flag=
8624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }
8630 archive_cmds_need_lc=no
8632 archive_cmds_need_lc=yes
8634 allow_undefined_flag=$lt_save_allow_undefined_flag
8636 cat conftest.err 1>&5
8639 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8640 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8803 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8806 if test "$withGCC" = yes; then
8808 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8809 *) lt_awk_arg="/^libraries:/" ;;
8811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8812 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8813 # if the path contains ";" then we assume it to be the separator
8814 # otherwise default to the standard path separator (i.e. ":") - it is
8815 # assumed that no part of a normal pathname contains ";" but that should
8816 # okay in the real world where ";" in dirpaths is itself problematic.
8817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8821 # Ok, now we have the path, separated by spaces, we can step through it
8822 # and add multilib dir if necessary.
8823 lt_tmp_lt_search_path_spec=
8824 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8825 for lt_sys_path in $lt_search_path_spec; do
8826 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8829 test -d "$lt_sys_path" && \
8830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8833 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8834 BEGIN {RS=" "; FS="/|\n";} {
8837 for (lt_i = NF; lt_i > 0; lt_i--) {
8838 if ($lt_i != "" && $lt_i != ".") {
8839 if ($lt_i == "..") {
8842 if (lt_count == 0) {
8843 lt_foo="/" $lt_i lt_foo;
8850 if (lt_foo != "") { lt_freq[lt_foo]++; }
8851 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8853 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8858 libname_spec='lib$name'
8866 shlibpath_overrides_runpath=unknown
8868 dynamic_linker="$host_os ld.so"
8869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8870 need_lib_prefix=unknown
8871 hardcode_into_libs=no
8873 # when you set need_version to no, make sure it does not cause -set_version
8874 # flags to be left without arguments
8875 need_version=unknown
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8881 shlibpath_var=LIBPATH
8883 # AIX 3 has no versioning support, so we append a major version to the name.
8884 soname_spec='${libname}${release}${shared_ext}$major'
8891 hardcode_into_libs=yes
8892 if test "$host_cpu" = ia64; then
8893 # AIX 5 supports IA64
8894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8895 shlibpath_var=LD_LIBRARY_PATH
8897 # With GCC up to 2.95.x, collect2 would create an import file
8898 # for dependence libraries. The import file would start with
8899 # the line `#! .'. This would cause the generated library to
8900 # depend on `.', always an invalid library. This was fixed in
8901 # development snapshots of GCC prior to 3.0.
8903 aix4 | aix4.[01] | aix4.[01].*)
8904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8914 # soname into executable. Probably we can add versioning support to
8915 # collect2, so additional links can be useful in future.
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8918 # instead of lib<name>.a to let people know that these are not
8919 # typical AIX shared libraries.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 # We preserve .a as extension for shared libraries through AIX4.2
8923 # and later when we are not doing run time linking.
8924 library_names_spec='${libname}${release}.a $libname.a'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8927 shlibpath_var=LIBPATH
8932 if test "$host_cpu" = m68k; then
8933 library_names_spec='$libname.ixlibrary $libname.a'
8934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8935 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'
8942 library_names_spec='${libname}${shared_ext}'
8943 dynamic_linker="$host_os ld.so"
8944 shlibpath_var=LIBRARY_PATH
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8956 # the default ld.so.conf also contains /usr/contrib/lib and
8957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8958 # libtool to hard-code these into programs
8961 cygwin* | mingw* | pw32*)
8962 version_type=windows
8967 case $withGCC,$host_os in
8968 yes,cygwin* | yes,mingw* | yes,pw32*)
8969 library_names_spec='$libname.dll.a'
8970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8971 postinstall_cmds='base_file=`basename \${file}`~
8972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8973 dldir=$destdir/`dirname \$dlpath`~
8974 test -d \$dldir || mkdir -p \$dldir~
8975 $install_prog $dir/$dlname \$dldir/$dlname~
8976 chmod a+x \$dldir/$dlname~
8977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8981 dlpath=$dir/\$dldll~
8983 shlibpath_overrides_runpath=yes
8987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8992 # MinGW DLLs use traditional 'lib' prefix
8993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8994 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8996 # It is most probably a Windows format PATH printed by
8997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8998 # path with ; separators, and with drive letters. We can handle the
8999 # drive letters (cygwin fileutils understands them), so leave them,
9000 # especially as we might pass files found there to a mingw objdump,
9001 # which wouldn't understand a cygwinified path. Ahh.
9002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9008 # pw32 DLLs use 'pw' prefix rather than 'lib'
9009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9018 dynamic_linker='Win32 ld.exe'
9019 # FIXME: first we should search . and the directory the executable is in
9023 darwin* | rhapsody*)
9024 dynamic_linker="$host_os dyld"
9028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9029 soname_spec='${libname}${release}${major}$shared_ext'
9030 shlibpath_overrides_runpath=yes
9031 shlibpath_var=DYLD_LIBRARY_PATH
9032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9051 freebsd* | dragonfly*)
9052 # DragonFly does not have aout. When/if they implement a new
9053 # versioning mechanism, adjust this.
9054 if test -x /usr/bin/objformat; then
9055 objformat=`/usr/bin/objformat`
9058 freebsd[123]*) objformat=aout ;;
9062 version_type=freebsd-$objformat
9063 case $version_type in
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9074 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9079 freebsd3.[01]* | freebsdelf3.[01]*)
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9085 shlibpath_overrides_runpath=no
9086 hardcode_into_libs=yes
9088 *) # from 4.6 on, and DragonFly
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 hardcode_into_libs=yes
9105 hpux9* | hpux10* | hpux11*)
9106 # Give a soname corresponding to the major version so that dld.sl refuses to
9107 # link against other versions.
9114 hardcode_into_libs=yes
9115 dynamic_linker="$host_os dld.so"
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 if test "X$HPUX_IA64_MODE" = X32; then
9121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9129 hardcode_into_libs=yes
9130 dynamic_linker="$host_os dld.sl"
9131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9140 dynamic_linker="$host_os dld.sl"
9141 shlibpath_var=SHLIB_PATH
9142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9148 postinstall_cmds='chmod 555 $lib'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=no
9160 hardcode_into_libs=yes
9163 irix5* | irix6* | nonstopux*)
9165 nonstopux*) version_type=nonstopux ;;
9167 if test "$lt_cv_prog_gnu_ld" = yes; then
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 irix5* | nonstopux*)
9182 case $LD in # libtool.m4 will add one of these switches to LD
9183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9184 libsuff= shlibsuff= libmagic=32-bit;;
9185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9186 libsuff=32 shlibsuff=N32 libmagic=N32;;
9187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9189 *) libsuff= shlibsuff= libmagic=never-match;;
9193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9194 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9197 hardcode_into_libs=yes
9200 # No shared lib support for Linux oldld, aout, or coff.
9201 linux*oldld* | linux*aout* | linux*coff*)
9205 # This must be Linux ELF.
9206 linux* | k*bsd*-gnu)
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=no
9215 # Some binutils ld are patched to set DT_RUNPATH
9216 save_LDFLAGS=$LDFLAGS
9218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag"
9245 || test ! -s conftest.err'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest$ac_exeext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9258 shlibpath_overrides_runpath=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9266 rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LDFLAGS=$save_LDFLAGS
9271 # This implies no fast_install, which is unacceptable.
9272 # Some rework will be needed to allow for fast_install
9273 # before this can be enabled.
9274 hardcode_into_libs=yes
9276 # Append ld.so.conf contents to the search path
9277 if test -f /etc/ld.so.conf; then
9278 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9282 # We used to test for /lib/ld.so.1 and disable shared libraries on
9283 # powerpc, because MkLinux only supported shared libraries with the
9284 # GNU dynamic linker. Since this was broken with cross compilers,
9285 # most powerpc-linux boxes support dynamic linking these days and
9286 # people can always --disable-shared, the test was removed, and we
9287 # assume the GNU/Linux dynamic linker is in use.
9288 dynamic_linker='GNU/Linux ld.so'
9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298 dynamic_linker='NetBSD (a.out) ld.so'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='NetBSD ld.elf_so'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9325 dynamic_linker='ldqnx.so'
9330 sys_lib_dlsearch_path_spec="/usr/lib"
9332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335 *) need_version=no ;;
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 openbsd2.[89] | openbsd2.[89].*)
9343 shlibpath_overrides_runpath=no
9346 shlibpath_overrides_runpath=yes
9350 shlibpath_overrides_runpath=yes
9355 libname_spec='$name'
9358 library_names_spec='$libname${shared_ext} $libname.a'
9359 dynamic_linker='OS/2 ld.exe'
9360 shlibpath_var=LIBPATH
9363 osf3* | osf4* | osf5*)
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9386 hardcode_into_libs=yes
9387 # ldd complains unless libraries are executable
9388 postinstall_cmds='chmod +x $lib'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9397 if test "$with_gnu_ld" = yes; then
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 case $host_vendor in
9410 shlibpath_overrides_runpath=no
9412 runpath_var=LD_RUN_PATH
9420 shlibpath_overrides_runpath=no
9421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9427 if test -d /usr/nec ;then
9429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9430 soname_spec='$libname${shared_ext}.$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9436 version_type=freebsd-elf
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9443 hardcode_into_libs=yes
9444 if test "$with_gnu_ld" = yes; then
9445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9454 sys_lib_dlsearch_path_spec='/usr/lib'
9458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9462 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9479 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9480 echo "${ECHO_T}$dynamic_linker" >&6
9481 test "$dynamic_linker" = no && can_build_shared=no
9483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9484 if test "$GCC" = yes; then
9485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9574 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9575 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9577 if test -n "$hardcode_libdir_flag_spec" ||
9578 test -n "$runpath_var" ||
9579 test "X$hardcode_automatic" = "Xyes" ; then
9581 # We can hardcode non-existent directories.
9582 if test "$hardcode_direct" != no &&
9583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9584 # have to relink, otherwise we might link with an installed library
9585 # when we should be linking with a yet-to-be-installed one
9586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9587 test "$hardcode_minus_L" != no; then
9588 # Linking always hardcodes the temporary library directory.
9589 hardcode_action=relink
9591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9592 hardcode_action=immediate
9595 # We cannot hardcode anything, or else we can only hardcode existing
9597 hardcode_action=unsupported
9599 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9600 echo "${ECHO_T}$hardcode_action" >&6
9602 if test "$hardcode_action" = relink ||
9603 test "$inherit_rpath" = yes; then
9604 # Fast installation is not supported
9605 enable_fast_install=no
9606 elif test "$shlibpath_overrides_runpath" = yes ||
9607 test "$enable_shared" = no; then
9608 # Fast installation is not necessary
9609 enable_fast_install=needless
9617 if test "x$enable_dlopen" != xyes; then
9618 enable_dlopen=unknown
9619 enable_dlopen_self=unknown
9620 enable_dlopen_self_static=unknown
9627 lt_cv_dlopen="load_add_on"
9629 lt_cv_dlopen_self=yes
9633 lt_cv_dlopen="LoadLibrary"
9638 lt_cv_dlopen="dlopen"
9643 # if libdl is installed we need to link against it
9644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS=$LIBS
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9677 grep -v '^ *+' conftest.er1 >conftest.err
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_dl_dlopen=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_dl_dlopen=no
9702 rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9706 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9708 if test $ac_cv_lib_dl_dlopen = yes; then
9709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9714 lt_cv_dlopen_self=yes
9721 echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define shl_load innocuous_shl_load
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char shl_load (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9763 char (*f) () = shl_load;
9772 return f != shl_load;
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_func_shl_load=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_func_shl_load=no
9806 rm -f conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9811 if test $ac_cv_func_shl_load = yes; then
9812 lt_cv_dlopen="shl_load"
9814 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_check_lib_save_LIBS=$LIBS
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dld_shl_load=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_lib_dld_shl_load=no
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9878 if test $ac_cv_lib_dld_shl_load = yes; then
9879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9881 echo "$as_me:$LINENO: checking for dlopen" >&5
9882 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9883 if test "${ac_cv_func_dlopen+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 cat >conftest.$ac_ext <<_ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9894 #define dlopen innocuous_dlopen
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char dlopen (); below.
9898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9899 <limits.h> exists even on freestanding compilers. */
9902 # include <limits.h>
9904 # include <assert.h>
9909 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9923 char (*f) () = dlopen;
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_cv_func_dlopen=yes
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_cv_func_dlopen=no
9966 rm -f conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9971 if test $ac_cv_func_dlopen = yes; then
9972 lt_cv_dlopen="dlopen"
9974 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9975 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 ac_check_lib_save_LIBS=$LIBS
9981 cat >conftest.$ac_ext <<_ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_lib_dl_dlopen=yes
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_cv_lib_dl_dlopen=no
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10038 if test $ac_cv_lib_dl_dlopen = yes; then
10039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 ac_check_lib_save_LIBS=$LIBS
10047 LIBS="-lsvld $LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10055 /* Override any gcc2 internal prototype to avoid an error. */
10059 /* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072 (eval $ac_link) 2>conftest.er1
10074 grep -v '^ *+' conftest.er1 >conftest.err
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 ac_cv_lib_svld_dlopen=yes
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ac_cv_lib_svld_dlopen=no
10099 rm -f conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10103 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10105 if test $ac_cv_lib_svld_dlopen = yes; then
10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 ac_check_lib_save_LIBS=$LIBS
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10122 /* Override any gcc2 internal prototype to avoid an error. */
10126 /* We use char because int might match the return type of a gcc2
10127 builtin and then its argument prototype would still apply. */
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_lib_dld_dld_link=yes
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_cv_lib_dld_dld_link=no
10166 rm -f conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10172 if test $ac_cv_lib_dld_dld_link = yes; then
10173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10194 if test "x$lt_cv_dlopen" != xno; then
10200 case $lt_cv_dlopen in
10202 save_CPPFLAGS="$CPPFLAGS"
10203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10205 save_LDFLAGS="$LDFLAGS"
10206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10209 LIBS="$lt_cv_dlopen_libs $LIBS"
10211 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10212 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10213 if test "${lt_cv_dlopen_self+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 if test "$cross_compiling" = yes; then :
10217 lt_cv_dlopen_self=cross
10219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220 lt_status=$lt_dlunknown
10221 cat > conftest.$ac_ext <<_LT_EOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10232 # define LT_DLGLOBAL RTLD_GLOBAL
10235 # define LT_DLGLOBAL DL_GLOBAL
10237 # define LT_DLGLOBAL 0
10241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10242 find out it does not work in some platform. */
10243 #ifndef LT_DLLAZY_OR_NOW
10245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10248 # define LT_DLLAZY_OR_NOW DL_LAZY
10251 # define LT_DLLAZY_OR_NOW RTLD_NOW
10254 # define LT_DLLAZY_OR_NOW DL_NOW
10256 # define LT_DLLAZY_OR_NOW 0
10264 extern "C" void exit (int);
10267 void fnord() { int i=42;}
10270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10271 int status = $lt_dlunknown;
10275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10277 /* dlclose (self); */
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10290 (./conftest; exit; ) >&5 2>/dev/null
10292 case x$lt_status in
10293 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10295 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10298 # compilation failed
10299 lt_cv_dlopen_self=no
10306 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10307 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10309 if test "x$lt_cv_dlopen_self" = xyes; then
10310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10311 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10312 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10313 if test "${lt_cv_dlopen_self_static+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 if test "$cross_compiling" = yes; then :
10317 lt_cv_dlopen_self_static=cross
10319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10320 lt_status=$lt_dlunknown
10321 cat > conftest.$ac_ext <<_LT_EOF
10322 #line 10322 "configure"
10323 #include "confdefs.h"
10332 # define LT_DLGLOBAL RTLD_GLOBAL
10335 # define LT_DLGLOBAL DL_GLOBAL
10337 # define LT_DLGLOBAL 0
10341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10342 find out it does not work in some platform. */
10343 #ifndef LT_DLLAZY_OR_NOW
10345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10348 # define LT_DLLAZY_OR_NOW DL_LAZY
10351 # define LT_DLLAZY_OR_NOW RTLD_NOW
10354 # define LT_DLLAZY_OR_NOW DL_NOW
10356 # define LT_DLLAZY_OR_NOW 0
10364 extern "C" void exit (int);
10367 void fnord() { int i=42;}
10370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10371 int status = $lt_dlunknown;
10375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10377 /* dlclose (self); */
10385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10390 (./conftest; exit; ) >&5 2>/dev/null
10392 case x$lt_status in
10393 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10395 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10398 # compilation failed
10399 lt_cv_dlopen_self_static=no
10406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10407 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10410 CPPFLAGS="$save_CPPFLAGS"
10411 LDFLAGS="$save_LDFLAGS"
10416 case $lt_cv_dlopen_self in
10417 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10418 *) enable_dlopen_self=unknown ;;
10421 case $lt_cv_dlopen_self_static in
10422 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10423 *) enable_dlopen_self_static=unknown ;;
10445 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10446 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10447 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10448 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10449 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10450 echo "$as_me:$LINENO: result: yes" >&5
10451 echo "${ECHO_T}yes" >&6
10453 # FIXME - insert some real tests, host_os isn't really good enough
10456 if test -n "$STRIP" ; then
10457 striplib="$STRIP -x"
10458 old_striplib="$STRIP -S"
10459 echo "$as_me:$LINENO: result: yes" >&5
10460 echo "${ECHO_T}yes" >&6
10462 echo "$as_me:$LINENO: result: no" >&5
10463 echo "${ECHO_T}no" >&6
10467 echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6
10484 # Report which library types will actually be built
10485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10488 echo "${ECHO_T}$can_build_shared" >&6
10490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10492 test "$can_build_shared" = "no" && enable_shared=no
10494 # On AIX, shared libraries and static libraries use the same namespace, and
10495 # are all built from PIC.
10498 test "$enable_shared" = yes && enable_static=no
10499 if test -n "$RANLIB"; then
10500 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10501 postinstall_cmds='$RANLIB $lib'
10506 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10507 test "$enable_shared" = yes && enable_static=no
10511 echo "$as_me:$LINENO: result: $enable_shared" >&5
10512 echo "${ECHO_T}$enable_shared" >&6
10514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10516 # Make sure either enable_shared or enable_static is yes.
10517 test "$enable_shared" = yes || enable_static=yes
10518 echo "$as_me:$LINENO: result: $enable_static" >&5
10519 echo "${ECHO_T}$enable_static" >&6
10526 ac_cpp='$CPP $CPPFLAGS'
10527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10545 ac_config_commands="$ac_config_commands libtool"
10550 # Only expand once:
10554 # Check whether --enable-targets or --disable-targets was given.
10555 if test "${enable_targets+set}" = set; then
10556 enableval="$enable_targets"
10557 case "${enableval}" in
10558 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10559 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10560 { (exit 1); exit 1; }; }
10562 no) enable_targets= ;;
10563 *) enable_targets=$enableval ;;
10565 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566 if test "${enable_commonbfdlib+set}" = set; then
10567 enableval="$enable_commonbfdlib"
10568 case "${enableval}" in
10569 yes) commonbfdlib=true ;;
10570 no) commonbfdlib=false ;;
10571 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10577 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10579 # Check whether --enable-werror or --disable-werror was given.
10580 if test "${enable_werror+set}" = set; then
10581 enableval="$enable_werror"
10582 case "${enableval}" in
10583 yes | y) ERROR_ON_WARNING="yes" ;;
10584 no | n) ERROR_ON_WARNING="no" ;;
10585 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10586 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10587 { (exit 1); exit 1; }; } ;;
10591 # Enable -Wno-format by default when using gcc on mingw
10594 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10595 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10601 # Enable -Werror by default when using gcc
10602 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10603 ERROR_ON_WARNING=yes
10607 if test "${ERROR_ON_WARNING}" = yes ; then
10608 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10609 NO_WERROR="-Wno-error"
10612 if test "${GCC}" = yes ; then
10613 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10616 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10617 if test "${enable_build_warnings+set}" = set; then
10618 enableval="$enable_build_warnings"
10619 case "${enableval}" in
10620 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10621 no) if test "${GCC}" = yes ; then
10624 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10625 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10626 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10627 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10628 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10632 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10633 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10640 ac_config_headers="$ac_config_headers config.h:config.in"
10643 if test -z "$target" ; then
10644 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10645 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10646 { (exit 1); exit 1; }; }
10648 if test -z "$host" ; then
10649 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10650 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10651 { (exit 1); exit 1; }; }
10654 for ac_prog in 'bison -y' byacc
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_prog_YACC+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 if test -n "$YACC"; then
10664 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_YACC="$ac_prog"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 YACC=$ac_cv_prog_YACC
10683 if test -n "$YACC"; then
10684 echo "$as_me:$LINENO: result: $YACC" >&5
10685 echo "${ECHO_T}$YACC" >&6
10687 echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10691 test -n "$YACC" && break
10693 test -n "$YACC" || YACC="yacc"
10695 for ac_prog in flex lex
10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
10698 set dummy $ac_prog; ac_word=$2
10699 echo "$as_me:$LINENO: checking for $ac_word" >&5
10700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701 if test "${ac_cv_prog_LEX+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 if test -n "$LEX"; then
10705 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_prog_LEX="$ac_prog"
10715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 LEX=$ac_cv_prog_LEX
10724 if test -n "$LEX"; then
10725 echo "$as_me:$LINENO: result: $LEX" >&5
10726 echo "${ECHO_T}$LEX" >&6
10728 echo "$as_me:$LINENO: result: no" >&5
10729 echo "${ECHO_T}no" >&6
10732 test -n "$LEX" && break
10734 test -n "$LEX" || LEX=":"
10736 if test -z "$LEXLIB"
10738 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10739 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10740 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 ac_check_lib_save_LIBS=$LIBS
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 /* Override any gcc2 internal prototype to avoid an error. */
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_lib_fl_yywrap=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_cv_lib_fl_yywrap=no
10796 rm -f conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10801 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10802 if test $ac_cv_lib_fl_yywrap = yes; then
10805 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10806 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10807 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 ac_check_lib_save_LIBS=$LIBS
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any gcc2 internal prototype to avoid an error. */
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_cv_lib_l_yywrap=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_cv_lib_l_yywrap=no
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10868 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10869 if test $ac_cv_lib_l_yywrap = yes; then
10877 if test "x$LEX" != "x:"; then
10878 echo "$as_me:$LINENO: checking lex output file root" >&5
10879 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10880 if test "${ac_cv_prog_lex_root+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 # The minimal lex program is just a single line: %%. But some broken lexes
10884 # (Solaris, I think it was) want two %% lines, so accommodate them.
10885 cat >conftest.l <<_ACEOF
10889 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10890 (eval $LEX conftest.l) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }
10894 if test -f lex.yy.c; then
10895 ac_cv_prog_lex_root=lex.yy
10896 elif test -f lexyy.c; then
10897 ac_cv_prog_lex_root=lexyy
10899 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10900 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10901 { (exit 1); exit 1; }; }
10904 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10905 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10907 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10909 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10910 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10911 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 # POSIX says lex can declare yytext either as a pointer or an array; the
10915 # default is implementation-dependent. Figure out which it is, since
10916 # not all implementations provide the %pointer and %array declarations.
10917 ac_cv_prog_lex_yytext_pointer=no
10918 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10920 LIBS="$LIBS $LEXLIB"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 `cat $LEX_OUTPUT_ROOT.c`
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_prog_lex_yytext_pointer=yes
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10952 rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10955 rm -f "${LEX_OUTPUT_ROOT}.c"
10958 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10959 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10960 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10962 cat >>confdefs.h <<\_ACEOF
10963 #define YYTEXT_POINTER 1
10969 if test "$LEX" = :; then
10970 LEX=${am_missing_run}flex
10973 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10974 # If we haven't got the data from the intl directory,
10975 # assume NLS is disabled.
10984 if test -f ../intl/config.intl; then
10985 . ../intl/config.intl
10987 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10988 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10989 if test x"$USE_NLS" != xyes; then
10990 echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10993 echo "$as_me:$LINENO: result: yes" >&5
10994 echo "${ECHO_T}yes" >&6
10996 cat >>confdefs.h <<\_ACEOF
10997 #define ENABLE_NLS 1
11001 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11002 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11003 # Look for .po and .gmo files in the source directory.
11006 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11007 # If there aren't any .gmo files the shell will give us the
11008 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11010 case "$cat" in *\**)
11013 # The quadruple backslash is collapsed to a double backslash
11014 # by the backticks, then collapsed again by the double quotes,
11015 # leaving us with one backslash in the sed expression (right
11016 # before the dot that mustn't act as a wildcard).
11017 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11018 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11019 # The user is allowed to set LINGUAS to a list of languages to
11020 # install catalogs for. If it's empty that means "all of them."
11021 if test "x$LINGUAS" = x; then
11022 CATALOGS="$CATALOGS $cat"
11023 XLINGUAS="$XLINGUAS $lang"
11025 case "$LINGUAS" in *$lang*)
11026 CATALOGS="$CATALOGS $cat"
11027 XLINGUAS="$XLINGUAS $lang"
11032 LINGUAS="$XLINGUAS"
11033 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11034 echo "${ECHO_T}$LINGUAS" >&6
11048 if test -n "$ac_aux_dir"; then
11049 case "$ac_aux_dir" in
11050 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11051 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11054 if test -z "$MKINSTALLDIRS"; then
11055 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11060 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11061 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11062 # Check whether --enable-nls or --disable-nls was given.
11063 if test "${enable_nls+set}" = set; then
11064 enableval="$enable_nls"
11069 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11070 echo "${ECHO_T}$USE_NLS" >&6
11077 # Prepare PATH_SEPARATOR.
11078 # The user is always right.
11079 if test "${PATH_SEPARATOR+set}" != set; then
11080 echo "#! /bin/sh" >conf$$.sh
11081 echo "exit 0" >>conf$$.sh
11083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11091 # Find out how to test for executable files. Don't use a zero-byte file,
11092 # as systems may use methods other than mode bits to determine executability.
11093 cat >conf$$.file <<_ASEOF
11097 chmod +x conf$$.file
11098 if test -x conf$$.file >/dev/null 2>&1; then
11099 ac_executable_p="test -x"
11101 ac_executable_p="test -f"
11105 # Extract the first word of "msgfmt", so it can be a program name with args.
11106 set dummy msgfmt; ac_word=$2
11107 echo "$as_me:$LINENO: checking for $ac_word" >&5
11108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11109 if test "${ac_cv_path_MSGFMT+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11117 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11118 for ac_dir in $PATH; do
11120 test -z "$ac_dir" && ac_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11123 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11124 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11125 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11136 MSGFMT="$ac_cv_path_MSGFMT"
11137 if test "$MSGFMT" != ":"; then
11138 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11139 echo "${ECHO_T}$MSGFMT" >&6
11141 echo "$as_me:$LINENO: result: no" >&5
11142 echo "${ECHO_T}no" >&6
11145 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11146 set dummy gmsgfmt; ac_word=$2
11147 echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11175 GMSGFMT=$ac_cv_path_GMSGFMT
11177 if test -n "$GMSGFMT"; then
11178 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11179 echo "${ECHO_T}$GMSGFMT" >&6
11181 echo "$as_me:$LINENO: result: no" >&5
11182 echo "${ECHO_T}no" >&6
11187 # Prepare PATH_SEPARATOR.
11188 # The user is always right.
11189 if test "${PATH_SEPARATOR+set}" != set; then
11190 echo "#! /bin/sh" >conf$$.sh
11191 echo "exit 0" >>conf$$.sh
11193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11201 # Find out how to test for executable files. Don't use a zero-byte file,
11202 # as systems may use methods other than mode bits to determine executability.
11203 cat >conf$$.file <<_ASEOF
11207 chmod +x conf$$.file
11208 if test -x conf$$.file >/dev/null 2>&1; then
11209 ac_executable_p="test -x"
11211 ac_executable_p="test -f"
11215 # Extract the first word of "xgettext", so it can be a program name with args.
11216 set dummy xgettext; ac_word=$2
11217 echo "$as_me:$LINENO: checking for $ac_word" >&5
11218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 case "$XGETTEXT" in
11224 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11228 for ac_dir in $PATH; do
11230 test -z "$ac_dir" && ac_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11233 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11234 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11235 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11242 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11246 XGETTEXT="$ac_cv_path_XGETTEXT"
11247 if test "$XGETTEXT" != ":"; then
11248 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11249 echo "${ECHO_T}$XGETTEXT" >&6
11251 echo "$as_me:$LINENO: result: no" >&5
11252 echo "${ECHO_T}no" >&6
11258 # Prepare PATH_SEPARATOR.
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 echo "#! /bin/sh" >conf$$.sh
11262 echo "exit 0" >>conf$$.sh
11264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11272 # Find out how to test for executable files. Don't use a zero-byte file,
11273 # as systems may use methods other than mode bits to determine executability.
11274 cat >conf$$.file <<_ASEOF
11278 chmod +x conf$$.file
11279 if test -x conf$$.file >/dev/null 2>&1; then
11280 ac_executable_p="test -x"
11282 ac_executable_p="test -f"
11286 # Extract the first word of "msgmerge", so it can be a program name with args.
11287 set dummy msgmerge; ac_word=$2
11288 echo "$as_me:$LINENO: checking for $ac_word" >&5
11289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 case "$MSGMERGE" in
11295 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11298 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11299 for ac_dir in $PATH; do
11301 test -z "$ac_dir" && ac_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11304 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11305 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11312 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11316 MSGMERGE="$ac_cv_path_MSGMERGE"
11317 if test "$MSGMERGE" != ":"; then
11318 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11319 echo "${ECHO_T}$MSGMERGE" >&6
11321 echo "$as_me:$LINENO: result: no" >&5
11322 echo "${ECHO_T}no" >&6
11326 if test "$GMSGFMT" != ":"; then
11327 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11328 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11331 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11332 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11333 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11338 if test "$XGETTEXT" != ":"; then
11339 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11340 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11343 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11344 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11350 ac_config_commands="$ac_config_commands default-1"
11354 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11355 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11356 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11357 if test "${enable_maintainer_mode+set}" = set; then
11358 enableval="$enable_maintainer_mode"
11359 USE_MAINTAINER_MODE=$enableval
11361 USE_MAINTAINER_MODE=no
11363 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11364 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11367 if test $USE_MAINTAINER_MODE = yes; then
11368 MAINTAINER_MODE_TRUE=
11369 MAINTAINER_MODE_FALSE='#'
11371 MAINTAINER_MODE_TRUE='#'
11372 MAINTAINER_MODE_FALSE=
11375 MAINT=$MAINTAINER_MODE_TRUE
11381 GENINSRC_NEVER_TRUE=
11382 GENINSRC_NEVER_FALSE='#'
11384 GENINSRC_NEVER_TRUE='#'
11385 GENINSRC_NEVER_FALSE=
11389 if test -n "$EXEEXT"; then
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_EXECUTABLE_SUFFIX 1
11397 cat >>confdefs.h <<_ACEOF
11398 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11402 # host-specific stuff:
11406 . ${srcdir}/../bfd/configure.host
11411 if test -n "$ac_tool_prefix"; then
11412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11414 echo "$as_me:$LINENO: checking for $ac_word" >&5
11415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11416 if test "${ac_cv_prog_RANLIB+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 if test -n "$RANLIB"; then
11420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 RANLIB=$ac_cv_prog_RANLIB
11439 if test -n "$RANLIB"; then
11440 echo "$as_me:$LINENO: result: $RANLIB" >&5
11441 echo "${ECHO_T}$RANLIB" >&6
11443 echo "$as_me:$LINENO: result: no" >&5
11444 echo "${ECHO_T}no" >&6
11448 if test -z "$ac_cv_prog_RANLIB"; then
11449 ac_ct_RANLIB=$RANLIB
11450 # Extract the first word of "ranlib", so it can be a program name with args.
11451 set dummy ranlib; ac_word=$2
11452 echo "$as_me:$LINENO: checking for $ac_word" >&5
11453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 if test -n "$ac_ct_RANLIB"; then
11458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11467 ac_cv_prog_ac_ct_RANLIB="ranlib"
11468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11478 if test -n "$ac_ct_RANLIB"; then
11479 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11480 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11482 echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6
11486 RANLIB=$ac_ct_RANLIB
11488 RANLIB="$ac_cv_prog_RANLIB"
11491 # Find a good install program. We prefer a C program (faster),
11492 # so one script is as good as another. But avoid the broken or
11493 # incompatible versions:
11494 # SysV /etc/install, /usr/sbin/install
11495 # SunOS /usr/etc/install
11496 # IRIX /sbin/install
11498 # AmigaOS /C/install, which installs bootblocks on floppy discs
11499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11502 # OS/2's system install, which has a completely different semantic
11503 # ./install, which can be erroneously created by make from ./install.sh.
11504 # Reject install programs that cannot install multiple files.
11505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11507 if test -z "$INSTALL"; then
11508 if test "${ac_cv_path_install+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11515 test -z "$as_dir" && as_dir=.
11516 # Account for people who put trailing slashes in PATH elements.
11518 ./ | .// | /cC/* | \
11519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11523 # OSF1 and SCO ODT 3.0 have their own names for install.
11524 # Don't use installbsd from OSF since it installs stuff as root
11526 for ac_prog in ginstall scoinst install; do
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11529 if test $ac_prog = install &&
11530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11531 # AIX install. It has an incompatible calling convention.
11533 elif test $ac_prog = install &&
11534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11535 # program-specific install script used by HP pwplus--don't use.
11538 rm -rf conftest.one conftest.two conftest.dir
11539 echo one > conftest.one
11540 echo two > conftest.two
11542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11543 test -s conftest.one && test -s conftest.two &&
11544 test -s conftest.dir/conftest.one &&
11545 test -s conftest.dir/conftest.two
11547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11558 rm -rf conftest.one conftest.two conftest.dir
11561 if test "${ac_cv_path_install+set}" = set; then
11562 INSTALL=$ac_cv_path_install
11564 # As a last resort, use the slow shell script. Don't cache a
11565 # value for INSTALL within a source directory, because that will
11566 # break other packages using the cache if that directory is
11567 # removed, or if the value is a relative name.
11568 INSTALL=$ac_install_sh
11571 echo "$as_me:$LINENO: result: $INSTALL" >&5
11572 echo "${ECHO_T}$INSTALL" >&6
11574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11575 # It thinks the first close brace ends the variable substitution.
11576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11583 # Put a plausible default for CC_FOR_BUILD in Makefile.
11584 if test -z "$CC_FOR_BUILD"; then
11585 if test "x$cross_compiling" = "xno"; then
11586 CC_FOR_BUILD='$(CC)'
11592 # Also set EXEEXT_FOR_BUILD.
11593 if test "x$cross_compiling" = "xno"; then
11594 EXEEXT_FOR_BUILD='$(EXEEXT)'
11596 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11597 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11598 if test "${bfd_cv_build_exeext+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 echo 'int main () { return 0; }' > conftest.c
11603 bfd_cv_build_exeext=
11604 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11605 for file in conftest.*; do
11607 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11608 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11612 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11614 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11615 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11616 EXEEXT_FOR_BUILD=""
11617 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11621 DEMANGLER_NAME=c++filt
11623 *-*-go32* | *-*-msdos*)
11624 DEMANGLER_NAME=cxxfilt
11636 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11648 # Is the header compilable?
11649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11658 #include <$ac_header>
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_header_compiler=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_header_compiler=no
11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11691 echo "${ECHO_T}$ac_header_compiler" >&6
11693 # Is the header present?
11694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11696 cat >conftest.$ac_ext <<_ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 #include <$ac_header>
11704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } >/dev/null; then
11712 if test -s conftest.err; then
11713 ac_cpp_err=$ac_c_preproc_warn_flag
11714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11721 if test -z "$ac_cpp_err"; then
11722 ac_header_preproc=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 ac_header_preproc=no
11729 rm -f conftest.err conftest.$ac_ext
11730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731 echo "${ECHO_T}$ac_header_preproc" >&6
11733 # So? What about this header?
11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11740 ac_header_preproc=yes
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11757 ## ------------------------------------------ ##
11758 ## Report this to the AC_PACKAGE_NAME lists. ##
11759 ## ------------------------------------------ ##
11762 sed "s/^/$as_me: WARNING: /" >&2
11765 echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 eval "$as_ac_Header=\$ac_header_preproc"
11772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11777 cat >>confdefs.h <<_ACEOF
11778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11785 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11786 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11787 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <sys/types.h>
11797 #include <sys/wait.h>
11798 #ifndef WEXITSTATUS
11799 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11802 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11810 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_header_sys_wait_h=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_cv_header_sys_wait_h=no
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11847 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11848 if test $ac_cv_header_sys_wait_h = yes; then
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_SYS_WAIT_H 1
11856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11857 # for constant arguments. Useless!
11858 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11860 if test "${ac_cv_working_alloca_h+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <alloca.h>
11873 char *p = (char *) alloca (2 * sizeof (int));
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_working_alloca_h=yes
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_working_alloca_h=no
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11910 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11911 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11912 if test $ac_cv_working_alloca_h = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_ALLOCA_H 1
11920 echo "$as_me:$LINENO: checking for alloca" >&5
11921 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11922 if test "${ac_cv_func_alloca_works+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11932 # define alloca __builtin_alloca
11935 # include <malloc.h>
11936 # define alloca _alloca
11939 # include <alloca.h>
11944 # ifndef alloca /* predefined by HP cc +Olibcalls */
11955 char *p = (char *) alloca (1);
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_func_alloca_works=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_func_alloca_works=no
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11993 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11995 if test $ac_cv_func_alloca_works = yes; then
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_ALLOCA 1
12002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12003 # that cause trouble. Some versions do not even contain alloca or
12004 # contain a buggy version. If you still want to use their alloca,
12005 # use ar to extract alloca.o from them instead of compiling alloca.c.
12007 ALLOCA=alloca.$ac_objext
12009 cat >>confdefs.h <<\_ACEOF
12014 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12015 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12016 if test "${ac_cv_os_cray+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 #if defined(CRAY) && ! defined(CRAY2)
12032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12033 $EGREP "webecray" >/dev/null 2>&1; then
12041 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12042 echo "${ECHO_T}$ac_cv_os_cray" >&6
12043 if test $ac_cv_os_cray = yes; then
12044 for ac_func in _getb67 GETB67 getb67; do
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12048 if eval "test \"\${$as_ac_var+set}\" = set"; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define $ac_func innocuous_$ac_func
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12067 # include <limits.h>
12069 # include <assert.h>
12074 /* Override any gcc2 internal prototype to avoid an error. */
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088 char (*f) () = $ac_func;
12097 return f != $ac_func;
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define CRAY_STACKSEG_END $ac_func
12148 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12149 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12150 if test "${ac_cv_c_stack_direction+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 if test "$cross_compiling" = yes; then
12154 ac_cv_c_stack_direction=0
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 find_stack_direction ()
12165 static char *addr = 0;
12170 return find_stack_direction ();
12173 return (&dummy > addr) ? 1 : -1;
12179 exit (find_stack_direction () < 0);
12182 rm -f conftest$ac_exeext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_c_stack_direction=1
12195 echo "$as_me: program exited with status $ac_status" >&5
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ( exit $ac_status )
12200 ac_cv_c_stack_direction=-1
12202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12205 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12206 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12208 cat >>confdefs.h <<_ACEOF
12209 #define STACK_DIRECTION $ac_cv_c_stack_direction
12220 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:$LINENO: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12244 # include <limits.h>
12246 # include <assert.h>
12251 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12265 char (*f) () = $ac_func;
12274 return f != $ac_func;
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 eval "$as_ac_var=yes"
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 eval "$as_ac_var=no"
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12321 echo "$as_me:$LINENO: checking for mkstemp" >&5
12322 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12323 if test "${ac_cv_func_mkstemp+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12334 #define mkstemp innocuous_mkstemp
12336 /* System header to define __stub macros and hopefully few prototypes,
12337 which can conflict with char mkstemp (); below.
12338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339 <limits.h> exists even on freestanding compilers. */
12342 # include <limits.h>
12344 # include <assert.h>
12349 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12357 /* The GNU C library defines this for functions which it implements
12358 to always fail with ENOSYS. Some functions are actually named
12359 something starting with __ and the normal name is an alias. */
12360 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12363 char (*f) () = mkstemp;
12372 return f != mkstemp;
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_func_mkstemp=yes
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_func_mkstemp=no
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12409 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12410 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12411 if test $ac_cv_func_mkstemp = yes; then
12413 cat >>confdefs.h <<\_ACEOF
12414 #define HAVE_MKSTEMP 1
12419 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12420 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12421 if test "${ac_cv_func_mkdtemp+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define mkdtemp innocuous_mkdtemp
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char mkdtemp (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12440 # include <limits.h>
12442 # include <assert.h>
12447 /* Override any gcc2 internal prototype to avoid an error. */
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12455 /* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12461 char (*f) () = mkdtemp;
12470 return f != mkdtemp;
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_cv_func_mkdtemp=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 ac_cv_func_mkdtemp=no
12504 rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12507 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12508 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12509 if test $ac_cv_func_mkdtemp = yes; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_MKDTEMP 1
12518 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12519 # needs to be defined for it
12520 echo "$as_me:$LINENO: checking for fopen64" >&5
12521 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12522 if test "${bu_cv_have_fopen64+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 cat >conftest.$ac_ext <<_ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12535 FILE *f = fopen64 ("/tmp/foo","r");
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 bu_cv_have_fopen64=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 saved_CPPFLAGS=$CPPFLAGS
12568 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12569 cat >conftest.$ac_ext <<_ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12579 FILE *f = fopen64 ("/tmp/foo","r");
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 bu_cv_have_fopen64=no
12613 rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 CPPFLAGS=$saved_CPPFLAGS
12617 rm -f conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12621 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12622 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12623 if test "$bu_cv_have_fopen64" != no; then
12625 cat >>confdefs.h <<\_ACEOF
12626 #define HAVE_FOPEN64 1
12630 echo "$as_me:$LINENO: checking for stat64" >&5
12631 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12632 if test "${bu_cv_have_stat64+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 cat >conftest.$ac_ext <<_ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 #include <sys/stat.h>
12645 struct stat64 st; stat64 ("/tmp/foo", &st);
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 bu_cv_have_stat64=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 saved_CPPFLAGS=$CPPFLAGS
12678 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 #include <sys/stat.h>
12689 struct stat64 st; stat64 ("/tmp/foo", &st);
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>conftest.er1
12698 grep -v '^ *+' conftest.er1 >conftest.err
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 bu_cv_have_stat64=no
12723 rm -f conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 CPPFLAGS=$saved_CPPFLAGS
12727 rm -f conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12731 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12732 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12733 if test "$bu_cv_have_stat64" != no; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_STAT64 1
12740 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12741 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define _LARGEFILE64_SOURCE 1
12747 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12750 # Some systems have frexp only in -lm, not in -lc.
12751 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12752 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12753 if test "${ac_cv_search_frexp+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_func_search_save_LIBS=$LIBS
12757 ac_cv_search_frexp=no
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_search_frexp="none required"
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12808 rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 if test "$ac_cv_search_frexp" = no; then
12811 for ac_lib in m; do
12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12813 cat >conftest.$ac_ext <<_ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12820 /* Override any gcc2 internal prototype to avoid an error. */
12824 /* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_search_frexp="-l$ac_lib"
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12864 rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_func_search_save_LIBS
12870 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12871 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12872 if test "$ac_cv_search_frexp" != no; then
12873 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12878 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12879 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12880 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 bu_cv_decl_time_t_time_h=yes
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 bu_cv_decl_time_t_time_h=no
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12931 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12932 if test $bu_cv_decl_time_t_time_h = yes; then
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_TIME_T_IN_TIME_H 1
12940 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12941 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12942 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <sys/types.h>
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12964 grep -v '^ *+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_c_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 bu_cv_decl_time_t_types_h=yes
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 bu_cv_decl_time_t_types_h=no
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12992 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12993 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12994 if test $bu_cv_decl_time_t_types_h = yes; then
12996 cat >>confdefs.h <<\_ACEOF
12997 #define HAVE_TIME_T_IN_TYPES_H 1
13002 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13003 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13004 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 #include <unistd.h>
13017 extern int getopt (int, char *const*, const char *);
13022 rm -f conftest.$ac_objext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 bu_cv_decl_getopt_unistd_h=yes
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 bu_cv_decl_getopt_unistd_h=no
13051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13054 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13055 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
13056 if test $bu_cv_decl_getopt_unistd_h = yes; then
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_DECL_GETOPT 1
13064 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13066 echo "$as_me:$LINENO: checking for utime.h" >&5
13067 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13068 if test "${bu_cv_header_utime_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 #include <sys/types.h>
13090 rm -f conftest.$ac_objext
13091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13092 (eval $ac_compile) 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag"
13100 || test ! -s conftest.err'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; } &&
13106 { ac_try='test -s conftest.$ac_objext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 bu_cv_header_utime_h=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 bu_cv_header_utime_h=no
13119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13123 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
13124 if test $bu_cv_header_utime_h = yes; then
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_GOOD_UTIME_H 1
13132 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13133 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13134 if test "${ac_cv_have_decl_fprintf+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 $ac_includes_default
13148 char *p = (char *) fprintf;
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_have_decl_fprintf=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_cv_have_decl_fprintf=no
13184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13187 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13188 if test $ac_cv_have_decl_fprintf = yes; then
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_DECL_FPRINTF 1
13196 cat >>confdefs.h <<_ACEOF
13197 #define HAVE_DECL_FPRINTF 0
13202 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13203 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13204 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13218 char *p = (char *) stpcpy;
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag"
13235 || test ! -s conftest.err'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_cv_have_decl_stpcpy=yes
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 ac_cv_have_decl_stpcpy=no
13254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13256 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13257 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13258 if test $ac_cv_have_decl_stpcpy = yes; then
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_DECL_STPCPY 1
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_STPCPY 0
13272 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13273 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13274 if test "${ac_cv_have_decl_strstr+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13288 char *p = (char *) strstr;
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_have_decl_strstr=yes
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_cv_have_decl_strstr=no
13324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13327 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13328 if test $ac_cv_have_decl_strstr = yes; then
13330 cat >>confdefs.h <<_ACEOF
13331 #define HAVE_DECL_STRSTR 1
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_DECL_STRSTR 0
13342 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13343 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13344 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13358 char *p = (char *) sbrk;
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_have_decl_sbrk=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_cv_have_decl_sbrk=no
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13397 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13398 if test $ac_cv_have_decl_sbrk = yes; then
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_DECL_SBRK 1
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_DECL_SBRK 0
13412 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13413 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13414 if test "${ac_cv_have_decl_getenv+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13428 char *p = (char *) getenv;
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_have_decl_getenv=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_cv_have_decl_getenv=no
13464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13467 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13468 if test $ac_cv_have_decl_getenv = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_DECL_GETENV 1
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_DECL_GETENV 0
13482 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13483 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13484 if test "${ac_cv_have_decl_environ+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 cat >conftest.$ac_ext <<_ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13498 char *p = (char *) environ;
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_have_decl_environ=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_have_decl_environ=no
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13536 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13537 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13538 if test $ac_cv_have_decl_environ = yes; then
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DECL_ENVIRON 1
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_DECL_ENVIRON 0
13552 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13553 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13554 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13567 #ifndef getc_unlocked
13568 char *p = (char *) getc_unlocked;
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1 >conftest.err
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_have_decl_getc_unlocked=yes
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_have_decl_getc_unlocked=no
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13607 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13608 if test $ac_cv_have_decl_getc_unlocked = yes; then
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_DECL_GETC_UNLOCKED 1
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_DECL_GETC_UNLOCKED 0
13622 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13623 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13624 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 cat >conftest.$ac_ext <<_ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13638 char *p = (char *) snprintf;
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647 (eval $ac_compile) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_cv_have_decl_snprintf=yes
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 ac_cv_have_decl_snprintf=no
13674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13676 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13677 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13678 if test $ac_cv_have_decl_snprintf = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define HAVE_DECL_SNPRINTF 1
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_DECL_SNPRINTF 0
13692 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13693 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13694 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13708 char *p = (char *) vsnprintf;
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_have_decl_vsnprintf=yes
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_cv_have_decl_vsnprintf=no
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13747 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13748 if test $ac_cv_have_decl_vsnprintf = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_DECL_VSNPRINTF 1
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_DECL_VSNPRINTF 0
13765 # Link in zlib if we can. This allows us to read compressed debug
13766 # sections. This is used only by readelf.c (objdump uses bfd for
13767 # reading compressed sections).
13768 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13769 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13770 if test "${ac_cv_search_zlibVersion+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 ac_func_search_save_LIBS=$LIBS
13774 ac_cv_search_zlibVersion=no
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any gcc2 internal prototype to avoid an error. */
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13788 char zlibVersion ();
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest$ac_exeext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_zlibVersion="none required"
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13825 rm -f conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13827 if test "$ac_cv_search_zlibVersion" = no; then
13828 for ac_lib in z; do
13829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13837 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char zlibVersion ();
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_zlibVersion="-l$ac_lib"
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13881 rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13885 LIBS=$ac_func_search_save_LIBS
13887 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13888 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13889 if test "$ac_cv_search_zlibVersion" != no; then
13890 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13892 for ac_header in zlib.h
13894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896 echo "$as_me:$LINENO: checking for $ac_header" >&5
13897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904 # Is the header compilable?
13905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 #include <$ac_header>
13916 rm -f conftest.$ac_objext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_c_werror_flag"
13926 || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_header_compiler=yes
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_header_compiler=no
13945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13947 echo "${ECHO_T}$ac_header_compiler" >&6
13949 # Is the header present?
13950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 #include <$ac_header>
13960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null; then
13968 if test -s conftest.err; then
13969 ac_cpp_err=$ac_c_preproc_warn_flag
13970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13977 if test -z "$ac_cpp_err"; then
13978 ac_header_preproc=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_preproc=no
13985 rm -f conftest.err conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13987 echo "${ECHO_T}$ac_header_preproc" >&6
13989 # So? What about this header?
13990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13996 ac_header_preproc=yes
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14013 ## ------------------------------------------ ##
14014 ## Report this to the AC_PACKAGE_NAME lists. ##
14015 ## ------------------------------------------ ##
14018 sed "s/^/$as_me: WARNING: /" >&2
14021 echo "$as_me:$LINENO: checking for $ac_header" >&5
14022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 eval "$as_ac_Header=\$ac_header_preproc"
14028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14033 cat >>confdefs.h <<_ACEOF
14034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14046 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14048 cat >>confdefs.h <<\_ACEOF
14049 #define USE_BINARY_FOPEN 1
14054 # target-specific stuff:
14056 # Canonicalize the secondary target names.
14057 if test -n "$enable_targets"; then
14058 for targ in `echo $enable_targets | sed 's/,/ /g'`
14060 result=`$ac_config_sub $targ 2>/dev/null`
14061 if test -n "$result"; then
14062 canon_targets="$canon_targets $result"
14064 # Allow targets that config.sub doesn't recognize, like "all".
14065 canon_targets="$canon_targets $targ"
14070 if test "${ac_cv_header_iconv_h+set}" = set; then
14071 echo "$as_me:$LINENO: checking for iconv.h" >&5
14072 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14073 if test "${ac_cv_header_iconv_h+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14079 # Is the header compilable?
14080 echo "$as_me:$LINENO: checking iconv.h usability" >&5
14081 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_header_compiler=yes
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14118 ac_header_compiler=no
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122 echo "${ECHO_T}$ac_header_compiler" >&6
14124 # Is the header present?
14125 echo "$as_me:$LINENO: checking iconv.h presence" >&5
14126 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev/null; then
14143 if test -s conftest.err; then
14144 ac_cpp_err=$ac_c_preproc_warn_flag
14145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14152 if test -z "$ac_cpp_err"; then
14153 ac_header_preproc=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_header_preproc=no
14160 rm -f conftest.err conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162 echo "${ECHO_T}$ac_header_preproc" >&6
14164 # So? What about this header?
14165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14167 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14168 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14170 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14171 ac_header_preproc=yes
14174 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14175 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14177 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14179 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
14181 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14185 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14188 ## ------------------------------------------ ##
14189 ## Report this to the AC_PACKAGE_NAME lists. ##
14190 ## ------------------------------------------ ##
14193 sed "s/^/$as_me: WARNING: /" >&2
14196 echo "$as_me:$LINENO: checking for iconv.h" >&5
14197 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14198 if test "${ac_cv_header_iconv_h+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 ac_cv_header_iconv_h=$ac_header_preproc
14203 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14210 if test "X$prefix" = "XNONE"; then
14211 acl_final_prefix="$ac_default_prefix"
14213 acl_final_prefix="$prefix"
14215 if test "X$exec_prefix" = "XNONE"; then
14216 acl_final_exec_prefix='${prefix}'
14218 acl_final_exec_prefix="$exec_prefix"
14220 acl_save_prefix="$prefix"
14221 prefix="$acl_final_prefix"
14222 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14223 prefix="$acl_save_prefix"
14226 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14227 if test "${with_gnu_ld+set}" = set; then
14228 withval="$with_gnu_ld"
14229 test "$withval" = no || with_gnu_ld=yes
14233 # Prepare PATH_SEPARATOR.
14234 # The user is always right.
14235 if test "${PATH_SEPARATOR+set}" != set; then
14236 echo "#! /bin/sh" >conf$$.sh
14237 echo "exit 0" >>conf$$.sh
14239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14247 if test "$GCC" = yes; then
14248 # Check if gcc -print-prog-name=ld gives a path.
14249 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14250 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14253 # gcc leaves a trailing carriage return which upsets mingw
14254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14259 # Accept absolute paths.
14260 [\\/]* | [A-Za-z]:[\\/]*)
14261 re_direlt='/[^/][^/]*/\.\./'
14262 # Canonicalize the path of ld
14263 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14264 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14265 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14267 test -z "$LD" && LD="$ac_prog"
14270 # If it fails, then pretend we aren't using GCC.
14274 # If it is relative, then search for the first ld in PATH.
14275 with_gnu_ld=unknown
14278 elif test "$with_gnu_ld" = yes; then
14279 echo "$as_me:$LINENO: checking for GNU ld" >&5
14280 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14282 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14283 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14285 if test "${acl_cv_path_LD+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 if test -z "$LD"; then
14289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14290 for ac_dir in $PATH; do
14291 test -z "$ac_dir" && ac_dir=.
14292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14293 acl_cv_path_LD="$ac_dir/$ac_prog"
14294 # Check to see if the program is GNU ld. I'd rather use --version,
14295 # but apparently some GNU ld's only accept -v.
14296 # Break only if it was the GNU/non-GNU ld that we prefer.
14297 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14298 test "$with_gnu_ld" != no && break
14300 test "$with_gnu_ld" != yes && break
14306 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14310 LD="$acl_cv_path_LD"
14311 if test -n "$LD"; then
14312 echo "$as_me:$LINENO: result: $LD" >&5
14313 echo "${ECHO_T}$LD" >&6
14315 echo "$as_me:$LINENO: result: no" >&5
14316 echo "${ECHO_T}no" >&6
14318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14320 { (exit 1); exit 1; }; }
14321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14323 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14327 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14328 acl_cv_prog_gnu_ld=yes
14330 acl_cv_prog_gnu_ld=no
14333 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14334 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14335 with_gnu_ld=$acl_cv_prog_gnu_ld
14339 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14340 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14341 if test "${acl_cv_rpath+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14346 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14348 rm -f ./conftest.sh
14352 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14353 echo "${ECHO_T}$acl_cv_rpath" >&6
14355 libext="$acl_cv_libext"
14356 shlibext="$acl_cv_shlibext"
14357 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14358 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14359 hardcode_direct="$acl_cv_hardcode_direct"
14360 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14361 # Check whether --enable-rpath or --disable-rpath was given.
14362 if test "${enable_rpath+set}" = set; then
14363 enableval="$enable_rpath"
14377 acl_save_prefix="$prefix"
14378 prefix="$acl_final_prefix"
14379 acl_save_exec_prefix="$exec_prefix"
14380 exec_prefix="$acl_final_exec_prefix"
14382 eval additional_includedir=\"$includedir\"
14383 eval additional_libdir=\"$libdir\"
14385 exec_prefix="$acl_save_exec_prefix"
14386 prefix="$acl_save_prefix"
14389 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14390 if test "${with_libiconv_prefix+set}" = set; then
14391 withval="$with_libiconv_prefix"
14393 if test "X$withval" = "Xno"; then
14396 if test "X$withval" = "X"; then
14398 acl_save_prefix="$prefix"
14399 prefix="$acl_final_prefix"
14400 acl_save_exec_prefix="$exec_prefix"
14401 exec_prefix="$acl_final_exec_prefix"
14403 eval additional_includedir=\"$includedir\"
14404 eval additional_libdir=\"$libdir\"
14406 exec_prefix="$acl_save_exec_prefix"
14407 prefix="$acl_save_prefix"
14410 additional_includedir="$withval/include"
14411 additional_libdir="$withval/lib"
14421 names_already_handled=
14422 names_next_round='iconv '
14423 while test -n "$names_next_round"; do
14424 names_this_round="$names_next_round"
14426 for name in $names_this_round; do
14428 for n in $names_already_handled; do
14429 if test "$n" = "$name"; then
14430 already_handled=yes
14434 if test -z "$already_handled"; then
14435 names_already_handled="$names_already_handled $name"
14436 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14437 eval value=\"\$HAVE_LIB$uppername\"
14438 if test -n "$value"; then
14439 if test "$value" = yes; then
14440 eval value=\"\$LIB$uppername\"
14441 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14442 eval value=\"\$LTLIB$uppername\"
14443 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14452 if test $use_additional = yes; then
14453 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14454 found_dir="$additional_libdir"
14455 found_so="$additional_libdir/lib$name.$shlibext"
14456 if test -f "$additional_libdir/lib$name.la"; then
14457 found_la="$additional_libdir/lib$name.la"
14460 if test -f "$additional_libdir/lib$name.$libext"; then
14461 found_dir="$additional_libdir"
14462 found_a="$additional_libdir/lib$name.$libext"
14463 if test -f "$additional_libdir/lib$name.la"; then
14464 found_la="$additional_libdir/lib$name.la"
14469 if test "X$found_dir" = "X"; then
14470 for x in $LDFLAGS $LTLIBICONV; do
14472 acl_save_prefix="$prefix"
14473 prefix="$acl_final_prefix"
14474 acl_save_exec_prefix="$exec_prefix"
14475 exec_prefix="$acl_final_exec_prefix"
14477 exec_prefix="$acl_save_exec_prefix"
14478 prefix="$acl_save_prefix"
14482 dir=`echo "X$x" | sed -e 's/^X-L//'`
14483 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14485 found_so="$dir/lib$name.$shlibext"
14486 if test -f "$dir/lib$name.la"; then
14487 found_la="$dir/lib$name.la"
14490 if test -f "$dir/lib$name.$libext"; then
14492 found_a="$dir/lib$name.$libext"
14493 if test -f "$dir/lib$name.la"; then
14494 found_la="$dir/lib$name.la"
14500 if test "X$found_dir" != "X"; then
14505 if test "X$found_dir" != "X"; then
14506 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14507 if test "X$found_so" != "X"; then
14508 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14512 for x in $ltrpathdirs; do
14513 if test "X$x" = "X$found_dir"; then
14518 if test -z "$haveit"; then
14519 ltrpathdirs="$ltrpathdirs $found_dir"
14521 if test "$hardcode_direct" = yes; then
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14524 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14527 for x in $rpathdirs; do
14528 if test "X$x" = "X$found_dir"; then
14533 if test -z "$haveit"; then
14534 rpathdirs="$rpathdirs $found_dir"
14538 for x in $LDFLAGS $LIBICONV; do
14540 acl_save_prefix="$prefix"
14541 prefix="$acl_final_prefix"
14542 acl_save_exec_prefix="$exec_prefix"
14543 exec_prefix="$acl_final_exec_prefix"
14545 exec_prefix="$acl_save_exec_prefix"
14546 prefix="$acl_save_prefix"
14548 if test "X$x" = "X-L$found_dir"; then
14553 if test -z "$haveit"; then
14554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14556 if test "$hardcode_minus_L" != no; then
14557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14559 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14565 if test "X$found_a" != "X"; then
14566 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14568 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14571 additional_includedir=
14572 case "$found_dir" in
14574 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14575 additional_includedir="$basedir/include"
14578 if test "X$additional_includedir" != "X"; then
14579 if test "X$additional_includedir" != "X/usr/include"; then
14581 if test "X$additional_includedir" = "X/usr/local/include"; then
14582 if test -n "$GCC"; then
14584 linux*) haveit=yes;;
14588 if test -z "$haveit"; then
14589 for x in $CPPFLAGS $INCICONV; do
14591 acl_save_prefix="$prefix"
14592 prefix="$acl_final_prefix"
14593 acl_save_exec_prefix="$exec_prefix"
14594 exec_prefix="$acl_final_exec_prefix"
14596 exec_prefix="$acl_save_exec_prefix"
14597 prefix="$acl_save_prefix"
14599 if test "X$x" = "X-I$additional_includedir"; then
14604 if test -z "$haveit"; then
14605 if test -d "$additional_includedir"; then
14606 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14612 if test -n "$found_la"; then
14613 save_libdir="$libdir"
14614 case "$found_la" in
14615 */* | *\\*) . "$found_la" ;;
14616 *) . "./$found_la" ;;
14618 libdir="$save_libdir"
14619 for dep in $dependency_libs; do
14622 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14623 if test "X$additional_libdir" != "X/usr/lib"; then
14625 if test "X$additional_libdir" = "X/usr/local/lib"; then
14626 if test -n "$GCC"; then
14628 linux*) haveit=yes;;
14632 if test -z "$haveit"; then
14634 for x in $LDFLAGS $LIBICONV; do
14636 acl_save_prefix="$prefix"
14637 prefix="$acl_final_prefix"
14638 acl_save_exec_prefix="$exec_prefix"
14639 exec_prefix="$acl_final_exec_prefix"
14641 exec_prefix="$acl_save_exec_prefix"
14642 prefix="$acl_save_prefix"
14644 if test "X$x" = "X-L$additional_libdir"; then
14649 if test -z "$haveit"; then
14650 if test -d "$additional_libdir"; then
14651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14655 for x in $LDFLAGS $LTLIBICONV; do
14657 acl_save_prefix="$prefix"
14658 prefix="$acl_final_prefix"
14659 acl_save_exec_prefix="$exec_prefix"
14660 exec_prefix="$acl_final_exec_prefix"
14662 exec_prefix="$acl_save_exec_prefix"
14663 prefix="$acl_save_prefix"
14665 if test "X$x" = "X-L$additional_libdir"; then
14670 if test -z "$haveit"; then
14671 if test -d "$additional_libdir"; then
14672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14679 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14680 if test "$enable_rpath" != no; then
14682 for x in $rpathdirs; do
14683 if test "X$x" = "X$dir"; then
14688 if test -z "$haveit"; then
14689 rpathdirs="$rpathdirs $dir"
14692 for x in $ltrpathdirs; do
14693 if test "X$x" = "X$dir"; then
14698 if test -z "$haveit"; then
14699 ltrpathdirs="$ltrpathdirs $dir"
14704 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14710 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14717 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14724 if test "X$rpathdirs" != "X"; then
14725 if test -n "$hardcode_libdir_separator"; then
14727 for found_dir in $rpathdirs; do
14728 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14730 acl_save_libdir="$libdir"
14732 eval flag=\"$hardcode_libdir_flag_spec\"
14733 libdir="$acl_save_libdir"
14734 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14736 for found_dir in $rpathdirs; do
14737 acl_save_libdir="$libdir"
14738 libdir="$found_dir"
14739 eval flag=\"$hardcode_libdir_flag_spec\"
14740 libdir="$acl_save_libdir"
14741 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14745 if test "X$ltrpathdirs" != "X"; then
14746 for found_dir in $ltrpathdirs; do
14747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14757 am_save_CPPFLAGS="$CPPFLAGS"
14759 for element in $INCICONV; do
14761 for x in $CPPFLAGS; do
14763 acl_save_prefix="$prefix"
14764 prefix="$acl_final_prefix"
14765 acl_save_exec_prefix="$exec_prefix"
14766 exec_prefix="$acl_final_exec_prefix"
14768 exec_prefix="$acl_save_exec_prefix"
14769 prefix="$acl_save_prefix"
14771 if test "X$x" = "X$element"; then
14776 if test -z "$haveit"; then
14777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14782 echo "$as_me:$LINENO: checking for iconv" >&5
14783 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14784 if test "${am_cv_func_iconv+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 am_cv_func_iconv="no, consider installing GNU libiconv"
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <stdlib.h>
14801 iconv_t cd = iconv_open("","");
14802 iconv(cd,NULL,NULL,NULL,NULL);
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>conftest.er1
14812 grep -v '^ *+' conftest.er1 >conftest.err
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag"
14818 || test ! -s conftest.err'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 am_cv_func_iconv=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14836 rm -f conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 if test "$am_cv_func_iconv" != yes; then
14839 am_save_LIBS="$LIBS"
14840 LIBS="$LIBS $LIBICONV"
14841 cat >conftest.$ac_ext <<_ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 #include <stdlib.h>
14852 iconv_t cd = iconv_open("","");
14853 iconv(cd,NULL,NULL,NULL,NULL);
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag"
14869 || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 am_cv_lib_iconv=yes
14882 am_cv_func_iconv=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14888 rm -f conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS="$am_save_LIBS"
14894 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14895 echo "${ECHO_T}$am_cv_func_iconv" >&6
14896 if test "$am_cv_func_iconv" = yes; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_ICONV 1
14903 if test "$am_cv_lib_iconv" = yes; then
14904 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14905 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14906 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14907 echo "${ECHO_T}$LIBICONV" >&6
14909 CPPFLAGS="$am_save_CPPFLAGS"
14916 if test "$am_cv_func_iconv" = yes; then
14917 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14918 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14919 if test "${am_cv_proto_iconv+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 cat >conftest.$ac_ext <<_ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14930 #include <stdlib.h>
14936 #if defined(__STDC__) || defined(__cplusplus)
14937 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 am_cv_proto_iconv_arg1=""
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 am_cv_proto_iconv_arg1="const"
14979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14983 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14984 echo "$as_me:$LINENO: result: ${ac_t:-
14985 }$am_cv_proto_iconv" >&5
14986 echo "${ECHO_T}${ac_t:-
14987 }$am_cv_proto_iconv" >&6
14989 cat >>confdefs.h <<_ACEOF
14990 #define ICONV_CONST $am_cv_proto_iconv_arg1
15007 BUILD_INSTALL_MISC=
15010 for targ in $target $canon_targets
15012 if test "x$targ" = "xall"; then
15014 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15015 BUILD_SRCONV='$(SRCONV_PROG)'
15016 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
15017 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15018 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15019 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15020 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15021 if test -z "$DLLTOOL_DEFAULT"; then
15022 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15024 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15025 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15028 i[3-7]86*-*-netware*)
15029 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15030 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15033 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15034 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15036 powerpc*-*-netware*)
15037 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15038 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15041 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15042 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15046 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15050 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15051 if test -z "$DLLTOOL_DEFAULT"; then
15052 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15054 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15055 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15056 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15058 arm-wince-pe* | arm-*-wince)
15059 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15060 if test -z "$DLLTOOL_DEFAULT"; then
15061 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15063 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15064 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15065 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15068 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15069 if test -z "$DLLTOOL_DEFAULT"; then
15070 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15072 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15073 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15074 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15077 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15078 if test -z "$DLLTOOL_DEFAULT"; then
15079 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15081 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15082 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15083 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15086 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15087 if test -z "$DLLTOOL_DEFAULT"; then
15088 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15090 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15091 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15092 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15093 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15095 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15096 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15097 if test -z "$DLLTOOL_DEFAULT"; then
15098 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15100 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15101 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15102 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15103 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15105 i[3-7]86-*-interix)
15106 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15107 if test -z "$DLLTOOL_DEFAULT"; then
15108 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15110 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15112 powerpc*-aix5.[01])
15115 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15117 powerpc*-*-pe* | powerpc*-*-cygwin*)
15118 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15119 if test -z "$DLLTOOL_DEFAULT"; then
15120 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15122 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15123 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15124 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15126 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15127 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15130 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15131 if test -z "$DLLTOOL_DEFAULT"; then
15132 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15134 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15135 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15136 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15139 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15142 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15143 if test -z "$DLLTOOL_DEFAULT"; then
15144 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15146 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15147 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15148 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15151 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15152 if test -z "$DLLTOOL_DEFAULT"; then
15153 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15155 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15156 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15157 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15160 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15161 if test -z "$DLLTOOL_DEFAULT"; then
15162 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15164 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15167 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15173 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15175 if test "${with_windres+set}" = set; then
15176 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15179 if test "${with_windmc+set}" = set; then
15180 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15196 cat >>confdefs.h <<_ACEOF
15197 #define TARGET "${target}"
15202 . $srcdir/../bfd/config.bfd
15203 if test "x$targ_underscore" = "xyes"; then
15209 cat >>confdefs.h <<_ACEOF
15210 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15215 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15217 # Canonicalize the secondary target names.
15218 result=`$ac_config_sub $targ_alias 2>/dev/null`
15219 if test -n "$result"; then
15225 . ${srcdir}/configure.tgt
15227 EMULATION=$targ_emul
15228 EMULATION_VECTOR=$targ_emul_vector
15234 # Required for html and install-html
15239 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15240 cat >confcache <<\_ACEOF
15241 # This file is a shell script that caches the results of configure
15242 # tests run on this system so they can be shared between configure
15243 # scripts and configure runs, see configure's option --config-cache.
15244 # It is not useful on other systems. If it contains results you don't
15245 # want to keep, you may remove or edit it.
15247 # config.status only pays attention to the cache file if you give it
15248 # the --recheck option to rerun configure.
15250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15252 # following values.
15256 # The following way of writing the cache mishandles newlines in values,
15257 # but we know of no workaround that is simple, portable, and efficient.
15258 # So, don't put newlines in cache variables' values.
15259 # Ultrix sh set writes to stderr and can't be redirected directly,
15260 # and sets the high bit in the cache file unless we assign to the vars.
15263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15265 # `set' does not quote correctly, so add quotes (double-quote
15266 # substitution turns \\\\ into \\, and sed turns \\ into \).
15269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15272 # `set' quotes correctly as required by POSIX, so do not add quotes.
15274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15286 if test -w $cache_file; then
15287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15288 cat confcache >$cache_file
15290 echo "not updating unwritable cache $cache_file"
15295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15296 # Let make expand exec_prefix.
15297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15301 # trailing colons and then remove the whole line if VPATH becomes empty
15302 # (actually we leave an empty line to preserve line numbers).
15303 if test "x$srcdir" = x.; then
15304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15305 s/:*\$(srcdir):*/:/;
15306 s/:*\${srcdir}:*/:/;
15308 s/^\([^=]*=[ ]*\):*/\1/;
15314 DEFS=-DHAVE_CONFIG_H
15318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15319 # 1. Remove the extension, and $U if already installed.
15320 ac_i=`echo "$ac_i" |
15321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15326 LIBOBJS=$ac_libobjs
15328 LTLIBOBJS=$ac_ltlibobjs
15331 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15332 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15333 Usually this means the macro was only invoked conditionally." >&5
15334 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15335 Usually this means the macro was only invoked conditionally." >&2;}
15336 { (exit 1); exit 1; }; }
15338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15339 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15340 Usually this means the macro was only invoked conditionally." >&5
15341 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15342 Usually this means the macro was only invoked conditionally." >&2;}
15343 { (exit 1); exit 1; }; }
15345 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15346 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15347 Usually this means the macro was only invoked conditionally." >&5
15348 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15349 Usually this means the macro was only invoked conditionally." >&2;}
15350 { (exit 1); exit 1; }; }
15352 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15353 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15354 Usually this means the macro was only invoked conditionally." >&5
15355 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15356 Usually this means the macro was only invoked conditionally." >&2;}
15357 { (exit 1); exit 1; }; }
15360 : ${CONFIG_STATUS=./config.status}
15361 ac_clean_files_save=$ac_clean_files
15362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15365 cat >$CONFIG_STATUS <<_ACEOF
15367 # Generated by $as_me.
15368 # Run this file to recreate the current configuration.
15369 # Compiler output produced by configure, useful for debugging
15370 # configure, is in config.log if it exists.
15373 ac_cs_recheck=false
15375 SHELL=\${CONFIG_SHELL-$SHELL}
15378 cat >>$CONFIG_STATUS <<\_ACEOF
15379 ## --------------------- ##
15380 ## M4sh Initialization. ##
15381 ## --------------------- ##
15383 # Be Bourne compatible
15384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15388 # is contrary to our usage. Disable this feature.
15389 alias -g '${1+"$@"}'='"$@"'
15390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15393 DUALCASE=1; export DUALCASE # for MKS sh
15395 # Support unset when possible.
15396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15403 # Work around bugs in pre-3.0 UWIN ksh.
15404 $as_unset ENV MAIL MAILPATH
15411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15413 LC_TELEPHONE LC_TIME
15415 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15416 eval $as_var=C; export $as_var
15422 # Required to use basename.
15423 if expr a : '\(a\)' >/dev/null 2>&1; then
15429 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15430 as_basename=basename
15436 # Name of the executable.
15437 as_me=`$as_basename "$0" ||
15438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15439 X"$0" : 'X\(//\)$' \| \
15440 X"$0" : 'X\(/\)$' \| \
15441 . : '\(.\)' 2>/dev/null ||
15443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15444 /^X\/\(\/\/\)$/{ s//\1/; q; }
15445 /^X\/\(\/\).*/{ s//\1/; q; }
15449 # PATH needs CR, and LINENO needs CR and PATH.
15450 # Avoid depending upon Character Ranges.
15451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15454 as_cr_digits='0123456789'
15455 as_cr_alnum=$as_cr_Letters$as_cr_digits
15457 # The user is always right.
15458 if test "${PATH_SEPARATOR+set}" != set; then
15459 echo "#! /bin/sh" >conf$$.sh
15460 echo "exit 0" >>conf$$.sh
15462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15471 as_lineno_1=$LINENO
15472 as_lineno_2=$LINENO
15473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15474 test "x$as_lineno_1" != "x$as_lineno_2" &&
15475 test "x$as_lineno_3" = "x$as_lineno_2" || {
15476 # Find who we are. Look in the path if we contain no path at all
15479 *[\\/]* ) as_myself=$0 ;;
15480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15484 test -z "$as_dir" && as_dir=.
15485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15490 # We did not find ourselves, most probably we were run as `sh COMMAND'
15491 # in which case we are not to be found in the path.
15492 if test "x$as_myself" = x; then
15495 if test ! -f "$as_myself"; then
15496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15497 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15498 { (exit 1); exit 1; }; }
15500 case $CONFIG_SHELL in
15502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15506 test -z "$as_dir" && as_dir=.
15507 for as_base in sh bash ksh sh5; do
15510 if ("$as_dir/$as_base" -c '
15511 as_lineno_1=$LINENO
15512 as_lineno_2=$LINENO
15513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15514 test "x$as_lineno_1" != "x$as_lineno_2" &&
15515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15518 CONFIG_SHELL=$as_dir/$as_base
15519 export CONFIG_SHELL
15520 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15529 # uniformly replaced by the line number. The first 'sed' inserts a
15530 # line-number line before each line; the second 'sed' does the real
15531 # work. The second script uses 'N' to pair each line-number line
15532 # with the numbered line, and appends trailing '-' during
15533 # substitution so that $LINENO is not a special case at line end.
15534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15536 sed '=' <$as_myself |
15541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15544 s,^['$as_cr_digits']*\n,,
15545 ' >$as_me.lineno &&
15546 chmod +x $as_me.lineno ||
15547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15549 { (exit 1); exit 1; }; }
15551 # Don't try to exec as it changes $[0], causing all sort of problems
15552 # (the dirname of $[0] is not the place where we might find the
15553 # original and so on. Autoconf is especially sensible to this).
15555 # Exit status is that of the last command.
15560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15561 *c*,-n*) ECHO_N= ECHO_C='
15563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15567 if expr a : '\(a\)' >/dev/null 2>&1; then
15573 rm -f conf$$ conf$$.exe conf$$.file
15575 if ln -s conf$$.file conf$$ 2>/dev/null; then
15576 # We could just check for DJGPP; but this test a) works b) is more generic
15577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15578 if test -f conf$$.exe; then
15579 # Don't use ln at all; we don't have any links
15584 elif ln conf$$.file conf$$ 2>/dev/null; then
15589 rm -f conf$$ conf$$.exe conf$$.file
15591 if mkdir -p . 2>/dev/null; then
15594 test -d ./-p && rmdir ./-p
15598 as_executable_p="test -f"
15600 # Sed expression to map a string onto a valid CPP name.
15601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15603 # Sed expression to map a string onto a valid variable name.
15604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15608 # We need space, tab and new line, in precisely that order.
15618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15619 # report actual input values of CONFIG_FILES etc. instead of their
15620 # values after options handling. Logging --version etc. is OK.
15624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15625 ## Running $as_me. ##
15630 This file was extended by $as_me, which was
15631 generated by GNU Autoconf 2.59. Invocation command line was
15633 CONFIG_FILES = $CONFIG_FILES
15634 CONFIG_HEADERS = $CONFIG_HEADERS
15635 CONFIG_LINKS = $CONFIG_LINKS
15636 CONFIG_COMMANDS = $CONFIG_COMMANDS
15640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15644 # Files that config.status was made for.
15645 if test -n "$ac_config_files"; then
15646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15649 if test -n "$ac_config_headers"; then
15650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15653 if test -n "$ac_config_links"; then
15654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15657 if test -n "$ac_config_commands"; then
15658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15661 cat >>$CONFIG_STATUS <<\_ACEOF
15664 \`$as_me' instantiates files from templates according to the
15665 current configuration.
15667 Usage: $0 [OPTIONS] [FILE]...
15669 -h, --help print this help, then exit
15670 -V, --version print version number, then exit
15671 -q, --quiet do not print progress messages
15672 -d, --debug don't remove temporary files
15673 --recheck update $as_me by reconfiguring in the same conditions
15674 --file=FILE[:TEMPLATE]
15675 instantiate the configuration file FILE
15676 --header=FILE[:TEMPLATE]
15677 instantiate the configuration header FILE
15679 Configuration files:
15682 Configuration headers:
15685 Configuration commands:
15688 Report bugs to <bug-autoconf@gnu.org>."
15691 cat >>$CONFIG_STATUS <<_ACEOF
15694 configured by $0, generated by GNU Autoconf 2.59,
15695 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15697 Copyright (C) 2003 Free Software Foundation, Inc.
15698 This config.status script is free software; the Free Software Foundation
15699 gives unlimited permission to copy, distribute and modify it."
15704 cat >>$CONFIG_STATUS <<\_ACEOF
15705 # If no file are specified by the user, then we need to provide default
15706 # value. By we need to know if files were specified by the user.
15712 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15713 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15721 *) # This is not an option, so the user has probably given explicit
15724 ac_need_defaults=false;;
15728 # Handling of the options.
15730 cat >>$CONFIG_STATUS <<\_ACEOF
15731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15733 --version | --vers* | -V )
15734 echo "$ac_cs_version"; exit 0 ;;
15736 # Conflict between --help and --header
15737 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15738 Try \`$0 --help' for more information." >&5
15739 echo "$as_me: error: ambiguous option: $1
15740 Try \`$0 --help' for more information." >&2;}
15741 { (exit 1); exit 1; }; };;
15742 --help | --hel | -h )
15743 echo "$ac_cs_usage"; exit 0 ;;
15744 --debug | --d* | -d )
15746 --file | --fil | --fi | --f )
15748 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15749 ac_need_defaults=false;;
15750 --header | --heade | --head | --hea )
15752 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15753 ac_need_defaults=false;;
15754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15758 # This is an error.
15759 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15760 Try \`$0 --help' for more information." >&5
15761 echo "$as_me: error: unrecognized option: $1
15762 Try \`$0 --help' for more information." >&2;}
15763 { (exit 1); exit 1; }; } ;;
15765 *) ac_config_targets="$ac_config_targets $1" ;;
15771 ac_configure_extra_args=
15773 if $ac_cs_silent; then
15775 ac_configure_extra_args="$ac_configure_extra_args --silent"
15779 cat >>$CONFIG_STATUS <<_ACEOF
15780 if \$ac_cs_recheck; then
15781 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15782 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15787 cat >>$CONFIG_STATUS <<_ACEOF
15789 # INIT-COMMANDS section.
15792 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15795 # The HP-UX ksh and POSIX shell print the target directory to stdout
15796 # if CDPATH is set.
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15799 sed_quote_subst='$sed_quote_subst'
15800 double_quote_subst='$double_quote_subst'
15801 delay_variable_subst='$delay_variable_subst'
15802 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15803 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15804 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15805 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15806 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15807 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15808 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15809 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15810 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15811 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15812 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15813 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15814 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15815 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15816 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15817 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15818 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15819 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15820 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15821 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15822 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15823 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15824 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15825 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15826 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15827 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15828 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15829 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15830 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15831 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15832 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15833 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15834 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15835 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15836 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15840 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15841 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15842 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15843 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15844 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15845 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15846 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15847 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15848 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15849 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15851 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15852 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15853 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15854 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15855 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15856 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15857 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15858 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15859 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15860 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15861 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15862 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15863 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15864 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15865 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15866 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15871 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15872 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15873 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15874 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15875 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15876 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15877 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15881 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15882 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15883 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15884 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15885 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15886 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15887 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15888 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15889 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15890 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15891 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15892 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15893 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15894 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15895 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15896 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15897 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15898 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15899 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15901 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15902 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15904 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15905 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15906 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15907 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15908 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15909 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15910 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15911 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15912 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15915 LTCFLAGS='$LTCFLAGS'
15916 compiler='$compiler_DEFAULT'
15918 # Quote evaled strings.
15929 deplibs_check_method \
15938 lt_cv_sys_global_symbol_pipe \
15939 lt_cv_sys_global_symbol_to_cdecl \
15940 lt_cv_sys_global_symbol_to_c_name_address \
15943 lt_prog_compiler_no_builtin_flag \
15944 lt_prog_compiler_wl \
15945 lt_prog_compiler_pic \
15946 lt_prog_compiler_static \
15947 lt_cv_prog_compiler_c_o \
15950 export_dynamic_flag_spec \
15951 whole_archive_flag_spec \
15952 compiler_needs_object \
15954 allow_undefined_flag \
15955 no_undefined_flag \
15956 hardcode_libdir_flag_spec \
15957 hardcode_libdir_flag_spec_ld \
15958 hardcode_libdir_separator \
15963 variables_saved_for_relink \
15965 library_names_spec \
15970 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15971 *[\\\\\\\`\\"\\\$]*)
15972 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15975 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15980 # Double-quote double-evaled strings.
15981 for var in reload_cmds \
15982 old_postinstall_cmds \
15983 old_postuninstall_cmds \
15985 extract_expsyms_cmds \
15986 old_archive_from_new_cmds \
15987 old_archive_from_expsyms_cmds \
15989 archive_expsym_cmds \
15991 module_expsym_cmds \
15992 export_symbols_cmds \
15995 postuninstall_cmds \
15997 sys_lib_search_path_spec \
15998 sys_lib_dlsearch_path_spec; do
15999 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16000 *[\\\\\\\`\\"\\\$]*)
16001 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16004 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16009 # Fix-up fallback echo if it was mangled by the above quoting rules.
16011 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16015 ac_aux_dir='$ac_aux_dir'
16016 xsi_shell='$xsi_shell'
16017 lt_shell_append='$lt_shell_append'
16019 # See if we are running on zsh, and set the options which allow our
16020 # commands through without removal of \ escapes INIT.
16021 if test -n "\${ZSH_VERSION+set}" ; then
16022 setopt NO_GLOB_SUBST
16028 TIMESTAMP='$TIMESTAMP'
16034 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16035 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16037 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16038 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16039 LINGUAS="${LINGUAS-%UNSET%}"
16046 cat >>$CONFIG_STATUS <<\_ACEOF
16047 for ac_config_target in $ac_config_targets
16049 case "$ac_config_target" in
16050 # Handling of arguments.
16051 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16052 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16053 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16054 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16055 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16056 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16057 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16060 { (exit 1); exit 1; }; };;
16064 # If the user did not use the arguments to specify the items to instantiate,
16065 # then the envvar interface is used. Set only those that are not.
16066 # We use the long form for the default assignment because of an extremely
16067 # bizarre bug on SunOS 4.1.3.
16068 if $ac_need_defaults; then
16069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16074 # Have a temporary directory for convenience. Make it in the build tree
16075 # simply because there is no reason to put it here, and in addition,
16076 # creating and moving files from /tmp can sometimes cause problems.
16077 # Create a temporary directory, and hook for its removal unless debugging.
16080 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16081 trap '{ (exit 1); exit 1; }' 1 2 13 15
16084 # Create a (secure) tmp directory for tmp files.
16087 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16088 test -n "$tmp" && test -d "$tmp"
16091 tmp=./confstat$$-$RANDOM
16092 (umask 077 && mkdir $tmp)
16095 echo "$me: cannot create a temporary directory in ." >&2
16096 { (exit 1); exit 1; }
16101 cat >>$CONFIG_STATUS <<_ACEOF
16104 # CONFIG_FILES section.
16107 # No need to generate the scripts if there are no CONFIG_FILES.
16108 # This happens for instance when ./config.status config.h
16109 if test -n "\$CONFIG_FILES"; then
16110 # Protect against being on the right side of a sed subst in config.status.
16111 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16112 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16113 s,@SHELL@,$SHELL,;t t
16114 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16115 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16116 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16117 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16118 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16119 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16120 s,@exec_prefix@,$exec_prefix,;t t
16121 s,@prefix@,$prefix,;t t
16122 s,@program_transform_name@,$program_transform_name,;t t
16123 s,@bindir@,$bindir,;t t
16124 s,@sbindir@,$sbindir,;t t
16125 s,@libexecdir@,$libexecdir,;t t
16126 s,@datadir@,$datadir,;t t
16127 s,@sysconfdir@,$sysconfdir,;t t
16128 s,@sharedstatedir@,$sharedstatedir,;t t
16129 s,@localstatedir@,$localstatedir,;t t
16130 s,@libdir@,$libdir,;t t
16131 s,@includedir@,$includedir,;t t
16132 s,@oldincludedir@,$oldincludedir,;t t
16133 s,@infodir@,$infodir,;t t
16134 s,@mandir@,$mandir,;t t
16135 s,@build_alias@,$build_alias,;t t
16136 s,@host_alias@,$host_alias,;t t
16137 s,@target_alias@,$target_alias,;t t
16138 s,@DEFS@,$DEFS,;t t
16139 s,@ECHO_C@,$ECHO_C,;t t
16140 s,@ECHO_N@,$ECHO_N,;t t
16141 s,@ECHO_T@,$ECHO_T,;t t
16142 s,@LIBS@,$LIBS,;t t
16143 s,@build@,$build,;t t
16144 s,@build_cpu@,$build_cpu,;t t
16145 s,@build_vendor@,$build_vendor,;t t
16146 s,@build_os@,$build_os,;t t
16147 s,@host@,$host,;t t
16148 s,@host_cpu@,$host_cpu,;t t
16149 s,@host_vendor@,$host_vendor,;t t
16150 s,@host_os@,$host_os,;t t
16151 s,@target@,$target,;t t
16152 s,@target_cpu@,$target_cpu,;t t
16153 s,@target_vendor@,$target_vendor,;t t
16154 s,@target_os@,$target_os,;t t
16156 s,@CFLAGS@,$CFLAGS,;t t
16157 s,@LDFLAGS@,$LDFLAGS,;t t
16158 s,@CPPFLAGS@,$CPPFLAGS,;t t
16159 s,@ac_ct_CC@,$ac_ct_CC,;t t
16160 s,@EXEEXT@,$EXEEXT,;t t
16161 s,@OBJEXT@,$OBJEXT,;t t
16162 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16163 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16164 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16165 s,@CYGPATH_W@,$CYGPATH_W,;t t
16166 s,@PACKAGE@,$PACKAGE,;t t
16167 s,@VERSION@,$VERSION,;t t
16168 s,@ACLOCAL@,$ACLOCAL,;t t
16169 s,@AUTOCONF@,$AUTOCONF,;t t
16170 s,@AUTOMAKE@,$AUTOMAKE,;t t
16171 s,@AUTOHEADER@,$AUTOHEADER,;t t
16172 s,@MAKEINFO@,$MAKEINFO,;t t
16173 s,@install_sh@,$install_sh,;t t
16174 s,@STRIP@,$STRIP,;t t
16175 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16176 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16177 s,@mkdir_p@,$mkdir_p,;t t
16179 s,@SET_MAKE@,$SET_MAKE,;t t
16180 s,@am__leading_dot@,$am__leading_dot,;t t
16181 s,@AMTAR@,$AMTAR,;t t
16182 s,@am__tar@,$am__tar,;t t
16183 s,@am__untar@,$am__untar,;t t
16184 s,@DEPDIR@,$DEPDIR,;t t
16185 s,@am__include@,$am__include,;t t
16186 s,@am__quote@,$am__quote,;t t
16187 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16188 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16189 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16190 s,@CCDEPMODE@,$CCDEPMODE,;t t
16191 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16192 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16194 s,@EGREP@,$EGREP,;t t
16195 s,@LIBTOOL@,$LIBTOOL,;t t
16197 s,@FGREP@,$FGREP,;t t
16198 s,@GREP@,$GREP,;t t
16200 s,@DUMPBIN@,$DUMPBIN,;t t
16201 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16203 s,@LN_S@,$LN_S,;t t
16205 s,@ac_ct_AR@,$ac_ct_AR,;t t
16206 s,@RANLIB@,$RANLIB,;t t
16207 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16208 s,@lt_ECHO@,$lt_ECHO,;t t
16209 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16210 s,@NO_WERROR@,$NO_WERROR,;t t
16211 s,@YACC@,$YACC,;t t
16213 s,@LEXLIB@,$LEXLIB,;t t
16214 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16215 s,@USE_NLS@,$USE_NLS,;t t
16216 s,@LIBINTL@,$LIBINTL,;t t
16217 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16218 s,@INCINTL@,$INCINTL,;t t
16219 s,@XGETTEXT@,$XGETTEXT,;t t
16220 s,@GMSGFMT@,$GMSGFMT,;t t
16221 s,@POSUB@,$POSUB,;t t
16222 s,@CATALOGS@,$CATALOGS,;t t
16223 s,@DATADIRNAME@,$DATADIRNAME,;t t
16224 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16225 s,@GENCAT@,$GENCAT,;t t
16226 s,@CATOBJEXT@,$CATOBJEXT,;t t
16227 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16228 s,@MSGFMT@,$MSGFMT,;t t
16229 s,@MSGMERGE@,$MSGMERGE,;t t
16230 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16231 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16232 s,@MAINT@,$MAINT,;t t
16233 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16234 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
16235 s,@HDEFINES@,$HDEFINES,;t t
16236 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16237 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16238 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
16239 s,@ALLOCA@,$ALLOCA,;t t
16240 s,@LIBICONV@,$LIBICONV,;t t
16241 s,@LTLIBICONV@,$LTLIBICONV,;t t
16242 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16243 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16244 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16245 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16246 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16247 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
16248 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
16249 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16250 s,@BUILD_MISC@,$BUILD_MISC,;t t
16251 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
16252 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16253 s,@EMULATION@,$EMULATION,;t t
16254 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
16255 s,@datarootdir@,$datarootdir,;t t
16256 s,@docdir@,$docdir,;t t
16257 s,@htmldir@,$htmldir,;t t
16258 s,@LIBOBJS@,$LIBOBJS,;t t
16259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16264 cat >>$CONFIG_STATUS <<\_ACEOF
16265 # Split the substitutions into bite-sized pieces for seds with
16266 # small command number limits, like on Digital OSF/1 and HP-UX.
16267 ac_max_sed_lines=48
16268 ac_sed_frag=1 # Number of current file.
16269 ac_beg=1 # First line for current file.
16270 ac_end=$ac_max_sed_lines # Line after last line for current file.
16273 while $ac_more_lines; do
16274 if test $ac_beg -gt 1; then
16275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16277 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16279 if test ! -s $tmp/subs.frag; then
16280 ac_more_lines=false
16282 # The purpose of the label and of the branching condition is to
16283 # speed up the sed processing (if there are no `@' at all, there
16284 # is no need to browse any of the substitutions).
16285 # These are the two extra sed commands mentioned above.
16287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16288 if test -z "$ac_sed_cmds"; then
16289 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16291 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16293 ac_sed_frag=`expr $ac_sed_frag + 1`
16295 ac_end=`expr $ac_end + $ac_max_sed_lines`
16298 if test -z "$ac_sed_cmds"; then
16301 fi # test -n "$CONFIG_FILES"
16304 cat >>$CONFIG_STATUS <<\_ACEOF
16305 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16308 - | *:- | *:-:* ) # input from stdin
16310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16314 * ) ac_file_in=$ac_file.in ;;
16317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16320 X"$ac_file" : 'X\(//\)[^/]' \| \
16321 X"$ac_file" : 'X\(//\)$' \| \
16322 X"$ac_file" : 'X\(/\)' \| \
16323 . : '\(.\)' 2>/dev/null ||
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16327 /^X\(\/\/\)$/{ s//\1/; q; }
16328 /^X\(\/\).*/{ s//\1/; q; }
16330 { if $as_mkdir_p; then
16335 while test ! -d "$as_dir"; do
16336 as_dirs="$as_dir $as_dirs"
16337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339 X"$as_dir" : 'X\(//\)[^/]' \| \
16340 X"$as_dir" : 'X\(//\)$' \| \
16341 X"$as_dir" : 'X\(/\)' \| \
16342 . : '\(.\)' 2>/dev/null ||
16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16346 /^X\(\/\/\)$/{ s//\1/; q; }
16347 /^X\(\/\).*/{ s//\1/; q; }
16350 test ! -n "$as_dirs" || mkdir $as_dirs
16351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16353 { (exit 1); exit 1; }; }; }
16357 if test "$ac_dir" != .; then
16358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16359 # A "../" for each directory in $ac_dir_suffix.
16360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16362 ac_dir_suffix= ac_top_builddir=
16366 .) # No --srcdir option. We are building in place.
16368 if test -z "$ac_top_builddir"; then
16371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16373 [\\/]* | ?:[\\/]* ) # Absolute path.
16374 ac_srcdir=$srcdir$ac_dir_suffix;
16375 ac_top_srcdir=$srcdir ;;
16376 *) # Relative path.
16377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16381 # Do not use `cd foo && pwd` to compute absolute paths, because
16382 # the directories may not exist.
16384 .) ac_abs_builddir="$ac_dir";;
16387 .) ac_abs_builddir=`pwd`;;
16388 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16389 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16392 case $ac_abs_builddir in
16393 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16395 case ${ac_top_builddir}. in
16396 .) ac_abs_top_builddir=$ac_abs_builddir;;
16397 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16398 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16401 case $ac_abs_builddir in
16402 .) ac_abs_srcdir=$ac_srcdir;;
16405 .) ac_abs_srcdir=$ac_abs_builddir;;
16406 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16407 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16410 case $ac_abs_builddir in
16411 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16413 case $ac_top_srcdir in
16414 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16415 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16416 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16423 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16426 if test x"$ac_file" != x-; then
16427 { echo "$as_me:$LINENO: creating $ac_file" >&5
16428 echo "$as_me: creating $ac_file" >&6;}
16431 # Let's still pretend it is `configure' which instantiates (i.e., don't
16432 # use $as_me), people would be surprised to read:
16433 # /* config.h. Generated by config.status. */
16434 if test x"$ac_file" = x-; then
16437 configure_input="$ac_file. "
16439 configure_input=$configure_input"Generated from `echo $ac_file_in |
16440 sed 's,.*/,,'` by configure."
16442 # First look for the input files in the build tree, otherwise in the
16444 ac_file_inputs=`IFS=:
16445 for f in $ac_file_in; do
16447 -) echo $tmp/stdin ;;
16449 # Absolute (can't be DOS-style, as IFS=:)
16450 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16451 echo "$as_me: error: cannot find input file: $f" >&2;}
16452 { (exit 1); exit 1; }; }
16455 if test -f "$f"; then
16458 elif test -f "$srcdir/$f"; then
16463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16464 echo "$as_me: error: cannot find input file: $f" >&2;}
16465 { (exit 1); exit 1; }; }
16468 done` || { (exit 1); exit 1; }
16470 cat >>$CONFIG_STATUS <<_ACEOF
16474 cat >>$CONFIG_STATUS <<\_ACEOF
16476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16477 s,@configure_input@,$configure_input,;t t
16478 s,@srcdir@,$ac_srcdir,;t t
16479 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16480 s,@top_srcdir@,$ac_top_srcdir,;t t
16481 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16482 s,@builddir@,$ac_builddir,;t t
16483 s,@abs_builddir@,$ac_abs_builddir,;t t
16484 s,@top_builddir@,$ac_top_builddir,;t t
16485 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16486 s,@INSTALL@,$ac_INSTALL,;t t
16487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16489 if test x"$ac_file" != x-; then
16490 mv $tmp/out $ac_file
16498 cat >>$CONFIG_STATUS <<\_ACEOF
16501 # CONFIG_HEADER section.
16504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16507 # ac_d sets the value in "#define NAME VALUE" lines.
16508 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16509 ac_dB='[ ].*$,\1#\2'
16512 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16513 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16514 ac_uB='$,\1#\2define\3'
16518 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16521 - | *:- | *:-:* ) # input from stdin
16523 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16525 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16527 * ) ac_file_in=$ac_file.in ;;
16530 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16531 echo "$as_me: creating $ac_file" >&6;}
16533 # First look for the input files in the build tree, otherwise in the
16535 ac_file_inputs=`IFS=:
16536 for f in $ac_file_in; do
16538 -) echo $tmp/stdin ;;
16540 # Absolute (can't be DOS-style, as IFS=:)
16541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543 { (exit 1); exit 1; }; }
16544 # Do quote $f, to prevent DOS paths from being IFS'd.
16547 if test -f "$f"; then
16550 elif test -f "$srcdir/$f"; then
16555 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16556 echo "$as_me: error: cannot find input file: $f" >&2;}
16557 { (exit 1); exit 1; }; }
16560 done` || { (exit 1); exit 1; }
16561 # Remove the trailing spaces.
16562 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16566 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16567 # `conftest.undefs', that substitutes the proper values into
16568 # config.h.in to produce config.h. The first handles `#define'
16569 # templates, and the second `#undef' templates.
16570 # And first: Protect against being on the right side of a sed subst in
16571 # config.status. Protect against being in an unquoted here document
16572 # in config.status.
16573 rm -f conftest.defines conftest.undefs
16574 # Using a here document instead of a string reduces the quoting nightmare.
16575 # Putting comments in sed scripts is not portable.
16577 # `end' is used to avoid that the second main sed command (meant for
16578 # 0-ary CPP macros) applies to n-ary macro definitions.
16579 # See the Autoconf documentation for `clear'.
16580 cat >confdef2sed.sed <<\_ACEOF
16585 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16587 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16590 # If some macros were called several times there might be several times
16591 # the same #defines, which is useless. Nevertheless, we may not want to
16592 # sort them, since we want the *last* AC-DEFINE to be honored.
16593 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16594 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16595 rm -f confdef2sed.sed
16597 # This sed command replaces #undef with comments. This is necessary, for
16598 # example, in the case of _POSIX_SOURCE, which is predefined and required
16599 # on some systems where configure will not decide to define it.
16600 cat >>conftest.undefs <<\_ACEOF
16601 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16604 # Break up conftest.defines because some shells have a limit on the size
16605 # of here documents, and old seds have small limits too (100 cmds).
16606 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16607 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16608 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16609 echo ' :' >>$CONFIG_STATUS
16610 rm -f conftest.tail
16611 while grep . conftest.defines >/dev/null
16613 # Write a limited-size here document to $tmp/defines.sed.
16614 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16615 # Speed up: don't consider the non `#define' lines.
16616 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16617 # Work around the forget-to-reset-the-flag bug.
16618 echo 't clr' >>$CONFIG_STATUS
16619 echo ': clr' >>$CONFIG_STATUS
16620 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16622 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16624 mv $tmp/out $tmp/in
16626 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16627 rm -f conftest.defines
16628 mv conftest.tail conftest.defines
16630 rm -f conftest.defines
16631 echo ' fi # grep' >>$CONFIG_STATUS
16632 echo >>$CONFIG_STATUS
16634 # Break up conftest.undefs because some shells have a limit on the size
16635 # of here documents, and old seds have small limits too (100 cmds).
16636 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16637 rm -f conftest.tail
16638 while grep . conftest.undefs >/dev/null
16640 # Write a limited-size here document to $tmp/undefs.sed.
16641 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16642 # Speed up: don't consider the non `#undef'
16643 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16644 # Work around the forget-to-reset-the-flag bug.
16645 echo 't clr' >>$CONFIG_STATUS
16646 echo ': clr' >>$CONFIG_STATUS
16647 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16649 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16651 mv $tmp/out $tmp/in
16653 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16654 rm -f conftest.undefs
16655 mv conftest.tail conftest.undefs
16657 rm -f conftest.undefs
16659 cat >>$CONFIG_STATUS <<\_ACEOF
16660 # Let's still pretend it is `configure' which instantiates (i.e., don't
16661 # use $as_me), people would be surprised to read:
16662 # /* config.h. Generated by config.status. */
16663 if test x"$ac_file" = x-; then
16664 echo "/* Generated by configure. */" >$tmp/config.h
16666 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16668 cat $tmp/in >>$tmp/config.h
16670 if test x"$ac_file" != x-; then
16671 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16672 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16673 echo "$as_me: $ac_file is unchanged" >&6;}
16675 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$ac_file" : 'X\(//\)[^/]' \| \
16678 X"$ac_file" : 'X\(//\)$' \| \
16679 X"$ac_file" : 'X\(/\)' \| \
16680 . : '\(.\)' 2>/dev/null ||
16682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16684 /^X\(\/\/\)$/{ s//\1/; q; }
16685 /^X\(\/\).*/{ s//\1/; q; }
16687 { if $as_mkdir_p; then
16692 while test ! -d "$as_dir"; do
16693 as_dirs="$as_dir $as_dirs"
16694 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16696 X"$as_dir" : 'X\(//\)[^/]' \| \
16697 X"$as_dir" : 'X\(//\)$' \| \
16698 X"$as_dir" : 'X\(/\)' \| \
16699 . : '\(.\)' 2>/dev/null ||
16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16703 /^X\(\/\/\)$/{ s//\1/; q; }
16704 /^X\(\/\).*/{ s//\1/; q; }
16707 test ! -n "$as_dirs" || mkdir $as_dirs
16708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16710 { (exit 1); exit 1; }; }; }
16713 mv $tmp/config.h $ac_file
16717 rm -f $tmp/config.h
16719 # Compute $ac_file's index in $config_headers.
16721 for _am_header in $config_headers :; do
16722 case $_am_header in
16723 $ac_file | $ac_file:* )
16726 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16729 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16730 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16731 X$ac_file : 'X\(//\)[^/]' \| \
16732 X$ac_file : 'X\(//\)$' \| \
16733 X$ac_file : 'X\(/\)' \| \
16734 . : '\(.\)' 2>/dev/null ||
16736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16738 /^X\(\/\/\)$/{ s//\1/; q; }
16739 /^X\(\/\).*/{ s//\1/; q; }
16740 s/.*/./; q'`/stamp-h$_am_stamp_count
16743 cat >>$CONFIG_STATUS <<\_ACEOF
16746 # CONFIG_COMMANDS section.
16748 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16749 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16750 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16751 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16752 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16753 X"$ac_dest" : 'X\(//\)[^/]' \| \
16754 X"$ac_dest" : 'X\(//\)$' \| \
16755 X"$ac_dest" : 'X\(/\)' \| \
16756 . : '\(.\)' 2>/dev/null ||
16758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16760 /^X\(\/\/\)$/{ s//\1/; q; }
16761 /^X\(\/\).*/{ s//\1/; q; }
16763 { if $as_mkdir_p; then
16768 while test ! -d "$as_dir"; do
16769 as_dirs="$as_dir $as_dirs"
16770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16772 X"$as_dir" : 'X\(//\)[^/]' \| \
16773 X"$as_dir" : 'X\(//\)$' \| \
16774 X"$as_dir" : 'X\(/\)' \| \
16775 . : '\(.\)' 2>/dev/null ||
16777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16779 /^X\(\/\/\)$/{ s//\1/; q; }
16780 /^X\(\/\).*/{ s//\1/; q; }
16783 test ! -n "$as_dirs" || mkdir $as_dirs
16784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16786 { (exit 1); exit 1; }; }; }
16790 if test "$ac_dir" != .; then
16791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16792 # A "../" for each directory in $ac_dir_suffix.
16793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16795 ac_dir_suffix= ac_top_builddir=
16799 .) # No --srcdir option. We are building in place.
16801 if test -z "$ac_top_builddir"; then
16804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16806 [\\/]* | ?:[\\/]* ) # Absolute path.
16807 ac_srcdir=$srcdir$ac_dir_suffix;
16808 ac_top_srcdir=$srcdir ;;
16809 *) # Relative path.
16810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16814 # Do not use `cd foo && pwd` to compute absolute paths, because
16815 # the directories may not exist.
16817 .) ac_abs_builddir="$ac_dir";;
16820 .) ac_abs_builddir=`pwd`;;
16821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16825 case $ac_abs_builddir in
16826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16828 case ${ac_top_builddir}. in
16829 .) ac_abs_top_builddir=$ac_abs_builddir;;
16830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16834 case $ac_abs_builddir in
16835 .) ac_abs_srcdir=$ac_srcdir;;
16838 .) ac_abs_srcdir=$ac_abs_builddir;;
16839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16843 case $ac_abs_builddir in
16844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16846 case $ac_top_srcdir in
16847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16854 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16855 echo "$as_me: executing $ac_dest commands" >&6;}
16857 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16858 # Strip MF so we end up with the name of the file.
16859 mf=`echo "$mf" | sed -e 's/:.*$//'`
16860 # Check whether this is an Automake generated Makefile or not.
16861 # We used to match only the files named `Makefile.in', but
16862 # some people rename them; so instead we look at the file content.
16863 # Grep'ing the first line is not enough: some people post-process
16864 # each Makefile.in and add a new line on top of each file to say so.
16865 # So let's grep whole file.
16866 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16867 dirpart=`(dirname "$mf") 2>/dev/null ||
16868 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$mf" : 'X\(//\)[^/]' \| \
16870 X"$mf" : 'X\(//\)$' \| \
16871 X"$mf" : 'X\(/\)' \| \
16872 . : '\(.\)' 2>/dev/null ||
16874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16876 /^X\(\/\/\)$/{ s//\1/; q; }
16877 /^X\(\/\).*/{ s//\1/; q; }
16882 # Extract the definition of DEPDIR, am__include, and am__quote
16883 # from the Makefile without running `make'.
16884 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16885 test -z "$DEPDIR" && continue
16886 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16887 test -z "am__include" && continue
16888 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16889 # When using ansi2knr, U may be empty or an underscore; expand it
16890 U=`sed -n 's/^U = //p' < "$mf"`
16891 # Find all dependency output files, they are included files with
16892 # $(DEPDIR) in their names. We invoke sed twice because it is the
16893 # simplest approach to changing $(DEPDIR) to its actual value in the
16895 for file in `sed -n "
16896 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16897 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16898 # Make sure the directory exists.
16899 test -f "$dirpart/$file" && continue
16900 fdir=`(dirname "$file") 2>/dev/null ||
16901 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16902 X"$file" : 'X\(//\)[^/]' \| \
16903 X"$file" : 'X\(//\)$' \| \
16904 X"$file" : 'X\(/\)' \| \
16905 . : '\(.\)' 2>/dev/null ||
16907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16909 /^X\(\/\/\)$/{ s//\1/; q; }
16910 /^X\(\/\).*/{ s//\1/; q; }
16912 { if $as_mkdir_p; then
16913 mkdir -p $dirpart/$fdir
16915 as_dir=$dirpart/$fdir
16917 while test ! -d "$as_dir"; do
16918 as_dirs="$as_dir $as_dirs"
16919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$as_dir" : 'X\(//\)[^/]' \| \
16922 X"$as_dir" : 'X\(//\)$' \| \
16923 X"$as_dir" : 'X\(/\)' \| \
16924 . : '\(.\)' 2>/dev/null ||
16926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16928 /^X\(\/\/\)$/{ s//\1/; q; }
16929 /^X\(\/\).*/{ s//\1/; q; }
16932 test ! -n "$as_dirs" || mkdir $as_dirs
16933 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16934 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16935 { (exit 1); exit 1; }; }; }
16937 # echo "creating $dirpart/$file"
16938 echo '# dummy' > "$dirpart/$file"
16944 # See if we are running on zsh, and set the options which allow our
16945 # commands through without removal of \ escapes.
16946 if test -n "${ZSH_VERSION+set}" ; then
16947 setopt NO_GLOB_SUBST
16950 cfgfile="${ofile}T"
16951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16954 cat <<_LT_EOF >> "$cfgfile"
16957 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16958 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16962 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16963 # 2006, 2007 Free Software Foundation, Inc.
16965 # This file is part of GNU Libtool:
16966 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16968 # This program is free software; you can redistribute it and/or modify
16969 # it under the terms of the GNU General Public License as published by
16970 # the Free Software Foundation; either version 2 of the License, or
16971 # (at your option) any later version.
16973 # This program is distributed in the hope that it will be useful, but
16974 # WITHOUT ANY WARRANTY; without even the implied warranty of
16975 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16976 # General Public License for more details.
16978 # You should have received a copy of the GNU General Public License
16979 # along with this program; if not, a copy can be downloaded from
16980 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16981 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16982 # MA 02110-1301, USA.
16984 # As a special exception to the GNU General Public License, if you
16985 # distribute this file as part of a program that contains a
16986 # configuration script generated by Autoconf, you may include it under
16987 # the same distribution terms that you use for the rest of that program.
16990 # The names of the tagged configurations supported by this script.
16993 # ### BEGIN LIBTOOL CONFIG
16995 # Which release of libtool.m4 was used?
16996 macro_version=$macro_version
16997 macro_revision=$macro_revision
16999 # Whether or not to build shared libraries.
17000 build_libtool_libs=$enable_shared
17002 # Whether or not to build static libraries.
17003 build_old_libs=$enable_static
17005 # What type of objects to build.
17008 # Whether or not to optimize for fast installation.
17009 fast_install=$enable_fast_install
17012 host_alias=$host_alias
17016 # The build system.
17017 build_alias=$build_alias
17021 # A sed program that does not truncate output.
17024 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17025 Xsed="\$SED -e 1s/^X//"
17027 # A grep program that handles long lines.
17033 # A literal string matcher.
17036 # A BSD- or MS-compatible name lister.
17039 # Whether we need soft or hard links.
17042 # What is the maximum length of a command?
17043 max_cmd_len=$max_cmd_len
17045 # Object file suffix (normally "o").
17048 # Executable file suffix (normally "").
17051 # whether the shell understands "unset".
17054 # turn spaces into newlines.
17057 # turn newlines into spaces.
17060 # How to create reloadable object files.
17061 reload_flag=$lt_reload_flag
17062 reload_cmds=$lt_reload_cmds
17064 # Method to check whether dependent libraries are shared objects.
17065 deplibs_check_method=$lt_deplibs_check_method
17067 # Command to use when deplibs_check_method == "file_magic".
17068 file_magic_cmd=$lt_file_magic_cmd
17072 AR_FLAGS=$lt_AR_FLAGS
17074 # A symbol stripping program.
17077 # Commands used to install an old-style archive.
17079 old_postinstall_cmds=$lt_old_postinstall_cmds
17080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17085 # LTCC compiler flags.
17086 LTCFLAGS=$lt_CFLAGS
17088 # Take the output of nm and produce a listing of raw symbols and C names.
17089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17091 # Transform the output of nm in a proper C declaration.
17092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17094 # Transform the output of nm in a C name address pair.
17095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17097 # The name of the directory that contains temporary libtool files.
17100 # Shell to use when invoking shell scripts.
17103 # An echo program that does not interpret backslashes.
17106 # Used to examine libraries when file_magic_cmd begins with "file".
17107 MAGIC_CMD=$MAGIC_CMD
17109 # Must we lock files when doing compilation?
17110 need_locks=$lt_need_locks
17112 # Old archive suffix (normally "a").
17115 # Shared library suffix (normally ".so").
17116 shrext_cmds=$lt_shrext_cmds
17118 # The commands to extract the exported symbol list from a shared archive.
17119 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17121 # Variables whose values should be saved in libtool wrapper scripts and
17122 # restored at link time.
17123 variables_saved_for_relink=$lt_variables_saved_for_relink
17125 # Do we need the "lib" prefix for modules?
17126 need_lib_prefix=$need_lib_prefix
17128 # Do we need a version for libraries?
17129 need_version=$need_version
17131 # Library versioning type.
17132 version_type=$version_type
17134 # Shared library runtime path variable.
17135 runpath_var=$runpath_var
17137 # Shared library path variable.
17138 shlibpath_var=$shlibpath_var
17140 # Is shlibpath searched before the hard-coded library search path?
17141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17143 # Format of library name prefix.
17144 libname_spec=$lt_libname_spec
17146 # List of archive names. First name is the real one, the rest are links.
17147 # The last name is the one that the linker finds with -lNAME
17148 library_names_spec=$lt_library_names_spec
17150 # The coded name of the library, if different from the real name.
17151 soname_spec=$lt_soname_spec
17153 # Command to use after installation of a shared archive.
17154 postinstall_cmds=$lt_postinstall_cmds
17156 # Command to use after uninstallation of a shared archive.
17157 postuninstall_cmds=$lt_postuninstall_cmds
17159 # Commands used to finish a libtool library installation in a directory.
17160 finish_cmds=$lt_finish_cmds
17162 # As "finish_cmds", except a single script fragment to be evaled but
17164 finish_eval=$lt_finish_eval
17166 # Whether we should hardcode library paths into libraries.
17167 hardcode_into_libs=$hardcode_into_libs
17169 # Compile-time system search path for libraries.
17170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17172 # Run-time system search path for libraries.
17173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17175 # Whether dlopen is supported.
17176 dlopen_support=$enable_dlopen
17178 # Whether dlopen of programs is supported.
17179 dlopen_self=$enable_dlopen_self
17181 # Whether dlopen of statically linked programs is supported.
17182 dlopen_self_static=$enable_dlopen_self_static
17184 # Commands to strip libraries.
17185 old_striplib=$lt_old_striplib
17186 striplib=$lt_striplib
17189 # The linker used to build libraries.
17192 # Commands used to build an old-style archive.
17193 old_archive_cmds=$lt_old_archive_cmds
17195 # A language specific compiler.
17198 # Is the compiler the GNU compiler?
17201 # Compiler flag to turn off builtin functions.
17202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl
17207 # Additional compiler flags for building library objects.
17208 pic_flag=$lt_lt_prog_compiler_pic
17210 # Compiler flag to prevent dynamic linking.
17211 link_static_flag=$lt_lt_prog_compiler_static
17213 # Does compiler simultaneously support -c and -o options?
17214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17216 # Whether or not to add -lc for building shared libraries.
17217 build_libtool_need_lc=$archive_cmds_need_lc
17219 # Whether or not to disallow shared libs when runtime libs are static.
17220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17222 # Compiler flag to allow reflexive dlopens.
17223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17225 # Compiler flag to generate shared objects directly from archives.
17226 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17228 # Whether the compiler copes with passing no objects directly.
17229 compiler_needs_object=$lt_compiler_needs_object
17231 # Create an old-style archive from a shared archive.
17232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17234 # Create a temporary old-style archive to link instead of a shared archive.
17235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17237 # Commands used to build a shared archive.
17238 archive_cmds=$lt_archive_cmds
17239 archive_expsym_cmds=$lt_archive_expsym_cmds
17241 # Commands used to build a loadable module if different from building
17242 # a shared archive.
17243 module_cmds=$lt_module_cmds
17244 module_expsym_cmds=$lt_module_expsym_cmds
17246 # Whether we are building with GNU ld or not.
17247 with_gnu_ld=$lt_with_gnu_ld
17249 # Flag that allows shared libraries with undefined symbols to be built.
17250 allow_undefined_flag=$lt_allow_undefined_flag
17252 # Flag that enforces no undefined symbols.
17253 no_undefined_flag=$lt_no_undefined_flag
17255 # Flag to hardcode \$libdir into a binary during linking.
17256 # This must work even if \$libdir does not exist
17257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17259 # If ld is used when linking, flag to hardcode \$libdir into a binary
17260 # during linking. This must work even if \$libdir does not exist.
17261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17263 # Whether we need a single "-rpath" flag with a separated argument.
17264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17267 # DIR into the resulting binary.
17268 hardcode_direct=$hardcode_direct
17270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17271 # DIR into the resulting binary and the resulting library dependency is
17272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17273 # library is relocated.
17274 hardcode_direct_absolute=$hardcode_direct_absolute
17276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17277 # into the resulting binary.
17278 hardcode_minus_L=$hardcode_minus_L
17280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17281 # into the resulting binary.
17282 hardcode_shlibpath_var=$hardcode_shlibpath_var
17284 # Set to "yes" if building a shared library automatically hardcodes DIR
17285 # into the library and all subsequent libraries and executables linked
17287 hardcode_automatic=$hardcode_automatic
17289 # Set to yes if linker adds runtime paths of dependent libraries
17290 # to runtime path list.
17291 inherit_rpath=$inherit_rpath
17293 # Whether libtool must link a program against all its dependency libraries.
17294 link_all_deplibs=$link_all_deplibs
17296 # Fix the shell variable \$srcfile for the compiler.
17297 fix_srcfile_path=$lt_fix_srcfile_path
17299 # Set to "yes" if exported symbols are required.
17300 always_export_symbols=$always_export_symbols
17302 # The commands to list exported symbols.
17303 export_symbols_cmds=$lt_export_symbols_cmds
17305 # Symbols that should not be listed in the preloaded symbols.
17306 exclude_expsyms=$lt_exclude_expsyms
17308 # Symbols that must always be exported.
17309 include_expsyms=$lt_include_expsyms
17311 # Commands necessary for linking programs (against libraries) with templates.
17312 prelink_cmds=$lt_prelink_cmds
17314 # Specify filename containing input files.
17315 file_list_spec=$lt_file_list_spec
17317 # How to hardcode a shared library path into an executable.
17318 hardcode_action=$hardcode_action
17320 # ### END LIBTOOL CONFIG
17326 cat <<\_LT_EOF >> "$cfgfile"
17327 # AIX sometimes has problems with the GCC collect2 program. For some
17328 # reason, if we set the COLLECT_NAMES environment variable, the problems
17329 # vanish in a puff of smoke.
17330 if test "X${COLLECT_NAMES+set}" != Xset; then
17332 export COLLECT_NAMES
17339 ltmain="$ac_aux_dir/ltmain.sh"
17342 # We use sed instead of cat because bash on DJGPP gets confused if
17343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17344 # text mode, it properly converts lines to CR/LF. This bash problem
17345 # is reportedly fixed, but why not run on old versions too?
17346 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17347 || (rm -f "$cfgfile"; exit 1)
17351 cat << \_LT_EOF >> "$cfgfile"
17352 # func_dirname file append nondir_replacement
17353 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17354 # otherwise set result to NONDIR_REPLACEMENT.
17358 */*) func_dirname_result="${1%/*}${2}" ;;
17359 * ) func_dirname_result="${3}" ;;
17363 # func_basename file
17366 func_basename_result="${1##*/}"
17369 # func_stripname prefix suffix name
17370 # strip PREFIX and SUFFIX off of NAME.
17371 # PREFIX and SUFFIX must not contain globbing or regex special
17372 # characters, hashes, percent signs, but SUFFIX may contain a leading
17373 # dot (in which case that matches only a dot).
17376 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17377 # positional parameters, so assign one to ordinary parameter first.
17378 func_stripname_result=${3}
17379 func_stripname_result=${func_stripname_result#"${1}"}
17380 func_stripname_result=${func_stripname_result%"${2}"}
17386 func_opt_split_opt=${1%%=*}
17387 func_opt_split_arg=${1#*=}
17394 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17395 *) func_lo2o_result=${1} ;;
17400 *) # Bourne compatible functions.
17401 cat << \_LT_EOF >> "$cfgfile"
17402 # func_dirname file append nondir_replacement
17403 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17404 # otherwise set result to NONDIR_REPLACEMENT.
17407 # Extract subdirectory from the argument.
17408 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17409 if test "X$func_dirname_result" = "X${1}"; then
17410 func_dirname_result="${3}"
17412 func_dirname_result="$func_dirname_result${2}"
17416 # func_basename file
17419 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17422 # func_stripname prefix suffix name
17423 # strip PREFIX and SUFFIX off of NAME.
17424 # PREFIX and SUFFIX must not contain globbing or regex special
17425 # characters, hashes, percent signs, but SUFFIX may contain a leading
17426 # dot (in which case that matches only a dot).
17427 # func_strip_suffix prefix name
17431 .*) func_stripname_result=`$ECHO "X${3}" \
17432 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17433 *) func_stripname_result=`$ECHO "X${3}" \
17434 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17439 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17440 my_sed_long_arg='1s/^-[^=]*=//'
17445 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17446 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17452 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17457 case $lt_shell_append in
17459 cat << \_LT_EOF >> "$cfgfile"
17461 # func_append var value
17462 # Append VALUE to the end of shell variable VAR.
17470 cat << \_LT_EOF >> "$cfgfile"
17472 # func_append var value
17473 # Append VALUE to the end of shell variable VAR.
17483 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17484 || (rm -f "$cfgfile"; exit 1)
17486 mv -f "$cfgfile" "$ofile" ||
17487 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17492 for ac_file in $CONFIG_FILES; do
17493 # Support "outfile[:infile[:infile...]]"
17495 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17497 # PO directories have a Makefile.in generated from Makefile.in.in.
17498 case "$ac_file" in */Makefile.in)
17499 # Adjust a relative srcdir.
17500 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17501 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17502 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17503 # In autoconf-2.13 it is called $ac_given_srcdir.
17504 # In autoconf-2.50 it is called $srcdir.
17505 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17506 case "$ac_given_srcdir" in
17507 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17508 /*) top_srcdir="$ac_given_srcdir" ;;
17509 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17511 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17512 rm -f "$ac_dir/POTFILES"
17513 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17514 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17515 POMAKEFILEDEPS="POTFILES.in"
17516 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17517 # on $ac_dir but don't depend on user-specified configuration
17519 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17520 # The LINGUAS file contains the set of available languages.
17521 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17522 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17524 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17525 # Hide the ALL_LINGUAS assigment from automake.
17526 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17527 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17529 # The set of available languages was given in configure.in.
17530 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17532 case "$ac_given_srcdir" in
17534 *) srcdirpre='$(srcdir)/' ;;
17540 for lang in $ALL_LINGUAS; do
17541 POFILES="$POFILES $srcdirpre$lang.po"
17542 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17543 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17544 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17546 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17547 # environment variable.
17549 if test -n "$ALL_LINGUAS"; then
17550 for presentlang in $ALL_LINGUAS; do
17552 if test "%UNSET%" != "$LINGUAS"; then
17553 desiredlanguages="$LINGUAS"
17555 desiredlanguages="$ALL_LINGUAS"
17557 for desiredlang in $desiredlanguages; do
17558 # Use the presentlang catalog if desiredlang is
17559 # a. equal to presentlang, or
17560 # b. a variant of presentlang (because in this case,
17561 # presentlang can be used as a fallback for messages
17562 # which are not translated in the desiredlang catalog).
17563 case "$desiredlang" in
17564 "$presentlang"*) useit=yes;;
17567 if test $useit = yes; then
17568 INST_LINGUAS="$INST_LINGUAS $presentlang"
17573 if test -n "$INST_LINGUAS"; then
17574 for lang in $INST_LINGUAS; do
17575 CATALOGS="$CATALOGS $lang.gmo"
17578 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17579 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17580 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17581 if test -f "$f"; then
17583 *.orig | *.bak | *~) ;;
17584 *) cat "$f" >> "$ac_dir/Makefile" ;;
17596 cat >>$CONFIG_STATUS <<\_ACEOF
17598 { (exit 0); exit 0; }
17600 chmod +x $CONFIG_STATUS
17601 ac_clean_files=$ac_clean_files_save
17604 # configure is writing to config.log, and then calls config.status.
17605 # config.status does its own redirection, appending to config.log.
17606 # Unfortunately, on DOS this fails, as config.log is still kept open
17607 # by configure, so config.status won't be able to write to it; its
17608 # output is simply discarded. So we exec the FD to /dev/null,
17609 # effectively closing config.log, so it can be properly (re)opened and
17610 # appended to by config.status. When coming back to configure, we
17611 # need to make the FD available again.
17612 if test "$no_create" != yes; then
17614 ac_config_status_args=
17615 test "$silent" = yes &&
17616 ac_config_status_args="$ac_config_status_args --quiet"
17618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17621 # would make configure fail if this is the last instruction.
17622 $ac_cs_success || { (exit 1); exit 1; }