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="as.h"
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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB 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 ALLOCA LIBM 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 besides the primary
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-checking enable run-time checks
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
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]
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 ac_dir_suffix= ac_top_builddir=
1059 .) # No --srcdir option. We are building in place.
1061 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1077 .) ac_abs_builddir="$ac_dir";;
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1124 $ac_configure --help
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 for ac_dir in .. $srcdir/..; do
1492 if test -f $ac_dir/install-sh; then
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 elif test -f $ac_dir/install.sh; then
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 elif test -f $ac_dir/shtool; then
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1508 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1509 { (exit 1); exit 1; }; }
1511 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569 echo "$as_me:$LINENO: checking target system type" >&5
1570 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571 if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 ac_cv_target_alias=$target_alias
1575 test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1583 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584 echo "${ECHO_T}$ac_cv_target" >&6
1585 target=$ac_cv_target
1586 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591 # The aliases save the names the user supplied, while $host etc.
1592 # will get canonicalized.
1593 test -n "$target_alias" &&
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1596 program_prefix=${target_alias}-
1598 ac_cpp='$CPP $CPPFLAGS'
1599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1639 if test -z "$ac_cv_prog_CC"; then
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1681 if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}cc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}cc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$ac_cv_prog_CC"; then
1721 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1762 if test -z "$CC"; then
1763 # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test $ac_prog_rejected = yes; then
1793 # We found a bogon in the path, so make sure we never use it.
1794 set dummy $ac_cv_prog_CC
1796 if test $# != 0; then
1797 # We chose a different compiler from the bogus one.
1798 # However, it has the same basename, so the bogon will be chosen
1799 # first if we set CC to just the basename; use the full file name.
1801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809 echo "${ECHO_T}$CC" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1816 if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1855 test -n "$CC" && break
1858 if test -z "$CC"; then
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1897 test -n "$ac_ct_CC" && break
1906 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1937 cat confdefs.h >>conftest.$ac_ext
1938 cat >>conftest.$ac_ext <<_ACEOF
1939 /* end confdefs.h. */
1949 ac_clean_files_save=$ac_clean_files
1950 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1951 # Try to create an executable without -o first, disregard a.out.
1952 # It will help us diagnose broken compilers, and finding out an intuition
1954 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1955 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1956 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1957 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1958 (eval $ac_link_default) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # Find the output, starting from the most likely. This scheme is
1963 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 # Be careful to initialize this variable, since it used to be cached.
1967 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 # b.out is created by i960 compilers.
1970 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972 test -f "$ac_file" || continue
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 # This is the source file.
1980 # We found the default executable, but exeext='' is most
1984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 # FIXME: I believe we export ac_cv_exeext for Libtool,
1986 # but it would be cool to find out if it's true. Does anybody
1987 # maintain Libtool? --akim.
1995 echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2001 See \`config.log' for more details." >&5
2002 echo "$as_me: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&2;}
2004 { (exit 77); exit 77; }; }; }
2007 ac_exeext=$ac_cv_exeext
2008 echo "$as_me:$LINENO: result: $ac_file" >&5
2009 echo "${ECHO_T}$ac_file" >&6
2011 # Check the compiler produces executables we can run. If not, either
2012 # the compiler is broken, or we cross compile.
2013 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2015 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016 # If not cross compiling, check that we can run a simple program.
2017 if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2026 if test "$cross_compiling" = maybe; then
2029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2032 If you meant to cross compile, use \`--host'.
2033 See \`config.log' for more details." >&5
2034 echo "$as_me: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }; }
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2045 ac_clean_files=$ac_clean_files_save
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2051 echo "${ECHO_T}$cross_compiling" >&6
2053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2056 (eval $ac_link) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; then
2060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2062 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 for ac_file in conftest.exe conftest conftest.*; do
2065 test -f "$ac_file" || continue
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }; }
2084 rm -f conftest$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086 echo "${ECHO_T}$ac_cv_exeext" >&6
2088 rm -f conftest.$ac_ext
2089 EXEEXT=$ac_cv_exeext
2091 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093 if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 cat >conftest.$ac_ext <<_ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2111 rm -f conftest.o conftest.obj
2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2128 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }; }
2137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2140 echo "${ECHO_T}$ac_cv_objext" >&6
2141 OBJEXT=$ac_cv_objext
2143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 cat >conftest.$ac_ext <<_ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2170 grep -v '^ *+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201 GCC=`test $ac_compiler_gnu = yes && echo yes`
2202 ac_test_CFLAGS=${CFLAGS+set}
2203 ac_save_CFLAGS=$CFLAGS
2205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2229 grep -v '^ *+' conftest.er1 >conftest.err
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258 if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260 elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2267 if test "$GCC" = yes; then
2273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 ac_cv_prog_cc_stdc=no
2280 cat >conftest.$ac_ext <<_ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2288 #include <sys/types.h>
2289 #include <sys/stat.h>
2290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2291 struct buf { int x; };
2292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2293 static char *e (p, i)
2299 static char *f (char * (*g) (char **, int), char **p, ...)
2304 s = g (p, va_arg (v,int));
2309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not '\xHH' hex character constants.
2311 These don't provoke an error unfortunately, instead are silently treated
2312 as 'x'. The following induces an error, until -std1 is added to get
2313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2314 array size at least. It's necessary to write '\x00'==0 to get something
2315 that's true only with -std1. */
2316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 # Don't try gcc -ansi; that turns off useful extensions and
2333 # breaks some systems' header files.
2334 # AIX -qlanglvl=ansi
2335 # Ultrix and OSF/1 -std1
2336 # HP-UX 10.20 and later -Ae
2337 # HP-UX older versions -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2346 grep -v '^ *+' conftest.er1 >conftest.err
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2378 case "x$ac_cv_prog_cc_stdc" in
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2539 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2540 if test "${ac_cv_search_strerror+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 ac_func_search_save_LIBS=$LIBS
2544 ac_cv_search_strerror=no
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2552 /* Override any gcc2 internal prototype to avoid an error. */
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569 (eval $ac_link) 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_search_strerror="none required"
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2597 if test "$ac_cv_search_strerror" = no; then
2598 for ac_lib in cposix; do
2599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2607 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_search_strerror="-l$ac_lib"
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2655 LIBS=$ac_func_search_save_LIBS
2657 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2658 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2659 if test "$ac_cv_search_strerror" != no; then
2660 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2666 am__api_version="1.9"
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2682 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2683 if test -z "$INSTALL"; then
2684 if test "${ac_cv_path_install+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2694 ./ | .// | /cC/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 rm -rf conftest.one conftest.two conftest.dir
2737 if test "${ac_cv_path_install+set}" = set; then
2738 INSTALL=$ac_cv_path_install
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 INSTALL=$ac_install_sh
2747 echo "$as_me:$LINENO: result: $INSTALL" >&5
2748 echo "${ECHO_T}$INSTALL" >&6
2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751 # It thinks the first close brace ends the variable substitution.
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2762 echo timestamp > conftest.file
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments. Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2772 set X `ls -t $srcdir/configure conftest.file`
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
2782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" >&5
2784 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2785 alias in your environment" >&2;}
2786 { (exit 1); exit 1; }; }
2789 test "$2" = conftest.file
2795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2796 Check your system clock" >&5
2797 echo "$as_me: error: newly created file is older than distributed files!
2798 Check your system clock" >&2;}
2799 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2808 # Double any \ or $. echo might interpret backslashes.
2809 # By default was `s,x,x', remove it if useless.
2810 cat <<\_ACEOF >conftest.sed
2811 s/[\\$]/&&/g;s/;s,x,x,$//
2813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2816 # expand $ac_aux_dir to an absolute path
2817 am_aux_dir=`cd $ac_aux_dir && pwd`
2819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --run true"; then
2822 am_missing_run="$MISSING --run "
2825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2830 # We used to keeping the `.' as first argument, in order to
2831 # allow $(mkdir_p) to be used without argument. As in
2832 # $(mkdir_p) $(somedir)
2833 # where $(somedir) is conditionally defined. However this is wrong
2835 # 1. if the package is installed by a user who cannot write `.'
2836 # make install will fail,
2837 # 2. the above comment should most certainly read
2838 # $(mkdir_p) $(DESTDIR)$(somedir)
2839 # so it does not work when $(somedir) is undefined and
2840 # $(DESTDIR) is not.
2841 # To support the latter case, we have to write
2842 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2843 # so the `.' trick is pointless.
2844 mkdir_p='mkdir -p --'
2846 # On NextStep and OpenStep, the `mkdir' command does not
2847 # recognize any option. It will interpret all options as
2848 # directories to create, and then abort because `.' already
2850 for d in ./-p ./--version;
2852 test -d $d && rmdir $d
2854 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2855 if test -f "$ac_aux_dir/mkinstalldirs"; then
2856 mkdir_p='$(mkinstalldirs)'
2858 mkdir_p='$(install_sh) -d'
2862 for ac_prog in gawk mawk nawk awk
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 if test -n "$AWK"; then
2892 echo "$as_me:$LINENO: result: $AWK" >&5
2893 echo "${ECHO_T}$AWK" >&6
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2899 test -n "$AWK" && break
2902 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2904 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2905 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.make <<\_ACEOF
2910 @echo 'ac_maketemp="$(MAKE)"'
2912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2913 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2914 if test -n "$ac_maketemp"; then
2915 eval ac_cv_prog_make_${ac_make}_set=yes
2917 eval ac_cv_prog_make_${ac_make}_set=no
2921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 SET_MAKE="MAKE=${MAKE-make}"
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2938 rmdir .tst 2>/dev/null
2940 DEPDIR="${am__leading_dot}deps"
2942 ac_config_commands="$ac_config_commands depfiles"
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2951 # If we don't find an include directive, just comment out the code.
2952 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # We grep out `Entering directory' and `Leaving directory'
2960 # messages which can occur if `w' ends up in MAKEFLAGS.
2961 # In particular we don't look at `^make:' because GNU make might
2962 # be invoked under some other name (usually "gmake"), in which
2963 # case it prints its new name instead of `make'.
2964 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 # Now try BSD make style include.
2970 if test "$am__include" = "#"; then
2971 echo '.include "confinc"' > confmf
2972 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973 am__include=.include
2980 echo "$as_me:$LINENO: result: $_am_result" >&5
2981 echo "${ECHO_T}$_am_result" >&6
2982 rm -f confinc confmf
2984 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then
2986 enableval="$enable_dependency_tracking"
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2995 if test "x$enable_dependency_tracking" != xno; then
3005 # test to see if srcdir already configured
3006 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3007 test -f $srcdir/config.status; then
3008 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3009 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3010 { (exit 1); exit 1; }; }
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3023 # Define the identity of the package.
3025 VERSION=${BFD_VERSION}
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3033 cat >>confdefs.h <<_ACEOF
3034 #define VERSION "$VERSION"
3037 # Some tools Automake needs.
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3055 # Installed binaries are usually stripped using `strip' when the user
3056 # run `make install-strip'. However `strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the `STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_STRIP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 STRIP=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 echo "$as_me:$LINENO: result: $STRIP" >&5
3090 echo "${ECHO_T}$STRIP" >&6
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3097 if test -z "$ac_cv_prog_STRIP"; then
3099 # Extract the first word of "strip", so it can be a program name with args.
3100 set dummy strip; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$ac_ct_STRIP"; then
3107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_STRIP="strip"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127 if test -n "$ac_ct_STRIP"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3129 echo "${ECHO_T}$ac_ct_STRIP" >&6
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3137 STRIP="$ac_cv_prog_STRIP"
3141 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3143 # We need awk for the "check" target. The system "awk" is bad on
3145 # Always define AMTAR for backward compatibility.
3147 AMTAR=${AMTAR-"${am_missing_run}tar"}
3149 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3154 depcc="$CC" am_compiler_list=
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233 am_cv_CC_dependencies_compiler_type=$depmode
3242 am_cv_CC_dependencies_compiler_type=none
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256 am__fastdepCC_FALSE='#'
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3307 if test -z "$ac_cv_prog_CC"; then
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_CC+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3387 if test -z "$ac_cv_prog_CC"; then
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 if test -n "$CC"; then
3476 echo "$as_me:$LINENO: result: $CC" >&5
3477 echo "${ECHO_T}$CC" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517 echo "${ECHO_T}$CC" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 test -n "$CC" && break
3526 if test -z "$CC"; then
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3559 echo "${ECHO_T}$ac_ct_CC" >&6
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3565 test -n "$ac_ct_CC" && break
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&5
3578 echo "$as_me: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }; }
3582 # Provide some information about the compiler.
3583 echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585 ac_compiler=`set X $ac_compile; echo $2`
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3629 grep -v '^ *+' conftest.er1 >conftest.err
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3660 GCC=`test $ac_compiler_gnu = yes && echo yes`
3661 ac_test_CFLAGS=${CFLAGS+set}
3662 ac_save_CFLAGS=$CFLAGS
3664 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_g+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3726 if test "$GCC" = yes; then
3732 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3733 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 ac_cv_prog_cc_stdc=no
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3763 s = g (p, va_arg (v,int));
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std1 is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std1. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3791 # Don't try gcc -ansi; that turns off useful extensions and
3792 # breaks some systems' header files.
3793 # AIX -qlanglvl=ansi
3794 # Ultrix and OSF/1 -std1
3795 # HP-UX 10.20 and later -Ae
3796 # HP-UX older versions -Aa -D_HPUX_SOURCE
3797 # SVR4 -Xc -D__EXTENSIONS__
3798 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_stdc=$ac_arg
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f conftest.err conftest.$ac_objext
3832 rm -f conftest.$ac_ext conftest.$ac_objext
3837 case "x$ac_cv_prog_cc_stdc" in
3839 echo "$as_me:$LINENO: result: none needed" >&5
3840 echo "${ECHO_T}none needed" >&6 ;;
3842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3844 CC="$CC $ac_cv_prog_cc_stdc" ;;
3847 # Some people use a C++ compiler to compile C. Since we use `exit',
3848 # in C++ we need to declare it. In case someone uses the same compiler
3849 # for both compiling C and C++ we need to have the C++ compiler decide
3850 # the declaration of exit, since it's the most demanding environment.
3851 cat >conftest.$ac_ext <<_ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 for ac_declaration in \
3880 'extern "C" void std::exit (int) throw (); using std::exit;' \
3881 'extern "C" void std::exit (int); using std::exit;' \
3882 'extern "C" void exit (int) throw ();' \
3883 'extern "C" void exit (int);' \
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3947 rm -f conftest.$ac_objext
3948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978 if test -n "$ac_declaration"; then
3979 echo '#ifdef __cplusplus' >>confdefs.h
3980 echo $ac_declaration >>confdefs.h
3981 echo '#endif' >>confdefs.h
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 cat >>confdefs.h <<\_ACEOF
3998 #define _GNU_SOURCE 1
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4008 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4009 # On Suns, sometimes $CPP names a directory.
4010 if test -n "$CPP" && test -d "$CPP"; then
4013 if test -z "$CPP"; then
4014 if test "${ac_cv_prog_CPP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 for ac_c_preproc_warn_flag in '' yes
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4036 # include <limits.h>
4038 # include <assert.h>
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 if test -z "$ac_cpp_err"; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 # Broken: fails on valid input.
4068 rm -f conftest.err conftest.$ac_ext
4070 # OK, works on sane cases. Now check whether non-existent headers
4071 # can be detected and how.
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 if test -z "$ac_cpp_err"; then
4098 # Broken: success on invalid input.
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 # Passes both tests.
4108 rm -f conftest.err conftest.$ac_ext
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then
4125 echo "$as_me:$LINENO: result: $CPP" >&5
4126 echo "${ECHO_T}$CPP" >&6
4128 for ac_c_preproc_warn_flag in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4143 # include <limits.h>
4145 # include <assert.h>
4149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4166 if test -z "$ac_cpp_err"; then
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 # Broken: fails on valid input.
4175 rm -f conftest.err conftest.$ac_ext
4177 # OK, works on sane cases. Now check whether non-existent headers
4178 # can be detected and how.
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204 if test -z "$ac_cpp_err"; then
4205 # Broken: success on invalid input.
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 # Passes both tests.
4215 rm -f conftest.err conftest.$ac_ext
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then
4223 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4224 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." >&5
4227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; }; }
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 echo "$as_me:$LINENO: checking for egrep" >&5
4240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4241 if test "${ac_cv_prog_egrep+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4245 then ac_cv_prog_egrep='grep -E'
4246 else ac_cv_prog_egrep='egrep'
4249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4251 EGREP=$ac_cv_prog_egrep
4254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4256 if test "${ac_cv_header_stdc+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_header_stdc=yes
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309 if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "free" >/dev/null 2>&1; then
4345 ac_cv_header_stdc=no
4351 if test $ac_cv_header_stdc = yes; then
4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353 if test "$cross_compiling" = yes; then
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4386 rm -f conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4399 echo "$as_me: program exited with status $ac_status" >&5
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_header_stdc=no
4406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4412 if test $ac_cv_header_stdc = yes; then
4414 cat >>confdefs.h <<\_ACEOF
4415 #define STDC_HEADERS 1
4420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431 inttypes.h stdint.h unistd.h
4433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4447 #include <$ac_header>
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 eval "$as_ac_Header=yes"
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 eval "$as_ac_Header=no"
4478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 if test "${ac_cv_header_minix_config_h+set}" = set; then
4494 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4495 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4496 if test "${ac_cv_header_minix_config_h+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4500 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502 # Is the header compilable?
4503 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4504 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 $ac_includes_default
4512 #include <minix/config.h>
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>conftest.er1
4518 grep -v '^ *+' conftest.er1 >conftest.err
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_header_compiler=yes
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_header_compiler=no
4543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4545 echo "${ECHO_T}$ac_header_compiler" >&6
4547 # Is the header present?
4548 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4549 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #include <minix/config.h>
4558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } >/dev/null; then
4566 if test -s conftest.err; then
4567 ac_cpp_err=$ac_c_preproc_warn_flag
4568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4575 if test -z "$ac_cpp_err"; then
4576 ac_header_preproc=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_header_preproc=no
4583 rm -f conftest.err conftest.$ac_ext
4584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4585 echo "${ECHO_T}$ac_header_preproc" >&6
4587 # So? What about this header?
4588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4591 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4593 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4594 ac_header_preproc=yes
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4598 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4600 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4602 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4604 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4606 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4608 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 ## ------------------------------------------ ##
4612 ## Report this to the AC_PACKAGE_NAME lists. ##
4613 ## ------------------------------------------ ##
4616 sed "s/^/$as_me: WARNING: /" >&2
4619 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4620 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4621 if test "${ac_cv_header_minix_config_h+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_cv_header_minix_config_h=$ac_header_preproc
4626 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4627 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4630 if test $ac_cv_header_minix_config_h = yes; then
4637 if test "$MINIX" = yes; then
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _POSIX_SOURCE 1
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_1_SOURCE 2
4649 cat >>confdefs.h <<\_ACEOF
4657 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4658 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4669 # define __EXTENSIONS__ 1
4670 $ac_includes_default
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_cv_safe_to_define___extensions__=yes
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_cv_safe_to_define___extensions__=no
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4711 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4712 test $ac_cv_safe_to_define___extensions__ = yes &&
4713 cat >>confdefs.h <<\_ACEOF
4714 #define __EXTENSIONS__ 1
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _ALL_SOURCE 1
4721 cat >>confdefs.h <<\_ACEOF
4722 #define _GNU_SOURCE 1
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _POSIX_PTHREAD_SEMANTICS 1
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _TANDEM_SOURCE 1
4737 macro_version='2.1a'
4738 macro_revision='1.2435'
4751 ltmain="$ac_aux_dir/ltmain.sh"
4761 # Check whether --enable-shared or --disable-shared was given.
4762 if test "${enable_shared+set}" = set; then
4763 enableval="$enable_shared"
4764 p=${PACKAGE-default}
4766 yes) enable_shared=yes ;;
4767 no) enable_shared=no ;;
4770 # Look at the argument we got. We use all the common list separators.
4771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4772 for pkg in $enableval; do
4774 if test "X$pkg" = "X$p"; then
4792 # Check whether --enable-static or --disable-static was given.
4793 if test "${enable_static+set}" = set; then
4794 enableval="$enable_static"
4795 p=${PACKAGE-default}
4797 yes) enable_static=yes ;;
4798 no) enable_static=no ;;
4801 # Look at the argument we got. We use all the common list separators.
4802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4803 for pkg in $enableval; do
4805 if test "X$pkg" = "X$p"; then
4824 # Check whether --with-pic or --without-pic was given.
4825 if test "${with_pic+set}" = set; then
4832 test -z "$pic_mode" && pic_mode=default
4840 # Check whether --enable-fast-install or --disable-fast-install was given.
4841 if test "${enable_fast_install+set}" = set; then
4842 enableval="$enable_fast_install"
4843 p=${PACKAGE-default}
4845 yes) enable_fast_install=yes ;;
4846 no) enable_fast_install=no ;;
4848 enable_fast_install=no
4849 # Look at the argument we got. We use all the common list separators.
4850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4851 for pkg in $enableval; do
4853 if test "X$pkg" = "X$p"; then
4854 enable_fast_install=yes
4861 enable_fast_install=yes
4871 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4872 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4873 if test "${lt_cv_path_SED+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 # Loop through the user's path and test for sed and gsed.
4877 # Then use that list of sed's as ones to test for truncation.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for lt_ac_prog in sed gsed; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4894 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4895 # along with /bin/sed that truncates output.
4896 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4897 test ! -f $lt_ac_sed && continue
4898 cat /dev/null > conftest.in
4900 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4901 # Check for GNU sed and select it if it is found.
4902 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4903 lt_cv_path_SED=$lt_ac_sed
4907 cat conftest.in conftest.in >conftest.tmp
4908 mv conftest.tmp conftest.in
4909 cp conftest.in conftest.nl
4911 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4912 cmp -s conftest.out conftest.nl || break
4913 # 10000 chars as input seems more than enough
4914 test $lt_ac_count -gt 10 && break
4915 lt_ac_count=`expr $lt_ac_count + 1`
4916 if test $lt_ac_count -gt $lt_ac_max; then
4917 lt_ac_max=$lt_ac_count
4918 lt_cv_path_SED=$lt_ac_sed
4927 echo "$as_me:$LINENO: result: $SED" >&5
4928 echo "${ECHO_T}$SED" >&6
4930 test -z "$SED" && SED=sed
4931 Xsed="$SED -e 1s/^X//"
4943 echo "$as_me:$LINENO: checking for fgrep" >&5
4944 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4945 if test "${ac_cv_prog_fgrep+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4949 then ac_cv_prog_fgrep='grep -F'
4950 else ac_cv_prog_fgrep='fgrep'
4953 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4954 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4955 FGREP=$ac_cv_prog_fgrep
4958 test -z "$GREP" && GREP=grep
4978 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4979 if test "${with_gnu_ld+set}" = set; then
4980 withval="$with_gnu_ld"
4981 test "$withval" = no || with_gnu_ld=yes
4986 if test "$GCC" = yes; then
4987 # Check if gcc -print-prog-name=ld gives a path.
4988 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4989 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4992 # gcc leaves a trailing carriage return which upsets mingw
4993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4998 # Accept absolute paths.
5000 re_direlt='/[^/][^/]*/\.\./'
5001 # Canonicalize the pathname of ld
5002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006 test -z "$LD" && LD="$ac_prog"
5009 # If it fails, then pretend we aren't using GCC.
5013 # If it is relative, then search for the first ld in PATH.
5017 elif test "$with_gnu_ld" = yes; then
5018 echo "$as_me:$LINENO: checking for GNU ld" >&5
5019 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5021 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5022 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5024 if test "${lt_cv_path_LD+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -z "$LD"; then
5028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5029 for ac_dir in $PATH; do
5031 test -z "$ac_dir" && ac_dir=.
5032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5033 lt_cv_path_LD="$ac_dir/$ac_prog"
5034 # Check to see if the program is GNU ld. I'd rather use --version,
5035 # but apparently some variants of GNU ld only accept -v.
5036 # Break only if it was the GNU/non-GNU ld that we prefer.
5037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5038 *GNU* | *'with BFD'*)
5039 test "$with_gnu_ld" != no && break
5042 test "$with_gnu_ld" != yes && break
5049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5054 if test -n "$LD"; then
5055 echo "$as_me:$LINENO: result: $LD" >&5
5056 echo "${ECHO_T}$LD" >&6
5058 echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5061 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5062 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5063 { (exit 1); exit 1; }; }
5064 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5065 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5066 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5070 case `$LD -v 2>&1 </dev/null` in
5071 *GNU* | *'with BFD'*)
5072 lt_cv_prog_gnu_ld=yes
5075 lt_cv_prog_gnu_ld=no
5079 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5080 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5081 with_gnu_ld=$lt_cv_prog_gnu_ld
5092 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5093 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5094 if test "${lt_cv_path_NM+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$NM"; then
5098 # Let the user override the test.
5101 lt_nm_to_check="${ac_tool_prefix}nm"
5102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5103 lt_nm_to_check="$lt_nm_to_check nm"
5105 for lt_tmp_nm in $lt_nm_to_check; do
5106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 test -z "$ac_dir" && ac_dir=.
5110 tmp_nm="$ac_dir/$lt_tmp_nm"
5111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5112 # Check to see if the nm accepts a BSD-compat flag.
5113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5114 # nm: unknown option "B" ignored
5115 # Tru64's nm complains that /dev/null is an invalid object file
5116 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5117 */dev/null* | *'Invalid file or object type'*)
5118 lt_cv_path_NM="$tmp_nm -B"
5122 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 lt_cv_path_NM="$tmp_nm -p"
5128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5129 continue # so that we can try to find one that supports BSD flags
5138 : ${lt_cv_path_NM=no}
5141 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5142 echo "${ECHO_T}$lt_cv_path_NM" >&6
5143 if test "$lt_cv_path_NM" != "no"; then
5146 # Didn't find any BSD compatible name lister, look for dumpbin.
5147 if test -n "$ac_tool_prefix"; then
5148 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 if test -n "$DUMPBIN"; then
5158 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 DUMPBIN=$ac_cv_prog_DUMPBIN
5177 if test -n "$DUMPBIN"; then
5178 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5179 echo "${ECHO_T}$DUMPBIN" >&6
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5185 test -n "$DUMPBIN" && break
5188 if test -z "$DUMPBIN"; then
5189 ac_ct_DUMPBIN=$DUMPBIN
5190 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test -n "$ac_ct_DUMPBIN"; then
5200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5219 if test -n "$ac_ct_DUMPBIN"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5221 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5227 test -n "$ac_ct_DUMPBIN" && break
5229 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5231 DUMPBIN=$ac_ct_DUMPBIN
5235 if test "$DUMPBIN" != ":"; then
5239 test -z "$NM" && NM=nm
5246 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5247 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5248 if test "${lt_cv_nm_interface+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 lt_cv_nm_interface="BSD nm"
5252 echo "int some_variable = 0;" > conftest.$ac_ext
5253 (eval echo "\"\$as_me:5253: $ac_compile\"" >&5)
5254 (eval "$ac_compile" 2>conftest.err)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:5256: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5258 cat conftest.err >&5
5259 (eval echo "\"\$as_me:5259: output\"" >&5)
5260 cat conftest.out >&5
5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5262 lt_cv_nm_interface="MS dumpbin"
5266 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5267 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5269 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5270 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5272 if test "$LN_S" = "ln -s"; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6
5276 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5277 echo "${ECHO_T}no, using $LN_S" >&6
5280 # find the maximum length of command line arguments
5281 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5282 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5283 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 # On DJGPP, this test can blow up pretty badly due to problems in libc
5292 # (any single argument exceeding 2000 bytes causes a buffer overrun
5293 # during glob expansion). Even if it were fixed, the result of this
5294 # check would be larger than it should be.
5295 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5299 # Under GNU Hurd, this test is not required because there is
5300 # no limit to the length of command line arguments.
5301 # Libtool will interpret -1 as no limit whatsoever
5302 lt_cv_sys_max_cmd_len=-1;
5306 # On Win9x/ME, this test blows up -- it succeeds, but takes
5307 # about 5 minutes as the teststring grows exponentially.
5308 # Worse, since 9x/ME are not pre-emptively multitasking,
5309 # you end up with a "frozen" computer, even though with patience
5310 # the test eventually succeeds (with a max line length of 256k).
5311 # Instead, let's just punt: use the minimum linelength reported by
5312 # all of the supported platforms: 8192 (on NT/2K/XP).
5313 lt_cv_sys_max_cmd_len=8192;
5317 # On AmigaOS with pdksh, this test takes hours, literally.
5318 # So we just punt and use a minimum line length of 8192.
5319 lt_cv_sys_max_cmd_len=8192;
5322 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5323 # This has been around since 386BSD, at least. Likely further.
5324 if test -x /sbin/sysctl; then
5325 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5326 elif test -x /usr/sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5331 # And add a safety zone
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5338 lt_cv_sys_max_cmd_len=196608
5342 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5343 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5344 # nice to cause kernel panics so lets avoid the loop below.
5345 # First set a reasonable default.
5346 lt_cv_sys_max_cmd_len=16384
5348 if test -x /sbin/sysconfig; then
5349 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5350 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5355 lt_cv_sys_max_cmd_len=102400
5357 sysv5* | sco5v6* | sysv4.2uw2*)
5358 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5359 if test -n "$kargmax"; then
5360 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 lt_cv_sys_max_cmd_len=32768
5366 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5367 if test -n $lt_cv_sys_max_cmd_len; then
5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371 # Make teststring a little bigger before we do anything with it.
5372 # a 1K string should be a reasonable start.
5373 for i in 1 2 3 4 5 6 7 8 ; do
5374 teststring=$teststring$teststring
5376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377 # If test is not a shell built-in, we'll probably end up computing a
5378 # maximum length that is only half of the actual maximum length, but
5380 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5381 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5382 test $i != 17 # 1/2 MB should be enough
5385 teststring=$teststring$teststring
5387 # Only check the string length outside the loop.
5388 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390 # Add a significant safety factor because C++ compilers can tack on
5391 # massive amounts of additional arguments before passing them to the
5392 # linker. It appears as though 1/2 is a usable value.
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5400 if test -n $lt_cv_sys_max_cmd_len ; then
5401 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5402 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5404 echo "$as_me:$LINENO: result: none" >&5
5405 echo "${ECHO_T}none" >&6
5407 max_cmd_len=$lt_cv_sys_max_cmd_len
5419 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5420 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5421 # Try some XSI features
5424 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5425 = c,a/b,, ) >/dev/null 2>&1 \
5427 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5428 echo "${ECHO_T}$xsi_shell" >&6
5431 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5432 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5434 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436 && lt_shell_append=yes
5437 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5438 echo "${ECHO_T}$lt_shell_append" >&6
5441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5451 # test EBCDIC or ASCII
5452 case `echo X|tr X '\101'` in
5453 A) # ASCII based system
5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455 lt_SP2NL='tr \040 \012'
5456 lt_NL2SP='tr \015\012 \040\040'
5458 *) # EBCDIC based system
5459 lt_SP2NL='tr \100 \n'
5460 lt_NL2SP='tr \r\n \100\100'
5472 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5473 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5474 if test "${lt_cv_ld_reload_flag+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 lt_cv_ld_reload_flag='-r'
5479 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5480 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5481 reload_flag=$lt_cv_ld_reload_flag
5482 case $reload_flag in
5484 *) reload_flag=" $reload_flag" ;;
5486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 if test "$GCC" = yes; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5506 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5507 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5508 if test "${lt_cv_deplibs_check_method+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 lt_cv_file_magic_cmd='$MAGIC_CMD'
5512 lt_cv_file_magic_test_file=
5513 lt_cv_deplibs_check_method='unknown'
5514 # Need to set the preceding variable on all platforms that support
5515 # interlibrary dependencies.
5516 # 'none' -- dependencies not supported.
5517 # `unknown' -- same as none, but documents that we really don't know.
5518 # 'pass_all' -- all dependencies passed with no checks.
5519 # 'test_compile' -- check by making test program.
5520 # 'file_magic [[regex]]' -- check by looking for files in library path
5521 # which responds to the $file_magic_cmd with a given extended regex.
5522 # If you have `file' or equivalent on your system and you're not sure
5523 # whether `pass_all' will *always* work, you probably want this one.
5527 lt_cv_deplibs_check_method=pass_all
5531 lt_cv_deplibs_check_method=pass_all
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5536 lt_cv_file_magic_cmd='/usr/bin/file -L'
5537 lt_cv_file_magic_test_file=/shlib/libc.so
5541 # func_win32_libid is a shell function defined in ltmain.sh
5542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5543 lt_cv_file_magic_cmd='func_win32_libid'
5547 # Base MSYS/MinGW do not provide the 'file' command needed by
5548 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5549 # unless we find 'file', for example because we are cross-compiling.
5550 if ( file / ) >/dev/null 2>&1; then
5551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5552 lt_cv_file_magic_cmd='func_win32_libid'
5554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5559 darwin* | rhapsody*)
5560 lt_cv_deplibs_check_method=pass_all
5563 freebsd* | dragonfly*)
5564 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5567 # Not sure whether the presence of OpenBSD here was a mistake.
5568 # Let's accept both of them until this is cleared up.
5569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5570 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5575 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method=pass_all
5583 hpux10.20* | hpux11*)
5584 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591 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]'
5592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5596 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5606 irix5* | irix6* | nonstopux*)
5608 *-32|*"-32 ") libmagic=32-bit;;
5609 *-n32|*"-n32 ") libmagic=N32;;
5610 *-64|*"-64 ") libmagic=64-bit;;
5611 *) libmagic=never-match;;
5613 lt_cv_deplibs_check_method=pass_all
5616 # This must be Linux ELF.
5617 linux* | k*bsd*-gnu)
5618 lt_cv_deplibs_check_method=pass_all
5622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5631 lt_cv_file_magic_cmd=/usr/bin/file
5632 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636 lt_cv_deplibs_check_method=pass_all
5640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647 osf3* | osf4* | osf5*)
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5660 lt_cv_deplibs_check_method=pass_all
5664 case $host_vendor in
5666 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]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5682 lt_cv_deplibs_check_method=pass_all
5685 lt_cv_deplibs_check_method=pass_all
5691 lt_cv_deplibs_check_method=pass_all
5696 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5697 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ar; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 if test -n "$AR"; then
5722 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AR="${ac_tool_prefix}ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 if test -n "$AR"; then
5742 echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5750 if test -z "$ac_cv_prog_AR"; then
5752 # Extract the first word of "ar", so it can be a program name with args.
5753 set dummy ar; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$ac_ct_AR"; then
5760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_AR="ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780 if test -n "$ac_ct_AR"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782 echo "${ECHO_T}$ac_ct_AR" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5793 test -z "$AR" && AR=ar
5794 test -z "$AR_FLAGS" && AR_FLAGS=cru
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}strip; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_STRIP+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 if test -n "$STRIP"; then
5815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 STRIP=$ac_cv_prog_STRIP
5834 if test -n "$STRIP"; then
5835 echo "$as_me:$LINENO: result: $STRIP" >&5
5836 echo "${ECHO_T}$STRIP" >&6
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5843 if test -z "$ac_cv_prog_STRIP"; then
5845 # Extract the first word of "strip", so it can be a program name with args.
5846 set dummy strip; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 if test -n "$ac_ct_STRIP"; then
5853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_STRIP="strip"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5873 if test -n "$ac_ct_STRIP"; then
5874 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5875 echo "${ECHO_T}$ac_ct_STRIP" >&6
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5883 STRIP="$ac_cv_prog_STRIP"
5886 test -z "$STRIP" && STRIP=:
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896 echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898 if test "${ac_cv_prog_RANLIB+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 if test -n "$RANLIB"; then
5902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 RANLIB=$ac_cv_prog_RANLIB
5921 if test -n "$RANLIB"; then
5922 echo "$as_me:$LINENO: result: $RANLIB" >&5
5923 echo "${ECHO_T}$RANLIB" >&6
5925 echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5930 if test -z "$ac_cv_prog_RANLIB"; then
5931 ac_ct_RANLIB=$RANLIB
5932 # Extract the first word of "ranlib", so it can be a program name with args.
5933 set dummy ranlib; ac_word=$2
5934 echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 if test -n "$ac_ct_RANLIB"; then
5940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_ac_ct_RANLIB="ranlib"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5960 if test -n "$ac_ct_RANLIB"; then
5961 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5962 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5968 RANLIB=$ac_ct_RANLIB
5970 RANLIB="$ac_cv_prog_RANLIB"
5973 test -z "$RANLIB" && RANLIB=:
5980 # Determine commands to create old-style static archives.
5981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5982 old_postinstall_cmds='chmod 644 $oldlib'
5983 old_postuninstall_cmds=
5985 if test -n "$RANLIB"; then
5988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6030 # If no C compiler was specified, use CC.
6033 # If no C compiler flags were specified, use CFLAGS.
6034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6036 # Allow CC to be a program name with arguments.
6040 # Check for command to grab the raw symbol name followed by C symbol from nm.
6041 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6042 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6043 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 # These are sane defaults that work on at least a few old systems.
6048 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6050 # Character class describing NM global symbol codes.
6051 symcode='[BCDEGRST]'
6053 # Regexp to match symbols that can be accessed directly from C.
6054 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6056 # Define system-specific variables.
6061 cygwin* | mingw* | pw32*)
6062 symcode='[ABCDGISTW]'
6065 if test "$host_cpu" = ia64; then
6066 symcode='[ABCDEGRST]'
6070 symcode='[BCDEGRST]'
6073 symcode='[BCDEGQRST]'
6084 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6092 # If we're using GNU nm, then use its standard symbol codes.
6093 case `$NM -V 2>&1` in
6094 *GNU* | *'with BFD'*)
6095 symcode='[ABCDGIRSTW]' ;;
6098 # Transform an extracted symbol line into a proper C declaration.
6099 # Some systems (esp. on ia64) link data and code symbols differently,
6100 # so use this general approach.
6101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6103 # Transform an extracted symbol line into symbol name and symbol address
6104 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6106 # Handle CRLF in mingw tool chain
6110 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114 # Try without a prefix underscore, then with it.
6115 for ac_symprfx in "" "_"; do
6117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6118 symxfrm="\\1 $ac_symprfx\\2 \\2"
6120 # Write the raw and C identifiers.
6121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6122 # Fake it for dumpbin and say T for any non-static function
6123 # and D for any global variable.
6124 # Also find C++ and __fastcall symbols from MSVC++,
6125 # which start with @ or ?.
6126 lt_cv_sys_global_symbol_pipe="$AWK '"\
6127 " {last_section=section; section=\$ 3};"\
6128 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6129 " \$ 0!~/External *\|/{next};"\
6130 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6131 " {if(hide[section]) next};"\
6132 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6133 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6134 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6135 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6136 " ' prfx=^$ac_symprfx"
6138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141 # Check to see that the pipe works correctly.
6145 cat > conftest.$ac_ext <<_LT_EOF
6150 void nm_test_func(void);
6151 void nm_test_func(void){}
6155 int main(){nm_test_var='a';nm_test_func();return(0);}
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; then
6163 # Now try to grab the symbols.
6165 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6166 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && test -s "$nlist"; then
6170 # Try sorting and uniquifying the output.
6171 if sort "$nlist" | uniq > "$nlist"T; then
6172 mv -f "$nlist"T "$nlist"
6177 # Make sure that we snagged all the symbols we need.
6178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6180 cat <<_LT_EOF > conftest.$ac_ext
6186 # Now generate the symbol file.
6187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189 cat <<_LT_EOF >> conftest.$ac_ext
6191 /* The mapping between symbol names and symbols. */
6196 lt__PROGRAM__LTX_preloaded_symbols[] =
6198 { "@PROGRAM@", (void *) 0 },
6200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201 cat <<\_LT_EOF >> conftest.$ac_ext
6205 /* This works around a problem in FreeBSD linker */
6206 #ifdef FREEBSD_WORKAROUND
6207 static const void *lt_preloaded_setup() {
6208 return lt__PROGRAM__LTX_preloaded_symbols;
6216 # Now try linking the two files.
6217 mv conftest.$ac_objext conftstm.$ac_objext
6218 lt_save_LIBS="$LIBS"
6219 lt_save_CFLAGS="$CFLAGS"
6220 LIBS="conftstm.$ac_objext"
6221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6229 LIBS="$lt_save_LIBS"
6230 CFLAGS="$lt_save_CFLAGS"
6232 echo "cannot find nm_test_func in $nlist" >&5
6235 echo "cannot find nm_test_var in $nlist" >&5
6238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241 echo "$progname: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 rm -f conftest* conftst*
6246 # Do not use the global_symbol_pipe unless it works.
6247 if test "$pipe_works" = yes; then
6250 lt_cv_sys_global_symbol_pipe=
6256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257 lt_cv_sys_global_symbol_to_cdecl=
6259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260 echo "$as_me:$LINENO: result: failed" >&5
6261 echo "${ECHO_T}failed" >&6
6263 echo "$as_me:$LINENO: result: ok" >&5
6264 echo "${ECHO_T}ok" >&6
6283 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6284 if test "${enable_libtool_lock+set}" = set; then
6285 enableval="$enable_libtool_lock"
6288 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6290 # Some flags need to be propagated to the compiler or linker for good
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; then
6301 case `/usr/bin/file conftest.$ac_objext` in
6313 # Find out which ABI we are using.
6314 echo '#line 6314 "configure"' > conftest.$ac_ext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; then
6320 if test "$lt_cv_prog_gnu_ld" = yes; then
6321 case `/usr/bin/file conftest.$ac_objext` in
6323 LD="${LD-ld} -melf32bsmip"
6326 LD="${LD-ld} -melf32bmipn32"
6329 LD="${LD-ld} -melf64bmip"
6333 case `/usr/bin/file conftest.$ac_objext` in
6349 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6350 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6351 # Find out which ABI we are using.
6352 echo 'int i;' > conftest.$ac_ext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; then
6358 case `/usr/bin/file conftest.o` in
6361 x86_64-*kfreebsd*-gnu)
6362 LD="${LD-ld} -m elf_i386_fbsd"
6365 LD="${LD-ld} -m elf_i386"
6367 ppc64-*linux*|powerpc64-*linux*)
6368 LD="${LD-ld} -m elf32ppclinux"
6371 LD="${LD-ld} -m elf_s390"
6374 LD="${LD-ld} -m elf32_sparc"
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_x86_64_fbsd"
6384 LD="${LD-ld} -m elf_x86_64"
6386 ppc*-*linux*|powerpc*-*linux*)
6387 LD="${LD-ld} -m elf64ppc"
6389 s390*-*linux*|s390*-*tpf*)
6390 LD="${LD-ld} -m elf64_s390"
6393 LD="${LD-ld} -m elf64_sparc"
6403 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6404 SAVE_CFLAGS="$CFLAGS"
6405 CFLAGS="$CFLAGS -belf"
6406 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6407 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6408 if test "${lt_cv_cc_needs_belf+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 lt_cv_cc_needs_belf=yes
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 lt_cv_cc_needs_belf=no
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6464 ac_cpp='$CPP $CPPFLAGS'
6465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6471 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6474 CFLAGS="$SAVE_CFLAGS"
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; then
6485 case `/usr/bin/file conftest.o` in
6487 case $lt_cv_prog_gnu_ld in
6488 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6489 *) LD="${LD-ld} -64" ;;
6498 need_locks="$enable_libtool_lock"
6501 for ac_header in dlfcn.h
6503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6517 #include <$ac_header>
6519 rm -f conftest.$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 eval "$as_ac_Header=yes"
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 eval "$as_ac_Header=no"
6548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6553 cat >>confdefs.h <<_ACEOF
6554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6563 # This can be used to rebuild libtool when needed
6564 LIBTOOL_DEPS="$ltmain"
6566 # Always use our own libtool.
6567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6593 test -z "$LN_S" && LN_S="ln -s"
6608 if test -n "${ZSH_VERSION+set}" ; then
6609 setopt NO_GLOB_SUBST
6612 echo "$as_me:$LINENO: checking for objdir" >&5
6613 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6614 if test "${lt_cv_objdir+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 rm -f .libs 2>/dev/null
6618 mkdir .libs 2>/dev/null
6619 if test -d .libs; then
6622 # MS-DOS does not allow filenames that begin with a dot.
6625 rmdir .libs 2>/dev/null
6627 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6628 echo "${ECHO_T}$lt_cv_objdir" >&6
6629 objdir=$lt_cv_objdir
6635 cat >>confdefs.h <<_ACEOF
6636 #define LT_OBJDIR "$lt_cv_objdir/"
6657 # AIX sometimes has problems with the GCC collect2 program. For some
6658 # reason, if we set the COLLECT_NAMES environment variable, the problems
6659 # vanish in a puff of smoke.
6660 if test "X${COLLECT_NAMES+set}" != Xset; then
6662 export COLLECT_NAMES
6667 # Sed substitution that helps us do robust quoting. It backslashifies
6668 # metacharacters that are still active within double-quoted strings.
6669 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6671 # Same as above, but do not quote variable references.
6672 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6674 # Sed substitution to delay expansion of an escaped shell variable in a
6675 # double_quote_subst'ed string.
6676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678 # Sed substitution to delay expansion of an escaped single quote.
6679 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6681 # Sed substitution to avoid accidental globbing in evaled expressions
6682 no_glob_subst='s/\*/\\\*/g'
6686 can_build_shared=yes
6688 # All known linkers require a `.a' archive for static linking (except MSVC,
6689 # which needs '.lib').
6692 with_gnu_ld="$lt_cv_prog_gnu_ld"
6695 old_CFLAGS="$CFLAGS"
6697 # Set sane defaults for various variables
6698 test -z "$CC" && CC=cc
6699 test -z "$LTCC" && LTCC=$CC
6700 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6701 test -z "$LD" && LD=ld
6702 test -z "$ac_objext" && ac_objext=o
6704 for cc_temp in $compiler""; do
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6712 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6715 # Only perform the check for file, if the check method requires it
6716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6717 case $deplibs_check_method in
6719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6720 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6721 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6730 lt_save_MAGIC_CMD="$MAGIC_CMD"
6731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6733 for ac_dir in $ac_dummy; do
6735 test -z "$ac_dir" && ac_dir=.
6736 if test -f $ac_dir/${ac_tool_prefix}file; then
6737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6738 if test -n "$file_magic_test_file"; then
6739 case $deplibs_check_method in
6741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6744 $EGREP "$file_magic_regex" > /dev/null; then
6749 *** Warning: the command libtool uses to detect shared libraries,
6750 *** $file_magic_cmd, produces output that libtool cannot recognize.
6751 *** The result is that libtool may fail to recognize shared libraries
6752 *** as such. This will affect the creation of libtool libraries that
6753 *** depend on shared libraries, but programs linked with such libtool
6754 *** libraries will work regardless of this problem. Nevertheless, you
6755 *** may want to report the problem to your system manager and/or to
6756 *** bug-libtool@gnu.org
6766 MAGIC_CMD="$lt_save_MAGIC_CMD"
6771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6772 if test -n "$MAGIC_CMD"; then
6773 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6774 echo "${ECHO_T}$MAGIC_CMD" >&6
6776 echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6
6784 if test -z "$lt_cv_path_MAGIC_CMD"; then
6785 if test -n "$ac_tool_prefix"; then
6786 echo "$as_me:$LINENO: checking for file" >&5
6787 echo $ECHO_N "checking for file... $ECHO_C" >&6
6788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6796 lt_save_MAGIC_CMD="$MAGIC_CMD"
6797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6799 for ac_dir in $ac_dummy; do
6801 test -z "$ac_dir" && ac_dir=.
6802 if test -f $ac_dir/file; then
6803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6804 if test -n "$file_magic_test_file"; then
6805 case $deplibs_check_method in
6807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6810 $EGREP "$file_magic_regex" > /dev/null; then
6815 *** Warning: the command libtool uses to detect shared libraries,
6816 *** $file_magic_cmd, produces output that libtool cannot recognize.
6817 *** The result is that libtool may fail to recognize shared libraries
6818 *** as such. This will affect the creation of libtool libraries that
6819 *** depend on shared libraries, but programs linked with such libtool
6820 *** libraries will work regardless of this problem. Nevertheless, you
6821 *** may want to report the problem to your system manager and/or to
6822 *** bug-libtool@gnu.org
6832 MAGIC_CMD="$lt_save_MAGIC_CMD"
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if test -n "$MAGIC_CMD"; then
6839 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6840 echo "${ECHO_T}$MAGIC_CMD" >&6
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6856 # Use C for the default configuration in the libtool script
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866 # Source file extension for C test sources.
6869 # Object file extension for compiled C test sources.
6873 # Code to be used in simple compile tests
6874 lt_simple_compile_test_code="int some_variable = 0;"
6876 # Code to be used in simple link tests
6877 lt_simple_link_test_code='int main(){return(0);}'
6885 # If no C compiler was specified, use CC.
6888 # If no C compiler flags were specified, use CFLAGS.
6889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891 # Allow CC to be a program name with arguments.
6894 # Save the default compiler, since it gets overwritten when the other
6895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6896 compiler_DEFAULT=$CC
6898 # save warnings/boilerplate of simple test code
6899 ac_outfile=conftest.$ac_objext
6900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6902 _lt_compiler_boilerplate=`cat conftest.err`
6905 ac_outfile=conftest.$ac_objext
6906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6908 _lt_linker_boilerplate=`cat conftest.err`
6913 ## There is no encapsulation within the following macros, do not change
6914 ## the running order or otherwise move them around unless you know exactly
6915 ## what you are doing...
6916 if test -n "$compiler"; then
6918 lt_prog_compiler_no_builtin_flag=
6920 if test "$GCC" = yes; then
6921 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6923 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6924 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 lt_cv_prog_compiler_rtti_exceptions=no
6929 ac_outfile=conftest.$ac_objext
6930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6931 lt_compiler_flag="-fno-rtti -fno-exceptions"
6932 # Insert the option either (1) after the last *FLAGS variable, or
6933 # (2) before a word containing "conftest.", or (3) at the end.
6934 # Note that $ac_compile itself does not contain backslashes and begins
6935 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'`
6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
6942 (eval "$lt_compile" 2>conftest.err)
6944 cat conftest.err >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings other than the usual output.
6949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6952 lt_cv_prog_compiler_rtti_exceptions=yes
6958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6959 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6961 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6974 lt_prog_compiler_wl=
6975 lt_prog_compiler_pic=
6976 lt_prog_compiler_static=
6978 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6979 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6981 if test "$GCC" = yes; then
6982 lt_prog_compiler_wl='-Wl,'
6983 lt_prog_compiler_static='-static'
6987 # All AIX code is PIC.
6988 if test "$host_cpu" = ia64; then
6989 # AIX 5 now supports IA64 processor
6990 lt_prog_compiler_static='-Bstatic'
6995 if test "$host_cpu" = m68k; then
6996 # FIXME: we need at least 68020 code to build shared libraries, but
6997 # adding the `-m68020' flag to GCC prevents building anything better,
6999 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7004 # PIC is the default for these OSes.
7007 mingw* | cygwin* | pw32* | os2*)
7008 # This hack is so that the source file can tell whether it is being
7009 # built for inclusion in a dll (and should export symbols for example).
7010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7011 # (--disable-auto-import) libraries
7012 lt_prog_compiler_pic='-DDLL_EXPORT'
7015 darwin* | rhapsody*)
7016 # PIC is the default on this platform
7017 # Common symbols not allowed in MH_DYLIB files
7018 lt_prog_compiler_pic='-fno-common'
7022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7029 lt_prog_compiler_pic='-fPIC'
7035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7036 # Instead, we relocate shared libraries at runtime.
7040 # Just because we use GCC doesn't mean we suddenly get shared libraries
7041 # on systems that don't support them.
7042 lt_prog_compiler_can_build_shared=no
7047 # QNX uses GNU C++, but need to define -shared option too, otherwise
7049 lt_prog_compiler_pic='-fPIC -shared'
7053 if test -d /usr/nec; then
7054 lt_prog_compiler_pic=-Kconform_pic
7059 lt_prog_compiler_pic='-fPIC'
7063 # PORTME Check for flag to pass linker flags through the system compiler.
7066 lt_prog_compiler_wl='-Wl,'
7067 if test "$host_cpu" = ia64; then
7068 # AIX 5 now supports IA64 processor
7069 lt_prog_compiler_static='-Bstatic'
7071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7075 # PIC is the default on this platform
7076 # Common symbols not allowed in MH_DYLIB files
7077 case $cc_basename in
7079 lt_prog_compiler_pic='-qnocommon'
7080 lt_prog_compiler_wl='-Wl,'
7085 mingw* | cygwin* | pw32* | os2*)
7086 # This hack is so that the source file can tell whether it is being
7087 # built for inclusion in a dll (and should export symbols for example).
7088 lt_prog_compiler_pic='-DDLL_EXPORT'
7091 hpux9* | hpux10* | hpux11*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7100 lt_prog_compiler_pic='+Z'
7103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7104 lt_prog_compiler_static='${wl}-a ${wl}archive'
7107 irix5* | irix6* | nonstopux*)
7108 lt_prog_compiler_wl='-Wl,'
7109 # PIC (with -KPIC) is the default.
7110 lt_prog_compiler_static='-non_shared'
7113 linux* | k*bsd*-gnu)
7114 case $cc_basename in
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-static'
7120 pgcc* | pgf77* | pgf90* | pgf95*)
7121 # Portland Group compilers (*not* the Pentium gcc compiler,
7122 # which looks to be a dead project)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-fpic'
7125 lt_prog_compiler_static='-Bstatic'
7128 lt_prog_compiler_wl='-Wl,'
7129 # All Alpha code is PIC.
7130 lt_prog_compiler_static='-non_shared'
7133 case `$CC -V 2>&1 | sed 5q` in
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7138 lt_prog_compiler_wl='-Wl,'
7141 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7142 lt_prog_compiler_pic='-KPIC'
7143 lt_prog_compiler_static='-Bstatic'
7144 lt_prog_compiler_wl=''
7152 lt_prog_compiler_pic='-KPIC'
7153 lt_prog_compiler_static='-Bstatic'
7157 # QNX uses GNU C++, but need to define -shared option too, otherwise
7159 lt_prog_compiler_pic='-fPIC -shared'
7162 osf3* | osf4* | osf5*)
7163 lt_prog_compiler_wl='-Wl,'
7164 # All OSF/1 code is PIC.
7165 lt_prog_compiler_static='-non_shared'
7169 lt_prog_compiler_static='-non_shared'
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 case $cc_basename in
7177 lt_prog_compiler_wl='-Qoption ld ';;
7179 lt_prog_compiler_wl='-Wl,';;
7184 lt_prog_compiler_wl='-Qoption ld '
7185 lt_prog_compiler_pic='-PIC'
7186 lt_prog_compiler_static='-Bstatic'
7189 sysv4 | sysv4.2uw2* | sysv4.3*)
7190 lt_prog_compiler_wl='-Wl,'
7191 lt_prog_compiler_pic='-KPIC'
7192 lt_prog_compiler_static='-Bstatic'
7196 if test -d /usr/nec ;then
7197 lt_prog_compiler_pic='-Kconform_pic'
7198 lt_prog_compiler_static='-Bstatic'
7202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7203 lt_prog_compiler_wl='-Wl,'
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7209 lt_prog_compiler_wl='-Wl,'
7210 lt_prog_compiler_can_build_shared=no
7214 lt_prog_compiler_pic='-pic'
7215 lt_prog_compiler_static='-Bstatic'
7219 lt_prog_compiler_can_build_shared=no
7225 # For platforms which do not support PIC, -DPIC is meaningless:
7227 lt_prog_compiler_pic=
7230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7234 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7242 # Check to make sure the PIC flag actually works.
7244 if test -n "$lt_prog_compiler_pic"; then
7245 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7246 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7247 if test "${lt_prog_compiler_pic_works+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 lt_prog_compiler_pic_works=no
7251 ac_outfile=conftest.$ac_objext
7252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7254 # Insert the option either (1) after the last *FLAGS variable, or
7255 # (2) before a word containing "conftest.", or (3) at the end.
7256 # Note that $ac_compile itself does not contain backslashes and begins
7257 # with a dollar sign (not a hyphen), so the echo should work correctly.
7258 # The option is referenced via a variable to avoid confusing sed.
7259 lt_compile=`echo "$ac_compile" | $SED \
7260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7262 -e 's:$: $lt_compiler_flag:'`
7263 (eval echo "\"\$as_me:7263: $lt_compile\"" >&5)
7264 (eval "$lt_compile" 2>conftest.err)
7266 cat conftest.err >&5
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 if (exit $ac_status) && test -s "$ac_outfile"; then
7269 # The compiler can only warn and ignore the option if not recognized
7270 # So say no if there are warnings other than the usual output.
7271 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7274 lt_prog_compiler_pic_works=yes
7280 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7281 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7283 if test x"$lt_prog_compiler_pic_works" = xyes; then
7284 case $lt_prog_compiler_pic in
7286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7289 lt_prog_compiler_pic=
7290 lt_prog_compiler_can_build_shared=no
7301 # Check to make sure the static flag actually works.
7303 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7304 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7305 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7306 if test "${lt_prog_compiler_static_works+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 lt_prog_compiler_static_works=no
7310 save_LDFLAGS="$LDFLAGS"
7311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7314 # The linker can only warn and ignore the option if not recognized
7315 # So say no if there are warnings
7316 if test -s conftest.err; then
7317 # Append any errors to the config.log.
7318 cat conftest.err 1>&5
7319 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7321 if diff conftest.exp conftest.er2 >/dev/null; then
7322 lt_prog_compiler_static_works=yes
7325 lt_prog_compiler_static_works=yes
7329 LDFLAGS="$save_LDFLAGS"
7332 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7333 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7335 if test x"$lt_prog_compiler_static_works" = xyes; then
7338 lt_prog_compiler_static=
7347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7349 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 lt_cv_prog_compiler_c_o=no
7353 $RM -r conftest 2>/dev/null
7357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359 lt_compiler_flag="-o out/conftest2.$ac_objext"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7368 (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
7369 (eval "$lt_compile" 2>out/conftest.err)
7371 cat out/conftest.err >&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings
7377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7380 lt_cv_prog_compiler_c_o=yes
7385 # SGI C++ compiler will create directory out/ii_files/ for
7386 # template instantiation
7387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7388 $RM out/* && rmdir out
7394 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7402 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7403 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7404 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 lt_cv_prog_compiler_c_o=no
7408 $RM -r conftest 2>/dev/null
7412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414 lt_compiler_flag="-o out/conftest2.$ac_objext"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 lt_compile=`echo "$ac_compile" | $SED \
7420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422 -e 's:$: $lt_compiler_flag:'`
7423 (eval echo "\"\$as_me:7423: $lt_compile\"" >&5)
7424 (eval "$lt_compile" 2>out/conftest.err)
7426 cat out/conftest.err >&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings
7432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_c_o=yes
7440 # SGI C++ compiler will create directory out/ii_files/ for
7441 # template instantiation
7442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7443 $RM out/* && rmdir out
7449 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7455 hard_links="nottested"
7456 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7457 # do not overwrite the value of need_locks provided by the user
7458 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7459 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464 ln conftest.a conftest.b 2>&5 || hard_links=no
7465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466 echo "$as_me:$LINENO: result: $hard_links" >&5
7467 echo "${ECHO_T}$hard_links" >&6
7468 if test "$hard_links" = no; then
7469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7470 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7482 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7486 allow_undefined_flag=
7487 always_export_symbols=no
7489 archive_expsym_cmds=
7490 compiler_needs_object=no
7491 enable_shared_with_static_runtimes=no
7492 export_dynamic_flag_spec=
7493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7494 hardcode_automatic=no
7496 hardcode_direct_absolute=no
7497 hardcode_libdir_flag_spec=
7498 hardcode_libdir_flag_spec_ld=
7499 hardcode_libdir_separator=
7501 hardcode_shlibpath_var=unsupported
7503 link_all_deplibs=unknown
7506 old_archive_from_new_cmds=
7507 old_archive_from_expsyms_cmds=
7508 thread_safe_flag_spec=
7509 whole_archive_flag_spec=
7510 # include_expsyms should be a list of space-separated symbols to be *always*
7511 # included in the symbol list
7513 # exclude_expsyms can be an extended regexp of symbols to exclude
7514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7516 # as well as any symbol that contains `d'.
7517 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7519 # platforms (ab)use it in PIC code, but their linkers get confused if
7520 # the symbol is explicitly referenced. Since portable code cannot
7521 # rely on this symbol name, it's probably fine to never include it in
7522 # preloaded symbol tables.
7523 extract_expsyms_cmds=
7526 cygwin* | mingw* | pw32*)
7527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7528 # When not using gcc, we currently assume that we are using
7529 # Microsoft Visual C++.
7530 if test "$GCC" != yes; then
7535 # we just hope/assume this is gcc and not c89 (= MSVC++)
7544 if test "$with_gnu_ld" = yes; then
7545 # If archive_cmds runs LD, not CC, wlarc should be empty
7548 # Set some defaults for GNU ld with shared library support. These
7549 # are reset later if shared libraries are not supported. Putting them
7550 # here allows them to be overridden if necessary.
7551 runpath_var=LD_RUN_PATH
7552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7553 export_dynamic_flag_spec='${wl}--export-dynamic'
7554 # ancient GNU ld didn't support --whole-archive et. al.
7555 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7556 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7558 whole_archive_flag_spec=
7560 supports_anon_versioning=no
7561 case `$LD -v 2>&1` in
7562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7565 *\ 2.11.*) ;; # other 2.11 versions
7566 *) supports_anon_versioning=yes ;;
7569 # See if GNU ld supports shared libraries.
7572 # On AIX/PPC, the GNU linker is very broken
7573 if test "$host_cpu" != ia64; then
7577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7578 *** to be unable to reliably create shared libraries on AIX.
7579 *** Therefore, libtool is disabling shared libraries support. If you
7580 *** really care for shared libraries, you may want to modify your PATH
7581 *** so that a non-GNU linker is found, and then restart.
7588 if test "$host_cpu" = m68k; then
7589 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)'
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_minus_L=yes
7594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7595 # that the semantics of dynamic libraries on AmigaOS, at least up
7596 # to version 4, is to share data among multiple programs linked
7597 # with the same dynamic library. Since this doesn't match the
7598 # behavior of shared libraries on other platforms, we can't use
7604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7605 allow_undefined_flag=unsupported
7606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7607 # support --undefined. This deserves some investigation. FIXME
7608 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7614 cygwin* | mingw* | pw32*)
7615 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7616 # as there is no search path for DLLs.
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 allow_undefined_flag=unsupported
7619 always_export_symbols=no
7620 enable_shared_with_static_runtimes=yes
7621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7623 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7625 # If the export-symbols file already is a .def file (1st line
7626 # is EXPORTS), use it as is; otherwise, prepend...
7627 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7628 cp $export_symbols $output_objdir/$soname.def;
7630 echo EXPORTS > $output_objdir/$soname.def;
7631 cat $export_symbols >> $output_objdir/$soname.def;
7633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7641 hardcode_shlibpath_var=no
7642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7643 export_dynamic_flag_spec='${wl}-E'
7644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7645 # Instead, shared libraries are loaded at an image base (0x10000000 by
7646 # default) and relocated if they conflict, which is a slow very memory
7647 # consuming and fragmenting process. To avoid this, we pick a random,
7648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7651 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'
7654 gnu* | linux* | tpf* | k*bsd*-gnu)
7656 if test "$host_os" = linux-dietlibc; then
7657 case $cc_basename in
7658 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7661 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7662 && test "$tmp_diet" = no
7665 case $cc_basename,$host_cpu in
7666 pgcc*) # Portland Group C compiler
7667 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'
7668 tmp_addflag=' $pic_flag'
7670 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7671 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'
7672 tmp_addflag=' $pic_flag -Mnomain' ;;
7673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7674 tmp_addflag=' -i_dynamic' ;;
7675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7676 tmp_addflag=' -i_dynamic -nofor_main' ;;
7677 ifc* | ifort*) # Intel Fortran compiler
7678 tmp_addflag=' -nofor_main' ;;
7680 case `$CC -V 2>&1 | sed 5q` in
7681 *Sun\ C*) # Sun C 5.9
7682 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'
7683 compiler_needs_object=yes
7684 tmp_sharedflag='-G' ;;
7685 *Sun\ F*) # Sun Fortran 8.3
7686 tmp_sharedflag='-G' ;;
7688 tmp_sharedflag='-shared' ;;
7690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692 if test "x$supports_anon_versioning" = xyes; then
7693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7695 echo "local: *; };" >> $output_objdir/$libname.ver~
7696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7719 *** create shared libraries on Solaris systems. Therefore, libtool
7720 *** is disabling shared libraries support. We urge you to upgrade GNU
7721 *** binutils to release 2.9.1 or newer. Another option is to modify
7722 *** your PATH or compiler configuration so that the native linker is
7723 *** used, and then restart.
7726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7735 case `$LD -v 2>&1` in
7736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7741 *** reliably create shared libraries on SCO systems. Therefore, libtool
7742 *** is disabling shared libraries support. We urge you to upgrade GNU
7743 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7744 *** your PATH or compiler configuration so that the native linker is
7745 *** used, and then restart.
7750 # For security reasons, it is highly recommended that you always
7751 # use absolute paths for naming shared libraries, and exclude the
7752 # DT_RUNPATH tag from executables and libraries. But doing so
7753 # requires that you compile everything twice, which is a pain.
7754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7769 hardcode_shlibpath_var=no
7773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7782 if test "$ld_shlibs" = no; then
7784 hardcode_libdir_flag_spec=
7785 export_dynamic_flag_spec=
7786 whole_archive_flag_spec=
7789 # PORTME fill in a description of your system's linker (not GNU ld)
7792 allow_undefined_flag=unsupported
7793 always_export_symbols=yes
7794 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'
7795 # Note: this linker hardcodes the directories in LIBPATH if there
7796 # are no directories specified by -L.
7797 hardcode_minus_L=yes
7798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7799 # Neither direct hardcoding nor static linking is supported with a
7801 hardcode_direct=unsupported
7806 if test "$host_cpu" = ia64; then
7807 # On IA64, the linker does run time linking by default, so we don't
7808 # have to do anything special.
7809 aix_use_runtimelinking=no
7810 exp_sym_flag='-Bexport'
7813 # If we're using GNU nm, then we don't want the "-C" option.
7814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7816 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'
7818 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'
7820 aix_use_runtimelinking=no
7822 # Test if we are trying to use run time linking or normal
7823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7824 # need to do runtime linking.
7825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7826 for ld_flag in $LDFLAGS; do
7827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7828 aix_use_runtimelinking=yes
7835 exp_sym_flag='-bexport'
7836 no_entry_flag='-bnoentry'
7839 # When large executables or shared objects are built, AIX ld can
7840 # have problems creating the table of contents. If linking a library
7841 # or program results in "error TOC overflow" add -mminimal-toc to
7842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7847 hardcode_direct_absolute=yes
7848 hardcode_libdir_separator=':'
7849 link_all_deplibs=yes
7850 file_list_spec='${wl}-f,'
7852 if test "$GCC" = yes; then
7853 case $host_os in aix4.[012]|aix4.[012].*)
7854 # We only want to do this on AIX 4.2 and lower, the check
7855 # below for broken collect2 doesn't work under 4.3+
7856 collect2name=`${CC} -print-prog-name=collect2`
7857 if test -f "$collect2name" &&
7858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860 # We have reworked collect2
7863 # We have old collect2
7864 hardcode_direct=unsupported
7865 # It fails to find uninstalled libraries when the uninstalled
7866 # path is not listed in the libpath. Setting hardcode_minus_L
7867 # to unsupported forces relinking
7868 hardcode_minus_L=yes
7869 hardcode_libdir_flag_spec='-L$libdir'
7870 hardcode_libdir_separator=
7874 shared_flag='-shared'
7875 if test "$aix_use_runtimelinking" = yes; then
7876 shared_flag="$shared_flag "'${wl}-G'
7880 if test "$host_cpu" = ia64; then
7881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7882 # chokes on -Wl,-G. The following line is correct:
7885 if test "$aix_use_runtimelinking" = yes; then
7886 shared_flag='${wl}-G'
7888 shared_flag='${wl}-bM:SRE'
7893 # It seems that -bexpall does not export symbols beginning with
7894 # underscore (_), so it is better to generate a list of symbols to export.
7895 always_export_symbols=yes
7896 if test "$aix_use_runtimelinking" = yes; then
7897 # Warning - without using the other runtime loading flags (-brtl),
7898 # -berok will link without error, but may produce a broken library.
7899 allow_undefined_flag='-berok'
7900 # Determine the default libpath from the value encoded in an
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7940 lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948 # Check for a 64-bit object if we didn't find anything.
7949 if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962 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"
7964 if test "$host_cpu" = ia64; then
7965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966 allow_undefined_flag="-z nodefs"
7967 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"
7969 # Determine the default libpath from the value encoded in an
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1 >conftest.err
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8009 lt_aix_libpath_sed='
8010 /Import File Strings/,/^$/ {
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8017 # Check for a 64-bit object if we didn't find anything.
8018 if test -z "$aix_libpath"; then
8019 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8026 rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8031 # Warning - without using the other run time loading flags,
8032 # -berok will link without error, but may produce a broken library.
8033 no_undefined_flag=' ${wl}-bernotok'
8034 allow_undefined_flag=' ${wl}-berok'
8035 # Exported symbols can be pulled into shared objects from archives
8036 whole_archive_flag_spec='$convenience'
8037 archive_cmds_need_lc=yes
8038 # This is similar to how AIX traditionally builds its shared libraries.
8039 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'
8045 if test "$host_cpu" = m68k; then
8046 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)'
8047 hardcode_libdir_flag_spec='-L$libdir'
8048 hardcode_minus_L=yes
8050 # see comment about different semantics on the GNU ld section
8055 export_dynamic_flag_spec=-rdynamic
8058 cygwin* | mingw* | pw32*)
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 # hardcode_libdir_flag_spec is actually meaningless, as there is
8062 # no search path for DLLs.
8063 hardcode_libdir_flag_spec=' '
8064 allow_undefined_flag=unsupported
8065 # Tell ltmain to make .lib files, not .a files.
8067 # Tell ltmain to make .dll files, not .so files.
8069 # FIXME: Setting linknames here is a bad hack.
8070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071 # The linker will automatically build a .lib file if we build a DLL.
8072 old_archive_from_new_cmds='true'
8073 # FIXME: Should let the user specify the lib program.
8074 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8075 fix_srcfile_path='`cygpath -w "$srcfile"`'
8076 enable_shared_with_static_runtimes=yes
8079 darwin* | rhapsody*)
8081 rhapsody* | darwin1.[012])
8082 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8085 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8090 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8095 archive_cmds_need_lc=no
8097 hardcode_automatic=yes
8098 hardcode_shlibpath_var=unsupported
8099 whole_archive_flag_spec=''
8100 link_all_deplibs=yes
8101 if test "$GCC" = yes ; then
8102 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 lt_cv_apple_cc_single_mod=no
8106 if test -z "${LT_MULTI_MODULE}"; then
8107 # By default we will add the -single_module flag. You can override
8108 # by either setting the environment variable LT_MULTI_MODULE
8109 # non-empty at configure time, or by adding -multi-module to the
8111 echo "int foo(void){return 1;}" > conftest.c
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib ${wl}-single_module conftest.c
8114 if test -f libconftest.dylib; then
8115 lt_cv_apple_cc_single_mod=yes
8116 rm libconftest.dylib
8122 output_verbose_link_cmd=echo
8123 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8124 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8125 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}'
8127 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8128 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}'
8130 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8131 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}'
8133 case $cc_basename in
8135 output_verbose_link_cmd=echo
8136 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8137 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8139 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}'
8140 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}'
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_libdir_flag_spec='-L$libdir'
8152 hardcode_shlibpath_var=no
8159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8160 # support. Future versions do this automatically, but an explicit c++rt0.o
8161 # does not break anything, and helps significantly (at the cost of a little
8164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8165 hardcode_libdir_flag_spec='-R$libdir'
8167 hardcode_shlibpath_var=no
8170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8174 hardcode_minus_L=yes
8175 hardcode_shlibpath_var=no
8178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8179 freebsd* | dragonfly*)
8180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8181 hardcode_libdir_flag_spec='-R$libdir'
8183 hardcode_shlibpath_var=no
8187 if test "$GCC" = yes; then
8188 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'
8190 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'
8192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8193 hardcode_libdir_separator=:
8196 # hardcode_minus_L: Not really in the search PATH,
8197 # but as the default location of the library.
8198 hardcode_minus_L=yes
8199 export_dynamic_flag_spec='${wl}-E'
8203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8208 if test "$with_gnu_ld" = no; then
8209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8210 hardcode_libdir_flag_spec_ld='+b $libdir'
8211 hardcode_libdir_separator=:
8213 hardcode_direct_absolute=yes
8214 export_dynamic_flag_spec='${wl}-E'
8215 # hardcode_minus_L: Not really in the search PATH,
8216 # but as the default location of the library.
8217 hardcode_minus_L=yes
8222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8237 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8254 hardcode_shlibpath_var=no
8258 hardcode_direct_absolute=yes
8259 export_dynamic_flag_spec='${wl}-E'
8261 # hardcode_minus_L: Not really in the search PATH,
8262 # but as the default location of the library.
8263 hardcode_minus_L=yes
8269 irix5* | irix6* | nonstopux*)
8270 if test "$GCC" = yes; then
8271 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'
8272 # Try to use the -exported_symbol ld option, if it does not
8273 # work, assume that -exports_file does not work either and
8274 # implicitly export all symbols.
8275 save_LDFLAGS="$LDFLAGS"
8276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8277 cat >conftest.$ac_ext <<_ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 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'
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LDFLAGS="$save_LDFLAGS"
8313 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'
8314 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'
8316 archive_cmds_need_lc='no'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8320 link_all_deplibs=yes
8324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8329 hardcode_libdir_flag_spec='-R$libdir'
8331 hardcode_shlibpath_var=no
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 hardcode_shlibpath_var=no
8347 hardcode_shlibpath_var=no
8348 hardcode_direct_absolute=yes
8349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 export_dynamic_flag_spec='${wl}-E'
8356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358 hardcode_libdir_flag_spec='-R$libdir'
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8371 allow_undefined_flag=unsupported
8372 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'
8373 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 if test "$GCC" = yes; then
8378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8379 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'
8381 allow_undefined_flag=' -expect_unresolved \*'
8382 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'
8384 archive_cmds_need_lc='no'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 hardcode_libdir_separator=:
8389 osf4* | osf5*) # as osf3* with the addition of -msym flag
8390 if test "$GCC" = yes; then
8391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8392 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'
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 allow_undefined_flag=' -expect_unresolved \*'
8396 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'
8397 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~
8398 $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'
8400 # Both c and cxx compiler support -rpath directly
8401 hardcode_libdir_flag_spec='-rpath $libdir'
8403 archive_cmds_need_lc='no'
8404 hardcode_libdir_separator=:
8408 no_undefined_flag=' -z defs'
8409 if test "$GCC" = yes; then
8411 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8413 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 case `$CC -V 2>&1` in
8418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8424 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8426 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8433 solaris2.[0-5] | solaris2.[0-5].*) ;;
8435 # The compiler driver will combine and reorder linker options,
8436 # but understands `-z linker_flag'. GCC discards it without `$wl',
8437 # but is careful enough not to reorder.
8438 # Supported since Solaris 2.6 (maybe 2.5.1?)
8439 if test "$GCC" = yes; then
8440 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8446 link_all_deplibs=yes
8450 if test "x$host_vendor" = xsequent; then
8451 # Use $CC to link under sequent, because it throws in some extra .o
8452 # files that make .init and .fini sections work.
8453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_minus_L=yes
8460 hardcode_shlibpath_var=no
8464 case $host_vendor in
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_direct=yes # is this really true???
8470 ## LD is ld it makes a PLAMLIB
8471 ## CC just makes a GrossModule.
8472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8473 reload_cmds='$CC -r -o $output$reload_objs'
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8481 runpath_var='LD_RUN_PATH'
8482 hardcode_shlibpath_var=no
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_shlibpath_var=no
8488 export_dynamic_flag_spec='-Bexport'
8492 if test -d /usr/nec; then
8493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_shlibpath_var=no
8495 runpath_var=LD_RUN_PATH
8496 hardcode_runpath_var=yes
8501 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8502 no_undefined_flag='${wl}-z,text'
8503 archive_cmds_need_lc=no
8504 hardcode_shlibpath_var=no
8505 runpath_var='LD_RUN_PATH'
8507 if test "$GCC" = yes; then
8508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516 sysv5* | sco3.2v5* | sco5v6*)
8517 # Note: We can NOT use -z defs as we might desire, because we do not
8518 # link with -lc, and that would cause any symbols used from libc to
8519 # always be unresolved, which means just about no library would
8520 # ever link correctly. If we're not using GNU ld we use -z text
8521 # though, which does catch some bad symbols but isn't as heavy-handed
8523 no_undefined_flag='${wl}-z,text'
8524 allow_undefined_flag='${wl}-z,nodefs'
8525 archive_cmds_need_lc=no
8526 hardcode_shlibpath_var=no
8527 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8528 hardcode_libdir_separator=':'
8529 link_all_deplibs=yes
8530 export_dynamic_flag_spec='${wl}-Bexport'
8531 runpath_var='LD_RUN_PATH'
8533 if test "$GCC" = yes; then
8534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 hardcode_shlibpath_var=no
8553 if test x$host_vendor = xsni; then
8555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8556 export_dynamic_flag_spec='${wl}-Blargedynsym'
8562 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8563 echo "${ECHO_T}$ld_shlibs" >&6
8564 test "$ld_shlibs" = no && can_build_shared=no
8566 with_gnu_ld=$with_gnu_ld
8583 # Do we need to explicitly link libc?
8585 case "x$archive_cmds_need_lc" in
8587 # Assume -lc should be added
8588 archive_cmds_need_lc=yes
8590 if test "$enable_shared" = yes && test "$GCC" = yes; then
8591 case $archive_cmds in
8593 # FIXME: we may have to deal with multi-command sequences.
8596 # Test whether the compiler implicitly links with -lc since on some
8597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8598 # to ld, don't add -lc before -lgcc.
8599 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } 2>conftest.err; then
8611 libobjs=conftest.$ac_objext
8613 wl=$lt_prog_compiler_wl
8614 pic_flag=$lt_prog_compiler_pic
8620 lt_save_allow_undefined_flag=$allow_undefined_flag
8621 allow_undefined_flag=
8622 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }
8628 archive_cmds_need_lc=no
8630 archive_cmds_need_lc=yes
8632 allow_undefined_flag=$lt_save_allow_undefined_flag
8634 cat conftest.err 1>&5
8637 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8638 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8801 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8804 if test "$withGCC" = yes; then
8806 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8807 *) lt_awk_arg="/^libraries:/" ;;
8809 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8810 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8811 # if the path contains ";" then we assume it to be the separator
8812 # otherwise default to the standard path separator (i.e. ":") - it is
8813 # assumed that no part of a normal pathname contains ";" but that should
8814 # okay in the real world where ";" in dirpaths is itself problematic.
8815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8819 # Ok, now we have the path, separated by spaces, we can step through it
8820 # and add multilib dir if necessary.
8821 lt_tmp_lt_search_path_spec=
8822 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8823 for lt_sys_path in $lt_search_path_spec; do
8824 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827 test -d "$lt_sys_path" && \
8828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8831 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8832 BEGIN {RS=" "; FS="/|\n";} {
8835 for (lt_i = NF; lt_i > 0; lt_i--) {
8836 if ($lt_i != "" && $lt_i != ".") {
8837 if ($lt_i == "..") {
8840 if (lt_count == 0) {
8841 lt_foo="/" $lt_i lt_foo;
8848 if (lt_foo != "") { lt_freq[lt_foo]++; }
8849 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8856 libname_spec='lib$name'
8864 shlibpath_overrides_runpath=unknown
8866 dynamic_linker="$host_os ld.so"
8867 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8868 need_lib_prefix=unknown
8869 hardcode_into_libs=no
8871 # when you set need_version to no, make sure it does not cause -set_version
8872 # flags to be left without arguments
8873 need_version=unknown
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879 shlibpath_var=LIBPATH
8881 # AIX 3 has no versioning support, so we append a major version to the name.
8882 soname_spec='${libname}${release}${shared_ext}$major'
8889 hardcode_into_libs=yes
8890 if test "$host_cpu" = ia64; then
8891 # AIX 5 supports IA64
8892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893 shlibpath_var=LD_LIBRARY_PATH
8895 # With GCC up to 2.95.x, collect2 would create an import file
8896 # for dependence libraries. The import file would start with
8897 # the line `#! .'. This would cause the generated library to
8898 # depend on `.', always an invalid library. This was fixed in
8899 # development snapshots of GCC prior to 3.0.
8901 aix4 | aix4.[01] | aix4.[01].*)
8902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912 # soname into executable. Probably we can add versioning support to
8913 # collect2, so additional links can be useful in future.
8914 if test "$aix_use_runtimelinking" = yes; then
8915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916 # instead of lib<name>.a to let people know that these are not
8917 # typical AIX shared libraries.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 # We preserve .a as extension for shared libraries through AIX4.2
8921 # and later when we are not doing run time linking.
8922 library_names_spec='${libname}${release}.a $libname.a'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LIBPATH
8930 if test "$host_cpu" = m68k; then
8931 library_names_spec='$libname.ixlibrary $libname.a'
8932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933 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'
8940 library_names_spec='${libname}${shared_ext}'
8941 dynamic_linker="$host_os ld.so"
8942 shlibpath_var=LIBRARY_PATH
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8954 # the default ld.so.conf also contains /usr/contrib/lib and
8955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8956 # libtool to hard-code these into programs
8959 cygwin* | mingw* | pw32*)
8960 version_type=windows
8965 case $withGCC,$host_os in
8966 yes,cygwin* | yes,mingw* | yes,pw32*)
8967 library_names_spec='$libname.dll.a'
8968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8969 postinstall_cmds='base_file=`basename \${file}`~
8970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8971 dldir=$destdir/`dirname \$dlpath`~
8972 test -d \$dldir || mkdir -p \$dldir~
8973 $install_prog $dir/$dlname \$dldir/$dlname~
8974 chmod a+x \$dldir/$dlname~
8975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8979 dlpath=$dir/\$dldll~
8981 shlibpath_overrides_runpath=yes
8985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8990 # MinGW DLLs use traditional 'lib' prefix
8991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8994 # It is most probably a Windows format PATH printed by
8995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8996 # path with ; separators, and with drive letters. We can handle the
8997 # drive letters (cygwin fileutils understands them), so leave them,
8998 # especially as we might pass files found there to a mingw objdump,
8999 # which wouldn't understand a cygwinified path. Ahh.
9000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9006 # pw32 DLLs use 'pw' prefix rather than 'lib'
9007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9016 dynamic_linker='Win32 ld.exe'
9017 # FIXME: first we should search . and the directory the executable is in
9021 darwin* | rhapsody*)
9022 dynamic_linker="$host_os dyld"
9026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9027 soname_spec='${libname}${release}${major}$shared_ext'
9028 shlibpath_overrides_runpath=yes
9029 shlibpath_var=DYLD_LIBRARY_PATH
9030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9049 freebsd* | dragonfly*)
9050 # DragonFly does not have aout. When/if they implement a new
9051 # versioning mechanism, adjust this.
9052 if test -x /usr/bin/objformat; then
9053 objformat=`/usr/bin/objformat`
9056 freebsd[123]*) objformat=aout ;;
9060 version_type=freebsd-$objformat
9061 case $version_type in
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9072 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9077 freebsd3.[01]* | freebsdelf3.[01]*)
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9086 *) # from 4.6 on, and DragonFly
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 hardcode_into_libs=yes
9103 hpux9* | hpux10* | hpux11*)
9104 # Give a soname corresponding to the major version so that dld.sl refuses to
9105 # link against other versions.
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.so"
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 if test "X$HPUX_IA64_MODE" = X32; then
9119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127 hardcode_into_libs=yes
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=SHLIB_PATH
9140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146 postinstall_cmds='chmod 555 $lib'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9161 irix5* | irix6* | nonstopux*)
9163 nonstopux*) version_type=nonstopux ;;
9165 if test "$lt_cv_prog_gnu_ld" = yes; then
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 irix5* | nonstopux*)
9180 case $LD in # libtool.m4 will add one of these switches to LD
9181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182 libsuff= shlibsuff= libmagic=32-bit;;
9183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184 libsuff=32 shlibsuff=N32 libmagic=N32;;
9185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187 *) libsuff= shlibsuff= libmagic=never-match;;
9191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192 shlibpath_overrides_runpath=no
9193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195 hardcode_into_libs=yes
9198 # No shared lib support for Linux oldld, aout, or coff.
9199 linux*oldld* | linux*aout* | linux*coff*)
9203 # This must be Linux ELF.
9204 linux* | k*bsd*-gnu)
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 # Some binutils ld are patched to set DT_RUNPATH
9214 save_LDFLAGS=$LDFLAGS
9216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9256 shlibpath_overrides_runpath=yes
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9264 rm -f conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LDFLAGS=$save_LDFLAGS
9269 # This implies no fast_install, which is unacceptable.
9270 # Some rework will be needed to allow for fast_install
9271 # before this can be enabled.
9272 hardcode_into_libs=yes
9274 # Append ld.so.conf contents to the search path
9275 if test -f /etc/ld.so.conf; then
9276 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' ' '`
9277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9280 # We used to test for /lib/ld.so.1 and disable shared libraries on
9281 # powerpc, because MkLinux only supported shared libraries with the
9282 # GNU dynamic linker. Since this was broken with cross compilers,
9283 # most powerpc-linux boxes support dynamic linking these days and
9284 # people can always --disable-shared, the test was removed, and we
9285 # assume the GNU/Linux dynamic linker is in use.
9286 dynamic_linker='GNU/Linux ld.so'
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296 dynamic_linker='NetBSD (a.out) ld.so'
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='NetBSD ld.elf_so'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9323 dynamic_linker='ldqnx.so'
9328 sys_lib_dlsearch_path_spec="/usr/lib"
9330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333 *) need_version=no ;;
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 openbsd2.[89] | openbsd2.[89].*)
9341 shlibpath_overrides_runpath=no
9344 shlibpath_overrides_runpath=yes
9348 shlibpath_overrides_runpath=yes
9353 libname_spec='$name'
9356 library_names_spec='$libname${shared_ext} $libname.a'
9357 dynamic_linker='OS/2 ld.exe'
9358 shlibpath_var=LIBPATH
9361 osf3* | osf4* | osf5*)
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9384 hardcode_into_libs=yes
9385 # ldd complains unless libraries are executable
9386 postinstall_cmds='chmod +x $lib'
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 if test "$with_gnu_ld" = yes; then
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 case $host_vendor in
9408 shlibpath_overrides_runpath=no
9410 runpath_var=LD_RUN_PATH
9418 shlibpath_overrides_runpath=no
9419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9425 if test -d /usr/nec ;then
9427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9428 soname_spec='$libname${shared_ext}.$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9434 version_type=freebsd-elf
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 shlibpath_overrides_runpath=yes
9441 hardcode_into_libs=yes
9442 if test "$with_gnu_ld" = yes; then
9443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9456 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9460 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=no
9463 hardcode_into_libs=yes
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9477 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9478 echo "${ECHO_T}$dynamic_linker" >&6
9479 test "$dynamic_linker" = no && can_build_shared=no
9481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9482 if test "$GCC" = yes; then
9483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575 if test -n "$hardcode_libdir_flag_spec" ||
9576 test -n "$runpath_var" ||
9577 test "X$hardcode_automatic" = "Xyes" ; then
9579 # We can hardcode non-existent directories.
9580 if test "$hardcode_direct" != no &&
9581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582 # have to relink, otherwise we might link with an installed library
9583 # when we should be linking with a yet-to-be-installed one
9584 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585 test "$hardcode_minus_L" != no; then
9586 # Linking always hardcodes the temporary library directory.
9587 hardcode_action=relink
9589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590 hardcode_action=immediate
9593 # We cannot hardcode anything, or else we can only hardcode existing
9595 hardcode_action=unsupported
9597 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598 echo "${ECHO_T}$hardcode_action" >&6
9600 if test "$hardcode_action" = relink ||
9601 test "$inherit_rpath" = yes; then
9602 # Fast installation is not supported
9603 enable_fast_install=no
9604 elif test "$shlibpath_overrides_runpath" = yes ||
9605 test "$enable_shared" = no; then
9606 # Fast installation is not necessary
9607 enable_fast_install=needless
9615 if test "x$enable_dlopen" != xyes; then
9616 enable_dlopen=unknown
9617 enable_dlopen_self=unknown
9618 enable_dlopen_self_static=unknown
9625 lt_cv_dlopen="load_add_on"
9627 lt_cv_dlopen_self=yes
9631 lt_cv_dlopen="LoadLibrary"
9636 lt_cv_dlopen="dlopen"
9641 # if libdl is installed we need to link against it
9642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_check_lib_save_LIBS=$LIBS
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_lib_dl_dlopen=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_lib_dl_dlopen=no
9700 rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9712 lt_cv_dlopen_self=yes
9719 echo "$as_me:$LINENO: checking for shl_load" >&5
9720 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9721 if test "${ac_cv_func_shl_load+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732 #define shl_load innocuous_shl_load
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char shl_load (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
9740 # include <limits.h>
9742 # include <assert.h>
9747 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9761 char (*f) () = shl_load;
9770 return f != shl_load;
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_cv_func_shl_load=yes
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 ac_cv_func_shl_load=no
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9807 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9808 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9809 if test $ac_cv_func_shl_load = yes; then
9810 lt_cv_dlopen="shl_load"
9812 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9813 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9814 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_check_lib_save_LIBS=$LIBS
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_lib_dld_shl_load=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_lib_dld_shl_load=no
9870 rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9874 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9876 if test $ac_cv_lib_dld_shl_load = yes; then
9877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9879 echo "$as_me:$LINENO: checking for dlopen" >&5
9880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9881 if test "${ac_cv_func_dlopen+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892 #define dlopen innocuous_dlopen
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char dlopen (); below.
9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 <limits.h> exists even on freestanding compilers. */
9900 # include <limits.h>
9902 # include <assert.h>
9907 /* Override any gcc2 internal prototype to avoid an error. */
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9921 char (*f) () = dlopen;
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_func_dlopen=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_func_dlopen=no
9964 rm -f conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9967 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9969 if test $ac_cv_func_dlopen = yes; then
9970 lt_cv_dlopen="dlopen"
9972 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS=$LIBS
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dlopen=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dl_dlopen=no
10030 rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-lsvld $LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10053 /* Override any gcc2 internal prototype to avoid an error. */
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_lib_svld_dlopen=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10095 ac_cv_lib_svld_dlopen=no
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10101 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10102 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10103 if test $ac_cv_lib_svld_dlopen = yes; then
10104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10106 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10107 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10108 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 ac_check_lib_save_LIBS=$LIBS
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10120 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_dld_dld_link=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_lib_dld_dld_link=no
10164 rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10169 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10170 if test $ac_cv_lib_dld_dld_link = yes; then
10171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10192 if test "x$lt_cv_dlopen" != xno; then
10198 case $lt_cv_dlopen in
10200 save_CPPFLAGS="$CPPFLAGS"
10201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10203 save_LDFLAGS="$LDFLAGS"
10204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10207 LIBS="$lt_cv_dlopen_libs $LIBS"
10209 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10211 if test "${lt_cv_dlopen_self+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self=cross
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<_LT_EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10230 # define LT_DLGLOBAL RTLD_GLOBAL
10233 # define LT_DLGLOBAL DL_GLOBAL
10235 # define LT_DLGLOBAL 0
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10246 # define LT_DLLAZY_OR_NOW DL_LAZY
10249 # define LT_DLLAZY_OR_NOW RTLD_NOW
10252 # define LT_DLLAZY_OR_NOW DL_NOW
10254 # define LT_DLLAZY_OR_NOW 0
10262 extern "C" void exit (int);
10265 void fnord() { int i=42;}
10268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269 int status = $lt_dlunknown;
10273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275 /* dlclose (self); */
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10288 (./conftest; exit; ) >&5 2>/dev/null
10290 case x$lt_status in
10291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10296 # compilation failed
10297 lt_cv_dlopen_self=no
10304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10305 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10307 if test "x$lt_cv_dlopen_self" = xyes; then
10308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10309 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10310 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10311 if test "${lt_cv_dlopen_self_static+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 if test "$cross_compiling" = yes; then :
10315 lt_cv_dlopen_self_static=cross
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<_LT_EOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10330 # define LT_DLGLOBAL RTLD_GLOBAL
10333 # define LT_DLGLOBAL DL_GLOBAL
10335 # define LT_DLGLOBAL 0
10339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341 #ifndef LT_DLLAZY_OR_NOW
10343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10346 # define LT_DLLAZY_OR_NOW DL_LAZY
10349 # define LT_DLLAZY_OR_NOW RTLD_NOW
10352 # define LT_DLLAZY_OR_NOW DL_NOW
10354 # define LT_DLLAZY_OR_NOW 0
10362 extern "C" void exit (int);
10365 void fnord() { int i=42;}
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10390 case x$lt_status in
10391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10396 # compilation failed
10397 lt_cv_dlopen_self_static=no
10404 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10405 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10408 CPPFLAGS="$save_CPPFLAGS"
10409 LDFLAGS="$save_LDFLAGS"
10414 case $lt_cv_dlopen_self in
10415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416 *) enable_dlopen_self=unknown ;;
10419 case $lt_cv_dlopen_self_static in
10420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421 *) enable_dlopen_self_static=unknown ;;
10443 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10444 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10448 echo "$as_me:$LINENO: result: yes" >&5
10449 echo "${ECHO_T}yes" >&6
10451 # FIXME - insert some real tests, host_os isn't really good enough
10454 if test -n "$STRIP" ; then
10455 striplib="$STRIP -x"
10456 old_striplib="$STRIP -S"
10457 echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6
10460 echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6
10465 echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6
10482 # Report which library types will actually be built
10483 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10484 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10486 echo "${ECHO_T}$can_build_shared" >&6
10488 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10489 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10490 test "$can_build_shared" = "no" && enable_shared=no
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10496 test "$enable_shared" = yes && enable_static=no
10497 if test -n "$RANLIB"; then
10498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499 postinstall_cmds='$RANLIB $lib'
10504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505 test "$enable_shared" = yes && enable_static=no
10509 echo "$as_me:$LINENO: result: $enable_shared" >&5
10510 echo "${ECHO_T}$enable_shared" >&6
10512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 echo "$as_me:$LINENO: result: $enable_static" >&5
10517 echo "${ECHO_T}$enable_static" >&6
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543 ac_config_commands="$ac_config_commands libtool"
10548 # Only expand once:
10552 # Check whether --enable-targets or --disable-targets was given.
10553 if test "${enable_targets+set}" = set; then
10554 enableval="$enable_targets"
10555 case "${enableval}" in
10556 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10557 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10558 { (exit 1); exit 1; }; }
10560 no) enable_targets= ;;
10561 *) enable_targets=$enableval ;;
10564 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10565 if test "${enable_commonbfdlib+set}" = set; then
10566 enableval="$enable_commonbfdlib"
10567 case "${enableval}" in
10568 yes) commonbfdlib=true ;;
10569 no) commonbfdlib=false ;;
10570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10571 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10572 { (exit 1); exit 1; }; } ;;
10576 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10579 # Check whether --enable-checking or --disable-checking was given.
10580 if test "${enable_checking+set}" = set; then
10581 enableval="$enable_checking"
10582 case "${enableval}" in
10583 no|none) ac_checking= ;;
10584 *) ac_checking=yes ;;
10586 fi; if test x$ac_checking != x ; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define ENABLE_CHECKING 1
10597 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10599 # Check whether --enable-werror or --disable-werror was given.
10600 if test "${enable_werror+set}" = set; then
10601 enableval="$enable_werror"
10602 case "${enableval}" in
10603 yes | y) ERROR_ON_WARNING="yes" ;;
10604 no | n) ERROR_ON_WARNING="no" ;;
10605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10606 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10607 { (exit 1); exit 1; }; } ;;
10611 # Enable -Wno-format by default when using gcc on mingw
10614 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10615 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10621 # Enable -Werror by default when using gcc
10622 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10623 ERROR_ON_WARNING=yes
10627 if test "${ERROR_ON_WARNING}" = yes ; then
10628 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10629 NO_WERROR="-Wno-error"
10632 if test "${GCC}" = yes ; then
10633 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10636 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10637 if test "${enable_build_warnings+set}" = set; then
10638 enableval="$enable_build_warnings"
10639 case "${enableval}" in
10640 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10641 no) if test "${GCC}" = yes ; then
10644 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10645 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10646 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10647 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10648 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10652 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10653 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10660 # Generate a header file
10661 ac_config_headers="$ac_config_headers config.h:config.in"
10664 # If we are on a DOS filesystem, we must use gdb.ini rather than
10667 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10669 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10674 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10680 #We need this for the host. BOUT header is in host order.
10681 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10682 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10683 if test "${ac_cv_c_bigendian+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 # See if sys/param.h defines the BYTE_ORDER macro.
10687 cat >conftest.$ac_ext <<_ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 #include <sys/types.h>
10694 #include <sys/param.h>
10699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10700 bogus endian macros
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 # It does; now see whether it defined to BIG_ENDIAN or not.
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 #include <sys/types.h>
10737 #include <sys/param.h>
10742 #if BYTE_ORDER != BIG_ENDIAN
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752 (eval $ac_compile) 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag"
10760 || test ! -s conftest.err'
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; } &&
10766 { ac_try='test -s conftest.$ac_objext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_c_bigendian=yes
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 ac_cv_c_bigendian=no
10779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 # It does not; compile a test program.
10785 if test "$cross_compiling" = yes; then
10786 # try to guess the endianness by grepping values into an object file
10787 ac_cv_c_bigendian=unknown
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10795 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10796 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10797 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10798 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10799 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10803 _ascii (); _ebcdic ();
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10831 ac_cv_c_bigendian=yes
10833 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10834 if test "$ac_cv_c_bigendian" = unknown; then
10835 ac_cv_c_bigendian=no
10837 # finding both strings is unlikely to happen, but who knows?
10838 ac_cv_c_bigendian=unknown
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10857 /* Are we little or big endian? From Harbison&Steele. */
10861 char c[sizeof (long)];
10864 exit (u.c[sizeof (long) - 1] == 1);
10867 rm -f conftest$ac_exeext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_c_bigendian=no
10880 echo "$as_me: program exited with status $ac_status" >&5
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ( exit $ac_status )
10885 ac_cv_c_bigendian=yes
10887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10893 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10894 case $ac_cv_c_bigendian in
10897 cat >>confdefs.h <<\_ACEOF
10898 #define WORDS_BIGENDIAN 1
10904 { { echo "$as_me:$LINENO: error: unknown endianness
10905 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10906 echo "$as_me: error: unknown endianness
10907 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10908 { (exit 1); exit 1; }; } ;;
10914 # Makefile target for installing gas in $(tooldir)/bin.
10915 install_tooldir=install-exec-tooldir
10919 if test -n "$enable_targets" ; then
10920 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10921 if test $t = "all"; then
10925 result=`$ac_config_sub $t 2>/dev/null`
10926 if test -n "$result" ; then
10927 canon_targets="$canon_targets $result"
10929 # # Permit "all", etc. We don't support it yet though.
10930 # canon_targets="$canon_targets $t"
10933 _gas_uniq_list="$canon_targets"
10934 _gas_uniq_newlist=""
10935 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10936 case $_gas_uniq_i in
10937 _gas_uniq_dummy) ;;
10938 *) case " $_gas_uniq_newlist " in
10939 *" $_gas_uniq_i "*) ;;
10940 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10944 canon_targets=$_gas_uniq_newlist
10950 for this_target in $target $canon_targets ; do
10952 targ=${this_target}
10953 . ${srcdir}/configure.tgt
10955 case ${target_cpu} in
10958 cat >>confdefs.h <<_ACEOF
10959 #define DEFAULT_CRIS_ARCH $arch
10965 if test ${this_target} = $target ; then
10966 target_cpu_type=${cpu_type}
10967 elif test ${target_cpu_type} != ${cpu_type} ; then
10971 generic_target=${cpu_type}-${target_vendor}-${target_os}
10972 case ${generic_target} in
10974 if test ${this_target} = $target; then
10976 cat >>confdefs.h <<\_ACEOF
10983 i386-*-msdosdjgpp* \
10985 | i386-go32-rtems*)
10987 cat >>confdefs.h <<\_ACEOF
10988 #define STRICTCOFF 1
10994 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10995 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
11001 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11002 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11003 { (exit 1); exit 1; }; }
11008 cat >>confdefs.h <<\_ACEOF
11009 #define AIX_WEAK_SUPPORT 1
11016 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11017 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11018 { (exit 1); exit 1; }; } ;;
11022 if test ${this_target} = $target; then
11024 cat >>confdefs.h <<\_ACEOF
11025 #define TARGET_SOLARIS_COMMENT 1
11029 if test x${endian} = xbig; then
11030 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11031 echo "$as_me: error: Solaris must be configured little endian" >&2;}
11032 { (exit 1); exit 1; }; }
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TARGET_SYMBIAN 1
11045 if test ${this_target} = $target ; then
11047 if test x${endian} = xbig; then
11049 elif test x${endian} = xlittle; then
11052 if test x${endian_def} != x; then
11054 cat >>confdefs.h <<_ACEOF
11055 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11061 # Other random stuff.
11063 case ${cpu_type} in
11065 # Set mips_cpu to the name of the default CPU.
11066 case ${target_cpu} in
11067 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11070 mipsisa32 | mipsisa32el)
11073 mipsisa32r2 | mipsisa32r2el)
11076 mipsisa64 | mipsisa64el)
11079 mipsisa64r2 | mipsisa64r2el)
11082 mipstx39 | mipstx39el)
11085 mips64vr | mips64vrel)
11088 mipsisa32r2* | mipsisa64r2*)
11089 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11091 mips64* | mipsisa64* | mipsisa32*)
11092 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11095 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11096 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11097 { (exit 1); exit 1; }; }
11100 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11101 # binaries. It's a GNU extension that some OSes don't understand.
11102 # The value only matters on ELF targets.
11105 use_e_mips_abi_o32=0
11108 use_e_mips_abi_o32=1
11111 # Decide whether to generate 32-bit or 64-bit code by default.
11112 # Used to resolve -march=from-abi when an embedded ABI is selected.
11114 mips64*-*-* | mipsisa64*-*-*)
11115 mips_default_64bit=1
11118 mips_default_64bit=0
11121 # Decide which ABI to target by default.
11123 mips64*-linux* | mips-sgi-irix6*)
11124 mips_default_abi=N32_ABI
11127 mips_default_abi=O32_ABI
11130 mips_default_abi=N64_ABI
11133 mips_default_abi=NO_ABI
11137 cat >>confdefs.h <<_ACEOF
11138 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11142 cat >>confdefs.h <<_ACEOF
11143 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11147 cat >>confdefs.h <<_ACEOF
11148 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11152 cat >>confdefs.h <<_ACEOF
11153 #define MIPS_DEFAULT_ABI $mips_default_abi
11159 # Do we need the opcodes library?
11160 case ${cpu_type} in
11167 case "${enable_shared}" in
11168 yes) shared_opcodes=true ;;
11169 *opcodes*) shared_opcodes=true ;;
11170 *) shared_opcodes=false ;;
11175 # Any other special object files needed ?
11176 case ${cpu_type} in
11179 echo ${extra_objects} | grep -s "bfin-parse.o"
11180 if test $? -ne 0 ; then
11181 extra_objects="$extra_objects bfin-parse.o"
11184 echo ${extra_objects} | grep -s "bfin-lex.o"
11185 if test $? -ne 0 ; then
11186 extra_objects="$extra_objects bfin-lex.o"
11190 fr30 | ip2k | iq2000 | m32r | openrisc)
11201 case ${extra_objects} in
11203 *) extra_objects="$extra_objects m68k-parse.o" ;;
11212 echo ${extra_objects} | grep -s "itbl-parse.o"
11213 if test $? -ne 0 ; then
11214 extra_objects="$extra_objects itbl-parse.o"
11217 echo ${extra_objects} | grep -s "itbl-lex.o"
11218 if test $? -ne 0 ; then
11219 extra_objects="$extra_objects itbl-lex.o"
11222 echo ${extra_objects} | grep -s "itbl-ops.o"
11223 if test $? -ne 0 ; then
11224 extra_objects="$extra_objects itbl-ops.o"
11232 i386 | s390 | sparc)
11233 if test $this_target = $target ; then
11235 cat >>confdefs.h <<_ACEOF
11236 #define DEFAULT_ARCH "${arch}"
11251 echo ${extra_objects} | grep -s "xtensa-relax.o"
11252 if test $? -ne 0 ; then
11253 extra_objects="$extra_objects xtensa-relax.o"
11261 if test $using_cgen = yes ; then
11262 case "x${extra_objects}" in
11264 *) extra_objects="$extra_objects cgen.o" ;;
11268 # See if we really can support this configuration with the emulation code.
11270 if test $this_target = $target ; then
11275 # From target name and format, produce a list of supported emulations.
11277 case ${generic_target}-${fmt} in
11278 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11279 mips*-*-linux*-*) case "$endian" in
11280 big) emulation="mipsbelf mipslelf mipself" ;;
11281 *) emulation="mipslelf mipsbelf mipself" ;;
11283 mips-*-lnews*-ecoff) ;;
11284 mips-*-*-ecoff) case "$endian" in
11285 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11286 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11288 mips-*-*-elf) case "$endian" in
11289 big) emulation="mipsbelf mipslelf mipself" ;;
11290 *) emulation="mipslelf mipsbelf mipself" ;;
11292 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11293 # i386-pc-pe-coff != i386-pc-coff.
11295 # Uncommenting the next line will turn on support for i386 AOUT
11296 # for the default linux configuration
11297 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11299 i386-*-aout) emulation="i386aout" ;;
11300 i386-*-coff) emulation="i386coff" ;;
11301 i386-*-elf) emulation="i386elf" ;;
11303 # Always all formats. The first stated emulation becomes the default.
11304 cris-*-*aout*) emulation="crisaout criself" ;;
11305 cris-*-*) emulation="criself crisaout" ;;
11308 emulations="$emulations $emulation"
11312 # Turn on all targets if possible
11313 if test ${all_targets} = "yes"; then
11314 case ${target_cpu_type} in
11316 case ${obj_format} in
11318 emulations="$emulations i386coff i386elf"
11321 emulations="$emulations i386aout i386elf"
11324 emulations="$emulations i386aout i386coff"
11329 case ${obj_format} in
11331 emulations="$emulations i386coff i386elf"
11334 emulations="$emulations i386aout i386elf"
11337 emulations="$emulations i386aout i386coff"
11344 # Assign floating point type. Most processors with FP support
11345 # IEEE FP. On those that don't support FP at all, usually IEEE
11347 case ${target_cpu} in
11348 vax | pdp11 ) atof=vax ;;
11352 case "${obj_format}" in
11353 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11354 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11355 { (exit 1); exit 1; }; } ;;
11358 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11360 if test $using_cgen = yes ; then
11361 case ${target_cpu} in
11362 *) cgen_cpu_prefix=${target_cpu} ;;
11366 cat >>confdefs.h <<\_ACEOF
11367 #define USING_CGEN 1
11373 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11374 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11375 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11376 { (exit 1); exit 1; }; }
11379 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11380 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11381 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11382 { (exit 1); exit 1; }; }
11385 # Some COFF configurations want these random other flags set.
11386 case ${obj_format} in
11388 case ${target_cpu_type} in
11390 cat >>confdefs.h <<\_ACEOF
11395 cat >>confdefs.h <<\_ACEOF
11400 cat >>confdefs.h <<\_ACEOF
11405 cat >>confdefs.h <<\_ACEOF
11413 # Getting this done right is going to be a bitch. Each configuration specified
11414 # with --enable-targets=... should be checked for environment, format, cpu
11417 # For each configuration, the necessary object file support code must be linked
11418 # in. This might be only one, it might be up to four. The necessary emulation
11419 # code needs to be provided, too.
11421 # And then there's "--enable-targets=all"....
11423 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11425 formats="${obj_format}"
11428 _gas_uniq_list="$emulations"
11429 _gas_uniq_newlist=""
11430 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11431 case $_gas_uniq_i in
11432 _gas_uniq_dummy) ;;
11433 *) case " $_gas_uniq_newlist " in
11434 *" $_gas_uniq_i "*) ;;
11435 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11439 emulations=$_gas_uniq_newlist
11441 for em in . $emulations ; do
11444 mipsbelf | mipslelf | mipself)
11445 fmt=elf file=mipself ;;
11446 mipsbecoff | mipslecoff | mipsecoff)
11447 fmt=ecoff file=mipsecoff ;;
11449 fmt=coff file=$em ;;
11451 fmt=aout file=$em ;;
11453 fmt=elf file=$em ;;
11455 formats="$formats $fmt"
11456 emfiles="$emfiles e-$file.o"
11457 EMULATIONS="$EMULATIONS &$em,"
11459 _gas_uniq_list="$formats"
11460 _gas_uniq_newlist=""
11461 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11462 case $_gas_uniq_i in
11463 _gas_uniq_dummy) ;;
11464 *) case " $_gas_uniq_newlist " in
11465 *" $_gas_uniq_i "*) ;;
11466 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11470 formats=$_gas_uniq_newlist
11472 _gas_uniq_list="$emfiles"
11473 _gas_uniq_newlist=""
11474 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11475 case $_gas_uniq_i in
11476 _gas_uniq_dummy) ;;
11477 *) case " $_gas_uniq_newlist " in
11478 *" $_gas_uniq_i "*) ;;
11479 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11483 emfiles=$_gas_uniq_newlist
11485 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11486 for fmt in $formats ; do
11489 cat >>confdefs.h <<\_ACEOF
11490 #define OBJ_MAYBE_AOUT 1
11494 cat >>confdefs.h <<\_ACEOF
11495 #define OBJ_MAYBE_BOUT 1
11499 cat >>confdefs.h <<\_ACEOF
11500 #define OBJ_MAYBE_COFF 1
11504 cat >>confdefs.h <<\_ACEOF
11505 #define OBJ_MAYBE_ECOFF 1
11509 cat >>confdefs.h <<\_ACEOF
11510 #define OBJ_MAYBE_ELF 1
11514 cat >>confdefs.h <<\_ACEOF
11515 #define OBJ_MAYBE_GENERIC 1
11519 cat >>confdefs.h <<\_ACEOF
11520 #define OBJ_MAYBE_SOM 1
11524 extra_objects="$extra_objects obj-$fmt.o"
11528 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11529 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11530 # e-mips* has more than one emulation per file, e-i386* has just one at the
11531 # moment. If only one emulation is specified, then don't define
11532 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11533 case "${obj_format}${emfiles}" in
11535 extra_objects="$extra_objects $emfiles"
11537 cat >>confdefs.h <<\_ACEOF
11538 #define USE_EMULATIONS 1
11545 cat >>confdefs.h <<_ACEOF
11546 #define EMULATIONS $EMULATIONS
11550 cat >>confdefs.h <<_ACEOF
11551 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11555 reject_dev_configs=yes
11557 case ${reject_dev_configs}-${dev} in
11559 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11560 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11561 { (exit 1); exit 1; }; }
11571 # do we need the opcodes library?
11572 case "${need_opcodes}" in
11574 OPCODES_LIB=../opcodes/libopcodes.la
11581 cat >>confdefs.h <<_ACEOF
11582 #define TARGET_ALIAS "${target_alias}"
11586 cat >>confdefs.h <<_ACEOF
11587 #define TARGET_CANONICAL "${target}"
11591 cat >>confdefs.h <<_ACEOF
11592 #define TARGET_CPU "${target_cpu}"
11596 cat >>confdefs.h <<_ACEOF
11597 #define TARGET_VENDOR "${target_vendor}"
11601 cat >>confdefs.h <<_ACEOF
11602 #define TARGET_OS "${target_os}"
11606 for ac_prog in 'bison -y' byacc
11608 # Extract the first word of "$ac_prog", so it can be a program name with args.
11609 set dummy $ac_prog; ac_word=$2
11610 echo "$as_me:$LINENO: checking for $ac_word" >&5
11611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11612 if test "${ac_cv_prog_YACC+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 if test -n "$YACC"; then
11616 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_prog_YACC="$ac_prog"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11634 YACC=$ac_cv_prog_YACC
11635 if test -n "$YACC"; then
11636 echo "$as_me:$LINENO: result: $YACC" >&5
11637 echo "${ECHO_T}$YACC" >&6
11639 echo "$as_me:$LINENO: result: no" >&5
11640 echo "${ECHO_T}no" >&6
11643 test -n "$YACC" && break
11645 test -n "$YACC" || YACC="yacc"
11647 for ac_prog in flex lex
11649 # Extract the first word of "$ac_prog", so it can be a program name with args.
11650 set dummy $ac_prog; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_LEX+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 if test -n "$LEX"; then
11657 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_LEX="$ac_prog"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 LEX=$ac_cv_prog_LEX
11676 if test -n "$LEX"; then
11677 echo "$as_me:$LINENO: result: $LEX" >&5
11678 echo "${ECHO_T}$LEX" >&6
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11684 test -n "$LEX" && break
11686 test -n "$LEX" || LEX=":"
11688 if test -z "$LEXLIB"
11690 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11691 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11692 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 ac_check_lib_save_LIBS=$LIBS
11697 cat >conftest.$ac_ext <<_ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11704 /* Override any gcc2 internal prototype to avoid an error. */
11708 /* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_fl_yywrap=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_lib_fl_yywrap=no
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LIBS=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11753 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11754 if test $ac_cv_lib_fl_yywrap = yes; then
11757 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11758 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11759 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 ac_check_lib_save_LIBS=$LIBS
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11771 /* Override any gcc2 internal prototype to avoid an error. */
11775 /* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788 (eval $ac_link) 2>conftest.er1
11790 grep -v '^ *+' conftest.er1 >conftest.err
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest$ac_exeext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_lib_l_yywrap=yes
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 ac_cv_lib_l_yywrap=no
11815 rm -f conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 LIBS=$ac_check_lib_save_LIBS
11819 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11820 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11821 if test $ac_cv_lib_l_yywrap = yes; then
11829 if test "x$LEX" != "x:"; then
11830 echo "$as_me:$LINENO: checking lex output file root" >&5
11831 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11832 if test "${ac_cv_prog_lex_root+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 # The minimal lex program is just a single line: %%. But some broken lexes
11836 # (Solaris, I think it was) want two %% lines, so accommodate them.
11837 cat >conftest.l <<_ACEOF
11841 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11842 (eval $LEX conftest.l) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }
11846 if test -f lex.yy.c; then
11847 ac_cv_prog_lex_root=lex.yy
11848 elif test -f lexyy.c; then
11849 ac_cv_prog_lex_root=lexyy
11851 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11852 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11853 { (exit 1); exit 1; }; }
11856 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11857 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11859 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11861 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11862 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11863 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 # POSIX says lex can declare yytext either as a pointer or an array; the
11867 # default is implementation-dependent. Figure out which it is, since
11868 # not all implementations provide the %pointer and %array declarations.
11869 ac_cv_prog_lex_yytext_pointer=no
11870 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11872 LIBS="$LIBS $LEXLIB"
11873 cat >conftest.$ac_ext <<_ACEOF
11874 `cat $LEX_OUTPUT_ROOT.c`
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_prog_lex_yytext_pointer=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11904 rm -f conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11907 rm -f "${LEX_OUTPUT_ROOT}.c"
11910 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11911 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define YYTEXT_POINTER 1
11921 if test "$LEX" = :; then
11922 LEX=${am_missing_run}flex
11925 ALL_LINGUAS="fr tr es rw"
11926 # If we haven't got the data from the intl directory,
11927 # assume NLS is disabled.
11936 if test -f ../intl/config.intl; then
11937 . ../intl/config.intl
11939 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11940 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11941 if test x"$USE_NLS" != xyes; then
11942 echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11945 echo "$as_me:$LINENO: result: yes" >&5
11946 echo "${ECHO_T}yes" >&6
11948 cat >>confdefs.h <<\_ACEOF
11949 #define ENABLE_NLS 1
11953 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11954 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11955 # Look for .po and .gmo files in the source directory.
11958 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11959 # If there aren't any .gmo files the shell will give us the
11960 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11962 case "$cat" in *\**)
11965 # The quadruple backslash is collapsed to a double backslash
11966 # by the backticks, then collapsed again by the double quotes,
11967 # leaving us with one backslash in the sed expression (right
11968 # before the dot that mustn't act as a wildcard).
11969 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11970 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11971 # The user is allowed to set LINGUAS to a list of languages to
11972 # install catalogs for. If it's empty that means "all of them."
11973 if test "x$LINGUAS" = x; then
11974 CATALOGS="$CATALOGS $cat"
11975 XLINGUAS="$XLINGUAS $lang"
11977 case "$LINGUAS" in *$lang*)
11978 CATALOGS="$CATALOGS $cat"
11979 XLINGUAS="$XLINGUAS $lang"
11984 LINGUAS="$XLINGUAS"
11985 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11986 echo "${ECHO_T}$LINGUAS" >&6
12000 if test -n "$ac_aux_dir"; then
12001 case "$ac_aux_dir" in
12002 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12003 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12006 if test -z "$MKINSTALLDIRS"; then
12007 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12012 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12013 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12014 # Check whether --enable-nls or --disable-nls was given.
12015 if test "${enable_nls+set}" = set; then
12016 enableval="$enable_nls"
12021 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12022 echo "${ECHO_T}$USE_NLS" >&6
12029 # Prepare PATH_SEPARATOR.
12030 # The user is always right.
12031 if test "${PATH_SEPARATOR+set}" != set; then
12032 echo "#! /bin/sh" >conf$$.sh
12033 echo "exit 0" >>conf$$.sh
12035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12043 # Find out how to test for executable files. Don't use a zero-byte file,
12044 # as systems may use methods other than mode bits to determine executability.
12045 cat >conf$$.file <<_ASEOF
12049 chmod +x conf$$.file
12050 if test -x conf$$.file >/dev/null 2>&1; then
12051 ac_executable_p="test -x"
12053 ac_executable_p="test -f"
12057 # Extract the first word of "msgfmt", so it can be a program name with args.
12058 set dummy msgfmt; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_path_MSGFMT+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12069 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12070 for ac_dir in $PATH; do
12072 test -z "$ac_dir" && ac_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12075 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12076 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12077 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12084 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12088 MSGFMT="$ac_cv_path_MSGFMT"
12089 if test "$MSGFMT" != ":"; then
12090 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12091 echo "${ECHO_T}$MSGFMT" >&6
12093 echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6
12097 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12098 set dummy gmsgfmt; ac_word=$2
12099 echo "$as_me:$LINENO: checking for $ac_word" >&5
12100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12127 GMSGFMT=$ac_cv_path_GMSGFMT
12129 if test -n "$GMSGFMT"; then
12130 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12131 echo "${ECHO_T}$GMSGFMT" >&6
12133 echo "$as_me:$LINENO: result: no" >&5
12134 echo "${ECHO_T}no" >&6
12139 # Prepare PATH_SEPARATOR.
12140 # The user is always right.
12141 if test "${PATH_SEPARATOR+set}" != set; then
12142 echo "#! /bin/sh" >conf$$.sh
12143 echo "exit 0" >>conf$$.sh
12145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12153 # Find out how to test for executable files. Don't use a zero-byte file,
12154 # as systems may use methods other than mode bits to determine executability.
12155 cat >conf$$.file <<_ASEOF
12159 chmod +x conf$$.file
12160 if test -x conf$$.file >/dev/null 2>&1; then
12161 ac_executable_p="test -x"
12163 ac_executable_p="test -f"
12167 # Extract the first word of "xgettext", so it can be a program name with args.
12168 set dummy xgettext; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 case "$XGETTEXT" in
12176 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12179 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12180 for ac_dir in $PATH; do
12182 test -z "$ac_dir" && ac_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12185 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12186 (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
12187 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12194 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12198 XGETTEXT="$ac_cv_path_XGETTEXT"
12199 if test "$XGETTEXT" != ":"; then
12200 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12201 echo "${ECHO_T}$XGETTEXT" >&6
12203 echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12210 # Prepare PATH_SEPARATOR.
12211 # The user is always right.
12212 if test "${PATH_SEPARATOR+set}" != set; then
12213 echo "#! /bin/sh" >conf$$.sh
12214 echo "exit 0" >>conf$$.sh
12216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12224 # Find out how to test for executable files. Don't use a zero-byte file,
12225 # as systems may use methods other than mode bits to determine executability.
12226 cat >conf$$.file <<_ASEOF
12230 chmod +x conf$$.file
12231 if test -x conf$$.file >/dev/null 2>&1; then
12232 ac_executable_p="test -x"
12234 ac_executable_p="test -f"
12238 # Extract the first word of "msgmerge", so it can be a program name with args.
12239 set dummy msgmerge; ac_word=$2
12240 echo "$as_me:$LINENO: checking for $ac_word" >&5
12241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12242 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 case "$MSGMERGE" in
12247 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12250 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12251 for ac_dir in $PATH; do
12253 test -z "$ac_dir" && ac_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12256 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12257 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12264 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12268 MSGMERGE="$ac_cv_path_MSGMERGE"
12269 if test "$MSGMERGE" != ":"; then
12270 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12271 echo "${ECHO_T}$MSGMERGE" >&6
12273 echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12278 if test "$GMSGFMT" != ":"; then
12279 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12280 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12283 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12284 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12285 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12290 if test "$XGETTEXT" != ":"; then
12291 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12292 (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
12295 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12296 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12302 ac_config_commands="$ac_config_commands default-1"
12306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12309 if test "${enable_maintainer_mode+set}" = set; then
12310 enableval="$enable_maintainer_mode"
12311 USE_MAINTAINER_MODE=$enableval
12313 USE_MAINTAINER_MODE=no
12315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12319 if test $USE_MAINTAINER_MODE = yes; then
12320 MAINTAINER_MODE_TRUE=
12321 MAINTAINER_MODE_FALSE='#'
12323 MAINTAINER_MODE_TRUE='#'
12324 MAINTAINER_MODE_FALSE=
12327 MAINT=$MAINTAINER_MODE_TRUE
12333 GENINSRC_NEVER_TRUE=
12334 GENINSRC_NEVER_FALSE='#'
12336 GENINSRC_NEVER_TRUE='#'
12337 GENINSRC_NEVER_FALSE=
12352 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 # Is the header compilable?
12365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_header_compiler=no
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12407 echo "${ECHO_T}$ac_header_compiler" >&6
12409 # Is the header present?
12410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 #include <$ac_header>
12420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12437 if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_header_preproc=no
12445 rm -f conftest.err conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12447 echo "${ECHO_T}$ac_header_preproc" >&6
12449 # So? What about this header?
12450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12456 ac_header_preproc=yes
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12473 ## ------------------------------------------ ##
12474 ## Report this to the AC_PACKAGE_NAME lists. ##
12475 ## ------------------------------------------ ##
12478 sed "s/^/$as_me: WARNING: /" >&2
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 eval "$as_ac_Header=\$ac_header_preproc"
12488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12502 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12503 # people who are not cross-compiling but are compiling cross-assemblers.
12504 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12505 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12506 if test "${host}" = "${target}"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define CROSS_COMPILE 1
12516 echo "$as_me:$LINENO: result: $cross_gas" >&5
12517 echo "${ECHO_T}$cross_gas" >&6
12519 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12520 # for constant arguments. Useless!
12521 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12522 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12523 if test "${ac_cv_working_alloca_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <alloca.h>
12536 char *p = (char *) alloca (2 * sizeof (int));
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_working_alloca_h=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_working_alloca_h=no
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12573 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12574 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12575 if test $ac_cv_working_alloca_h = yes; then
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_ALLOCA_H 1
12583 echo "$as_me:$LINENO: checking for alloca" >&5
12584 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12585 if test "${ac_cv_func_alloca_works+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 # define alloca __builtin_alloca
12598 # include <malloc.h>
12599 # define alloca _alloca
12602 # include <alloca.h>
12607 # ifndef alloca /* predefined by HP cc +Olibcalls */
12618 char *p = (char *) alloca (1);
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_func_alloca_works=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_func_alloca_works=no
12652 rm -f conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12656 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12658 if test $ac_cv_func_alloca_works = yes; then
12660 cat >>confdefs.h <<\_ACEOF
12661 #define HAVE_ALLOCA 1
12665 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12666 # that cause trouble. Some versions do not even contain alloca or
12667 # contain a buggy version. If you still want to use their alloca,
12668 # use ar to extract alloca.o from them instead of compiling alloca.c.
12670 ALLOCA=alloca.$ac_objext
12672 cat >>confdefs.h <<\_ACEOF
12677 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12678 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12679 if test "${ac_cv_os_cray+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 #if defined(CRAY) && ! defined(CRAY2)
12695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12696 $EGREP "webecray" >/dev/null 2>&1; then
12704 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12705 echo "${ECHO_T}$ac_cv_os_cray" >&6
12706 if test $ac_cv_os_cray = yes; then
12707 for ac_func in _getb67 GETB67 getb67; do
12708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709 echo "$as_me:$LINENO: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711 if eval "test \"\${$as_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12730 # include <limits.h>
12732 # include <assert.h>
12737 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12751 char (*f) () = $ac_func;
12760 return f != $ac_func;
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12769 grep -v '^ *+' conftest.er1 >conftest.err
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 eval "$as_ac_var=no"
12794 rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799 if test `eval echo '${'$as_ac_var'}'` = yes; then
12801 cat >>confdefs.h <<_ACEOF
12802 #define CRAY_STACKSEG_END $ac_func
12811 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12813 if test "${ac_cv_c_stack_direction+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 if test "$cross_compiling" = yes; then
12817 ac_cv_c_stack_direction=0
12819 cat >conftest.$ac_ext <<_ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12826 find_stack_direction ()
12828 static char *addr = 0;
12833 return find_stack_direction ();
12836 return (&dummy > addr) ? 1 : -1;
12842 exit (find_stack_direction () < 0);
12845 rm -f conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_c_stack_direction=1
12858 echo "$as_me: program exited with status $ac_status" >&5
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ( exit $ac_status )
12863 ac_cv_c_stack_direction=-1
12865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12869 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12871 cat >>confdefs.h <<_ACEOF
12872 #define STACK_DIRECTION $ac_cv_c_stack_direction
12878 echo "$as_me:$LINENO: checking for inline" >&5
12879 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12880 if test "${ac_cv_c_inline+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 for ac_kw in inline __inline__ __inline; do
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #ifndef __cplusplus
12893 static $ac_kw foo_t static_foo () {return 0; }
12894 $ac_kw foo_t foo () {return 0; }
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 ac_cv_c_inline=$ac_kw; break
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12931 echo "${ECHO_T}$ac_cv_c_inline" >&6
12934 case $ac_cv_c_inline in
12937 case $ac_cv_c_inline in
12939 *) ac_val=$ac_cv_c_inline;;
12941 cat >>confdefs.h <<_ACEOF
12942 #ifndef __cplusplus
12943 #define inline $ac_val
12950 # VMS doesn't have unlink.
12953 for ac_func in unlink remove
12955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 echo "$as_me:$LINENO: checking for $ac_func" >&5
12957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_var+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12969 #define $ac_func innocuous_$ac_func
12971 /* System header to define __stub macros and hopefully few prototypes,
12972 which can conflict with char $ac_func (); below.
12973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 <limits.h> exists even on freestanding compilers. */
12977 # include <limits.h>
12979 # include <assert.h>
12984 /* Override any gcc2 internal prototype to avoid an error. */
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12998 char (*f) () = $ac_func;
13007 return f != $ac_func;
13012 rm -f conftest.$ac_objext conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014 (eval $ac_link) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 eval "$as_ac_var=no"
13041 rm -f conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13046 if test `eval echo '${'$as_ac_var'}'` = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13055 # Some systems don't have sbrk().
13057 for ac_func in sbrk
13059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13060 echo "$as_me:$LINENO: checking for $ac_func" >&5
13061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062 if eval "test \"\${$as_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13073 #define $ac_func innocuous_$ac_func
13075 /* System header to define __stub macros and hopefully few prototypes,
13076 which can conflict with char $ac_func (); below.
13077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13078 <limits.h> exists even on freestanding compilers. */
13081 # include <limits.h>
13083 # include <assert.h>
13088 /* Override any gcc2 internal prototype to avoid an error. */
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13096 /* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13102 char (*f) () = $ac_func;
13111 return f != $ac_func;
13116 rm -f conftest.$ac_objext conftest$ac_exeext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13118 (eval $ac_link) 2>conftest.er1
13120 grep -v '^ *+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -z "$ac_c_werror_flag"
13126 || test ! -s conftest.err'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest$ac_exeext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 eval "$as_ac_var=yes"
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 eval "$as_ac_var=no"
13145 rm -f conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13150 if test `eval echo '${'$as_ac_var'}'` = yes; then
13151 cat >>confdefs.h <<_ACEOF
13152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13159 # do we need the math library?
13160 case "${need_libm}" in
13164 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13165 # These system don't have libm, or don't need it
13168 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13169 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13170 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 ac_check_lib_save_LIBS=$LIBS
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 /* Override any gcc2 internal prototype to avoid an error. */
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char _mwvalidcheckl ();
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_lib_mw__mwvalidcheckl=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_cv_lib_mw__mwvalidcheckl=no
13226 rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13230 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13231 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13232 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
13236 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13237 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13238 if test "${ac_cv_lib_m_cos+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 ac_check_lib_save_LIBS=$LIBS
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13250 /* Override any gcc2 internal prototype to avoid an error. */
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_lib_m_cos=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13294 rm -f conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13298 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13299 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13300 if test $ac_cv_lib_m_cos = yes; then
13306 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13307 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13308 if test "${ac_cv_lib_m_cos+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 ac_check_lib_save_LIBS=$LIBS
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 /* Override any gcc2 internal prototype to avoid an error. */
13324 /* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13337 (eval $ac_link) 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_lib_m_cos=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13364 rm -f conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13369 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13370 if test $ac_cv_lib_m_cos = yes; then
13382 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13383 # enough, but on some of those systems, the assert macro relies on requoting
13384 # working properly!
13385 echo "$as_me:$LINENO: checking for working assert macro" >&5
13386 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13387 if test "${gas_cv_assert_ok+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <assert.h>
13402 /* check for requoting problems */
13403 static int a, b, c, d;
13405 assert (!strcmp(s, "foo bar baz quux"));
13406 /* check for newline handling */
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 gas_cv_assert_ok=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 gas_cv_assert_ok=no
13443 rm -f conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13446 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13447 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13448 test $gas_cv_assert_ok = yes ||
13449 cat >>confdefs.h <<\_ACEOF
13450 #define BROKEN_ASSERT 1
13455 # On some systems, the system header files may not declare malloc, realloc,
13456 # and free. There are places where gas needs these functions to have been
13457 # declared -- such as when taking their addresses.
13459 #ifdef HAVE_MEMORY_H
13460 #include <memory.h>
13462 #ifdef HAVE_STRING_H
13463 #include <string.h>
13465 #ifdef HAVE_STRINGS_H
13466 #include <strings.h>
13469 #ifdef HAVE_STDLIB_H
13470 #include <stdlib.h>
13472 #ifdef HAVE_UNISTD_H
13473 #include <unistd.h>
13477 # Does errno.h declare errno, or do we have to add a separate declaration
13480 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13481 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13482 if test "${gas_cv_decl_needed_errno+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #ifdef HAVE_ERRNO_H
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 gas_cv_decl_needed_errno=no
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 gas_cv_decl_needed_errno=yes
13537 rm -f conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13540 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13541 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13542 if test $gas_cv_decl_needed_errno = yes; then
13544 cat >>confdefs.h <<\_ACEOF
13545 #define NEED_DECLARATION_ERRNO 1
13551 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13552 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13553 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <unistd.h>
13566 extern int getopt (int, char *const*, const char *);
13571 rm -f conftest.$ac_objext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 gas_cv_decl_getopt_unistd_h=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 gas_cv_decl_getopt_unistd_h=no
13600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13604 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13605 if test $gas_cv_decl_getopt_unistd_h = yes; then
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_DECL_GETOPT 1
13614 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13615 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13616 if test "${gas_cv_decl_needed_environ+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>conftest.er1
13642 grep -v '^ *+' conftest.er1 >conftest.err
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 gas_cv_decl_needed_environ=no
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 gas_cv_decl_needed_environ=yes
13667 rm -f conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13671 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13672 if test $gas_cv_decl_needed_environ = yes; then
13674 cat >>confdefs.h <<\_ACEOF
13675 #define NEED_DECLARATION_ENVIRON 1
13681 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13682 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13683 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13697 typedef int (*f)(int);
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 gas_cv_decl_needed_ffs=no
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 gas_cv_decl_needed_ffs=yes
13734 rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13737 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13738 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13739 if test $gas_cv_decl_needed_ffs = yes; then
13741 cat >>confdefs.h <<\_ACEOF
13742 #define NEED_DECLARATION_FFS 1
13748 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13749 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13750 if test "${gas_cv_decl_needed_free+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13764 typedef void (*f)();
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 gas_cv_decl_needed_free=no
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 gas_cv_decl_needed_free=yes
13801 rm -f conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13805 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13806 if test $gas_cv_decl_needed_free = yes; then
13808 cat >>confdefs.h <<\_ACEOF
13809 #define NEED_DECLARATION_FREE 1
13815 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13816 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13817 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 cat >conftest.$ac_ext <<_ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13831 typedef char *(*f)();
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 gas_cv_decl_needed_malloc=no
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 gas_cv_decl_needed_malloc=yes
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13871 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13872 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13873 if test $gas_cv_decl_needed_malloc = yes; then
13875 cat >>confdefs.h <<\_ACEOF
13876 #define NEED_DECLARATION_MALLOC 1
13882 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13883 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13884 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13898 typedef char *(*f)();
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13908 (eval $ac_link) 2>conftest.er1
13910 grep -v '^ *+' conftest.er1 >conftest.err
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag"
13916 || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 gas_cv_decl_needed_sbrk=no
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 gas_cv_decl_needed_sbrk=yes
13935 rm -f conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13938 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13939 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13940 if test $gas_cv_decl_needed_sbrk = yes; then
13942 cat >>confdefs.h <<\_ACEOF
13943 #define NEED_DECLARATION_SBRK 1
13949 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13950 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13951 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13965 typedef char *(*f)();
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13975 (eval $ac_link) 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -z "$ac_c_werror_flag"
13983 || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 gas_cv_decl_needed_strstr=no
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 gas_cv_decl_needed_strstr=yes
14002 rm -f conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14006 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14007 if test $gas_cv_decl_needed_strstr = yes; then
14009 cat >>confdefs.h <<\_ACEOF
14010 #define NEED_DECLARATION_STRSTR 1
14016 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14017 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14018 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 $ac_includes_default
14032 char *p = (char *) vsnprintf;
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14043 grep -v '^ *+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_have_decl_vsnprintf=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_have_decl_vsnprintf=no
14068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14071 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14072 if test $ac_cv_have_decl_vsnprintf = yes; then
14074 cat >>confdefs.h <<_ACEOF
14075 #define HAVE_DECL_VSNPRINTF 1
14080 cat >>confdefs.h <<_ACEOF
14081 #define HAVE_DECL_VSNPRINTF 0
14091 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14093 cat >>confdefs.h <<\_ACEOF
14094 #define USE_BINARY_FOPEN 1
14105 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14107 ac_config_commands="$ac_config_commands default"
14110 cat >confcache <<\_ACEOF
14111 # This file is a shell script that caches the results of configure
14112 # tests run on this system so they can be shared between configure
14113 # scripts and configure runs, see configure's option --config-cache.
14114 # It is not useful on other systems. If it contains results you don't
14115 # want to keep, you may remove or edit it.
14117 # config.status only pays attention to the cache file if you give it
14118 # the --recheck option to rerun configure.
14120 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14121 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14122 # following values.
14126 # The following way of writing the cache mishandles newlines in values,
14127 # but we know of no workaround that is simple, portable, and efficient.
14128 # So, don't put newlines in cache variables' values.
14129 # Ultrix sh set writes to stderr and can't be redirected directly,
14130 # and sets the high bit in the cache file unless we assign to the vars.
14133 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14135 # `set' does not quote correctly, so add quotes (double-quote
14136 # substitution turns \\\\ into \\, and sed turns \\ into \).
14139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14142 # `set' quotes correctly as required by POSIX, so do not add quotes.
14144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14153 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14155 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14156 if test -w $cache_file; then
14157 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14158 cat confcache >$cache_file
14160 echo "not updating unwritable cache $cache_file"
14165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14166 # Let make expand exec_prefix.
14167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14169 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14170 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14171 # trailing colons and then remove the whole line if VPATH becomes empty
14172 # (actually we leave an empty line to preserve line numbers).
14173 if test "x$srcdir" = x.; then
14174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14175 s/:*\$(srcdir):*/:/;
14176 s/:*\${srcdir}:*/:/;
14178 s/^\([^=]*=[ ]*\):*/\1/;
14184 DEFS=-DHAVE_CONFIG_H
14188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
14190 ac_i=`echo "$ac_i" |
14191 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14193 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14194 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14196 LIBOBJS=$ac_libobjs
14198 LTLIBOBJS=$ac_ltlibobjs
14201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14202 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14203 Usually this means the macro was only invoked conditionally." >&5
14204 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14205 Usually this means the macro was only invoked conditionally." >&2;}
14206 { (exit 1); exit 1; }; }
14208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14209 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14210 Usually this means the macro was only invoked conditionally." >&5
14211 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14212 Usually this means the macro was only invoked conditionally." >&2;}
14213 { (exit 1); exit 1; }; }
14215 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14216 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14217 Usually this means the macro was only invoked conditionally." >&5
14218 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14219 Usually this means the macro was only invoked conditionally." >&2;}
14220 { (exit 1); exit 1; }; }
14222 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14223 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14224 Usually this means the macro was only invoked conditionally." >&5
14225 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14226 Usually this means the macro was only invoked conditionally." >&2;}
14227 { (exit 1); exit 1; }; }
14230 : ${CONFIG_STATUS=./config.status}
14231 ac_clean_files_save=$ac_clean_files
14232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14235 cat >$CONFIG_STATUS <<_ACEOF
14237 # Generated by $as_me.
14238 # Run this file to recreate the current configuration.
14239 # Compiler output produced by configure, useful for debugging
14240 # configure, is in config.log if it exists.
14243 ac_cs_recheck=false
14245 SHELL=\${CONFIG_SHELL-$SHELL}
14248 cat >>$CONFIG_STATUS <<\_ACEOF
14249 ## --------------------- ##
14250 ## M4sh Initialization. ##
14251 ## --------------------- ##
14253 # Be Bourne compatible
14254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14258 # is contrary to our usage. Disable this feature.
14259 alias -g '${1+"$@"}'='"$@"'
14260 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14263 DUALCASE=1; export DUALCASE # for MKS sh
14265 # Support unset when possible.
14266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14273 # Work around bugs in pre-3.0 UWIN ksh.
14274 $as_unset ENV MAIL MAILPATH
14281 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14282 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14283 LC_TELEPHONE LC_TIME
14285 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14286 eval $as_var=C; export $as_var
14292 # Required to use basename.
14293 if expr a : '\(a\)' >/dev/null 2>&1; then
14299 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14300 as_basename=basename
14306 # Name of the executable.
14307 as_me=`$as_basename "$0" ||
14308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14309 X"$0" : 'X\(//\)$' \| \
14310 X"$0" : 'X\(/\)$' \| \
14311 . : '\(.\)' 2>/dev/null ||
14313 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14314 /^X\/\(\/\/\)$/{ s//\1/; q; }
14315 /^X\/\(\/\).*/{ s//\1/; q; }
14319 # PATH needs CR, and LINENO needs CR and PATH.
14320 # Avoid depending upon Character Ranges.
14321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14324 as_cr_digits='0123456789'
14325 as_cr_alnum=$as_cr_Letters$as_cr_digits
14327 # The user is always right.
14328 if test "${PATH_SEPARATOR+set}" != set; then
14329 echo "#! /bin/sh" >conf$$.sh
14330 echo "exit 0" >>conf$$.sh
14332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14341 as_lineno_1=$LINENO
14342 as_lineno_2=$LINENO
14343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14344 test "x$as_lineno_1" != "x$as_lineno_2" &&
14345 test "x$as_lineno_3" = "x$as_lineno_2" || {
14346 # Find who we are. Look in the path if we contain no path at all
14349 *[\\/]* ) as_myself=$0 ;;
14350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14354 test -z "$as_dir" && as_dir=.
14355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14360 # We did not find ourselves, most probably we were run as `sh COMMAND'
14361 # in which case we are not to be found in the path.
14362 if test "x$as_myself" = x; then
14365 if test ! -f "$as_myself"; then
14366 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14367 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14368 { (exit 1); exit 1; }; }
14370 case $CONFIG_SHELL in
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14376 test -z "$as_dir" && as_dir=.
14377 for as_base in sh bash ksh sh5; do
14380 if ("$as_dir/$as_base" -c '
14381 as_lineno_1=$LINENO
14382 as_lineno_2=$LINENO
14383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14384 test "x$as_lineno_1" != "x$as_lineno_2" &&
14385 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14386 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14387 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14388 CONFIG_SHELL=$as_dir/$as_base
14389 export CONFIG_SHELL
14390 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14399 # uniformly replaced by the line number. The first 'sed' inserts a
14400 # line-number line before each line; the second 'sed' does the real
14401 # work. The second script uses 'N' to pair each line-number line
14402 # with the numbered line, and appends trailing '-' during
14403 # substitution so that $LINENO is not a special case at line end.
14404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14405 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14406 sed '=' <$as_myself |
14411 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14414 s,^['$as_cr_digits']*\n,,
14415 ' >$as_me.lineno &&
14416 chmod +x $as_me.lineno ||
14417 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14418 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14419 { (exit 1); exit 1; }; }
14421 # Don't try to exec as it changes $[0], causing all sort of problems
14422 # (the dirname of $[0] is not the place where we might find the
14423 # original and so on. Autoconf is especially sensible to this).
14425 # Exit status is that of the last command.
14430 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14431 *c*,-n*) ECHO_N= ECHO_C='
14433 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14434 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14437 if expr a : '\(a\)' >/dev/null 2>&1; then
14443 rm -f conf$$ conf$$.exe conf$$.file
14445 if ln -s conf$$.file conf$$ 2>/dev/null; then
14446 # We could just check for DJGPP; but this test a) works b) is more generic
14447 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14448 if test -f conf$$.exe; then
14449 # Don't use ln at all; we don't have any links
14454 elif ln conf$$.file conf$$ 2>/dev/null; then
14459 rm -f conf$$ conf$$.exe conf$$.file
14461 if mkdir -p . 2>/dev/null; then
14464 test -d ./-p && rmdir ./-p
14468 as_executable_p="test -f"
14470 # Sed expression to map a string onto a valid CPP name.
14471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14473 # Sed expression to map a string onto a valid variable name.
14474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14478 # We need space, tab and new line, in precisely that order.
14488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14489 # report actual input values of CONFIG_FILES etc. instead of their
14490 # values after options handling. Logging --version etc. is OK.
14494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14495 ## Running $as_me. ##
14500 This file was extended by $as_me, which was
14501 generated by GNU Autoconf 2.59. Invocation command line was
14503 CONFIG_FILES = $CONFIG_FILES
14504 CONFIG_HEADERS = $CONFIG_HEADERS
14505 CONFIG_LINKS = $CONFIG_LINKS
14506 CONFIG_COMMANDS = $CONFIG_COMMANDS
14510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14514 # Files that config.status was made for.
14515 if test -n "$ac_config_files"; then
14516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14519 if test -n "$ac_config_headers"; then
14520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14523 if test -n "$ac_config_links"; then
14524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14527 if test -n "$ac_config_commands"; then
14528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14531 cat >>$CONFIG_STATUS <<\_ACEOF
14534 \`$as_me' instantiates files from templates according to the
14535 current configuration.
14537 Usage: $0 [OPTIONS] [FILE]...
14539 -h, --help print this help, then exit
14540 -V, --version print version number, then exit
14541 -q, --quiet do not print progress messages
14542 -d, --debug don't remove temporary files
14543 --recheck update $as_me by reconfiguring in the same conditions
14544 --file=FILE[:TEMPLATE]
14545 instantiate the configuration file FILE
14546 --header=FILE[:TEMPLATE]
14547 instantiate the configuration header FILE
14549 Configuration files:
14552 Configuration headers:
14555 Configuration commands:
14558 Report bugs to <bug-autoconf@gnu.org>."
14561 cat >>$CONFIG_STATUS <<_ACEOF
14564 configured by $0, generated by GNU Autoconf 2.59,
14565 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14567 Copyright (C) 2003 Free Software Foundation, Inc.
14568 This config.status script is free software; the Free Software Foundation
14569 gives unlimited permission to copy, distribute and modify it."
14574 cat >>$CONFIG_STATUS <<\_ACEOF
14575 # If no file are specified by the user, then we need to provide default
14576 # value. By we need to know if files were specified by the user.
14582 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14583 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14591 *) # This is not an option, so the user has probably given explicit
14594 ac_need_defaults=false;;
14598 # Handling of the options.
14600 cat >>$CONFIG_STATUS <<\_ACEOF
14601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14603 --version | --vers* | -V )
14604 echo "$ac_cs_version"; exit 0 ;;
14606 # Conflict between --help and --header
14607 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14608 Try \`$0 --help' for more information." >&5
14609 echo "$as_me: error: ambiguous option: $1
14610 Try \`$0 --help' for more information." >&2;}
14611 { (exit 1); exit 1; }; };;
14612 --help | --hel | -h )
14613 echo "$ac_cs_usage"; exit 0 ;;
14614 --debug | --d* | -d )
14616 --file | --fil | --fi | --f )
14618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14619 ac_need_defaults=false;;
14620 --header | --heade | --head | --hea )
14622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14623 ac_need_defaults=false;;
14624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14628 # This is an error.
14629 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14630 Try \`$0 --help' for more information." >&5
14631 echo "$as_me: error: unrecognized option: $1
14632 Try \`$0 --help' for more information." >&2;}
14633 { (exit 1); exit 1; }; } ;;
14635 *) ac_config_targets="$ac_config_targets $1" ;;
14641 ac_configure_extra_args=
14643 if $ac_cs_silent; then
14645 ac_configure_extra_args="$ac_configure_extra_args --silent"
14649 cat >>$CONFIG_STATUS <<_ACEOF
14650 if \$ac_cs_recheck; then
14651 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14652 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14657 cat >>$CONFIG_STATUS <<_ACEOF
14659 # INIT-COMMANDS section.
14662 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14665 # The HP-UX ksh and POSIX shell print the target directory to stdout
14666 # if CDPATH is set.
14667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14669 sed_quote_subst='$sed_quote_subst'
14670 double_quote_subst='$double_quote_subst'
14671 delay_variable_subst='$delay_variable_subst'
14672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14675 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14676 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14677 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14678 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14679 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14680 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14681 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14682 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14683 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14684 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14685 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14686 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14687 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14688 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14690 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14691 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14692 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14693 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14694 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14695 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14696 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14697 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14698 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14699 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14715 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"`'
14716 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14717 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14718 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14719 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14720 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14721 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14722 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14723 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14724 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14725 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14726 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14727 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14728 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14730 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14731 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14732 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14734 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14735 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14741 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14742 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14744 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14745 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14746 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14747 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14748 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14749 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14750 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14751 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14752 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14753 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14754 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14755 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14756 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14757 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14759 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14760 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14761 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14762 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14763 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14764 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14765 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14767 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14768 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14771 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14774 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14775 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14776 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14778 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14779 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14780 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14781 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14782 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14785 LTCFLAGS='$LTCFLAGS'
14786 compiler='$compiler_DEFAULT'
14788 # Quote evaled strings.
14799 deplibs_check_method \
14808 lt_cv_sys_global_symbol_pipe \
14809 lt_cv_sys_global_symbol_to_cdecl \
14810 lt_cv_sys_global_symbol_to_c_name_address \
14813 lt_prog_compiler_no_builtin_flag \
14814 lt_prog_compiler_wl \
14815 lt_prog_compiler_pic \
14816 lt_prog_compiler_static \
14817 lt_cv_prog_compiler_c_o \
14820 export_dynamic_flag_spec \
14821 whole_archive_flag_spec \
14822 compiler_needs_object \
14824 allow_undefined_flag \
14825 no_undefined_flag \
14826 hardcode_libdir_flag_spec \
14827 hardcode_libdir_flag_spec_ld \
14828 hardcode_libdir_separator \
14833 variables_saved_for_relink \
14835 library_names_spec \
14840 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14841 *[\\\\\\\`\\"\\\$]*)
14842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14850 # Double-quote double-evaled strings.
14851 for var in reload_cmds \
14852 old_postinstall_cmds \
14853 old_postuninstall_cmds \
14855 extract_expsyms_cmds \
14856 old_archive_from_new_cmds \
14857 old_archive_from_expsyms_cmds \
14859 archive_expsym_cmds \
14861 module_expsym_cmds \
14862 export_symbols_cmds \
14865 postuninstall_cmds \
14867 sys_lib_search_path_spec \
14868 sys_lib_dlsearch_path_spec; do
14869 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14870 *[\\\\\\\`\\"\\\$]*)
14871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14879 # Fix-up fallback echo if it was mangled by the above quoting rules.
14881 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14885 ac_aux_dir='$ac_aux_dir'
14886 xsi_shell='$xsi_shell'
14887 lt_shell_append='$lt_shell_append'
14889 # See if we are running on zsh, and set the options which allow our
14890 # commands through without removal of \ escapes INIT.
14891 if test -n "\${ZSH_VERSION+set}" ; then
14892 setopt NO_GLOB_SUBST
14898 TIMESTAMP='$TIMESTAMP'
14904 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14905 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14907 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14908 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14909 LINGUAS="${LINGUAS-%UNSET%}"
14911 target_cpu_type=${target_cpu_type}
14912 cgen_cpu_prefix=${cgen_cpu_prefix}
14913 obj_format=${obj_format}
14920 cat >>$CONFIG_STATUS <<\_ACEOF
14921 for ac_config_target in $ac_config_targets
14923 case "$ac_config_target" in
14924 # Handling of arguments.
14925 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14926 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14927 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14928 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14929 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14930 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14931 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14932 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14933 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14934 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14937 { (exit 1); exit 1; }; };;
14941 # If the user did not use the arguments to specify the items to instantiate,
14942 # then the envvar interface is used. Set only those that are not.
14943 # We use the long form for the default assignment because of an extremely
14944 # bizarre bug on SunOS 4.1.3.
14945 if $ac_need_defaults; then
14946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14951 # Have a temporary directory for convenience. Make it in the build tree
14952 # simply because there is no reason to put it here, and in addition,
14953 # creating and moving files from /tmp can sometimes cause problems.
14954 # Create a temporary directory, and hook for its removal unless debugging.
14957 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14958 trap '{ (exit 1); exit 1; }' 1 2 13 15
14961 # Create a (secure) tmp directory for tmp files.
14964 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14965 test -n "$tmp" && test -d "$tmp"
14968 tmp=./confstat$$-$RANDOM
14969 (umask 077 && mkdir $tmp)
14972 echo "$me: cannot create a temporary directory in ." >&2
14973 { (exit 1); exit 1; }
14978 cat >>$CONFIG_STATUS <<_ACEOF
14981 # CONFIG_FILES section.
14984 # No need to generate the scripts if there are no CONFIG_FILES.
14985 # This happens for instance when ./config.status config.h
14986 if test -n "\$CONFIG_FILES"; then
14987 # Protect against being on the right side of a sed subst in config.status.
14988 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14989 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14990 s,@SHELL@,$SHELL,;t t
14991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14992 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14993 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14994 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14995 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14996 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14997 s,@exec_prefix@,$exec_prefix,;t t
14998 s,@prefix@,$prefix,;t t
14999 s,@program_transform_name@,$program_transform_name,;t t
15000 s,@bindir@,$bindir,;t t
15001 s,@sbindir@,$sbindir,;t t
15002 s,@libexecdir@,$libexecdir,;t t
15003 s,@datadir@,$datadir,;t t
15004 s,@sysconfdir@,$sysconfdir,;t t
15005 s,@sharedstatedir@,$sharedstatedir,;t t
15006 s,@localstatedir@,$localstatedir,;t t
15007 s,@libdir@,$libdir,;t t
15008 s,@includedir@,$includedir,;t t
15009 s,@oldincludedir@,$oldincludedir,;t t
15010 s,@infodir@,$infodir,;t t
15011 s,@mandir@,$mandir,;t t
15012 s,@build_alias@,$build_alias,;t t
15013 s,@host_alias@,$host_alias,;t t
15014 s,@target_alias@,$target_alias,;t t
15015 s,@DEFS@,$DEFS,;t t
15016 s,@ECHO_C@,$ECHO_C,;t t
15017 s,@ECHO_N@,$ECHO_N,;t t
15018 s,@ECHO_T@,$ECHO_T,;t t
15019 s,@LIBS@,$LIBS,;t t
15020 s,@build@,$build,;t t
15021 s,@build_cpu@,$build_cpu,;t t
15022 s,@build_vendor@,$build_vendor,;t t
15023 s,@build_os@,$build_os,;t t
15024 s,@host@,$host,;t t
15025 s,@host_cpu@,$host_cpu,;t t
15026 s,@host_vendor@,$host_vendor,;t t
15027 s,@host_os@,$host_os,;t t
15028 s,@target@,$target,;t t
15029 s,@target_cpu@,$target_cpu,;t t
15030 s,@target_vendor@,$target_vendor,;t t
15031 s,@target_os@,$target_os,;t t
15033 s,@CFLAGS@,$CFLAGS,;t t
15034 s,@LDFLAGS@,$LDFLAGS,;t t
15035 s,@CPPFLAGS@,$CPPFLAGS,;t t
15036 s,@ac_ct_CC@,$ac_ct_CC,;t t
15037 s,@EXEEXT@,$EXEEXT,;t t
15038 s,@OBJEXT@,$OBJEXT,;t t
15039 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15040 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15041 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15042 s,@CYGPATH_W@,$CYGPATH_W,;t t
15043 s,@PACKAGE@,$PACKAGE,;t t
15044 s,@VERSION@,$VERSION,;t t
15045 s,@ACLOCAL@,$ACLOCAL,;t t
15046 s,@AUTOCONF@,$AUTOCONF,;t t
15047 s,@AUTOMAKE@,$AUTOMAKE,;t t
15048 s,@AUTOHEADER@,$AUTOHEADER,;t t
15049 s,@MAKEINFO@,$MAKEINFO,;t t
15050 s,@install_sh@,$install_sh,;t t
15051 s,@STRIP@,$STRIP,;t t
15052 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15053 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15054 s,@mkdir_p@,$mkdir_p,;t t
15056 s,@SET_MAKE@,$SET_MAKE,;t t
15057 s,@am__leading_dot@,$am__leading_dot,;t t
15058 s,@AMTAR@,$AMTAR,;t t
15059 s,@am__tar@,$am__tar,;t t
15060 s,@am__untar@,$am__untar,;t t
15061 s,@DEPDIR@,$DEPDIR,;t t
15062 s,@am__include@,$am__include,;t t
15063 s,@am__quote@,$am__quote,;t t
15064 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15065 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15066 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15067 s,@CCDEPMODE@,$CCDEPMODE,;t t
15068 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15069 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15071 s,@EGREP@,$EGREP,;t t
15072 s,@LIBTOOL@,$LIBTOOL,;t t
15074 s,@FGREP@,$FGREP,;t t
15075 s,@GREP@,$GREP,;t t
15077 s,@DUMPBIN@,$DUMPBIN,;t t
15078 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15080 s,@LN_S@,$LN_S,;t t
15082 s,@ac_ct_AR@,$ac_ct_AR,;t t
15083 s,@RANLIB@,$RANLIB,;t t
15084 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15085 s,@lt_ECHO@,$lt_ECHO,;t t
15086 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15087 s,@NO_WERROR@,$NO_WERROR,;t t
15088 s,@GDBINIT@,$GDBINIT,;t t
15089 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15090 s,@extra_objects@,$extra_objects,;t t
15091 s,@target_cpu_type@,$target_cpu_type,;t t
15092 s,@obj_format@,$obj_format,;t t
15093 s,@te_file@,$te_file,;t t
15094 s,@install_tooldir@,$install_tooldir,;t t
15095 s,@atof@,$atof,;t t
15096 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
15097 s,@YACC@,$YACC,;t t
15099 s,@LEXLIB@,$LEXLIB,;t t
15100 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15101 s,@USE_NLS@,$USE_NLS,;t t
15102 s,@LIBINTL@,$LIBINTL,;t t
15103 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15104 s,@INCINTL@,$INCINTL,;t t
15105 s,@XGETTEXT@,$XGETTEXT,;t t
15106 s,@GMSGFMT@,$GMSGFMT,;t t
15107 s,@POSUB@,$POSUB,;t t
15108 s,@CATALOGS@,$CATALOGS,;t t
15109 s,@DATADIRNAME@,$DATADIRNAME,;t t
15110 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15111 s,@GENCAT@,$GENCAT,;t t
15112 s,@CATOBJEXT@,$CATOBJEXT,;t t
15113 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15114 s,@MSGFMT@,$MSGFMT,;t t
15115 s,@MSGMERGE@,$MSGMERGE,;t t
15116 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15117 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15118 s,@MAINT@,$MAINT,;t t
15119 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15120 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15121 s,@ALLOCA@,$ALLOCA,;t t
15122 s,@LIBM@,$LIBM,;t t
15123 s,@datarootdir@,$datarootdir,;t t
15124 s,@docdir@,$docdir,;t t
15125 s,@htmldir@,$htmldir,;t t
15126 s,@LIBOBJS@,$LIBOBJS,;t t
15127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15132 cat >>$CONFIG_STATUS <<\_ACEOF
15133 # Split the substitutions into bite-sized pieces for seds with
15134 # small command number limits, like on Digital OSF/1 and HP-UX.
15135 ac_max_sed_lines=48
15136 ac_sed_frag=1 # Number of current file.
15137 ac_beg=1 # First line for current file.
15138 ac_end=$ac_max_sed_lines # Line after last line for current file.
15141 while $ac_more_lines; do
15142 if test $ac_beg -gt 1; then
15143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15147 if test ! -s $tmp/subs.frag; then
15148 ac_more_lines=false
15150 # The purpose of the label and of the branching condition is to
15151 # speed up the sed processing (if there are no `@' at all, there
15152 # is no need to browse any of the substitutions).
15153 # These are the two extra sed commands mentioned above.
15155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15156 if test -z "$ac_sed_cmds"; then
15157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15161 ac_sed_frag=`expr $ac_sed_frag + 1`
15163 ac_end=`expr $ac_end + $ac_max_sed_lines`
15166 if test -z "$ac_sed_cmds"; then
15169 fi # test -n "$CONFIG_FILES"
15172 cat >>$CONFIG_STATUS <<\_ACEOF
15173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15176 - | *:- | *:-:* ) # input from stdin
15178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15182 * ) ac_file_in=$ac_file.in ;;
15185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15188 X"$ac_file" : 'X\(//\)[^/]' \| \
15189 X"$ac_file" : 'X\(//\)$' \| \
15190 X"$ac_file" : 'X\(/\)' \| \
15191 . : '\(.\)' 2>/dev/null ||
15193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15195 /^X\(\/\/\)$/{ s//\1/; q; }
15196 /^X\(\/\).*/{ s//\1/; q; }
15198 { if $as_mkdir_p; then
15203 while test ! -d "$as_dir"; do
15204 as_dirs="$as_dir $as_dirs"
15205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15207 X"$as_dir" : 'X\(//\)[^/]' \| \
15208 X"$as_dir" : 'X\(//\)$' \| \
15209 X"$as_dir" : 'X\(/\)' \| \
15210 . : '\(.\)' 2>/dev/null ||
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15214 /^X\(\/\/\)$/{ s//\1/; q; }
15215 /^X\(\/\).*/{ s//\1/; q; }
15218 test ! -n "$as_dirs" || mkdir $as_dirs
15219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15221 { (exit 1); exit 1; }; }; }
15225 if test "$ac_dir" != .; then
15226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15227 # A "../" for each directory in $ac_dir_suffix.
15228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15230 ac_dir_suffix= ac_top_builddir=
15234 .) # No --srcdir option. We are building in place.
15236 if test -z "$ac_top_builddir"; then
15239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15241 [\\/]* | ?:[\\/]* ) # Absolute path.
15242 ac_srcdir=$srcdir$ac_dir_suffix;
15243 ac_top_srcdir=$srcdir ;;
15244 *) # Relative path.
15245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15249 # Do not use `cd foo && pwd` to compute absolute paths, because
15250 # the directories may not exist.
15252 .) ac_abs_builddir="$ac_dir";;
15255 .) ac_abs_builddir=`pwd`;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15260 case $ac_abs_builddir in
15261 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15263 case ${ac_top_builddir}. in
15264 .) ac_abs_top_builddir=$ac_abs_builddir;;
15265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15269 case $ac_abs_builddir in
15270 .) ac_abs_srcdir=$ac_srcdir;;
15273 .) ac_abs_srcdir=$ac_abs_builddir;;
15274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15278 case $ac_abs_builddir in
15279 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15281 case $ac_top_srcdir in
15282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15294 if test x"$ac_file" != x-; then
15295 { echo "$as_me:$LINENO: creating $ac_file" >&5
15296 echo "$as_me: creating $ac_file" >&6;}
15299 # Let's still pretend it is `configure' which instantiates (i.e., don't
15300 # use $as_me), people would be surprised to read:
15301 # /* config.h. Generated by config.status. */
15302 if test x"$ac_file" = x-; then
15305 configure_input="$ac_file. "
15307 configure_input=$configure_input"Generated from `echo $ac_file_in |
15308 sed 's,.*/,,'` by configure."
15310 # First look for the input files in the build tree, otherwise in the
15312 ac_file_inputs=`IFS=:
15313 for f in $ac_file_in; do
15315 -) echo $tmp/stdin ;;
15317 # Absolute (can't be DOS-style, as IFS=:)
15318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15319 echo "$as_me: error: cannot find input file: $f" >&2;}
15320 { (exit 1); exit 1; }; }
15323 if test -f "$f"; then
15326 elif test -f "$srcdir/$f"; then
15331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15332 echo "$as_me: error: cannot find input file: $f" >&2;}
15333 { (exit 1); exit 1; }; }
15336 done` || { (exit 1); exit 1; }
15338 cat >>$CONFIG_STATUS <<_ACEOF
15342 cat >>$CONFIG_STATUS <<\_ACEOF
15344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15345 s,@configure_input@,$configure_input,;t t
15346 s,@srcdir@,$ac_srcdir,;t t
15347 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15348 s,@top_srcdir@,$ac_top_srcdir,;t t
15349 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15350 s,@builddir@,$ac_builddir,;t t
15351 s,@abs_builddir@,$ac_abs_builddir,;t t
15352 s,@top_builddir@,$ac_top_builddir,;t t
15353 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15354 s,@INSTALL@,$ac_INSTALL,;t t
15355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15357 if test x"$ac_file" != x-; then
15358 mv $tmp/out $ac_file
15366 cat >>$CONFIG_STATUS <<\_ACEOF
15369 # CONFIG_HEADER section.
15372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15375 # ac_d sets the value in "#define NAME VALUE" lines.
15376 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15377 ac_dB='[ ].*$,\1#\2'
15380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15381 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15382 ac_uB='$,\1#\2define\3'
15386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15389 - | *:- | *:-:* ) # input from stdin
15391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15395 * ) ac_file_in=$ac_file.in ;;
15398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15399 echo "$as_me: creating $ac_file" >&6;}
15401 # First look for the input files in the build tree, otherwise in the
15403 ac_file_inputs=`IFS=:
15404 for f in $ac_file_in; do
15406 -) echo $tmp/stdin ;;
15408 # Absolute (can't be DOS-style, as IFS=:)
15409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15410 echo "$as_me: error: cannot find input file: $f" >&2;}
15411 { (exit 1); exit 1; }; }
15412 # Do quote $f, to prevent DOS paths from being IFS'd.
15415 if test -f "$f"; then
15418 elif test -f "$srcdir/$f"; then
15423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15424 echo "$as_me: error: cannot find input file: $f" >&2;}
15425 { (exit 1); exit 1; }; }
15428 done` || { (exit 1); exit 1; }
15429 # Remove the trailing spaces.
15430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15435 # `conftest.undefs', that substitutes the proper values into
15436 # config.h.in to produce config.h. The first handles `#define'
15437 # templates, and the second `#undef' templates.
15438 # And first: Protect against being on the right side of a sed subst in
15439 # config.status. Protect against being in an unquoted here document
15440 # in config.status.
15441 rm -f conftest.defines conftest.undefs
15442 # Using a here document instead of a string reduces the quoting nightmare.
15443 # Putting comments in sed scripts is not portable.
15445 # `end' is used to avoid that the second main sed command (meant for
15446 # 0-ary CPP macros) applies to n-ary macro definitions.
15447 # See the Autoconf documentation for `clear'.
15448 cat >confdef2sed.sed <<\_ACEOF
15453 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15458 # If some macros were called several times there might be several times
15459 # the same #defines, which is useless. Nevertheless, we may not want to
15460 # sort them, since we want the *last* AC-DEFINE to be honored.
15461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15463 rm -f confdef2sed.sed
15465 # This sed command replaces #undef with comments. This is necessary, for
15466 # example, in the case of _POSIX_SOURCE, which is predefined and required
15467 # on some systems where configure will not decide to define it.
15468 cat >>conftest.undefs <<\_ACEOF
15469 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15472 # Break up conftest.defines because some shells have a limit on the size
15473 # of here documents, and old seds have small limits too (100 cmds).
15474 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15475 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15476 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15477 echo ' :' >>$CONFIG_STATUS
15478 rm -f conftest.tail
15479 while grep . conftest.defines >/dev/null
15481 # Write a limited-size here document to $tmp/defines.sed.
15482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15483 # Speed up: don't consider the non `#define' lines.
15484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15485 # Work around the forget-to-reset-the-flag bug.
15486 echo 't clr' >>$CONFIG_STATUS
15487 echo ': clr' >>$CONFIG_STATUS
15488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15492 mv $tmp/out $tmp/in
15494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15495 rm -f conftest.defines
15496 mv conftest.tail conftest.defines
15498 rm -f conftest.defines
15499 echo ' fi # grep' >>$CONFIG_STATUS
15500 echo >>$CONFIG_STATUS
15502 # Break up conftest.undefs because some shells have a limit on the size
15503 # of here documents, and old seds have small limits too (100 cmds).
15504 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15505 rm -f conftest.tail
15506 while grep . conftest.undefs >/dev/null
15508 # Write a limited-size here document to $tmp/undefs.sed.
15509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15510 # Speed up: don't consider the non `#undef'
15511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15512 # Work around the forget-to-reset-the-flag bug.
15513 echo 't clr' >>$CONFIG_STATUS
15514 echo ': clr' >>$CONFIG_STATUS
15515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15519 mv $tmp/out $tmp/in
15521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15522 rm -f conftest.undefs
15523 mv conftest.tail conftest.undefs
15525 rm -f conftest.undefs
15527 cat >>$CONFIG_STATUS <<\_ACEOF
15528 # Let's still pretend it is `configure' which instantiates (i.e., don't
15529 # use $as_me), people would be surprised to read:
15530 # /* config.h. Generated by config.status. */
15531 if test x"$ac_file" = x-; then
15532 echo "/* Generated by configure. */" >$tmp/config.h
15534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15536 cat $tmp/in >>$tmp/config.h
15538 if test x"$ac_file" != x-; then
15539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15541 echo "$as_me: $ac_file is unchanged" >&6;}
15543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545 X"$ac_file" : 'X\(//\)[^/]' \| \
15546 X"$ac_file" : 'X\(//\)$' \| \
15547 X"$ac_file" : 'X\(/\)' \| \
15548 . : '\(.\)' 2>/dev/null ||
15550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552 /^X\(\/\/\)$/{ s//\1/; q; }
15553 /^X\(\/\).*/{ s//\1/; q; }
15555 { if $as_mkdir_p; then
15560 while test ! -d "$as_dir"; do
15561 as_dirs="$as_dir $as_dirs"
15562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15564 X"$as_dir" : 'X\(//\)[^/]' \| \
15565 X"$as_dir" : 'X\(//\)$' \| \
15566 X"$as_dir" : 'X\(/\)' \| \
15567 . : '\(.\)' 2>/dev/null ||
15569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15571 /^X\(\/\/\)$/{ s//\1/; q; }
15572 /^X\(\/\).*/{ s//\1/; q; }
15575 test ! -n "$as_dirs" || mkdir $as_dirs
15576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15578 { (exit 1); exit 1; }; }; }
15581 mv $tmp/config.h $ac_file
15585 rm -f $tmp/config.h
15587 # Compute $ac_file's index in $config_headers.
15589 for _am_header in $config_headers :; do
15590 case $_am_header in
15591 $ac_file | $ac_file:* )
15594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15597 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15598 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15599 X$ac_file : 'X\(//\)[^/]' \| \
15600 X$ac_file : 'X\(//\)$' \| \
15601 X$ac_file : 'X\(/\)' \| \
15602 . : '\(.\)' 2>/dev/null ||
15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15606 /^X\(\/\/\)$/{ s//\1/; q; }
15607 /^X\(\/\).*/{ s//\1/; q; }
15608 s/.*/./; q'`/stamp-h$_am_stamp_count
15611 cat >>$CONFIG_STATUS <<\_ACEOF
15614 # CONFIG_COMMANDS section.
15616 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15620 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15621 X"$ac_dest" : 'X\(//\)[^/]' \| \
15622 X"$ac_dest" : 'X\(//\)$' \| \
15623 X"$ac_dest" : 'X\(/\)' \| \
15624 . : '\(.\)' 2>/dev/null ||
15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15628 /^X\(\/\/\)$/{ s//\1/; q; }
15629 /^X\(\/\).*/{ s//\1/; q; }
15631 { if $as_mkdir_p; then
15636 while test ! -d "$as_dir"; do
15637 as_dirs="$as_dir $as_dirs"
15638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15640 X"$as_dir" : 'X\(//\)[^/]' \| \
15641 X"$as_dir" : 'X\(//\)$' \| \
15642 X"$as_dir" : 'X\(/\)' \| \
15643 . : '\(.\)' 2>/dev/null ||
15645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15647 /^X\(\/\/\)$/{ s//\1/; q; }
15648 /^X\(\/\).*/{ s//\1/; q; }
15651 test ! -n "$as_dirs" || mkdir $as_dirs
15652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15654 { (exit 1); exit 1; }; }; }
15658 if test "$ac_dir" != .; then
15659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15660 # A "../" for each directory in $ac_dir_suffix.
15661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15663 ac_dir_suffix= ac_top_builddir=
15667 .) # No --srcdir option. We are building in place.
15669 if test -z "$ac_top_builddir"; then
15672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15674 [\\/]* | ?:[\\/]* ) # Absolute path.
15675 ac_srcdir=$srcdir$ac_dir_suffix;
15676 ac_top_srcdir=$srcdir ;;
15677 *) # Relative path.
15678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15682 # Do not use `cd foo && pwd` to compute absolute paths, because
15683 # the directories may not exist.
15685 .) ac_abs_builddir="$ac_dir";;
15688 .) ac_abs_builddir=`pwd`;;
15689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15693 case $ac_abs_builddir in
15694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15696 case ${ac_top_builddir}. in
15697 .) ac_abs_top_builddir=$ac_abs_builddir;;
15698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15702 case $ac_abs_builddir in
15703 .) ac_abs_srcdir=$ac_srcdir;;
15706 .) ac_abs_srcdir=$ac_abs_builddir;;
15707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15711 case $ac_abs_builddir in
15712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15714 case $ac_top_srcdir in
15715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15723 echo "$as_me: executing $ac_dest commands" >&6;}
15725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15726 # Strip MF so we end up with the name of the file.
15727 mf=`echo "$mf" | sed -e 's/:.*$//'`
15728 # Check whether this is an Automake generated Makefile or not.
15729 # We used to match only the files named `Makefile.in', but
15730 # some people rename them; so instead we look at the file content.
15731 # Grep'ing the first line is not enough: some people post-process
15732 # each Makefile.in and add a new line on top of each file to say so.
15733 # So let's grep whole file.
15734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15735 dirpart=`(dirname "$mf") 2>/dev/null ||
15736 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15737 X"$mf" : 'X\(//\)[^/]' \| \
15738 X"$mf" : 'X\(//\)$' \| \
15739 X"$mf" : 'X\(/\)' \| \
15740 . : '\(.\)' 2>/dev/null ||
15742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15744 /^X\(\/\/\)$/{ s//\1/; q; }
15745 /^X\(\/\).*/{ s//\1/; q; }
15750 # Extract the definition of DEPDIR, am__include, and am__quote
15751 # from the Makefile without running `make'.
15752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15753 test -z "$DEPDIR" && continue
15754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15755 test -z "am__include" && continue
15756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15757 # When using ansi2knr, U may be empty or an underscore; expand it
15758 U=`sed -n 's/^U = //p' < "$mf"`
15759 # Find all dependency output files, they are included files with
15760 # $(DEPDIR) in their names. We invoke sed twice because it is the
15761 # simplest approach to changing $(DEPDIR) to its actual value in the
15763 for file in `sed -n "
15764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15766 # Make sure the directory exists.
15767 test -f "$dirpart/$file" && continue
15768 fdir=`(dirname "$file") 2>/dev/null ||
15769 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770 X"$file" : 'X\(//\)[^/]' \| \
15771 X"$file" : 'X\(//\)$' \| \
15772 X"$file" : 'X\(/\)' \| \
15773 . : '\(.\)' 2>/dev/null ||
15775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15777 /^X\(\/\/\)$/{ s//\1/; q; }
15778 /^X\(\/\).*/{ s//\1/; q; }
15780 { if $as_mkdir_p; then
15781 mkdir -p $dirpart/$fdir
15783 as_dir=$dirpart/$fdir
15785 while test ! -d "$as_dir"; do
15786 as_dirs="$as_dir $as_dirs"
15787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| \
15792 . : '\(.\)' 2>/dev/null ||
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15796 /^X\(\/\/\)$/{ s//\1/; q; }
15797 /^X\(\/\).*/{ s//\1/; q; }
15800 test ! -n "$as_dirs" || mkdir $as_dirs
15801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15802 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15803 { (exit 1); exit 1; }; }; }
15805 # echo "creating $dirpart/$file"
15806 echo '# dummy' > "$dirpart/$file"
15812 # See if we are running on zsh, and set the options which allow our
15813 # commands through without removal of \ escapes.
15814 if test -n "${ZSH_VERSION+set}" ; then
15815 setopt NO_GLOB_SUBST
15818 cfgfile="${ofile}T"
15819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15822 cat <<_LT_EOF >> "$cfgfile"
15825 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15826 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15831 # 2006, 2007 Free Software Foundation, Inc.
15833 # This file is part of GNU Libtool:
15834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15836 # This program is free software; you can redistribute it and/or modify
15837 # it under the terms of the GNU General Public License as published by
15838 # the Free Software Foundation; either version 2 of the License, or
15839 # (at your option) any later version.
15841 # This program is distributed in the hope that it will be useful, but
15842 # WITHOUT ANY WARRANTY; without even the implied warranty of
15843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15844 # General Public License for more details.
15846 # You should have received a copy of the GNU General Public License
15847 # along with this program; if not, a copy can be downloaded from
15848 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15849 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15850 # MA 02110-1301, USA.
15852 # As a special exception to the GNU General Public License, if you
15853 # distribute this file as part of a program that contains a
15854 # configuration script generated by Autoconf, you may include it under
15855 # the same distribution terms that you use for the rest of that program.
15858 # The names of the tagged configurations supported by this script.
15861 # ### BEGIN LIBTOOL CONFIG
15863 # Which release of libtool.m4 was used?
15864 macro_version=$macro_version
15865 macro_revision=$macro_revision
15867 # Whether or not to build shared libraries.
15868 build_libtool_libs=$enable_shared
15870 # Whether or not to build static libraries.
15871 build_old_libs=$enable_static
15873 # What type of objects to build.
15876 # Whether or not to optimize for fast installation.
15877 fast_install=$enable_fast_install
15880 host_alias=$host_alias
15884 # The build system.
15885 build_alias=$build_alias
15889 # A sed program that does not truncate output.
15892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15893 Xsed="\$SED -e 1s/^X//"
15895 # A grep program that handles long lines.
15901 # A literal string matcher.
15904 # A BSD- or MS-compatible name lister.
15907 # Whether we need soft or hard links.
15910 # What is the maximum length of a command?
15911 max_cmd_len=$max_cmd_len
15913 # Object file suffix (normally "o").
15916 # Executable file suffix (normally "").
15919 # whether the shell understands "unset".
15922 # turn spaces into newlines.
15925 # turn newlines into spaces.
15928 # How to create reloadable object files.
15929 reload_flag=$lt_reload_flag
15930 reload_cmds=$lt_reload_cmds
15932 # Method to check whether dependent libraries are shared objects.
15933 deplibs_check_method=$lt_deplibs_check_method
15935 # Command to use when deplibs_check_method == "file_magic".
15936 file_magic_cmd=$lt_file_magic_cmd
15940 AR_FLAGS=$lt_AR_FLAGS
15942 # A symbol stripping program.
15945 # Commands used to install an old-style archive.
15947 old_postinstall_cmds=$lt_old_postinstall_cmds
15948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15953 # LTCC compiler flags.
15954 LTCFLAGS=$lt_CFLAGS
15956 # Take the output of nm and produce a listing of raw symbols and C names.
15957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15959 # Transform the output of nm in a proper C declaration.
15960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15962 # Transform the output of nm in a C name address pair.
15963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15965 # The name of the directory that contains temporary libtool files.
15968 # Shell to use when invoking shell scripts.
15971 # An echo program that does not interpret backslashes.
15974 # Used to examine libraries when file_magic_cmd begins with "file".
15975 MAGIC_CMD=$MAGIC_CMD
15977 # Must we lock files when doing compilation?
15978 need_locks=$lt_need_locks
15980 # Old archive suffix (normally "a").
15983 # Shared library suffix (normally ".so").
15984 shrext_cmds=$lt_shrext_cmds
15986 # The commands to extract the exported symbol list from a shared archive.
15987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at link time.
15991 variables_saved_for_relink=$lt_variables_saved_for_relink
15993 # Do we need the "lib" prefix for modules?
15994 need_lib_prefix=$need_lib_prefix
15996 # Do we need a version for libraries?
15997 need_version=$need_version
15999 # Library versioning type.
16000 version_type=$version_type
16002 # Shared library runtime path variable.
16003 runpath_var=$runpath_var
16005 # Shared library path variable.
16006 shlibpath_var=$shlibpath_var
16008 # Is shlibpath searched before the hard-coded library search path?
16009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16011 # Format of library name prefix.
16012 libname_spec=$lt_libname_spec
16014 # List of archive names. First name is the real one, the rest are links.
16015 # The last name is the one that the linker finds with -lNAME
16016 library_names_spec=$lt_library_names_spec
16018 # The coded name of the library, if different from the real name.
16019 soname_spec=$lt_soname_spec
16021 # Command to use after installation of a shared archive.
16022 postinstall_cmds=$lt_postinstall_cmds
16024 # Command to use after uninstallation of a shared archive.
16025 postuninstall_cmds=$lt_postuninstall_cmds
16027 # Commands used to finish a libtool library installation in a directory.
16028 finish_cmds=$lt_finish_cmds
16030 # As "finish_cmds", except a single script fragment to be evaled but
16032 finish_eval=$lt_finish_eval
16034 # Whether we should hardcode library paths into libraries.
16035 hardcode_into_libs=$hardcode_into_libs
16037 # Compile-time system search path for libraries.
16038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16040 # Run-time system search path for libraries.
16041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16043 # Whether dlopen is supported.
16044 dlopen_support=$enable_dlopen
16046 # Whether dlopen of programs is supported.
16047 dlopen_self=$enable_dlopen_self
16049 # Whether dlopen of statically linked programs is supported.
16050 dlopen_self_static=$enable_dlopen_self_static
16052 # Commands to strip libraries.
16053 old_striplib=$lt_old_striplib
16054 striplib=$lt_striplib
16057 # The linker used to build libraries.
16060 # Commands used to build an old-style archive.
16061 old_archive_cmds=$lt_old_archive_cmds
16063 # A language specific compiler.
16066 # Is the compiler the GNU compiler?
16069 # Compiler flag to turn off builtin functions.
16070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16072 # How to pass a linker flag through the compiler.
16073 wl=$lt_lt_prog_compiler_wl
16075 # Additional compiler flags for building library objects.
16076 pic_flag=$lt_lt_prog_compiler_pic
16078 # Compiler flag to prevent dynamic linking.
16079 link_static_flag=$lt_lt_prog_compiler_static
16081 # Does compiler simultaneously support -c and -o options?
16082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16084 # Whether or not to add -lc for building shared libraries.
16085 build_libtool_need_lc=$archive_cmds_need_lc
16087 # Whether or not to disallow shared libs when runtime libs are static.
16088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16090 # Compiler flag to allow reflexive dlopens.
16091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16093 # Compiler flag to generate shared objects directly from archives.
16094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16096 # Whether the compiler copes with passing no objects directly.
16097 compiler_needs_object=$lt_compiler_needs_object
16099 # Create an old-style archive from a shared archive.
16100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16102 # Create a temporary old-style archive to link instead of a shared archive.
16103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16105 # Commands used to build a shared archive.
16106 archive_cmds=$lt_archive_cmds
16107 archive_expsym_cmds=$lt_archive_expsym_cmds
16109 # Commands used to build a loadable module if different from building
16110 # a shared archive.
16111 module_cmds=$lt_module_cmds
16112 module_expsym_cmds=$lt_module_expsym_cmds
16114 # Whether we are building with GNU ld or not.
16115 with_gnu_ld=$lt_with_gnu_ld
16117 # Flag that allows shared libraries with undefined symbols to be built.
16118 allow_undefined_flag=$lt_allow_undefined_flag
16120 # Flag that enforces no undefined symbols.
16121 no_undefined_flag=$lt_no_undefined_flag
16123 # Flag to hardcode \$libdir into a binary during linking.
16124 # This must work even if \$libdir does not exist
16125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16127 # If ld is used when linking, flag to hardcode \$libdir into a binary
16128 # during linking. This must work even if \$libdir does not exist.
16129 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16131 # Whether we need a single "-rpath" flag with a separated argument.
16132 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16135 # DIR into the resulting binary.
16136 hardcode_direct=$hardcode_direct
16138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16139 # DIR into the resulting binary and the resulting library dependency is
16140 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16141 # library is relocated.
16142 hardcode_direct_absolute=$hardcode_direct_absolute
16144 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16145 # into the resulting binary.
16146 hardcode_minus_L=$hardcode_minus_L
16148 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16149 # into the resulting binary.
16150 hardcode_shlibpath_var=$hardcode_shlibpath_var
16152 # Set to "yes" if building a shared library automatically hardcodes DIR
16153 # into the library and all subsequent libraries and executables linked
16155 hardcode_automatic=$hardcode_automatic
16157 # Set to yes if linker adds runtime paths of dependent libraries
16158 # to runtime path list.
16159 inherit_rpath=$inherit_rpath
16161 # Whether libtool must link a program against all its dependency libraries.
16162 link_all_deplibs=$link_all_deplibs
16164 # Fix the shell variable \$srcfile for the compiler.
16165 fix_srcfile_path=$lt_fix_srcfile_path
16167 # Set to "yes" if exported symbols are required.
16168 always_export_symbols=$always_export_symbols
16170 # The commands to list exported symbols.
16171 export_symbols_cmds=$lt_export_symbols_cmds
16173 # Symbols that should not be listed in the preloaded symbols.
16174 exclude_expsyms=$lt_exclude_expsyms
16176 # Symbols that must always be exported.
16177 include_expsyms=$lt_include_expsyms
16179 # Commands necessary for linking programs (against libraries) with templates.
16180 prelink_cmds=$lt_prelink_cmds
16182 # Specify filename containing input files.
16183 file_list_spec=$lt_file_list_spec
16185 # How to hardcode a shared library path into an executable.
16186 hardcode_action=$hardcode_action
16188 # ### END LIBTOOL CONFIG
16194 cat <<\_LT_EOF >> "$cfgfile"
16195 # AIX sometimes has problems with the GCC collect2 program. For some
16196 # reason, if we set the COLLECT_NAMES environment variable, the problems
16197 # vanish in a puff of smoke.
16198 if test "X${COLLECT_NAMES+set}" != Xset; then
16200 export COLLECT_NAMES
16207 ltmain="$ac_aux_dir/ltmain.sh"
16210 # We use sed instead of cat because bash on DJGPP gets confused if
16211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16212 # text mode, it properly converts lines to CR/LF. This bash problem
16213 # is reportedly fixed, but why not run on old versions too?
16214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16215 || (rm -f "$cfgfile"; exit 1)
16219 cat << \_LT_EOF >> "$cfgfile"
16220 # func_dirname file append nondir_replacement
16221 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16222 # otherwise set result to NONDIR_REPLACEMENT.
16226 */*) func_dirname_result="${1%/*}${2}" ;;
16227 * ) func_dirname_result="${3}" ;;
16231 # func_basename file
16234 func_basename_result="${1##*/}"
16237 # func_stripname prefix suffix name
16238 # strip PREFIX and SUFFIX off of NAME.
16239 # PREFIX and SUFFIX must not contain globbing or regex special
16240 # characters, hashes, percent signs, but SUFFIX may contain a leading
16241 # dot (in which case that matches only a dot).
16244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16245 # positional parameters, so assign one to ordinary parameter first.
16246 func_stripname_result=${3}
16247 func_stripname_result=${func_stripname_result#"${1}"}
16248 func_stripname_result=${func_stripname_result%"${2}"}
16254 func_opt_split_opt=${1%%=*}
16255 func_opt_split_arg=${1#*=}
16262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16263 *) func_lo2o_result=${1} ;;
16268 *) # Bourne compatible functions.
16269 cat << \_LT_EOF >> "$cfgfile"
16270 # func_dirname file append nondir_replacement
16271 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16272 # otherwise set result to NONDIR_REPLACEMENT.
16275 # Extract subdirectory from the argument.
16276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16277 if test "X$func_dirname_result" = "X${1}"; then
16278 func_dirname_result="${3}"
16280 func_dirname_result="$func_dirname_result${2}"
16284 # func_basename file
16287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16290 # func_stripname prefix suffix name
16291 # strip PREFIX and SUFFIX off of NAME.
16292 # PREFIX and SUFFIX must not contain globbing or regex special
16293 # characters, hashes, percent signs, but SUFFIX may contain a leading
16294 # dot (in which case that matches only a dot).
16295 # func_strip_suffix prefix name
16299 .*) func_stripname_result=`$ECHO "X${3}" \
16300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16301 *) func_stripname_result=`$ECHO "X${3}" \
16302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16307 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16308 my_sed_long_arg='1s/^-[^=]*=//'
16313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16325 case $lt_shell_append in
16327 cat << \_LT_EOF >> "$cfgfile"
16329 # func_append var value
16330 # Append VALUE to the end of shell variable VAR.
16338 cat << \_LT_EOF >> "$cfgfile"
16340 # func_append var value
16341 # Append VALUE to the end of shell variable VAR.
16351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16352 || (rm -f "$cfgfile"; exit 1)
16354 mv -f "$cfgfile" "$ofile" ||
16355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16360 for ac_file in $CONFIG_FILES; do
16361 # Support "outfile[:infile[:infile...]]"
16363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16365 # PO directories have a Makefile.in generated from Makefile.in.in.
16366 case "$ac_file" in */Makefile.in)
16367 # Adjust a relative srcdir.
16368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16371 # In autoconf-2.13 it is called $ac_given_srcdir.
16372 # In autoconf-2.50 it is called $srcdir.
16373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16374 case "$ac_given_srcdir" in
16375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16376 /*) top_srcdir="$ac_given_srcdir" ;;
16377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16380 rm -f "$ac_dir/POTFILES"
16381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16383 POMAKEFILEDEPS="POTFILES.in"
16384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16385 # on $ac_dir but don't depend on user-specified configuration
16387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16388 # The LINGUAS file contains the set of available languages.
16389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16393 # Hide the ALL_LINGUAS assigment from automake.
16394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16397 # The set of available languages was given in configure.in.
16398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16400 case "$ac_given_srcdir" in
16402 *) srcdirpre='$(srcdir)/' ;;
16408 for lang in $ALL_LINGUAS; do
16409 POFILES="$POFILES $srcdirpre$lang.po"
16410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16415 # environment variable.
16417 if test -n "$ALL_LINGUAS"; then
16418 for presentlang in $ALL_LINGUAS; do
16420 if test "%UNSET%" != "$LINGUAS"; then
16421 desiredlanguages="$LINGUAS"
16423 desiredlanguages="$ALL_LINGUAS"
16425 for desiredlang in $desiredlanguages; do
16426 # Use the presentlang catalog if desiredlang is
16427 # a. equal to presentlang, or
16428 # b. a variant of presentlang (because in this case,
16429 # presentlang can be used as a fallback for messages
16430 # which are not translated in the desiredlang catalog).
16431 case "$desiredlang" in
16432 "$presentlang"*) useit=yes;;
16435 if test $useit = yes; then
16436 INST_LINGUAS="$INST_LINGUAS $presentlang"
16441 if test -n "$INST_LINGUAS"; then
16442 for lang in $INST_LINGUAS; do
16443 CATALOGS="$CATALOGS $lang.gmo"
16446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16447 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"
16448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16449 if test -f "$f"; then
16451 *.orig | *.bak | *~) ;;
16452 *) cat "$f" >> "$ac_dir/Makefile" ;;
16460 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16461 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16462 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16463 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16464 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16465 if test "x$cgen_cpu_prefix" != x ; then
16466 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16472 cat >>$CONFIG_STATUS <<\_ACEOF
16474 { (exit 0); exit 0; }
16476 chmod +x $CONFIG_STATUS
16477 ac_clean_files=$ac_clean_files_save
16480 # configure is writing to config.log, and then calls config.status.
16481 # config.status does its own redirection, appending to config.log.
16482 # Unfortunately, on DOS this fails, as config.log is still kept open
16483 # by configure, so config.status won't be able to write to it; its
16484 # output is simply discarded. So we exec the FD to /dev/null,
16485 # effectively closing config.log, so it can be properly (re)opened and
16486 # appended to by config.status. When coming back to configure, we
16487 # need to make the FD available again.
16488 if test "$no_create" != yes; then
16490 ac_config_status_args=
16491 test "$silent" = yes &&
16492 ac_config_status_args="$ac_config_status_args --quiet"
16494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16497 # would make configure fail if this is the last instruction.
16498 $ac_cs_success || { (exit 1); exit 1; }