Configury changes: update src repository (binutils, gdb, and rda) to use
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
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
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
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 |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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; }; }
177
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
42ecbf5e
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
42ecbf5e
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ar.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
20e95c23 312ac_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 LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME CPP EGREP ALLOCA NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
42ecbf5e
DJ
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
42ecbf5e 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
42ecbf5e
DJ
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
42ecbf5e 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
42ecbf5e 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
42ecbf5e 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
42ecbf5e 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
42ecbf5e 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
42ecbf5e 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
42ecbf5e 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
42ecbf5e 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
42ecbf5e
DJ
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
42ecbf5e 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
42ecbf5e 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
42ecbf5e 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
42ecbf5e 561 site=$ac_optarg ;;
252b5132
RH
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
42ecbf5e
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
42ecbf5e 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
42ecbf5e 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
42ecbf5e 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 624 x_libraries=$ac_optarg ;;
252b5132 625
42ecbf5e
DJ
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
42ecbf5e
DJ
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
42ecbf5e
DJ
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
42ecbf5e
DJ
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132
RH
656fi
657
42ecbf5e
DJ
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
252b5132 668
42ecbf5e
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
42ecbf5e
DJ
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
42ecbf5e
DJ
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
e5a52504 698
42ecbf5e
DJ
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
42ecbf5e
DJ
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
42ecbf5e
DJ
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
252b5132 773
42ecbf5e
DJ
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
42ecbf5e 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
42ecbf5e
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
42ecbf5e 788Defaults for the options are specified in brackets.
ac48eca1 789
42ecbf5e
DJ
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
ac48eca1 809
42ecbf5e
DJ
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
ac48eca1 814
42ecbf5e 815For better control, use the options below.
ac48eca1 816
42ecbf5e
DJ
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
ac48eca1 831
42ecbf5e 832 cat <<\_ACEOF
252b5132 833
42ecbf5e
DJ
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
42ecbf5e
DJ
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
42ecbf5e 846if test -n "$ac_init_help"; then
252b5132 847
42ecbf5e 848 cat <<\_ACEOF
252b5132 849
42ecbf5e
DJ
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
252b5132 872
42ecbf5e
DJ
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
e5a52504 881
42ecbf5e
DJ
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
252b5132
RH
886fi
887
42ecbf5e
DJ
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
252b5132 902
42ecbf5e
DJ
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 910 fi ;;
42ecbf5e
DJ
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
917esac
918
42ecbf5e
DJ
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
252b5132 929esac
42ecbf5e
DJ
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
d15b04bd 956esac
5d64ca4e 957
42ecbf5e
DJ
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
b7d4af3a 973 cd $ac_popdir
42ecbf5e
DJ
974 done
975fi
5d64ca4e 976
42ecbf5e
DJ
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
5d64ca4e 980
42ecbf5e
DJ
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
429cc0ae 991
42ecbf5e
DJ
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59. Invocation command line was
252b5132 994
42ecbf5e 995 $ $0 $@
e5a52504 996
42ecbf5e
DJ
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
e5a52504 1030
42ecbf5e 1031} >&5
ceae3e33 1032
42ecbf5e 1033cat >&5 <<_ACEOF
e5a52504 1034
42ecbf5e
DJ
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321ac_aux_dir=
1322for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1335 fi
1336done
1337if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1341fi
1342ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346# Make sure we can run config.sub.
1347$ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1351
1352echo "$as_me:$LINENO: checking build system type" >&5
1353echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356else
1357 ac_cv_build_alias=$build_alias
1358test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371echo "${ECHO_T}$ac_cv_build" >&6
1372build=$ac_cv_build
1373build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking host system type" >&5
1379echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 ac_cv_host_alias=$host_alias
1384test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393echo "${ECHO_T}$ac_cv_host" >&6
1394host=$ac_cv_host
1395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking target system type" >&5
1401echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405 ac_cv_target_alias=$target_alias
1406test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415echo "${ECHO_T}$ac_cv_target" >&6
1416target=$ac_cv_target
1417target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422# The aliases save the names the user supplied, while $host etc.
1423# will get canonicalized.
1424test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1426 NONENONEs,x,x, &&
1427 program_prefix=${target_alias}-
1428ac_ext=c
1429ac_cpp='$CPP $CPPFLAGS'
1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436echo "$as_me:$LINENO: checking for $ac_word" >&5
1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443else
1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445for as_dir in $PATH
1446do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455done
1456done
1457
1458fi
1459fi
1460CC=$ac_cv_prog_CC
1461if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463echo "${ECHO_T}$CC" >&6
1464else
1465 echo "$as_me:$LINENO: result: no" >&5
1466echo "${ECHO_T}no" >&6
1467fi
1468
1469fi
1470if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473set dummy gcc; ac_word=$2
1474echo "$as_me:$LINENO: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481else
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493done
1494done
1495
1496fi
1497fi
1498ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501echo "${ECHO_T}$ac_ct_CC" >&6
1502else
1503 echo "$as_me:$LINENO: result: no" >&5
1504echo "${ECHO_T}no" >&6
1505fi
1506
1507 CC=$ac_ct_CC
1508else
1509 CC="$ac_cv_prog_CC"
1510fi
1511
1512if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515set dummy ${ac_tool_prefix}cc; ac_word=$2
1516echo "$as_me:$LINENO: checking for $ac_word" >&5
1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523else
1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525for as_dir in $PATH
1526do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535done
1536done
1537
1538fi
1539fi
1540CC=$ac_cv_prog_CC
1541if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543echo "${ECHO_T}$CC" >&6
1544else
1545 echo "$as_me:$LINENO: result: no" >&5
1546echo "${ECHO_T}no" >&6
1547fi
1548
1549fi
1550if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553set dummy cc; ac_word=$2
1554echo "$as_me:$LINENO: checking for $ac_word" >&5
1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561else
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1572 fi
1573done
1574done
1575
1576fi
1577fi
1578ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581echo "${ECHO_T}$ac_ct_CC" >&6
1582else
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
1585fi
1586
1587 CC=$ac_ct_CC
1588else
1589 CC="$ac_cv_prog_CC"
1590fi
1591
1592fi
1593if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595set dummy cc; ac_word=$2
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603else
1604 ac_prog_rejected=no
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1615 fi
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 fi
1634fi
1635fi
1636fi
1637CC=$ac_cv_prog_CC
1638if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640echo "${ECHO_T}$CC" >&6
1641else
1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
1644fi
1645
1646fi
1647if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1650 do
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672done
1673done
1674
1675fi
1676fi
1677CC=$ac_cv_prog_CC
1678if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680echo "${ECHO_T}$CC" >&6
1681else
1682 echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686 test -n "$CC" && break
1687 done
1688fi
1689if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1692do
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694set dummy $ac_prog; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 test -n "$ac_ct_CC" && break
1729done
1730
1731 CC=$ac_ct_CC
1732fi
1733
1734fi
1735
1736
1737test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743# Provide some information about the compiler.
1744echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746ac_compiler=`set X $ac_compile; echo $2`
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762
1763cat >conftest.$ac_ext <<_ACEOF
1764/* confdefs.h. */
1765_ACEOF
1766cat confdefs.h >>conftest.$ac_ext
1767cat >>conftest.$ac_ext <<_ACEOF
1768/* end confdefs.h. */
1769
1770int
1771main ()
1772{
1773
1774 ;
1775 return 0;
1776}
1777_ACEOF
1778ac_clean_files_save=$ac_clean_files
1779ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780# Try to create an executable without -o first, disregard a.out.
1781# It will help us diagnose broken compilers, and finding out an intuition
1782# of exeext.
1783echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793# resort.
1794
1795# Be careful to initialize this variable, since it used to be cached.
1796# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797ac_cv_exeext=
1798# b.out is created by i960 compilers.
1799for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 ;;
1805 conftest.$ac_ext )
1806 # This is the source file.
1807 ;;
1808 [ab].out )
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* )
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
1819 * )
1820 break;;
1821 esac
1822done
1823else
1824 echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828See \`config.log' for more details." >&5
1829echo "$as_me: error: C compiler cannot create executables
1830See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1832fi
1833
1834ac_exeext=$ac_cv_exeext
1835echo "$as_me:$LINENO: result: $ac_file" >&5
1836echo "${ECHO_T}$ac_file" >&6
1837
1838# Check the compiler produces executables we can run. If not, either
1839# the compiler is broken, or we cross compile.
1840echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843# If not cross compiling, check that we can run a simple program.
1844if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857If you meant to cross compile, use \`--host'.
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: cannot run C compiled programs.
1860If you meant to cross compile, use \`--host'.
1861See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864 fi
1865fi
1866echo "$as_me:$LINENO: result: yes" >&5
1867echo "${ECHO_T}yes" >&6
1868
1869rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870ac_clean_files=$ac_clean_files_save
1871# Check the compiler produces executables we can run. If not, either
1872# the compiler is broken, or we cross compile.
1873echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876echo "${ECHO_T}$cross_compiling" >&6
1877
1878echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887# work properly (i.e., refer to `conftest.exe'), while it won't with
1888# `rm'.
1889for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 export ac_cv_exeext
1895 break;;
1896 * ) break;;
1897 esac
1898done
1899else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901See \`config.log' for more details." >&5
1902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1905fi
1906
1907rm -f conftest$ac_cv_exeext
1908echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911rm -f conftest.$ac_ext
1912EXEEXT=$ac_cv_exeext
1913ac_exeext=$EXEEXT
1914echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 cat >conftest.$ac_ext <<_ACEOF
1920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
1925
1926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934rm -f conftest.o conftest.obj
1935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946done
1947else
1948 echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952See \`config.log' for more details." >&5
1953echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1956fi
1957
1958rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959fi
1960echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961echo "${ECHO_T}$ac_cv_objext" >&6
1962OBJEXT=$ac_cv_objext
1963ac_objext=$OBJEXT
1964echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979#ifndef __GNUC__
1980 choke me
1981#endif
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
b7d4af3a
JW
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
42ecbf5e
DJ
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010else
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014ac_compiler_gnu=no
2015fi
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019fi
2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022GCC=`test $ac_compiler_gnu = yes && echo yes`
2023ac_test_CFLAGS=${CFLAGS+set}
2024ac_save_CFLAGS=$CFLAGS
2025CFLAGS="-g"
2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 cat >conftest.$ac_ext <<_ACEOF
2032/* confdefs.h. */
2033_ACEOF
2034cat confdefs.h >>conftest.$ac_ext
2035cat >>conftest.$ac_ext <<_ACEOF
2036/* end confdefs.h. */
2037
2038int
2039main ()
2040{
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
b7d4af3a
JW
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
42ecbf5e
DJ
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069else
2070 echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073ac_cv_prog_cc_g=no
2074fi
2075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2086 fi
2087else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2092 fi
2093fi
2094echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 ac_cv_prog_cc_stdc=no
2100ac_save_CC=$CC
2101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107#include <stdarg.h>
2108#include <stdio.h>
2109#include <sys/types.h>
2110#include <sys/stat.h>
2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112struct buf { int x; };
2113FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (p, i)
2115 char **p;
2116 int i;
2117{
2118 return p[i];
2119}
2120static char *f (char * (*g) (char **, int), char **p, ...)
2121{
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128}
2129
2130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139int test (int i, double x);
2140struct s1 {int (*f) (int a);};
2141struct s2 {int (*f) (double a);};
2142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143int argc;
2144char **argv;
2145int
2146main ()
2147{
2148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153# Don't try gcc -ansi; that turns off useful extensions and
2154# breaks some systems' header files.
2155# AIX -qlanglvl=ansi
2156# Ultrix and OSF/1 -std1
2157# HP-UX 10.20 and later -Ae
2158# HP-UX older versions -Aa -D_HPUX_SOURCE
2159# SVR4 -Xc -D__EXTENSIONS__
2160for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161do
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
b7d4af3a
JW
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
42ecbf5e
DJ
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2186break
2187else
2188 echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191fi
2192rm -f conftest.err conftest.$ac_objext
2193done
2194rm -f conftest.$ac_ext conftest.$ac_objext
2195CC=$ac_save_CC
2196
2197fi
2198
2199case "x$ac_cv_prog_cc_stdc" in
2200 x|xno)
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202echo "${ECHO_T}none needed" >&6 ;;
2203 *)
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207esac
2208
2209# Some people use a C++ compiler to compile C. Since we use `exit',
2210# in C++ we need to declare it. In case someone uses the same compiler
2211# for both compiling C and C++ we need to have the C++ compiler decide
2212# the declaration of exit, since it's the most demanding environment.
2213cat >conftest.$ac_ext <<_ACEOF
2214#ifndef __cplusplus
2215 choke me
2216#endif
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
b7d4af3a
JW
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
42ecbf5e
DJ
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2247do
2248 cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
2254$ac_declaration
2255#include <stdlib.h>
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
b7d4af3a
JW
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
42ecbf5e
DJ
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 :
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291continue
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
2300$ac_declaration
2301int
2302main ()
2303{
2304exit (42);
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
b7d4af3a
JW
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
42ecbf5e
DJ
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
2337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338done
2339rm -f conftest*
2340if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2344fi
2345
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350fi
2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361if test "${ac_cv_search_strerror+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 ac_func_search_save_LIBS=$LIBS
2365ac_cv_search_strerror=no
2366cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373/* Override any gcc2 internal prototype to avoid an error. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char strerror ();
2380int
2381main ()
2382{
2383strerror ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext conftest$ac_exeext
2389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
b7d4af3a
JW
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
42ecbf5e
DJ
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest$ac_exeext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_search_strerror="none required"
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415fi
2416rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h. */
2427
2428/* Override any gcc2 internal prototype to avoid an error. */
2429#ifdef __cplusplus
2430extern "C"
2431#endif
2432/* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434char strerror ();
2435int
2436main ()
2437{
2438strerror ();
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext conftest$ac_exeext
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
b7d4af3a
JW
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
42ecbf5e
DJ
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_search_strerror="-l$ac_lib"
2466break
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474 done
2475fi
2476LIBS=$ac_func_search_save_LIBS
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480if test "$ac_cv_search_strerror" != no; then
2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2482
2483fi
2484
2485
2486BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2487am__api_version="1.9"
2488# Find a good install program. We prefer a C program (faster),
2489# so one script is as good as another. But avoid the broken or
2490# incompatible versions:
2491# SysV /etc/install, /usr/sbin/install
2492# SunOS /usr/etc/install
2493# IRIX /sbin/install
2494# AIX /bin/install
2495# AmigaOS /C/install, which installs bootblocks on floppy discs
2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499# OS/2's system install, which has a completely different semantic
2500# ./install, which can be erroneously created by make from ./install.sh.
2501echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503if test -z "$INSTALL"; then
2504if test "${ac_cv_path_install+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513case $as_dir/ in
2514 ./ | .// | /cC/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2527 # AIX install. It has an incompatible calling convention.
2528 :
42ecbf5e
DJ
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
252b5132 2533 else
42ecbf5e
DJ
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
252b5132
RH
2536 fi
2537 fi
d15b04bd 2538 done
42ecbf5e
DJ
2539 done
2540 ;;
2541esac
2542done
2543
252b5132
RH
2544
2545fi
2546 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2547 INSTALL=$ac_cv_path_install
252b5132
RH
2548 else
2549 # As a last resort, use the slow shell script. We don't cache a
2550 # path for INSTALL within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the path is relative.
42ecbf5e 2553 INSTALL=$ac_install_sh
252b5132
RH
2554 fi
2555fi
42ecbf5e
DJ
2556echo "$as_me:$LINENO: result: $INSTALL" >&5
2557echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2558
2559# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560# It thinks the first close brace ends the variable substitution.
2561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
42ecbf5e 2563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2564
2565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
42ecbf5e
DJ
2567echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2569# Just in case
2570sleep 1
42ecbf5e 2571echo timestamp > conftest.file
252b5132
RH
2572# Do `set' in a subshell so we don't clobber the current shell's
2573# arguments. Must try -L first in case configure is actually a
2574# symlink; some systems play weird games with the mod time of symlinks
2575# (eg FreeBSD returns the mod time of the symlink's containing
2576# directory).
2577if (
42ecbf5e 2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2579 if test "$*" = "X"; then
2580 # -L didn't work.
42ecbf5e 2581 set X `ls -t $srcdir/configure conftest.file`
252b5132 2582 fi
42ecbf5e
DJ
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2586
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2592alias in your environment" >&5
2593echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&2;}
2595 { (exit 1); exit 1; }; }
252b5132
RH
2596 fi
2597
42ecbf5e 2598 test "$2" = conftest.file
252b5132
RH
2599 )
2600then
2601 # Ok.
2602 :
2603else
42ecbf5e
DJ
2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605Check your system clock" >&5
2606echo "$as_me: error: newly created file is older than distributed files!
2607Check your system clock" >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612test "$program_prefix" != NONE &&
2613 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614# Use a double $ so make ignores it.
2615test "$program_suffix" != NONE &&
2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617# Double any \ or $. echo might interpret backslashes.
2618# By default was `s,x,x', remove it if useless.
2619cat <<\_ACEOF >conftest.sed
2620s/[\\$]/&&/g;s/;s,x,x,$//
2621_ACEOF
2622program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623rm conftest.sed
2624
2625# expand $ac_aux_dir to an absolute path
2626am_aux_dir=`cd $ac_aux_dir && pwd`
2627
2628test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629# Use eval to expand $SHELL
2630if eval "$MISSING --run true"; then
2631 am_missing_run="$MISSING --run "
2632else
2633 am_missing_run=
2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636fi
2637
2638if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2639 # We used to keeping the `.' as first argument, in order to
2640 # allow $(mkdir_p) to be used without argument. As in
2641 # $(mkdir_p) $(somedir)
2642 # where $(somedir) is conditionally defined. However this is wrong
2643 # for two reasons:
2644 # 1. if the package is installed by a user who cannot write `.'
2645 # make install will fail,
2646 # 2. the above comment should most certainly read
2647 # $(mkdir_p) $(DESTDIR)$(somedir)
2648 # so it does not work when $(somedir) is undefined and
2649 # $(DESTDIR) is not.
2650 # To support the latter case, we have to write
2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652 # so the `.' trick is pointless.
2653 mkdir_p='mkdir -p --'
2654else
2655 # On NextStep and OpenStep, the `mkdir' command does not
2656 # recognize any option. It will interpret all options as
2657 # directories to create, and then abort because `.' already
2658 # exists.
2659 for d in ./-p ./--version;
2660 do
2661 test -d $d && rmdir $d
2662 done
2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664 if test -f "$ac_aux_dir/mkinstalldirs"; then
2665 mkdir_p='$(mkinstalldirs)'
2666 else
2667 mkdir_p='$(install_sh) -d'
2668 fi
2669fi
2670
2671for ac_prog in gawk mawk nawk awk
2672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_AWK+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697fi
2698fi
2699AWK=$ac_cv_prog_AWK
2700if test -n "$AWK"; then
2701 echo "$as_me:$LINENO: result: $AWK" >&5
2702echo "${ECHO_T}$AWK" >&6
2703else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706fi
2707
2708 test -n "$AWK" && break
2709done
2710
2711echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2713set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2714if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 cat >conftest.make <<\_ACEOF
2718all:
2719 @echo 'ac_maketemp="$(MAKE)"'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723if test -n "$ac_maketemp"; then
2724 eval ac_cv_prog_make_${ac_make}_set=yes
2725else
2726 eval ac_cv_prog_make_${ac_make}_set=no
2727fi
2728rm -f conftest.make
2729fi
2730if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732echo "${ECHO_T}yes" >&6
2733 SET_MAKE=
2734else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737 SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743 am__leading_dot=.
2744else
2745 am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749DEPDIR="${am__leading_dot}deps"
2750
2751 ac_config_commands="$ac_config_commands depfiles"
2752
2753
2754am_make=${MAKE-make}
2755cat > confinc << 'END'
2756am__doit:
2757 @echo done
2758.PHONY: am__doit
2759END
2760# If we don't find an include directive, just comment out the code.
2761echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763am__include="#"
2764am__quote=
2765_am_result=none
2766# First try GNU make style include.
2767echo "include confinc" > confmf
2768# We grep out `Entering directory' and `Leaving directory'
2769# messages which can occur if `w' ends up in MAKEFLAGS.
2770# In particular we don't look at `^make:' because GNU make might
2771# be invoked under some other name (usually "gmake"), in which
2772# case it prints its new name instead of `make'.
2773if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 am__include=include
2775 am__quote=
2776 _am_result=GNU
2777fi
2778# Now try BSD make style include.
2779if test "$am__include" = "#"; then
2780 echo '.include "confinc"' > confmf
2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782 am__include=.include
2783 am__quote="\""
2784 _am_result=BSD
2785 fi
2786fi
2787
2788
2789echo "$as_me:$LINENO: result: $_am_result" >&5
2790echo "${ECHO_T}$_am_result" >&6
2791rm -f confinc confmf
2792
2793# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794if test "${enable_dependency_tracking+set}" = set; then
2795 enableval="$enable_dependency_tracking"
2796
2797fi;
2798if test "x$enable_dependency_tracking" != xno; then
2799 am_depcomp="$ac_aux_dir/depcomp"
2800 AMDEPBACKSLASH='\'
2801fi
2802
2803
2804if test "x$enable_dependency_tracking" != xno; then
2805 AMDEP_TRUE=
2806 AMDEP_FALSE='#'
2807else
2808 AMDEP_TRUE='#'
2809 AMDEP_FALSE=
2810fi
2811
2812
2813
2814# test to see if srcdir already configured
2815if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816 test -f $srcdir/config.status; then
2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819 { (exit 1); exit 1; }; }
2820fi
2821
2822# test whether we have cygpath
2823if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2826 else
2827 CYGPATH_W=echo
2828 fi
2829fi
2830
2831
2832# Define the identity of the package.
2833 PACKAGE=binutils
2834 VERSION=${BFD_VERSION}
2835
2836
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE "$PACKAGE"
2839_ACEOF
2840
2841
2842cat >>confdefs.h <<_ACEOF
2843#define VERSION "$VERSION"
2844_ACEOF
2845
2846# Some tools Automake needs.
2847
2848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
2862install_sh=${install_sh-"$am_aux_dir/install-sh"}
2863
2864# Installed binaries are usually stripped using `strip' when the user
2865# run `make install-strip'. However `strip' might not be the right
2866# tool to use in cross-compilation environments, therefore Automake
2867# will honor the `STRIP' environment variable to overrule this program.
2868if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}strip; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_STRIP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
252b5132 2894fi
42ecbf5e
DJ
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898 echo "$as_me:$LINENO: result: $STRIP" >&5
2899echo "${ECHO_T}$STRIP" >&6
d15b04bd 2900else
42ecbf5e
DJ
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
d15b04bd 2903fi
d15b04bd 2904
42ecbf5e
DJ
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 2914else
42ecbf5e
DJ
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2917else
42ecbf5e
DJ
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930done
2931
2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2933fi
252b5132 2934fi
42ecbf5e
DJ
2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936if test -n "$ac_ct_STRIP"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2939else
42ecbf5e
DJ
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
252b5132
RH
2942fi
2943
42ecbf5e
DJ
2944 STRIP=$ac_ct_STRIP
2945else
2946 STRIP="$ac_cv_prog_STRIP"
2947fi
252b5132 2948
42ecbf5e
DJ
2949fi
2950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2951
42ecbf5e
DJ
2952# We need awk for the "check" target. The system "awk" is bad on
2953# some platforms.
2954# Always define AMTAR for backward compatibility.
252b5132 2955
42ecbf5e 2956AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 2957
42ecbf5e 2958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
2959
2960
2961
252b5132 2962
42ecbf5e
DJ
2963depcc="$CC" am_compiler_list=
2964
2965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2969else
42ecbf5e
DJ
2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971 # We make a subdir and do the tests there. Otherwise we can end up
2972 # making bogus files that we don't know about and never remove. For
2973 # instance it was reported that on HP-UX the gcc test will end up
2974 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # in D'.
2976 mkdir conftest.dir
2977 # Copy depcomp to subdir because otherwise we won't find it if we're
2978 # using a relative directory.
2979 cp "$am_depcomp" conftest.dir
2980 cd conftest.dir
2981 # We will build objects and dependencies in a subdirectory because
2982 # it helps to detect inapplicable dependency modes. For instance
2983 # both Tru64's cc and ICC support -MD to output dependencies as a
2984 # side effect of compilation, but ICC will put the dependencies in
2985 # the current directory while Tru64 will put them in the object
2986 # directory.
2987 mkdir sub
252b5132 2988
42ecbf5e
DJ
2989 am_cv_CC_dependencies_compiler_type=none
2990 if test "$am_compiler_list" = ""; then
2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992 fi
2993 for depmode in $am_compiler_list; do
2994 # Setup a source with many dependencies, because some compilers
2995 # like to wrap large dependency lists on column 80 (with \), and
2996 # we should not choose a depcomp mode which is confused by this.
2997 #
2998 # We need to recreate these files for each test, as the compiler may
2999 # overwrite some of them when testing with obscure command lines.
3000 # This happens at least with the AIX C compiler.
3001 : > sub/conftest.c
3002 for i in 1 2 3 4 5 6; do
3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005 # Solaris 8's {/usr,}/bin/sh.
3006 touch sub/conftst$i.h
3007 done
3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009
3010 case $depmode in
3011 nosideeffect)
3012 # after this tag, mechanisms are not by side-effect, so they'll
3013 # only be used when explicitly requested
3014 if test "x$enable_dependency_tracking" = xyes; then
3015 continue
3016 else
3017 break
3018 fi
3019 ;;
3020 none) break ;;
3021 esac
3022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023 # mode. It turns out that the SunPro C++ compiler does not properly
3024 # handle `-M -o', and we need to detect this.
3025 if depmode=$depmode \
3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029 >/dev/null 2>conftest.err &&
3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033 # icc doesn't choke on unknown options, it will just issue warnings
3034 # or remarks (even with -Werror). So we grep stderr for any message
3035 # that says an option was ignored or not supported.
3036 # When given -MP, icc 7.0 and 7.1 complain thusly:
3037 # icc: Command line warning: ignoring option '-M'; no argument required
3038 # The diagnosis changed in icc 8.0:
3039 # icc: Command line remark: option '-MP' not supported
3040 if (grep 'ignoring option' conftest.err ||
3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3042 am_cv_CC_dependencies_compiler_type=$depmode
3043 break
3044 fi
3045 fi
3046 done
3047
3048 cd ..
3049 rm -rf conftest.dir
252b5132 3050else
42ecbf5e 3051 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3052fi
3053
252b5132 3054fi
42ecbf5e
DJ
3055echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3058
3059
252b5132 3060
42ecbf5e
DJ
3061if
3062 test "x$enable_dependency_tracking" != xno \
3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064 am__fastdepCC_TRUE=
3065 am__fastdepCC_FALSE='#'
252b5132 3066else
42ecbf5e
DJ
3067 am__fastdepCC_TRUE='#'
3068 am__fastdepCC_FALSE=
252b5132
RH
3069fi
3070
3071
3072
42ecbf5e 3073
252b5132
RH
3074# Check whether --enable-shared or --disable-shared was given.
3075if test "${enable_shared+set}" = set; then
3076 enableval="$enable_shared"
3077 p=${PACKAGE-default}
6be7c12c 3078case $enableval in
252b5132
RH
3079yes) enable_shared=yes ;;
3080no) enable_shared=no ;;
3081*)
3082 enable_shared=no
3083 # Look at the argument we got. We use all the common list separators.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3085 for pkg in $enableval; do
3086 if test "X$pkg" = "X$p"; then
3087 enable_shared=yes
3088 fi
3089 done
3090 IFS="$ac_save_ifs"
3091 ;;
3092esac
3093else
3094 enable_shared=yes
42ecbf5e 3095fi;
252b5132
RH
3096# Check whether --enable-static or --disable-static was given.
3097if test "${enable_static+set}" = set; then
3098 enableval="$enable_static"
3099 p=${PACKAGE-default}
6be7c12c 3100case $enableval in
252b5132
RH
3101yes) enable_static=yes ;;
3102no) enable_static=no ;;
3103*)
3104 enable_static=no
3105 # Look at the argument we got. We use all the common list separators.
3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3107 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3109 enable_static=yes
3110 fi
3111 done
3112 IFS="$ac_save_ifs"
3113 ;;
3114esac
3115else
3116 enable_static=yes
42ecbf5e 3117fi;
252b5132
RH
3118# Check whether --enable-fast-install or --disable-fast-install was given.
3119if test "${enable_fast_install+set}" = set; then
3120 enableval="$enable_fast_install"
3121 p=${PACKAGE-default}
6be7c12c 3122case $enableval in
252b5132
RH
3123yes) enable_fast_install=yes ;;
3124no) enable_fast_install=no ;;
3125*)
3126 enable_fast_install=no
3127 # Look at the argument we got. We use all the common list separators.
e5a52504
MM
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
1a09a22c
NC
3132 fi
3133 done
3134 IFS="$ac_save_ifs"
e5a52504
MM
3135 ;;
3136esac
1a09a22c 3137else
e5a52504 3138 enable_fast_install=yes
42ecbf5e 3139fi;
ceae3e33 3140
252b5132
RH
3141# Check whether --with-gnu-ld or --without-gnu-ld was given.
3142if test "${with_gnu_ld+set}" = set; then
3143 withval="$with_gnu_ld"
3144 test "$withval" = no || with_gnu_ld=yes
3145else
3146 with_gnu_ld=no
42ecbf5e 3147fi;
252b5132 3148ac_prog=ld
6be7c12c 3149if test "$GCC" = yes; then
252b5132 3150 # Check if gcc -print-prog-name=ld gives a path.
42ecbf5e
DJ
3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3153 case $host in
3154 *-*-mingw*)
3155 # gcc leaves a trailing carriage return which upsets mingw
3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3157 *)
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159 esac
6be7c12c 3160 case $ac_prog in
252b5132 3161 # Accept absolute paths.
a74801ba 3162 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3163 re_direlt='/[^/][^/]*/\.\./'
3164 # Canonicalize the path of ld
3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168 done
3169 test -z "$LD" && LD="$ac_prog"
3170 ;;
3171 "")
3172 # If it fails, then pretend we aren't using GCC.
3173 ac_prog=ld
3174 ;;
3175 *)
3176 # If it is relative, then search for the first ld in PATH.
3177 with_gnu_ld=unknown
3178 ;;
3179 esac
3180elif test "$with_gnu_ld" = yes; then
42ecbf5e
DJ
3181 echo "$as_me:$LINENO: checking for GNU ld" >&5
3182echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3183else
42ecbf5e
DJ
3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3186fi
42ecbf5e
DJ
3187if test "${lt_cv_path_LD+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3189else
3190 if test -z "$LD"; then
a74801ba 3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3192 for ac_dir in $PATH; do
3193 test -z "$ac_dir" && ac_dir=.
a74801ba 3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 3195 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3196 # Check to see if the program is GNU ld. I'd rather use --version,
3197 # but apparently some GNU ld's only accept -v.
3198 # Break only if it was the GNU/non-GNU ld that we prefer.
6be7c12c 3199 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3200 test "$with_gnu_ld" != no && break
3201 else
3202 test "$with_gnu_ld" != yes && break
3203 fi
3204 fi
3205 done
3206 IFS="$ac_save_ifs"
3207else
6be7c12c 3208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3209fi
3210fi
3211
6be7c12c 3212LD="$lt_cv_path_LD"
252b5132 3213if test -n "$LD"; then
42ecbf5e
DJ
3214 echo "$as_me:$LINENO: result: $LD" >&5
3215echo "${ECHO_T}$LD" >&6
252b5132 3216else
42ecbf5e
DJ
3217 echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
252b5132 3219fi
42ecbf5e
DJ
3220test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222 { (exit 1); exit 1; }; }
3223echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225if test "${lt_cv_prog_gnu_ld+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3227else
3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6be7c12c 3230 lt_cv_prog_gnu_ld=yes
252b5132 3231else
6be7c12c 3232 lt_cv_prog_gnu_ld=no
252b5132
RH
3233fi
3234fi
42ecbf5e
DJ
3235echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3236echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6be7c12c 3237with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3238
3239
42ecbf5e
DJ
3240echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3241echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3242if test "${lt_cv_ld_reload_flag+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3244else
3245 lt_cv_ld_reload_flag='-r'
3246fi
42ecbf5e
DJ
3247echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3248echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3249reload_flag=$lt_cv_ld_reload_flag
3250test -n "$reload_flag" && reload_flag=" $reload_flag"
3251
42ecbf5e
DJ
3252echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254if test "${lt_cv_path_NM+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3256else
3257 if test -n "$NM"; then
3258 # Let the user override the test.
6be7c12c 3259 lt_cv_path_NM="$NM"
252b5132 3260else
a74801ba 3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3262 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3263 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3264 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3265 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3266 # Check to see if the nm accepts a BSD-compat flag.
3267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268 # nm: unknown option "B" ignored
58cccadb
AO
3269 # Tru64's nm complains that /dev/null is an invalid object file
3270 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6be7c12c 3271 lt_cv_path_NM="$tmp_nm -B"
252b5132 3272 break
ac48eca1 3273 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6be7c12c 3274 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3275 break
3276 else
6be7c12c 3277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3278 continue # so that we can try to find one that supports BSD flags
3279 fi
3280 fi
3281 done
3282 IFS="$ac_save_ifs"
6be7c12c 3283 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3284fi
3285fi
3286
6be7c12c 3287NM="$lt_cv_path_NM"
42ecbf5e
DJ
3288echo "$as_me:$LINENO: result: $NM" >&5
3289echo "${ECHO_T}$NM" >&6
252b5132 3290
42ecbf5e
DJ
3291echo "$as_me:$LINENO: checking whether ln -s works" >&5
3292echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3293LN_S=$as_ln_s
3294if test "$LN_S" = "ln -s"; then
3295 echo "$as_me:$LINENO: result: yes" >&5
3296echo "${ECHO_T}yes" >&6
252b5132 3297else
42ecbf5e
DJ
3298 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3299echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3300fi
3301
42ecbf5e
DJ
3302echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3303echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3304if test "${lt_cv_deplibs_check_method+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3306else
d64552c5 3307 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3308lt_cv_file_magic_test_file=
3309lt_cv_deplibs_check_method='unknown'
3310# Need to set the preceding variable on all platforms that support
3311# interlibrary dependencies.
3312# 'none' -- dependencies not supported.
3313# `unknown' -- same as none, but documents that we really don't know.
3314# 'pass_all' -- all dependencies passed with no checks.
3315# 'test_compile' -- check by making test program.
3316# 'file_magic [regex]' -- check by looking for files in library path
3317# which responds to the $file_magic_cmd with a given egrep regex.
3318# If you have `file' or equivalent on your system and you're not sure
3319# whether `pass_all' will *always* work, you probably want this one.
3320
6be7c12c
AO
3321case $host_os in
3322aix*)
ac48eca1
AO
3323 lt_cv_deplibs_check_method=pass_all
3324 ;;
3325
3326beos*)
3327 lt_cv_deplibs_check_method=pass_all
3328 ;;
3329
3330bsdi4*)
6be7c12c
AO
3331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3332 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3333 lt_cv_file_magic_test_file=/shlib/libc.so
3334 ;;
3335
d64552c5 3336cygwin* | mingw* |pw32*)
ac48eca1 3337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3338 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3339 ;;
3340
6be7c12c 3341darwin* | rhapsody*)
bdcfeba5 3342 # this will be overwritten by pass_all, but leave it in just in case
6be7c12c
AO
3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 case "$host_os" in
3346 rhapsody* | darwin1.012)
3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3348 ;;
3349 *) # Darwin 1.3 on
3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351 ;;
3352 esac
bdcfeba5 3353 lt_cv_deplibs_check_method=pass_all
6be7c12c
AO
3354 ;;
3355
d15b04bd 3356freebsd* | kfreebsd*-gnu)
ac48eca1 3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6be7c12c 3358 case $host_cpu in
ac48eca1 3359 i*86 )
58cccadb
AO
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
6be7c12c
AO
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 ;;
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3369 fi
3370 ;;
3371
3372gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375
6be7c12c 3376hpux10.20*|hpux11*)
4867be41
DJ
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ;;
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 ;;
3388 esac
ac48eca1
AO
3389 ;;
3390
3391irix5* | irix6*)
6be7c12c 3392 case $host_os in
ac48eca1
AO
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 ;;
3397 *)
6be7c12c 3398 case $LD in
ac48eca1
AO
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 ;;
ac48eca1
AO
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3410 ;;
3411
3412# This must be Linux ELF.
58cccadb 3413linux-gnu*)
bdcfeba5 3414 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3415 ;;
3416
d15b04bd 3417netbsd* | knetbsd*-gnu)
6be7c12c
AO
3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3420 else
6be7c12c 3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3422 fi
3423 ;;
3424
6be7c12c
AO
3425newsos6)
3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427 lt_cv_file_magic_cmd=/usr/bin/file
3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429 ;;
3430
ac48eca1
AO
3431osf3* | osf4* | osf5*)
3432 # this will be overridden with pass_all, but let us keep it just in case
3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3435 lt_cv_deplibs_check_method=pass_all
3436 ;;
3437
3438sco3.2v5*)
3439 lt_cv_deplibs_check_method=pass_all
3440 ;;
3441
3442solaris*)
3443 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_file_magic_test_file=/lib/libc.so
3445 ;;
3446
6be7c12c
AO
3447sysv5uw[78]* | sysv4*uw2*)
3448 lt_cv_deplibs_check_method=pass_all
3449 ;;
3450
ac48eca1 3451sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 3452 case $host_vendor in
ac48eca1
AO
3453 ncr)
3454 lt_cv_deplibs_check_method=pass_all
3455 ;;
3456 motorola)
6be7c12c
AO
3457 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]'
3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3459 ;;
3460 esac
3461 ;;
3462esac
3463
3464fi
42ecbf5e
DJ
3465echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3467file_magic_cmd=$lt_cv_file_magic_cmd
3468deplibs_check_method=$lt_cv_deplibs_check_method
3469
ac48eca1 3470
ac48eca1 3471
ac48eca1
AO
3472
3473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3474
bdcfeba5
NC
3475# find the maximum length of command line arguments
3476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3478if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 i=0
3482 teststring="ABCD"
3483
3484 case $build_os in
3485 msdosdjgpp*)
3486 # On DJGPP, this test can blow up pretty badly due to problems in libc
3487 # (any single argument exceeding 2000 bytes causes a buffer overrun
3488 # during glob expansion). Even if it were fixed, the result of this
3489 # check would be larger than it should be.
3490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3491 ;;
3492
3493 cygwin* | mingw*)
3494 # On Win9x/ME, this test blows up -- it succeeds, but takes
3495 # about 5 minutes as the teststring grows exponentially.
3496 # Worse, since 9x/ME are not pre-emptively multitasking,
3497 # you end up with a "frozen" computer, even though with patience
3498 # the test eventually succeeds (with a max line length of 256k).
3499 # Instead, let's just punt: use the minimum linelength reported by
3500 # all of the supported platforms: 8192 (on NT/2K/XP).
3501 lt_cv_sys_max_cmd_len=8192;
3502 ;;
3503
3504 amigaos*)
3505 # On AmigaOS with pdksh, this test takes hours, literally.
3506 # So we just punt and use a minimum line length of 8192.
3507 lt_cv_sys_max_cmd_len=8192;
3508 ;;
3509
3510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3511 # This has been around since 386BSD, at least. Likely further.
3512 if test -x /sbin/sysctl; then
3513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3514 elif test -x /usr/sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3516 else
3517 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3518 fi
3519 # And add a safety zone
3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3522 ;;
3523 esac
3524
3525fi
3526
3527if test -n "$lt_cv_sys_max_cmd_len" ; then
3528 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3529echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3530else
3531 echo "$as_me:$LINENO: result: none" >&5
3532echo "${ECHO_T}none" >&6
3533fi
3534
3535
ac48eca1 3536# Only perform the check for file, if the check method requires it
6be7c12c 3537case $deplibs_check_method in
ac48eca1 3538file_magic*)
d64552c5 3539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
42ecbf5e
DJ
3540 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3541echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3544else
6be7c12c 3545 case $MAGIC_CMD in
ac48eca1 3546 /*)
d64552c5 3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3548 ;;
3549 ?:/*)
d64552c5 3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3551 ;;
3552 *)
d64552c5 3553 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3555 ac_dummy="/usr/bin:$PATH"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3560 if test -n "$file_magic_test_file"; then
6be7c12c 3561 case $deplibs_check_method in
ac48eca1
AO
3562 "file_magic "*)
3563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3566 egrep "$file_magic_regex" > /dev/null; then
3567 :
3568 else
3569 cat <<EOF 1>&2
3570
3571*** Warning: the command libtool uses to detect shared libraries,
3572*** $file_magic_cmd, produces output that libtool cannot recognize.
3573*** The result is that libtool may fail to recognize shared libraries
3574*** as such. This will affect the creation of libtool libraries that
3575*** depend on shared libraries, but programs linked with such libtool
3576*** libraries will work regardless of this problem. Nevertheless, you
3577*** may want to report the problem to your system manager and/or to
3578*** bug-libtool@gnu.org
3579
3580EOF
3581 fi ;;
3582 esac
3583 fi
3584 break
3585 fi
3586 done
3587 IFS="$ac_save_ifs"
d64552c5 3588 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3589 ;;
3590esac
3591fi
3592
d64552c5
AO
3593MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3596echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3597else
42ecbf5e
DJ
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
ac48eca1
AO
3600fi
3601
d64552c5 3602if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3603 if test -n "$ac_tool_prefix"; then
42ecbf5e
DJ
3604 echo "$as_me:$LINENO: checking for file" >&5
3605echo $ECHO_N "checking for file... $ECHO_C" >&6
3606if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3608else
6be7c12c 3609 case $MAGIC_CMD in
ac48eca1 3610 /*)
d64552c5 3611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3612 ;;
3613 ?:/*)
d64552c5 3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3615 ;;
3616 *)
d64552c5 3617 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="/usr/bin:$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/file; then
d64552c5 3623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3624 if test -n "$file_magic_test_file"; then
6be7c12c 3625 case $deplibs_check_method in
ac48eca1
AO
3626 "file_magic "*)
3627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3630 egrep "$file_magic_regex" > /dev/null; then
3631 :
3632 else
3633 cat <<EOF 1>&2
3634
3635*** Warning: the command libtool uses to detect shared libraries,
3636*** $file_magic_cmd, produces output that libtool cannot recognize.
3637*** The result is that libtool may fail to recognize shared libraries
3638*** as such. This will affect the creation of libtool libraries that
3639*** depend on shared libraries, but programs linked with such libtool
3640*** libraries will work regardless of this problem. Nevertheless, you
3641*** may want to report the problem to your system manager and/or to
3642*** bug-libtool@gnu.org
3643
3644EOF
3645 fi ;;
3646 esac
3647 fi
3648 break
3649 fi
3650 done
3651 IFS="$ac_save_ifs"
d64552c5 3652 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3653 ;;
3654esac
3655fi
3656
d64552c5
AO
3657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3658if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3660echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3661else
42ecbf5e
DJ
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
ac48eca1
AO
3664fi
3665
3666 else
d64552c5 3667 MAGIC_CMD=:
ac48eca1
AO
3668 fi
3669fi
252b5132 3670
ac48eca1
AO
3671 fi
3672 ;;
a74801ba 3673esac
252b5132 3674
42ecbf5e
DJ
3675if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42ecbf5e
DJ
3678echo "$as_me:$LINENO: checking for $ac_word" >&5
3679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680if test "${ac_cv_prog_RANLIB+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3682else
3683 if test -n "$RANLIB"; then
3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685else
42ecbf5e
DJ
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697done
3698done
3699
ac48eca1
AO
3700fi
3701fi
42ecbf5e 3702RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3703if test -n "$RANLIB"; then
42ecbf5e
DJ
3704 echo "$as_me:$LINENO: result: $RANLIB" >&5
3705echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3706else
42ecbf5e
DJ
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
ac48eca1
AO
3709fi
3710
42ecbf5e 3711fi
ac48eca1 3712if test -z "$ac_cv_prog_RANLIB"; then
42ecbf5e 3713 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3714 # Extract the first word of "ranlib", so it can be a program name with args.
3715set dummy ranlib; ac_word=$2
42ecbf5e
DJ
3716echo "$as_me:$LINENO: checking for $ac_word" >&5
3717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3720else
42ecbf5e
DJ
3721 if test -n "$ac_ct_RANLIB"; then
3722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_RANLIB="ranlib"
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735done
3736done
3737
3738 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3739fi
3740fi
42ecbf5e
DJ
3741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3742if test -n "$ac_ct_RANLIB"; then
3743 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3744echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3745else
42ecbf5e
DJ
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
ac48eca1
AO
3748fi
3749
42ecbf5e 3750 RANLIB=$ac_ct_RANLIB
ac48eca1 3751else
42ecbf5e 3752 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3753fi
3754
42ecbf5e
DJ
3755if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3757set dummy ${ac_tool_prefix}strip; ac_word=$2
42ecbf5e
DJ
3758echo "$as_me:$LINENO: checking for $ac_word" >&5
3759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760if test "${ac_cv_prog_STRIP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3762else
3763 if test -n "$STRIP"; then
3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765else
42ecbf5e
DJ
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777done
3778done
3779
ac48eca1
AO
3780fi
3781fi
42ecbf5e 3782STRIP=$ac_cv_prog_STRIP
ac48eca1 3783if test -n "$STRIP"; then
42ecbf5e
DJ
3784 echo "$as_me:$LINENO: result: $STRIP" >&5
3785echo "${ECHO_T}$STRIP" >&6
ac48eca1 3786else
42ecbf5e
DJ
3787 echo "$as_me:$LINENO: result: no" >&5
3788echo "${ECHO_T}no" >&6
ac48eca1
AO
3789fi
3790
42ecbf5e 3791fi
ac48eca1 3792if test -z "$ac_cv_prog_STRIP"; then
42ecbf5e 3793 ac_ct_STRIP=$STRIP
ac48eca1
AO
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
42ecbf5e
DJ
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3800else
42ecbf5e
DJ
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3803else
42ecbf5e
DJ
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3819fi
3820fi
42ecbf5e
DJ
3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822if test -n "$ac_ct_STRIP"; then
3823 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3824echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3825else
42ecbf5e
DJ
3826 echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
ac48eca1
AO
3828fi
3829
42ecbf5e 3830 STRIP=$ac_ct_STRIP
ac48eca1 3831else
42ecbf5e 3832 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3833fi
3834
3835
252b5132
RH
3836# Check for any special flags to pass to ltconfig.
3837libtool_flags="--cache-file=$cache_file"
3838test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3839test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3840test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
3841test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3842test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3843
a74801ba
ILT
3844
3845# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3846if test "${enable_libtool_lock+set}" = set; then
3847 enableval="$enable_libtool_lock"
a74801ba 3848
42ecbf5e 3849fi;
a74801ba
ILT
3850test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3851test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3852
42ecbf5e 3853
ac48eca1
AO
3854# Check whether --with-pic or --without-pic was given.
3855if test "${with_pic+set}" = set; then
3856 withval="$with_pic"
3857 pic_mode="$withval"
3858else
3859 pic_mode=default
42ecbf5e 3860fi;
ac48eca1
AO
3861test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3862test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3863
252b5132
RH
3864# Some flags need to be propagated to the compiler or linker for good
3865# libtool support.
6be7c12c 3866case $host in
252b5132
RH
3867*-*-irix6*)
3868 # Find out which ABI we are using.
20e95c23 3869 echo '#line 3869 "configure"' > conftest.$ac_ext
42ecbf5e
DJ
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; then
27a710e5
NC
3875 if test "$lt_cv_prog_gnu_ld" = yes; then
3876 case `/usr/bin/file conftest.$ac_objext` in
3877 *32-bit*)
3878 LD="${LD-ld} -melf32bsmip"
3879 ;;
3880 *N32*)
3881 LD="${LD-ld} -melf32bmipn32"
3882 ;;
3883 *64-bit*)
3884 LD="${LD-ld} -melf64bmip"
3885 ;;
3886 esac
3887 else
6be7c12c 3888 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3889 *32-bit*)
3890 LD="${LD-ld} -32"
3891 ;;
3892 *N32*)
3893 LD="${LD-ld} -n32"
3894 ;;
3895 *64-bit*)
3896 LD="${LD-ld} -64"
3897 ;;
3898 esac
27a710e5 3899 fi
252b5132
RH
3900 fi
3901 rm -rf conftest*
3902 ;;
3903
4867be41
DJ
3904ia64-*-hpux*)
3905 # Find out which ABI we are using.
3906 echo 'int i;' > conftest.$ac_ext
42ecbf5e
DJ
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; then
4867be41
DJ
3912 case "`/usr/bin/file conftest.o`" in
3913 *ELF-32*)
3914 HPUX_IA64_MODE="32"
3915 ;;
3916 *ELF-64*)
3917 HPUX_IA64_MODE="64"
3918 ;;
3919 esac
3920 fi
3921 rm -rf conftest*
3922 ;;
3923
bdcfeba5
NC
3924x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3925 # Find out which ABI we are using.
3926 echo 'int i;' > conftest.$ac_ext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; then
3932 case "`/usr/bin/file conftest.o`" in
3933 *32-bit*)
3934 case $host in
3935 x86_64-*linux*)
3936 LD="${LD-ld} -m elf_i386"
3937 ;;
3938 ppc64-*linux*|powerpc64-*linux*)
3939 LD="${LD-ld} -m elf32ppclinux"
3940 ;;
3941 s390x-*linux*)
3942 LD="${LD-ld} -m elf_s390"
3943 ;;
3944 sparc64-*linux*)
3945 LD="${LD-ld} -m elf32_sparc"
3946 ;;
3947 esac
3948 ;;
3949 *64-bit*)
3950 case $host in
3951 x86_64-*linux*)
3952 LD="${LD-ld} -m elf_x86_64"
3953 ;;
3954 ppc*-*linux*|powerpc*-*linux*)
3955 LD="${LD-ld} -m elf64ppc"
3956 ;;
3957 s390*-*linux*)
3958 LD="${LD-ld} -m elf64_s390"
3959 ;;
3960 sparc*-*linux*)
3961 LD="${LD-ld} -m elf64_sparc"
3962 ;;
3963 esac
3964 ;;
3965 esac
3966 fi
3967 rm -rf conftest*
3968 ;;
3969
252b5132
RH
3970*-*-sco3.2v5*)
3971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3972 SAVE_CFLAGS="$CFLAGS"
3973 CFLAGS="$CFLAGS -belf"
42ecbf5e
DJ
3974 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3975echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3976if test "${lt_cv_cc_needs_belf+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3978else
42ecbf5e
DJ
3979
3980
ac48eca1 3981 ac_ext=c
ac48eca1 3982ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3986
42ecbf5e
DJ
3987 cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
252b5132 3993
42ecbf5e
DJ
3994int
3995main ()
3996{
252b5132 3997
42ecbf5e
DJ
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002rm -f conftest.$ac_objext conftest$ac_exeext
4003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
b7d4af3a
JW
4011 { ac_try='test -z "$ac_c_werror_flag"
4012 || test ! -s conftest.err'
42ecbf5e
DJ
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest$ac_exeext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
252b5132
RH
4024 lt_cv_cc_needs_belf=yes
4025else
42ecbf5e
DJ
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029lt_cv_cc_needs_belf=no
252b5132 4030fi
42ecbf5e
DJ
4031rm -f conftest.err conftest.$ac_objext \
4032 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4033 ac_ext=c
ac48eca1 4034ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4038
252b5132 4039fi
42ecbf5e
DJ
4040echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4041echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
4042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4044 CFLAGS="$SAVE_CFLAGS"
4045 fi
4046 ;;
4047
252b5132
RH
4048
4049esac
4050
252b5132
RH
4051
4052# Save cache, so that ltconfig can load it
42ecbf5e 4053cat >confcache <<\_ACEOF
252b5132
RH
4054# This file is a shell script that caches the results of configure
4055# tests run on this system so they can be shared between configure
42ecbf5e
DJ
4056# scripts and configure runs, see configure's option --config-cache.
4057# It is not useful on other systems. If it contains results you don't
4058# want to keep, you may remove or edit it.
252b5132 4059#
42ecbf5e
DJ
4060# config.status only pays attention to the cache file if you give it
4061# the --recheck option to rerun configure.
252b5132 4062#
42ecbf5e
DJ
4063# `ac_cv_env_foo' variables (set or unset) will be overridden when
4064# loading this file, other *unset* `ac_cv_foo' will be assigned the
4065# following values.
4066
4067_ACEOF
4068
252b5132
RH
4069# The following way of writing the cache mishandles newlines in values,
4070# but we know of no workaround that is simple, portable, and efficient.
4071# So, don't put newlines in cache variables' values.
4072# Ultrix sh set writes to stderr and can't be redirected directly,
4073# and sets the high bit in the cache file unless we assign to the vars.
42ecbf5e
DJ
4074{
4075 (set) 2>&1 |
4076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4077 *ac_space=\ *)
4078 # `set' does not quote correctly, so add quotes (double-quote
4079 # substitution turns \\\\ into \\, and sed turns \\ into \).
4080 sed -n \
4081 "s/'/'\\\\''/g;
4082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4083 ;;
4084 *)
4085 # `set' quotes correctly as required by POSIX, so do not add quotes.
4086 sed -n \
4087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4088 ;;
4089 esac;
4090} |
4091 sed '
4092 t clear
4093 : clear
4094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4095 t end
4096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4097 : end' >>confcache
4098if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 4099 if test -w $cache_file; then
42ecbf5e
DJ
4100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4101 cat confcache >$cache_file
252b5132
RH
4102 else
4103 echo "not updating unwritable cache $cache_file"
4104 fi
4105fi
4106rm -f confcache
4107
252b5132 4108# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4109AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4110MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4111LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4112AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4113objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4114deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4115${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4116$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
42ecbf5e
DJ
4117|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4118echo "$as_me: error: libtool configure failed" >&2;}
4119 { (exit 1); exit 1; }; }
252b5132
RH
4120
4121# Reload cache, that may have been modified by ltconfig
4122if test -r "$cache_file"; then
42ecbf5e
DJ
4123 # Some versions of bash will fail to source /dev/null (special
4124 # files actually), so we avoid doing that.
4125 if test -f "$cache_file"; then
4126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4127echo "$as_me: loading cache $cache_file" >&6;}
4128 case $cache_file in
4129 [\\/]* | ?:[\\/]* ) . $cache_file;;
4130 *) . ./$cache_file;;
4131 esac
4132 fi
252b5132 4133else
42ecbf5e
DJ
4134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4135echo "$as_me: creating cache $cache_file" >&6;}
4136 >$cache_file
252b5132
RH
4137fi
4138
4139
4140# This can be used to rebuild libtool when needed
ac48eca1 4141LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4142
4143# Always use our own libtool.
4144LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4145
4146# Redirect the config.log output again, so that the ltconfig log is not
4147# clobbered by the next message.
4148exec 5>>./config.log
4149
ac48eca1 4150
42ecbf5e
DJ
4151
4152
4153
4154
ac48eca1 4155
252b5132
RH
4156# Check whether --enable-targets or --disable-targets was given.
4157if test "${enable_targets+set}" = set; then
4158 enableval="$enable_targets"
4159 case "${enableval}" in
42ecbf5e
DJ
4160 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4161echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4162 { (exit 1); exit 1; }; }
252b5132
RH
4163 ;;
4164 no) enable_targets= ;;
4165 *) enable_targets=$enableval ;;
4166esac
42ecbf5e 4167fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4168if test "${enable_commonbfdlib+set}" = set; then
4169 enableval="$enable_commonbfdlib"
4170 case "${enableval}" in
4171 yes) commonbfdlib=true ;;
4172 no) commonbfdlib=false ;;
42ecbf5e
DJ
4173 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4174echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4175 { (exit 1); exit 1; }; } ;;
252b5132 4176esac
42ecbf5e 4177fi;
398ee8f1 4178
a541e3ce 4179GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4180
569acd2c
NC
4181# Check whether --enable-werror or --disable-werror was given.
4182if test "${enable_werror+set}" = set; then
4183 enableval="$enable_werror"
1ad12f97
NC
4184 case "${enableval}" in
4185 yes | y) ERROR_ON_WARNING="yes" ;;
4186 no | n) ERROR_ON_WARNING="no" ;;
42ecbf5e
DJ
4187 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4188echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4189 { (exit 1); exit 1; }; } ;;
1ad12f97 4190 esac
42ecbf5e 4191fi;
1ad12f97 4192
9e9b66a9
AM
4193# Enable -Werror by default when using gcc
4194if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4195 ERROR_ON_WARNING=yes
1ad12f97 4196fi
569acd2c 4197
9e9b66a9
AM
4198NO_WERROR=
4199if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4200 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9
AM
4201 NO_WERROR="-Wno-error"
4202fi
42ecbf5e 4203
a541e3ce
SE
4204if test "${GCC}" = yes ; then
4205 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4206fi
4207
a2d91340
AC
4208# Check whether --enable-build-warnings or --disable-build-warnings was given.
4209if test "${enable_build_warnings+set}" = set; then
4210 enableval="$enable_build_warnings"
4211 case "${enableval}" in
a541e3ce
SE
4212 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4213 no) if test "${GCC}" = yes ; then
4214 WARN_CFLAGS="-w"
4215 fi;;
a2d91340 4216 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4217 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4218 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4219 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4220 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d15b04bd 4221esac
42ecbf5e 4222fi;
9e9b66a9
AM
4223
4224if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4225 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d15b04bd 4226fi
9e9b66a9
AM
4227
4228
e5a52504 4229
e5a52504 4230
398ee8f1 4231
42ecbf5e 4232 ac_config_headers="$ac_config_headers config.h:config.in"
d15b04bd
L
4233
4234
4235if test -z "$target" ; then
42ecbf5e
DJ
4236 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4237echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4238 { (exit 1); exit 1; }; }
d15b04bd
L
4239fi
4240if test -z "$host" ; then
42ecbf5e
DJ
4241 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4242echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4243 { (exit 1); exit 1; }; }
4244fi
4245
4246ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4253set dummy ${ac_tool_prefix}gcc; ac_word=$2
4254echo "$as_me:$LINENO: checking for $ac_word" >&5
4255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256if test "${ac_cv_prog_CC+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259 if test -n "$CC"; then
4260 ac_cv_prog_CC="$CC" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273done
4274done
4275
4276fi
4277fi
4278CC=$ac_cv_prog_CC
4279if test -n "$CC"; then
4280 echo "$as_me:$LINENO: result: $CC" >&5
4281echo "${ECHO_T}$CC" >&6
4282else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
d15b04bd
L
4285fi
4286
42ecbf5e
DJ
4287fi
4288if test -z "$ac_cv_prog_CC"; then
4289 ac_ct_CC=$CC
4290 # Extract the first word of "gcc", so it can be a program name with args.
d15b04bd 4291set dummy gcc; ac_word=$2
42ecbf5e
DJ
4292echo "$as_me:$LINENO: checking for $ac_word" >&5
4293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 if test -n "$ac_ct_CC"; then
4298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_ac_ct_CC="gcc"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311done
4312done
4313
4314fi
4315fi
4316ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317if test -n "$ac_ct_CC"; then
4318 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4319echo "${ECHO_T}$ac_ct_CC" >&6
4320else
4321 echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
4323fi
4324
4325 CC=$ac_ct_CC
4326else
4327 CC="$ac_cv_prog_CC"
4328fi
4329
4330if test -z "$CC"; then
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4333set dummy ${ac_tool_prefix}cc; ac_word=$2
4334echo "$as_me:$LINENO: checking for $ac_word" >&5
4335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336if test "${ac_cv_prog_CC+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 4338else
d15b04bd
L
4339 if test -n "$CC"; then
4340 ac_cv_prog_CC="$CC" # Let the user override the test.
e5a52504 4341else
42ecbf5e
DJ
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_CC="${ac_tool_prefix}cc"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353done
4354done
4355
252b5132 4356fi
e5a52504 4357fi
42ecbf5e 4358CC=$ac_cv_prog_CC
d15b04bd 4359if test -n "$CC"; then
42ecbf5e
DJ
4360 echo "$as_me:$LINENO: result: $CC" >&5
4361echo "${ECHO_T}$CC" >&6
4362else
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365fi
4366
4367fi
4368if test -z "$ac_cv_prog_CC"; then
4369 ac_ct_CC=$CC
4370 # Extract the first word of "cc", so it can be a program name with args.
4371set dummy cc; ac_word=$2
4372echo "$as_me:$LINENO: checking for $ac_word" >&5
4373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 if test -n "$ac_ct_CC"; then
4378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4379else
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_ac_ct_CC="cc"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
4392done
4393
4394fi
4395fi
4396ac_ct_CC=$ac_cv_prog_ac_ct_CC
4397if test -n "$ac_ct_CC"; then
4398 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4399echo "${ECHO_T}$ac_ct_CC" >&6
4400else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403fi
4404
4405 CC=$ac_ct_CC
252b5132 4406else
42ecbf5e 4407 CC="$ac_cv_prog_CC"
252b5132 4408fi
e5a52504 4409
42ecbf5e 4410fi
d15b04bd
L
4411if test -z "$CC"; then
4412 # Extract the first word of "cc", so it can be a program name with args.
4413set dummy cc; ac_word=$2
42ecbf5e
DJ
4414echo "$as_me:$LINENO: checking for $ac_word" >&5
4415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416if test "${ac_cv_prog_CC+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4418else
d15b04bd
L
4419 if test -n "$CC"; then
4420 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4421else
d15b04bd 4422 ac_prog_rejected=no
42ecbf5e
DJ
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4431 ac_prog_rejected=yes
4432 continue
4433 fi
4434 ac_cv_prog_CC="cc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438done
4439done
4440
d15b04bd
L
4441if test $ac_prog_rejected = yes; then
4442 # We found a bogon in the path, so make sure we never use it.
4443 set dummy $ac_cv_prog_CC
4444 shift
42ecbf5e 4445 if test $# != 0; then
d15b04bd
L
4446 # We chose a different compiler from the bogus one.
4447 # However, it has the same basename, so the bogon will be chosen
4448 # first if we set CC to just the basename; use the full file name.
4449 shift
42ecbf5e 4450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
e5a52504 4451 fi
252b5132
RH
4452fi
4453fi
d15b04bd 4454fi
42ecbf5e 4455CC=$ac_cv_prog_CC
d15b04bd 4456if test -n "$CC"; then
42ecbf5e
DJ
4457 echo "$as_me:$LINENO: result: $CC" >&5
4458echo "${ECHO_T}$CC" >&6
252b5132 4459else
42ecbf5e
DJ
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
252b5132
RH
4462fi
4463
42ecbf5e
DJ
4464fi
4465if test -z "$CC"; then
4466 if test -n "$ac_tool_prefix"; then
4467 for ac_prog in cl
4468 do
4469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4471echo "$as_me:$LINENO: checking for $ac_word" >&5
4472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473if test "${ac_cv_prog_CC+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4475else
d15b04bd
L
4476 if test -n "$CC"; then
4477 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4478else
42ecbf5e
DJ
4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490done
4491done
4492
252b5132
RH
4493fi
4494fi
42ecbf5e 4495CC=$ac_cv_prog_CC
d15b04bd 4496if test -n "$CC"; then
42ecbf5e
DJ
4497 echo "$as_me:$LINENO: result: $CC" >&5
4498echo "${ECHO_T}$CC" >&6
252b5132 4499else
42ecbf5e
DJ
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
d15b04bd 4502fi
42ecbf5e
DJ
4503
4504 test -n "$CC" && break
4505 done
4506fi
4507if test -z "$CC"; then
4508 ac_ct_CC=$CC
4509 for ac_prog in cl
4510do
4511 # Extract the first word of "$ac_prog", so it can be a program name with args.
4512set dummy $ac_prog; ac_word=$2
4513echo "$as_me:$LINENO: checking for $ac_word" >&5
4514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518 if test -n "$ac_ct_CC"; then
4519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_ac_ct_CC="$ac_prog"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
d15b04bd 4531 fi
42ecbf5e
DJ
4532done
4533done
4534
4535fi
4536fi
4537ac_ct_CC=$ac_cv_prog_ac_ct_CC
4538if test -n "$ac_ct_CC"; then
4539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4540echo "${ECHO_T}$ac_ct_CC" >&6
4541else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
252b5132
RH
4544fi
4545
42ecbf5e
DJ
4546 test -n "$ac_ct_CC" && break
4547done
e5a52504 4548
42ecbf5e
DJ
4549 CC=$ac_ct_CC
4550fi
4551
4552fi
4553
4554
4555test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4556See \`config.log' for more details." >&5
4557echo "$as_me: error: no acceptable C compiler found in \$PATH
4558See \`config.log' for more details." >&2;}
4559 { (exit 1); exit 1; }; }
4560
4561# Provide some information about the compiler.
4562echo "$as_me:$LINENO:" \
4563 "checking for C compiler version" >&5
4564ac_compiler=`set X $ac_compile; echo $2`
4565{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4566 (eval $ac_compiler --version </dev/null >&5) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }
4570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4571 (eval $ac_compiler -v </dev/null >&5) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }
4575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4576 (eval $ac_compiler -V </dev/null >&5) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
4580
4581echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4583if test "${ac_cv_c_compiler_gnu+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596#ifndef __GNUC__
4597 choke me
4598#endif
e5a52504 4599
42ecbf5e
DJ
4600 ;
4601 return 0;
4602}
4603_ACEOF
4604rm -f conftest.$ac_objext
4605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
b7d4af3a
JW
4613 { ac_try='test -z "$ac_c_werror_flag"
4614 || test ! -s conftest.err'
42ecbf5e
DJ
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_compiler_gnu=yes
4627else
4628 echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631ac_compiler_gnu=no
4632fi
4633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634ac_cv_c_compiler_gnu=$ac_compiler_gnu
4635
4636fi
4637echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4638echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4639GCC=`test $ac_compiler_gnu = yes && echo yes`
4640ac_test_CFLAGS=${CFLAGS+set}
4641ac_save_CFLAGS=$CFLAGS
4642CFLAGS="-g"
4643echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4644echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4645if test "${ac_cv_prog_cc_g+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
252b5132 4654
42ecbf5e
DJ
4655int
4656main ()
4657{
d15b04bd 4658
42ecbf5e
DJ
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext
4664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
b7d4af3a
JW
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
42ecbf5e
DJ
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 ac_cv_prog_cc_g=yes
4686else
4687 echo "$as_me: failed program was:" >&5
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
4690ac_cv_prog_cc_g=no
4691fi
4692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4695echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4696if test "$ac_test_CFLAGS" = set; then
4697 CFLAGS=$ac_save_CFLAGS
4698elif test $ac_cv_prog_cc_g = yes; then
4699 if test "$GCC" = yes; then
4700 CFLAGS="-g -O2"
d15b04bd 4701 else
42ecbf5e 4702 CFLAGS="-g"
d15b04bd 4703 fi
252b5132 4704else
42ecbf5e
DJ
4705 if test "$GCC" = yes; then
4706 CFLAGS="-O2"
4707 else
4708 CFLAGS=
4709 fi
252b5132 4710fi
42ecbf5e
DJ
4711echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4712echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4713if test "${ac_cv_prog_cc_stdc+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716 ac_cv_prog_cc_stdc=no
4717ac_save_CC=$CC
4718cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h. */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h. */
4724#include <stdarg.h>
4725#include <stdio.h>
4726#include <sys/types.h>
4727#include <sys/stat.h>
4728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4729struct buf { int x; };
4730FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731static char *e (p, i)
4732 char **p;
4733 int i;
4734{
4735 return p[i];
4736}
4737static char *f (char * (*g) (char **, int), char **p, ...)
4738{
4739 char *s;
4740 va_list v;
4741 va_start (v,p);
4742 s = g (p, va_arg (v,int));
4743 va_end (v);
4744 return s;
4745}
252b5132 4746
42ecbf5e
DJ
4747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4748 function prototypes and stuff, but not '\xHH' hex character constants.
4749 These don't provoke an error unfortunately, instead are silently treated
4750 as 'x'. The following induces an error, until -std1 is added to get
4751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4752 array size at least. It's necessary to write '\x00'==0 to get something
4753 that's true only with -std1. */
4754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4755
4756int test (int i, double x);
4757struct s1 {int (*f) (int a);};
4758struct s2 {int (*f) (double a);};
4759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4760int argc;
4761char **argv;
4762int
4763main ()
4764{
4765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770# Don't try gcc -ansi; that turns off useful extensions and
4771# breaks some systems' header files.
4772# AIX -qlanglvl=ansi
4773# Ultrix and OSF/1 -std1
4774# HP-UX 10.20 and later -Ae
4775# HP-UX older versions -Aa -D_HPUX_SOURCE
4776# SVR4 -Xc -D__EXTENSIONS__
4777for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4778do
4779 CC="$ac_save_CC $ac_arg"
4780 rm -f conftest.$ac_objext
4781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
b7d4af3a
JW
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
42ecbf5e
DJ
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_prog_cc_stdc=$ac_arg
4803break
252b5132 4804else
42ecbf5e
DJ
4805 echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
252b5132 4808fi
42ecbf5e
DJ
4809rm -f conftest.err conftest.$ac_objext
4810done
4811rm -f conftest.$ac_ext conftest.$ac_objext
4812CC=$ac_save_CC
4813
252b5132 4814fi
e5a52504 4815
42ecbf5e
DJ
4816case "x$ac_cv_prog_cc_stdc" in
4817 x|xno)
4818 echo "$as_me:$LINENO: result: none needed" >&5
4819echo "${ECHO_T}none needed" >&6 ;;
4820 *)
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4822echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4823 CC="$CC $ac_cv_prog_cc_stdc" ;;
4824esac
e5a52504 4825
42ecbf5e
DJ
4826# Some people use a C++ compiler to compile C. Since we use `exit',
4827# in C++ we need to declare it. In case someone uses the same compiler
4828# for both compiling C and C++ we need to have the C++ compiler decide
4829# the declaration of exit, since it's the most demanding environment.
4830cat >conftest.$ac_ext <<_ACEOF
4831#ifndef __cplusplus
4832 choke me
4833#endif
4834_ACEOF
4835rm -f conftest.$ac_objext
4836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
b7d4af3a
JW
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
42ecbf5e
DJ
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 for ac_declaration in \
4858 '' \
4859 'extern "C" void std::exit (int) throw (); using std::exit;' \
4860 'extern "C" void std::exit (int); using std::exit;' \
4861 'extern "C" void exit (int) throw ();' \
4862 'extern "C" void exit (int);' \
4863 'void exit (int);'
4864do
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871$ac_declaration
4872#include <stdlib.h>
4873int
4874main ()
4875{
4876exit (42);
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
b7d4af3a
JW
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
42ecbf5e
DJ
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 :
d15b04bd 4904else
42ecbf5e
DJ
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4907
42ecbf5e
DJ
4908continue
4909fi
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h. */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h. */
4917$ac_declaration
4918int
4919main ()
4920{
4921exit (42);
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
b7d4af3a
JW
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
42ecbf5e
DJ
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 break
d15b04bd 4949else
42ecbf5e
DJ
4950 echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
252b5132 4953fi
42ecbf5e
DJ
4954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955done
d15b04bd 4956rm -f conftest*
42ecbf5e
DJ
4957if test -n "$ac_declaration"; then
4958 echo '#ifdef __cplusplus' >>confdefs.h
4959 echo $ac_declaration >>confdefs.h
4960 echo '#endif' >>confdefs.h
d15b04bd 4961fi
252b5132 4962
ac48eca1 4963else
42ecbf5e
DJ
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
d15b04bd 4967fi
42ecbf5e
DJ
4968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
e5a52504 4974
d15b04bd 4975
3e321448
L
4976cat >>confdefs.h <<\_ACEOF
4977#define _GNU_SOURCE 1
4978_ACEOF
4979
4980
4981
d15b04bd
L
4982for ac_prog in 'bison -y' byacc
4983do
42ecbf5e 4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 4985set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
4986echo "$as_me:$LINENO: checking for $ac_word" >&5
4987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988if test "${ac_cv_prog_YACC+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
4990else
4991 if test -n "$YACC"; then
4992 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4993else
42ecbf5e
DJ
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_YACC="$ac_prog"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005done
5006done
5007
ac48eca1
AO
5008fi
5009fi
42ecbf5e 5010YACC=$ac_cv_prog_YACC
d15b04bd 5011if test -n "$YACC"; then
42ecbf5e
DJ
5012 echo "$as_me:$LINENO: result: $YACC" >&5
5013echo "${ECHO_T}$YACC" >&6
e5a52504 5014else
42ecbf5e
DJ
5015 echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
e5a52504
MM
5017fi
5018
42ecbf5e 5019 test -n "$YACC" && break
d15b04bd
L
5020done
5021test -n "$YACC" || YACC="yacc"
5022
d15b04bd
L
5023for ac_prog in flex lex
5024do
42ecbf5e 5025 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 5026set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
5027echo "$as_me:$LINENO: checking for $ac_word" >&5
5028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029if test "${ac_cv_prog_LEX+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
5031else
5032 if test -n "$LEX"; then
5033 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5034else
42ecbf5e
DJ
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_LEX="$ac_prog"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
d15b04bd 5047done
d15b04bd 5048
d15b04bd 5049fi
e5a52504 5050fi
42ecbf5e 5051LEX=$ac_cv_prog_LEX
d15b04bd 5052if test -n "$LEX"; then
42ecbf5e
DJ
5053 echo "$as_me:$LINENO: result: $LEX" >&5
5054echo "${ECHO_T}$LEX" >&6
e5a52504 5055else
42ecbf5e
DJ
5056 echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
e5a52504 5058fi
e5a52504 5059
42ecbf5e
DJ
5060 test -n "$LEX" && break
5061done
5062test -n "$LEX" || LEX=":"
5063
d15b04bd
L
5064if test -z "$LEXLIB"
5065then
42ecbf5e
DJ
5066 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5067echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5068if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 ac_check_lib_save_LIBS=$LIBS
5072LIBS="-lfl $LIBS"
5073cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079
d15b04bd 5080/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
5081#ifdef __cplusplus
5082extern "C"
5083#endif
d15b04bd 5084/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
5085 builtin and then its argument prototype would still apply. */
5086char yywrap ();
5087int
5088main ()
5089{
5090yywrap ();
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095rm -f conftest.$ac_objext conftest$ac_exeext
5096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
b7d4af3a
JW
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
42ecbf5e
DJ
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_lib_fl_yywrap=yes
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122ac_cv_lib_fl_yywrap=no
5123fi
5124rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126LIBS=$ac_check_lib_save_LIBS
5127fi
5128echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5129echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5130if test $ac_cv_lib_fl_yywrap = yes; then
5131 LEXLIB="-lfl"
5132else
5133 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5134echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5135if test "${ac_cv_lib_l_yywrap+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 ac_check_lib_save_LIBS=$LIBS
5139LIBS="-ll $LIBS"
5140cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
d15b04bd 5146
42ecbf5e
DJ
5147/* Override any gcc2 internal prototype to avoid an error. */
5148#ifdef __cplusplus
5149extern "C"
5150#endif
5151/* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5153char yywrap ();
5154int
5155main ()
5156{
5157yywrap ();
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext conftest$ac_exeext
5163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
b7d4af3a
JW
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
42ecbf5e
DJ
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_lib_l_yywrap=yes
5185else
5186 echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189ac_cv_lib_l_yywrap=no
5190fi
5191rm -f conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
5193LIBS=$ac_check_lib_save_LIBS
5194fi
5195echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5196echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5197if test $ac_cv_lib_l_yywrap = yes; then
5198 LEXLIB="-ll"
5199fi
5200
5201fi
5202
5203fi
5204
5205if test "x$LEX" != "x:"; then
5206 echo "$as_me:$LINENO: checking lex output file root" >&5
5207echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5208if test "${ac_cv_prog_lex_root+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5210else
d15b04bd
L
5211 # The minimal lex program is just a single line: %%. But some broken lexes
5212# (Solaris, I think it was) want two %% lines, so accommodate them.
42ecbf5e
DJ
5213cat >conftest.l <<_ACEOF
5214%%
5215%%
5216_ACEOF
5217{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5218 (eval $LEX conftest.l) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }
d15b04bd
L
5222if test -f lex.yy.c; then
5223 ac_cv_prog_lex_root=lex.yy
5224elif test -f lexyy.c; then
5225 ac_cv_prog_lex_root=lexyy
e5a52504 5226else
42ecbf5e
DJ
5227 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5228echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5229 { (exit 1); exit 1; }; }
e5a52504 5230fi
d15b04bd 5231fi
42ecbf5e
DJ
5232echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5233echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5234rm -f conftest.l
d15b04bd
L
5235LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5236
42ecbf5e
DJ
5237echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5238echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5239if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5241else
d15b04bd
L
5242 # POSIX says lex can declare yytext either as a pointer or an array; the
5243# default is implementation-dependent. Figure out which it is, since
5244# not all implementations provide the %pointer and %array declarations.
5245ac_cv_prog_lex_yytext_pointer=no
5246echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
42ecbf5e 5247ac_save_LIBS=$LIBS
d15b04bd 5248LIBS="$LIBS $LEXLIB"
42ecbf5e 5249cat >conftest.$ac_ext <<_ACEOF
d15b04bd 5250`cat $LEX_OUTPUT_ROOT.c`
42ecbf5e
DJ
5251_ACEOF
5252rm -f conftest.$ac_objext conftest$ac_exeext
5253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
b7d4af3a
JW
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
42ecbf5e
DJ
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
d15b04bd
L
5274 ac_cv_prog_lex_yytext_pointer=yes
5275else
42ecbf5e
DJ
5276 echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
e5a52504 5279fi
42ecbf5e
DJ
5280rm -f conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282LIBS=$ac_save_LIBS
d15b04bd 5283rm -f "${LEX_OUTPUT_ROOT}.c"
e5a52504 5284
e5a52504 5285fi
42ecbf5e
DJ
5286echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5287echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d15b04bd 5288if test $ac_cv_prog_lex_yytext_pointer = yes; then
42ecbf5e
DJ
5289
5290cat >>confdefs.h <<\_ACEOF
d15b04bd 5291#define YYTEXT_POINTER 1
42ecbf5e 5292_ACEOF
d15b04bd
L
5293
5294fi
e5a52504 5295
42ecbf5e
DJ
5296fi
5297if test "$LEX" = :; then
5298 LEX=${am_missing_run}flex
5299fi
e5a52504 5300
bdcfeba5 5301ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
20e95c23
DJ
5302# If we haven't got the data from the intl directory,
5303# assume NLS is disabled.
5304USE_NLS=no
5305LIBINTL=
5306LIBINTL_DEP=
5307INCINTL=
5308XGETTEXT=
5309GMSGFMT=
5310POSUB=
5311if test -f ../intl/config.intl; then
5312 . ../intl/config.intl
5313fi
5314echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5315echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5316if test x"$USE_NLS" != xyes; then
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
e5a52504 5319else
20e95c23
DJ
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322
5323cat >>confdefs.h <<\_ACEOF
5324#define ENABLE_NLS 1
5325_ACEOF
5326
5327
5328 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5329echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5330 # Look for .po and .gmo files in the source directory.
5331 CATALOGS=
5332 XLINGUAS=
5333 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5334 # If there aren't any .gmo files the shell will give us the
5335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5336 # weeded out.
5337 case "$cat" in *\**)
5338 continue;;
5339 esac
5340 # The quadruple backslash is collapsed to a double backslash
5341 # by the backticks, then collapsed again by the double quotes,
5342 # leaving us with one backslash in the sed expression (right
5343 # before the dot that mustn't act as a wildcard).
5344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5345 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5346 # The user is allowed to set LINGUAS to a list of languages to
5347 # install catalogs for. If it's empty that means "all of them."
5348 if test "x$LINGUAS" = x; then
5349 CATALOGS="$CATALOGS $cat"
5350 XLINGUAS="$XLINGUAS $lang"
5351 else
5352 case "$LINGUAS" in *$lang*)
5353 CATALOGS="$CATALOGS $cat"
5354 XLINGUAS="$XLINGUAS $lang"
5355 ;;
5356 esac
5357 fi
5358 done
5359 LINGUAS="$XLINGUAS"
5360 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5361echo "${ECHO_T}$LINGUAS" >&6
5362
5363
5364 DATADIRNAME=share
5365
5366 INSTOBJEXT=.mo
5367
5368 GENCAT=gencat
5369
5370 CATOBJEXT=.gmo
5371
5372fi
5373
5374 MKINSTALLDIRS=
5375 if test -n "$ac_aux_dir"; then
5376 case "$ac_aux_dir" in
5377 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5378 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5379 esac
5380 fi
5381 if test -z "$MKINSTALLDIRS"; then
5382 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5383 fi
5384
5385
5386
5387 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5388echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5389 # Check whether --enable-nls or --disable-nls was given.
5390if test "${enable_nls+set}" = set; then
5391 enableval="$enable_nls"
5392 USE_NLS=$enableval
d15b04bd 5393else
20e95c23
DJ
5394 USE_NLS=yes
5395fi;
5396 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5397echo "${ECHO_T}$USE_NLS" >&6
5398
5399
5400
5401
5402
5403
5404# Prepare PATH_SEPARATOR.
5405# The user is always right.
5406if test "${PATH_SEPARATOR+set}" != set; then
5407 echo "#! /bin/sh" >conf$$.sh
5408 echo "exit 0" >>conf$$.sh
5409 chmod +x conf$$.sh
5410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5411 PATH_SEPARATOR=';'
5412 else
5413 PATH_SEPARATOR=:
42ecbf5e 5414 fi
20e95c23
DJ
5415 rm -f conf$$.sh
5416fi
42ecbf5e 5417
20e95c23
DJ
5418# Find out how to test for executable files. Don't use a zero-byte file,
5419# as systems may use methods other than mode bits to determine executability.
5420cat >conf$$.file <<_ASEOF
5421#! /bin/sh
5422exit 0
5423_ASEOF
5424chmod +x conf$$.file
5425if test -x conf$$.file >/dev/null 2>&1; then
5426 ac_executable_p="test -x"
5427else
5428 ac_executable_p="test -f"
d15b04bd 5429fi
20e95c23
DJ
5430rm -f conf$$.file
5431
5432# Extract the first word of "msgfmt", so it can be a program name with args.
5433set dummy msgfmt; ac_word=$2
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_path_MSGFMT+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 case "$MSGFMT" in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH; do
5446 IFS="$ac_save_IFS"
5447 test -z "$ac_dir" && ac_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5450 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5451 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5452 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5453 break 2
5454 fi
5455 fi
5456 done
5457 done
5458 IFS="$ac_save_IFS"
5459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5460 ;;
5461esac
d15b04bd 5462fi
20e95c23
DJ
5463MSGFMT="$ac_cv_path_MSGFMT"
5464if test "$MSGFMT" != ":"; then
5465 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5466echo "${ECHO_T}$MSGFMT" >&6
42ecbf5e
DJ
5467else
5468 echo "$as_me:$LINENO: result: no" >&5
5469echo "${ECHO_T}no" >&6
5470fi
5471
20e95c23
DJ
5472 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5473set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5476if test "${ac_cv_path_GMSGFMT+set}" = set; then
42ecbf5e
DJ
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
20e95c23
DJ
5479 case $GMSGFMT in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5491 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
42ecbf5e
DJ
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496done
5497
20e95c23
DJ
5498 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5499 ;;
5500esac
42ecbf5e 5501fi
20e95c23
DJ
5502GMSGFMT=$ac_cv_path_GMSGFMT
5503
5504if test -n "$GMSGFMT"; then
5505 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5506echo "${ECHO_T}$GMSGFMT" >&6
42ecbf5e
DJ
5507else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
20e95c23
DJ
5512
5513
5514# Prepare PATH_SEPARATOR.
5515# The user is always right.
5516if test "${PATH_SEPARATOR+set}" != set; then
5517 echo "#! /bin/sh" >conf$$.sh
5518 echo "exit 0" >>conf$$.sh
5519 chmod +x conf$$.sh
5520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5521 PATH_SEPARATOR=';'
5522 else
5523 PATH_SEPARATOR=:
5524 fi
5525 rm -f conf$$.sh
42ecbf5e
DJ
5526fi
5527
20e95c23
DJ
5528# Find out how to test for executable files. Don't use a zero-byte file,
5529# as systems may use methods other than mode bits to determine executability.
5530cat >conf$$.file <<_ASEOF
5531#! /bin/sh
5532exit 0
5533_ASEOF
5534chmod +x conf$$.file
5535if test -x conf$$.file >/dev/null 2>&1; then
5536 ac_executable_p="test -x"
5537else
5538 ac_executable_p="test -f"
42ecbf5e 5539fi
20e95c23
DJ
5540rm -f conf$$.file
5541
5542# Extract the first word of "xgettext", so it can be a program name with args.
5543set dummy xgettext; ac_word=$2
5544echo "$as_me:$LINENO: checking for $ac_word" >&5
5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546if test "${ac_cv_path_XGETTEXT+set}" = set; then
42ecbf5e
DJ
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
20e95c23
DJ
5549 case "$XGETTEXT" in
5550 [\\/]* | ?:[\\/]*)
5551 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5552 ;;
5553 *)
5554 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5555 for ac_dir in $PATH; do
5556 IFS="$ac_save_IFS"
5557 test -z "$ac_dir" && ac_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5560 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5561 (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
5562 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5563 break 2
5564 fi
5565 fi
5566 done
5567 done
5568 IFS="$ac_save_IFS"
5569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5570 ;;
5571esac
5572fi
5573XGETTEXT="$ac_cv_path_XGETTEXT"
5574if test "$XGETTEXT" != ":"; then
5575 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5576echo "${ECHO_T}$XGETTEXT" >&6
5577else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581
5582 rm -f messages.po
5583
5584
5585# Prepare PATH_SEPARATOR.
5586# The user is always right.
5587if test "${PATH_SEPARATOR+set}" != set; then
5588 echo "#! /bin/sh" >conf$$.sh
5589 echo "exit 0" >>conf$$.sh
5590 chmod +x conf$$.sh
5591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5592 PATH_SEPARATOR=';'
42ecbf5e 5593 else
20e95c23 5594 PATH_SEPARATOR=:
42ecbf5e 5595 fi
20e95c23 5596 rm -f conf$$.sh
42ecbf5e 5597fi
42ecbf5e 5598
20e95c23
DJ
5599# Find out how to test for executable files. Don't use a zero-byte file,
5600# as systems may use methods other than mode bits to determine executability.
5601cat >conf$$.file <<_ASEOF
5602#! /bin/sh
5603exit 0
5604_ASEOF
5605chmod +x conf$$.file
5606if test -x conf$$.file >/dev/null 2>&1; then
5607 ac_executable_p="test -x"
5608else
5609 ac_executable_p="test -f"
42ecbf5e 5610fi
20e95c23 5611rm -f conf$$.file
42ecbf5e 5612
20e95c23
DJ
5613# Extract the first word of "msgmerge", so it can be a program name with args.
5614set dummy msgmerge; ac_word=$2
5615echo "$as_me:$LINENO: checking for $ac_word" >&5
5616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5617if test "${ac_cv_path_MSGMERGE+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5619else
20e95c23
DJ
5620 case "$MSGMERGE" in
5621 [\\/]* | ?:[\\/]*)
5622 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5623 ;;
5624 *)
5625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5626 for ac_dir in $PATH; do
5627 IFS="$ac_save_IFS"
5628 test -z "$ac_dir" && ac_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5631 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5632 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5633 break 2
5634 fi
5635 fi
5636 done
5637 done
5638 IFS="$ac_save_IFS"
5639 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5640 ;;
5641esac
42ecbf5e 5642fi
20e95c23
DJ
5643MSGMERGE="$ac_cv_path_MSGMERGE"
5644if test "$MSGMERGE" != ":"; then
5645 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5646echo "${ECHO_T}$MSGMERGE" >&6
42ecbf5e 5647else
20e95c23
DJ
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
42ecbf5e 5650fi
42ecbf5e 5651
42ecbf5e 5652
20e95c23
DJ
5653 if test "$GMSGFMT" != ":"; then
5654 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5655 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5656 : ;
5657 else
5658 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5659 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5660echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5661 GMSGFMT=":"
5662 fi
5663 fi
42ecbf5e 5664
20e95c23
DJ
5665 if test "$XGETTEXT" != ":"; then
5666 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5667 (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
5668 : ;
5669 else
5670 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5671echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5672 XGETTEXT=":"
5673 fi
5674 rm -f messages.po
42ecbf5e 5675 fi
42ecbf5e 5676
20e95c23 5677 ac_config_commands="$ac_config_commands default-1"
42ecbf5e 5678
42ecbf5e 5679
42ecbf5e 5680
20e95c23
DJ
5681echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5682echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5683 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5684if test "${enable_maintainer_mode+set}" = set; then
5685 enableval="$enable_maintainer_mode"
5686 USE_MAINTAINER_MODE=$enableval
42ecbf5e 5687else
20e95c23
DJ
5688 USE_MAINTAINER_MODE=no
5689fi;
5690 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5691echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e
DJ
5692
5693
20e95c23
DJ
5694if test $USE_MAINTAINER_MODE = yes; then
5695 MAINTAINER_MODE_TRUE=
5696 MAINTAINER_MODE_FALSE='#'
d15b04bd 5697else
20e95c23
DJ
5698 MAINTAINER_MODE_TRUE='#'
5699 MAINTAINER_MODE_FALSE=
e5a52504 5700fi
42ecbf5e 5701
20e95c23 5702 MAINT=$MAINTAINER_MODE_TRUE
ac48eca1 5703
42ecbf5e 5704
42ecbf5e 5705
20e95c23
DJ
5706if test -n "$EXEEXT"; then
5707
5708cat >>confdefs.h <<\_ACEOF
5709#define HAVE_EXECUTABLE_SUFFIX 1
42ecbf5e 5710_ACEOF
42ecbf5e 5711
252b5132 5712fi
252b5132 5713
20e95c23
DJ
5714cat >>confdefs.h <<_ACEOF
5715#define EXECUTABLE_SUFFIX "${EXEEXT}"
42ecbf5e 5716_ACEOF
42ecbf5e 5717
252b5132 5718
20e95c23 5719# host-specific stuff:
252b5132 5720
20e95c23 5721HDEFINES=
42ecbf5e 5722
20e95c23 5723. ${srcdir}/../bfd/configure.host
252b5132 5724
252b5132 5725
20e95c23 5726AR=${AR-ar}
d15b04bd 5727
20e95c23
DJ
5728if test -n "$ac_tool_prefix"; then
5729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5730set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5731echo "$as_me:$LINENO: checking for $ac_word" >&5
5732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733if test "${ac_cv_prog_RANLIB+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5735else
20e95c23
DJ
5736 if test -n "$RANLIB"; then
5737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750done
5751done
42ecbf5e 5752
252b5132 5753fi
252b5132 5754fi
20e95c23
DJ
5755RANLIB=$ac_cv_prog_RANLIB
5756if test -n "$RANLIB"; then
5757 echo "$as_me:$LINENO: result: $RANLIB" >&5
5758echo "${ECHO_T}$RANLIB" >&6
5759else
5760 echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
252b5132 5762fi
252b5132
RH
5763
5764fi
20e95c23
DJ
5765if test -z "$ac_cv_prog_RANLIB"; then
5766 ac_ct_RANLIB=$RANLIB
5767 # Extract the first word of "ranlib", so it can be a program name with args.
5768set dummy ranlib; ac_word=$2
5769echo "$as_me:$LINENO: checking for $ac_word" >&5
5770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e
DJ
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
20e95c23
DJ
5774 if test -n "$ac_ct_RANLIB"; then
5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5776else
20e95c23
DJ
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_RANLIB="ranlib"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789done
42ecbf5e 5790
20e95c23 5791 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132 5792fi
252b5132 5793fi
20e95c23
DJ
5794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795if test -n "$ac_ct_RANLIB"; then
5796 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5797echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5798else
20e95c23
DJ
5799 echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
252b5132 5801fi
252b5132 5802
20e95c23
DJ
5803 RANLIB=$ac_ct_RANLIB
5804else
5805 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5806fi
42ecbf5e 5807
20e95c23
DJ
5808# Find a good install program. We prefer a C program (faster),
5809# so one script is as good as another. But avoid the broken or
5810# incompatible versions:
5811# SysV /etc/install, /usr/sbin/install
5812# SunOS /usr/etc/install
5813# IRIX /sbin/install
5814# AIX /bin/install
5815# AmigaOS /C/install, which installs bootblocks on floppy discs
5816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5819# OS/2's system install, which has a completely different semantic
5820# ./install, which can be erroneously created by make from ./install.sh.
5821echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5823if test -z "$INSTALL"; then
5824if test "${ac_cv_path_install+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5826else
20e95c23
DJ
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 # Account for people who put trailing slashes in PATH elements.
5833case $as_dir/ in
5834 ./ | .// | /cC/* | \
5835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5837 /usr/ucb/* ) ;;
5838 *)
5839 # OSF1 and SCO ODT 3.0 have their own names for install.
5840 # Don't use installbsd from OSF since it installs stuff as root
5841 # by default.
5842 for ac_prog in ginstall scoinst install; do
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5845 if test $ac_prog = install &&
5846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5847 # AIX install. It has an incompatible calling convention.
5848 :
5849 elif test $ac_prog = install &&
5850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5851 # program-specific install script used by HP pwplus--don't use.
5852 :
5853 else
5854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5855 break 3
5856 fi
5857 fi
5858 done
5859 done
42ecbf5e
DJ
5860 ;;
5861esac
20e95c23 5862done
42ecbf5e 5863
42ecbf5e 5864
42ecbf5e 5865fi
20e95c23
DJ
5866 if test "${ac_cv_path_install+set}" = set; then
5867 INSTALL=$ac_cv_path_install
5868 else
5869 # As a last resort, use the slow shell script. We don't cache a
5870 # path for INSTALL within a source directory, because that will
5871 # break other packages using the cache if that directory is
5872 # removed, or if the path is relative.
5873 INSTALL=$ac_install_sh
5874 fi
42ecbf5e 5875fi
20e95c23
DJ
5876echo "$as_me:$LINENO: result: $INSTALL" >&5
5877echo "${ECHO_T}$INSTALL" >&6
42ecbf5e 5878
20e95c23
DJ
5879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5880# It thinks the first close brace ends the variable substitution.
5881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5882
20e95c23 5883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132 5884
20e95c23 5885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42ecbf5e 5886
252b5132 5887
20e95c23
DJ
5888# Put a plausible default for CC_FOR_BUILD in Makefile.
5889if test -z "$CC_FOR_BUILD"; then
5890 if test "x$cross_compiling" = "xno"; then
5891 CC_FOR_BUILD='$(CC)'
5892 else
5893 CC_FOR_BUILD=gcc
5894 fi
5895fi
5896
5897# Also set EXEEXT_FOR_BUILD.
5898if test "x$cross_compiling" = "xno"; then
5899 EXEEXT_FOR_BUILD='$(EXEEXT)'
5900else
5901 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
5902echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
5903if test "${bfd_cv_build_exeext+set}" = set; then
42ecbf5e 5904 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5905else
20e95c23
DJ
5906 rm -f conftest*
5907 echo 'int main () { return 0; }' > conftest.c
5908 bfd_cv_build_exeext=
5909 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5910 for file in conftest.*; do
5911 case $file in
5912 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5913 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5914 esac
5915 done
5916 rm -f conftest*
5917 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 5918fi
20e95c23
DJ
5919echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
5920echo "${ECHO_T}$bfd_cv_build_exeext" >&6
5921 EXEEXT_FOR_BUILD=""
5922 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132 5923fi
42ecbf5e 5924
20e95c23
DJ
5925
5926DEMANGLER_NAME=c++filt
5927case "${host}" in
5928 *-*-go32* | *-*-msdos*)
5929 DEMANGLER_NAME=cxxfilt
5930esac
5931
5932
5933ac_ext=c
5934ac_cpp='$CPP $CPPFLAGS'
5935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5940# On Suns, sometimes $CPP names a directory.
5941if test -n "$CPP" && test -d "$CPP"; then
5942 CPP=
5943fi
5944if test -z "$CPP"; then
5945 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e
DJ
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
20e95c23
DJ
5948 # Double quotes because CPP needs to be expanded
5949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5950 do
5951 ac_preproc_ok=false
5952for ac_c_preproc_warn_flag in '' yes
5953do
5954 # Use a header file that comes with gcc, so configuring glibc
5955 # with a fresh cross-compiler works.
5956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957 # <limits.h> exists even on freestanding compilers.
5958 # On the NeXT, cc -E runs the code through the compiler's parser,
5959 # not just through cpp. "Syntax error" is here to catch this case.
42ecbf5e
DJ
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
42ecbf5e
DJ
5966#ifdef __STDC__
5967# include <limits.h>
5968#else
5969# include <assert.h>
5970#endif
20e95c23 5971 Syntax error
42ecbf5e 5972_ACEOF
20e95c23
DJ
5973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5980 (exit $ac_status); } >/dev/null; then
5981 if test -s conftest.err; then
5982 ac_cpp_err=$ac_c_preproc_warn_flag
5983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984 else
5985 ac_cpp_err=
42ecbf5e 5986 fi
252b5132 5987else
20e95c23 5988 ac_cpp_err=yes
252b5132 5989fi
20e95c23
DJ
5990if test -z "$ac_cpp_err"; then
5991 :
252b5132 5992else
20e95c23
DJ
5993 echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 # Broken: fails on valid input.
5997continue
252b5132 5998fi
20e95c23 5999rm -f conftest.err conftest.$ac_ext
252b5132 6000
20e95c23
DJ
6001 # OK, works on sane cases. Now check whether non-existent headers
6002 # can be detected and how.
6003 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */
20e95c23 6009#include <ac_nonexistent.h>
42ecbf5e 6010_ACEOF
20e95c23
DJ
6011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022 else
6023 ac_cpp_err=
6024 fi
6025else
6026 ac_cpp_err=yes
6027fi
6028if test -z "$ac_cpp_err"; then
6029 # Broken: success on invalid input.
6030continue
252b5132 6031else
42ecbf5e
DJ
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
20e95c23
DJ
6035 # Passes both tests.
6036ac_preproc_ok=:
6037break
252b5132 6038fi
20e95c23 6039rm -f conftest.err conftest.$ac_ext
42ecbf5e 6040
20e95c23
DJ
6041done
6042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6043rm -f conftest.err conftest.$ac_ext
6044if $ac_preproc_ok; then
6045 break
252b5132
RH
6046fi
6047
20e95c23
DJ
6048 done
6049 ac_cv_prog_CPP=$CPP
252b5132 6050
252b5132 6051fi
20e95c23 6052 CPP=$ac_cv_prog_CPP
252b5132 6053else
20e95c23 6054 ac_cv_prog_CPP=$CPP
252b5132 6055fi
20e95c23
DJ
6056echo "$as_me:$LINENO: result: $CPP" >&5
6057echo "${ECHO_T}$CPP" >&6
6058ac_preproc_ok=false
6059for ac_c_preproc_warn_flag in '' yes
42ecbf5e 6060do
20e95c23
DJ
6061 # Use a header file that comes with gcc, so configuring glibc
6062 # with a fresh cross-compiler works.
6063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 # <limits.h> exists even on freestanding compilers.
6065 # On the NeXT, cc -E runs the code through the compiler's parser,
6066 # not just through cpp. "Syntax error" is here to catch this case.
6067 cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073#ifdef __STDC__
6074# include <limits.h>
6075#else
6076# include <assert.h>
6077#endif
6078 Syntax error
6079_ACEOF
6080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null; then
6088 if test -s conftest.err; then
6089 ac_cpp_err=$ac_c_preproc_warn_flag
6090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6091 else
6092 ac_cpp_err=
42ecbf5e 6093 fi
20e95c23
DJ
6094else
6095 ac_cpp_err=yes
252b5132 6096fi
20e95c23
DJ
6097if test -z "$ac_cpp_err"; then
6098 :
252b5132 6099else
20e95c23
DJ
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 # Broken: fails on valid input.
6104continue
252b5132 6105fi
20e95c23 6106rm -f conftest.err conftest.$ac_ext
252b5132 6107
20e95c23
DJ
6108 # OK, works on sane cases. Now check whether non-existent headers
6109 # can be detected and how.
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116#include <ac_nonexistent.h>
6117_ACEOF
6118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129 else
6130 ac_cpp_err=
6131 fi
252b5132 6132else
20e95c23 6133 ac_cpp_err=yes
252b5132 6134fi
20e95c23
DJ
6135if test -z "$ac_cpp_err"; then
6136 # Broken: success on invalid input.
6137continue
252b5132 6138else
20e95c23
DJ
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
c46f8c51 6141
20e95c23
DJ
6142 # Passes both tests.
6143ac_preproc_ok=:
6144break
6145fi
6146rm -f conftest.err conftest.$ac_ext
42ecbf5e 6147
20e95c23
DJ
6148done
6149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6150rm -f conftest.err conftest.$ac_ext
6151if $ac_preproc_ok; then
6152 :
6153else
6154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6155See \`config.log' for more details." >&5
6156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6157See \`config.log' for more details." >&2;}
6158 { (exit 1); exit 1; }; }
6159fi
252b5132 6160
20e95c23
DJ
6161ac_ext=c
6162ac_cpp='$CPP $CPPFLAGS'
6163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 6166
252b5132 6167
20e95c23
DJ
6168echo "$as_me:$LINENO: checking for egrep" >&5
6169echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6170if test "${ac_cv_prog_egrep+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6174 then ac_cv_prog_egrep='grep -E'
6175 else ac_cv_prog_egrep='egrep'
6176 fi
6177fi
6178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6179echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6180 EGREP=$ac_cv_prog_egrep
42ecbf5e 6181
252b5132 6182
20e95c23
DJ
6183echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6184echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6185if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 6186 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6187else
20e95c23 6188 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
20e95c23
DJ
6194#include <stdlib.h>
6195#include <stdarg.h>
6196#include <string.h>
6197#include <float.h>
6198
6199int
6200main ()
6201{
6202
6203 ;
6204 return 0;
6205}
42ecbf5e
DJ
6206_ACEOF
6207rm -f conftest.$ac_objext
6208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
b7d4af3a
JW
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
42ecbf5e
DJ
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
20e95c23 6229 ac_cv_header_stdc=yes
42ecbf5e
DJ
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
20e95c23 6234ac_cv_header_stdc=no
42ecbf5e
DJ
6235fi
6236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6237
20e95c23
DJ
6238if test $ac_cv_header_stdc = yes; then
6239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6240 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6241/* confdefs.h. */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h. */
20e95c23 6246#include <string.h>
42ecbf5e 6247
20e95c23
DJ
6248_ACEOF
6249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "memchr" >/dev/null 2>&1; then
6251 :
42ecbf5e 6252else
20e95c23 6253 ac_cv_header_stdc=no
e5a52504 6254fi
20e95c23 6255rm -f conftest*
42ecbf5e
DJ
6256
6257fi
252b5132 6258
20e95c23
DJ
6259if test $ac_cv_header_stdc = yes; then
6260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267#include <stdlib.h>
252b5132 6268
20e95c23
DJ
6269_ACEOF
6270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "free" >/dev/null 2>&1; then
6272 :
252b5132 6273else
20e95c23 6274 ac_cv_header_stdc=no
252b5132 6275fi
20e95c23 6276rm -f conftest*
2481e6a2
ILT
6277
6278fi
42ecbf5e 6279
20e95c23
DJ
6280if test $ac_cv_header_stdc = yes; then
6281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6282 if test "$cross_compiling" = yes; then
6283 :
252b5132 6284else
20e95c23
DJ
6285 cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h. */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h. */
6291#include <ctype.h>
6292#if ((' ' & 0x0FF) == 0x020)
6293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6295#else
6296# define ISLOWER(c) \
6297 (('a' <= (c) && (c) <= 'i') \
6298 || ('j' <= (c) && (c) <= 'r') \
6299 || ('s' <= (c) && (c) <= 'z'))
6300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6301#endif
42ecbf5e 6302
20e95c23
DJ
6303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6304int
6305main ()
6306{
6307 int i;
6308 for (i = 0; i < 256; i++)
6309 if (XOR (islower (i), ISLOWER (i))
6310 || toupper (i) != TOUPPER (i))
6311 exit(2);
6312 exit (0);
6313}
6314_ACEOF
6315rm -f conftest$ac_exeext
6316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 :
42ecbf5e 6327else
20e95c23
DJ
6328 echo "$as_me: program exited with status $ac_status" >&5
6329echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6331
20e95c23
DJ
6332( exit $ac_status )
6333ac_cv_header_stdc=no
42ecbf5e 6334fi
20e95c23 6335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
6336fi
6337fi
42ecbf5e 6338fi
20e95c23
DJ
6339echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6340echo "${ECHO_T}$ac_cv_header_stdc" >&6
6341if test $ac_cv_header_stdc = yes; then
6342
6343cat >>confdefs.h <<\_ACEOF
6344#define STDC_HEADERS 1
6345_ACEOF
42ecbf5e 6346
252b5132
RH
6347fi
6348
20e95c23 6349# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42ecbf5e 6350
252b5132 6351
252b5132 6352
252b5132 6353
252b5132 6354
252b5132
RH
6355
6356
252b5132 6357
20e95c23
DJ
6358
6359for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6360 inttypes.h stdint.h unistd.h
6361do
6362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6363echo "$as_me:$LINENO: checking for $ac_header" >&5
6364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
42ecbf5e 6366 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6367else
20e95c23
DJ
6368 cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374$ac_includes_default
6375
6376#include <$ac_header>
6377_ACEOF
6378rm -f conftest.$ac_objext
6379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 eval "$as_ac_Header=yes"
6401else
6402 echo "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405eval "$as_ac_Header=no"
252b5132 6406fi
20e95c23 6407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6408fi
20e95c23
DJ
6409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6411if test `eval echo '${'$as_ac_Header'}'` = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414_ACEOF
252b5132 6415
20e95c23 6416fi
252b5132 6417
20e95c23 6418done
8a965946
ILT
6419
6420
42ecbf5e
DJ
6421
6422
6423
6424
6425
6426
6427for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
252b5132 6428do
42ecbf5e
DJ
6429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430if eval "test \"\${$as_ac_Header+set}\" = set"; then
6431 echo "$as_me:$LINENO: checking for $ac_header" >&5
6432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6433if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435fi
6436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438else
6439 # Is the header compilable?
6440echo "$as_me:$LINENO: checking $ac_header usability" >&5
6441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6442cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448$ac_includes_default
6449#include <$ac_header>
6450_ACEOF
6451rm -f conftest.$ac_objext
6452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453 (eval $ac_compile) 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
b7d4af3a
JW
6460 { ac_try='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
42ecbf5e
DJ
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6473 ac_header_compiler=yes
6474else
6475 echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
6478ac_header_compiler=no
6479fi
6480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482echo "${ECHO_T}$ac_header_compiler" >&6
6483
6484# Is the header present?
6485echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493#include <$ac_header>
6494_ACEOF
6495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev/null; then
6503 if test -s conftest.err; then
6504 ac_cpp_err=$ac_c_preproc_warn_flag
6505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6506 else
6507 ac_cpp_err=
6508 fi
252b5132 6509else
42ecbf5e 6510 ac_cpp_err=yes
252b5132 6511fi
42ecbf5e
DJ
6512if test -z "$ac_cpp_err"; then
6513 ac_header_preproc=yes
6514else
6515 echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_header_preproc=no
252b5132 6519fi
42ecbf5e
DJ
6520rm -f conftest.err conftest.$ac_ext
6521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522echo "${ECHO_T}$ac_header_preproc" >&6
6523
6524# So? What about this header?
6525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6526 yes:no: )
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6531 ac_header_preproc=yes
6532 ;;
6533 no:yes:* )
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6546 (
6547 cat <<\_ASBOX
6548## ------------------------------------------ ##
6549## Report this to the AC_PACKAGE_NAME lists. ##
6550## ------------------------------------------ ##
6551_ASBOX
6552 ) |
6553 sed "s/^/$as_me: WARNING: /" >&2
6554 ;;
6555esac
6556echo "$as_me:$LINENO: checking for $ac_header" >&5
6557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6560else
42ecbf5e
DJ
6561 eval "$as_ac_Header=\$ac_header_preproc"
6562fi
6563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565
252b5132 6566fi
42ecbf5e
DJ
6567if test `eval echo '${'$as_ac_Header'}'` = yes; then
6568 cat >>confdefs.h <<_ACEOF
6569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6570_ACEOF
6571
6572fi
6573
252b5132
RH
6574done
6575
42ecbf5e
DJ
6576echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6577echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6578if test "${ac_cv_header_sys_wait_h+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581 cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
252b5132
RH
6587#include <sys/types.h>
6588#include <sys/wait.h>
6589#ifndef WEXITSTATUS
42ecbf5e 6590# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
6591#endif
6592#ifndef WIFEXITED
42ecbf5e 6593# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 6594#endif
42ecbf5e
DJ
6595
6596int
6597main ()
6598{
6599 int s;
6600 wait (&s);
6601 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6602 ;
6603 return 0;
6604}
6605_ACEOF
6606rm -f conftest.$ac_objext
6607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
b7d4af3a
JW
6615 { ac_try='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
42ecbf5e
DJ
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
252b5132
RH
6628 ac_cv_header_sys_wait_h=yes
6629else
42ecbf5e
DJ
6630 echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633ac_cv_header_sys_wait_h=no
252b5132 6634fi
42ecbf5e 6635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6636fi
42ecbf5e
DJ
6637echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6638echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 6639if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
6640
6641cat >>confdefs.h <<\_ACEOF
252b5132 6642#define HAVE_SYS_WAIT_H 1
42ecbf5e 6643_ACEOF
252b5132
RH
6644
6645fi
6646
6647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6648# for constant arguments. Useless!
42ecbf5e
DJ
6649echo "$as_me:$LINENO: checking for working alloca.h" >&5
6650echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6651if test "${ac_cv_working_alloca_h+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654 cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
252b5132 6660#include <alloca.h>
42ecbf5e
DJ
6661int
6662main ()
6663{
6664char *p = (char *) alloca (2 * sizeof (int));
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669rm -f conftest.$ac_objext conftest$ac_exeext
6670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
b7d4af3a
JW
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
42ecbf5e
DJ
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest$ac_exeext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_working_alloca_h=yes
6692else
6693 echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696ac_cv_working_alloca_h=no
6697fi
6698rm -f conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700fi
6701echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6702echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6703if test $ac_cv_working_alloca_h = yes; then
6704
6705cat >>confdefs.h <<\_ACEOF
252b5132 6706#define HAVE_ALLOCA_H 1
42ecbf5e 6707_ACEOF
252b5132
RH
6708
6709fi
6710
42ecbf5e
DJ
6711echo "$as_me:$LINENO: checking for alloca" >&5
6712echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6713if test "${ac_cv_func_alloca_works+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6715else
42ecbf5e
DJ
6716 cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
252b5132
RH
6722#ifdef __GNUC__
6723# define alloca __builtin_alloca
6724#else
6725# ifdef _MSC_VER
6726# include <malloc.h>
6727# define alloca _alloca
6728# else
6729# if HAVE_ALLOCA_H
6730# include <alloca.h>
6731# else
6732# ifdef _AIX
6733 #pragma alloca
6734# else
6735# ifndef alloca /* predefined by HP cc +Olibcalls */
6736char *alloca ();
6737# endif
6738# endif
6739# endif
6740# endif
6741#endif
6742
42ecbf5e
DJ
6743int
6744main ()
6745{
6746char *p = (char *) alloca (1);
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext conftest$ac_exeext
6752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
b7d4af3a
JW
6760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
42ecbf5e
DJ
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
252b5132
RH
6773 ac_cv_func_alloca_works=yes
6774else
42ecbf5e
DJ
6775 echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778ac_cv_func_alloca_works=no
252b5132 6779fi
42ecbf5e
DJ
6780rm -f conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
252b5132 6782fi
42ecbf5e
DJ
6783echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6784echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6785
252b5132 6786if test $ac_cv_func_alloca_works = yes; then
e5a52504 6787
42ecbf5e
DJ
6788cat >>confdefs.h <<\_ACEOF
6789#define HAVE_ALLOCA 1
6790_ACEOF
e5a52504 6791
42ecbf5e 6792else
d15b04bd 6793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
6794# that cause trouble. Some versions do not even contain alloca or
6795# contain a buggy version. If you still want to use their alloca,
6796# use ar to extract alloca.o from them instead of compiling alloca.c.
6797
6798ALLOCA=alloca.$ac_objext
6799
6800cat >>confdefs.h <<\_ACEOF
252b5132 6801#define C_ALLOCA 1
42ecbf5e 6802_ACEOF
252b5132
RH
6803
6804
42ecbf5e
DJ
6805echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6806echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6807if test "${ac_cv_os_cray+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6809else
42ecbf5e
DJ
6810 cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
252b5132
RH
6816#if defined(CRAY) && ! defined(CRAY2)
6817webecray
6818#else
6819wenotbecray
6820#endif
6821
42ecbf5e 6822_ACEOF
252b5132 6823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 6824 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6825 ac_cv_os_cray=yes
6826else
252b5132
RH
6827 ac_cv_os_cray=no
6828fi
6829rm -f conftest*
6830
6831fi
42ecbf5e
DJ
6832echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6833echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 6834if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
6835 for ac_func in _getb67 GETB67 getb67; do
6836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6837echo "$as_me:$LINENO: checking for $ac_func" >&5
6838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6839if eval "test \"\${$as_ac_var+set}\" = set"; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841else
6842 cat >conftest.$ac_ext <<_ACEOF
6843/* confdefs.h. */
6844_ACEOF
6845cat confdefs.h >>conftest.$ac_ext
6846cat >>conftest.$ac_ext <<_ACEOF
6847/* end confdefs.h. */
6848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6850#define $ac_func innocuous_$ac_func
6851
252b5132 6852/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6853 which can conflict with char $ac_func (); below.
6854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 <limits.h> exists even on freestanding compilers. */
6856
6857#ifdef __STDC__
6858# include <limits.h>
6859#else
6860# include <assert.h>
6861#endif
d15b04bd 6862
42ecbf5e 6863#undef $ac_func
d15b04bd 6864
42ecbf5e
DJ
6865/* Override any gcc2 internal prototype to avoid an error. */
6866#ifdef __cplusplus
6867extern "C"
6868{
6869#endif
6870/* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872char $ac_func ();
252b5132
RH
6873/* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6877choke me
6878#else
42ecbf5e
DJ
6879char (*f) () = $ac_func;
6880#endif
6881#ifdef __cplusplus
6882}
252b5132
RH
6883#endif
6884
42ecbf5e
DJ
6885int
6886main ()
6887{
6888return f != $ac_func;
6889 ;
6890 return 0;
6891}
6892_ACEOF
6893rm -f conftest.$ac_objext conftest$ac_exeext
6894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
b7d4af3a
JW
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
42ecbf5e
DJ
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 eval "$as_ac_var=yes"
6916else
6917 echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920eval "$as_ac_var=no"
6921fi
6922rm -f conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924fi
6925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6927if test `eval echo '${'$as_ac_var'}'` = yes; then
6928
6929cat >>confdefs.h <<_ACEOF
252b5132 6930#define CRAY_STACKSEG_END $ac_func
42ecbf5e 6931_ACEOF
252b5132 6932
42ecbf5e 6933 break
252b5132
RH
6934fi
6935
42ecbf5e 6936 done
252b5132
RH
6937fi
6938
42ecbf5e
DJ
6939echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6940echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6941if test "${ac_cv_c_stack_direction+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6943else
6944 if test "$cross_compiling" = yes; then
6945 ac_cv_c_stack_direction=0
6946else
42ecbf5e
DJ
6947 cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
6953int
252b5132
RH
6954find_stack_direction ()
6955{
6956 static char *addr = 0;
6957 auto char dummy;
6958 if (addr == 0)
6959 {
6960 addr = &dummy;
6961 return find_stack_direction ();
6962 }
6963 else
6964 return (&dummy > addr) ? 1 : -1;
6965}
42ecbf5e
DJ
6966
6967int
252b5132
RH
6968main ()
6969{
42ecbf5e 6970 exit (find_stack_direction () < 0);
252b5132 6971}
42ecbf5e
DJ
6972_ACEOF
6973rm -f conftest$ac_exeext
6974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975 (eval $ac_link) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
252b5132
RH
6984 ac_cv_c_stack_direction=1
6985else
42ecbf5e
DJ
6986 echo "$as_me: program exited with status $ac_status" >&5
6987echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990( exit $ac_status )
6991ac_cv_c_stack_direction=-1
252b5132 6992fi
42ecbf5e 6993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6994fi
252b5132 6995fi
42ecbf5e
DJ
6996echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6997echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6998
42ecbf5e 6999cat >>confdefs.h <<_ACEOF
252b5132 7000#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
7001_ACEOF
7002
252b5132
RH
7003
7004fi
7005
42ecbf5e
DJ
7006
7007
7008
7009
7010
9710509e 7011for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 7012do
42ecbf5e
DJ
7013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014echo "$as_me:$LINENO: checking for $ac_func" >&5
7015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7016if eval "test \"\${$as_ac_var+set}\" = set"; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7027#define $ac_func innocuous_$ac_func
7028
252b5132 7029/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7030 which can conflict with char $ac_func (); below.
7031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7032 <limits.h> exists even on freestanding compilers. */
7033
7034#ifdef __STDC__
7035# include <limits.h>
7036#else
7037# include <assert.h>
7038#endif
d15b04bd 7039
42ecbf5e 7040#undef $ac_func
d15b04bd 7041
42ecbf5e
DJ
7042/* Override any gcc2 internal prototype to avoid an error. */
7043#ifdef __cplusplus
7044extern "C"
7045{
7046#endif
7047/* We use char because int might match the return type of a gcc2
7048 builtin and then its argument prototype would still apply. */
7049char $ac_func ();
252b5132
RH
7050/* The GNU C library defines this for functions which it implements
7051 to always fail with ENOSYS. Some functions are actually named
7052 something starting with __ and the normal name is an alias. */
7053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7054choke me
7055#else
42ecbf5e
DJ
7056char (*f) () = $ac_func;
7057#endif
7058#ifdef __cplusplus
7059}
252b5132
RH
7060#endif
7061
42ecbf5e
DJ
7062int
7063main ()
7064{
7065return f != $ac_func;
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext conftest$ac_exeext
7071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
b7d4af3a
JW
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
42ecbf5e
DJ
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 eval "$as_ac_var=yes"
7093else
7094 echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097eval "$as_ac_var=no"
7098fi
7099rm -f conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101fi
7102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7103echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7104if test `eval echo '${'$as_ac_var'}'` = yes; then
7105 cat >>confdefs.h <<_ACEOF
7106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7107_ACEOF
252b5132 7108
252b5132
RH
7109fi
7110done
7111
7112
cedd9a58
JJ
7113# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
7114# needs to be defined for it
42ecbf5e
DJ
7115echo "$as_me:$LINENO: checking for fopen64" >&5
7116echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
7117if test "${bu_cv_have_fopen64+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120 cat >conftest.$ac_ext <<_ACEOF
7121/* confdefs.h. */
7122_ACEOF
7123cat confdefs.h >>conftest.$ac_ext
7124cat >>conftest.$ac_ext <<_ACEOF
7125/* end confdefs.h. */
cedd9a58 7126#include <stdio.h>
42ecbf5e
DJ
7127int
7128main ()
7129{
cedd9a58 7130FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
7131 ;
7132 return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext conftest$ac_exeext
7136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
b7d4af3a
JW
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
42ecbf5e
DJ
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
cedd9a58
JJ
7157 bu_cv_have_fopen64=yes
7158else
42ecbf5e
DJ
7159 echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162saved_CPPFLAGS=$CPPFLAGS
cedd9a58 7163 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
7164 cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h. */
cedd9a58 7170#include <stdio.h>
42ecbf5e
DJ
7171int
7172main ()
7173{
cedd9a58 7174FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179rm -f conftest.$ac_objext conftest$ac_exeext
7180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
b7d4af3a
JW
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
42ecbf5e
DJ
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
cedd9a58
JJ
7201 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
7202else
42ecbf5e
DJ
7203 echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206bu_cv_have_fopen64=no
cedd9a58 7207fi
42ecbf5e
DJ
7208rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 7210 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 7211fi
42ecbf5e
DJ
7212rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
cedd9a58 7214fi
cedd9a58 7215
42ecbf5e
DJ
7216echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
7217echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 7218if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
7219
7220cat >>confdefs.h <<\_ACEOF
cedd9a58 7221#define HAVE_FOPEN64 1
42ecbf5e 7222_ACEOF
cedd9a58 7223
fb5b5478 7224fi
42ecbf5e
DJ
7225echo "$as_me:$LINENO: checking for stat64" >&5
7226echo $ECHO_N "checking for stat64... $ECHO_C" >&6
7227if test "${bu_cv_have_stat64+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 7229else
42ecbf5e
DJ
7230 cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
fb5b5478 7236#include <sys/stat.h>
42ecbf5e
DJ
7237int
7238main ()
7239{
fb5b5478 7240struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
7241 ;
7242 return 0;
7243}
7244_ACEOF
7245rm -f conftest.$ac_objext conftest$ac_exeext
7246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>conftest.er1
7248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
b7d4af3a
JW
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
42ecbf5e
DJ
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
fb5b5478
JJ
7267 bu_cv_have_stat64=yes
7268else
42ecbf5e
DJ
7269 echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
7271
7272saved_CPPFLAGS=$CPPFLAGS
fb5b5478 7273 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
7274 cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
fb5b5478 7280#include <sys/stat.h>
42ecbf5e
DJ
7281int
7282main ()
7283{
fb5b5478 7284struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
7285 ;
7286 return 0;
7287}
7288_ACEOF
7289rm -f conftest.$ac_objext conftest$ac_exeext
7290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7291 (eval $ac_link) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
b7d4af3a
JW
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
42ecbf5e
DJ
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest$ac_exeext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
fb5b5478
JJ
7311 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
7312else
42ecbf5e
DJ
7313 echo "$as_me: failed program was:" >&5
7314sed 's/^/| /' conftest.$ac_ext >&5
7315
7316bu_cv_have_stat64=no
fb5b5478 7317fi
42ecbf5e
DJ
7318rm -f conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
7320 CPPFLAGS=$saved_CPPFLAGS
7321fi
42ecbf5e
DJ
7322rm -f conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
7324fi
7325
42ecbf5e
DJ
7326echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
7327echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 7328if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
7329
7330cat >>confdefs.h <<\_ACEOF
fb5b5478 7331#define HAVE_STAT64 1
42ecbf5e 7332_ACEOF
fb5b5478
JJ
7333
7334fi
7335if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
7336 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
7337
7338cat >>confdefs.h <<\_ACEOF
cedd9a58 7339#define _LARGEFILE64_SOURCE 1
42ecbf5e 7340_ACEOF
cedd9a58 7341
fb5b5478 7342 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
7343fi
7344
f353eb8a 7345# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
7346echo "$as_me:$LINENO: checking for library containing frexp" >&5
7347echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
7348if test "${ac_cv_search_frexp+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 ac_func_search_save_LIBS=$LIBS
7352ac_cv_search_frexp=no
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
f353eb8a 7359
f353eb8a 7360/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7361#ifdef __cplusplus
7362extern "C"
7363#endif
f353eb8a 7364/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7365 builtin and then its argument prototype would still apply. */
7366char frexp ();
7367int
7368main ()
7369{
7370frexp ();
7371 ;
7372 return 0;
7373}
7374_ACEOF
7375rm -f conftest.$ac_objext conftest$ac_exeext
7376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
b7d4af3a
JW
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
42ecbf5e
DJ
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest$ac_exeext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
f353eb8a
ILT
7397 ac_cv_search_frexp="none required"
7398else
42ecbf5e
DJ
7399 echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
f353eb8a 7402fi
42ecbf5e
DJ
7403rm -f conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405if test "$ac_cv_search_frexp" = no; then
7406 for ac_lib in m; do
7407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414
f353eb8a 7415/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7416#ifdef __cplusplus
7417extern "C"
7418#endif
f353eb8a 7419/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7420 builtin and then its argument prototype would still apply. */
7421char frexp ();
7422int
7423main ()
7424{
7425frexp ();
7426 ;
7427 return 0;
7428}
7429_ACEOF
7430rm -f conftest.$ac_objext conftest$ac_exeext
7431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>conftest.er1
7433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
b7d4af3a
JW
7439 { ac_try='test -z "$ac_c_werror_flag"
7440 || test ! -s conftest.err'
42ecbf5e
DJ
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try='test -s conftest$ac_exeext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7452 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
7453break
7454else
42ecbf5e
DJ
7455 echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
f353eb8a 7458fi
42ecbf5e
DJ
7459rm -f conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7461 done
e5a52504 7462fi
42ecbf5e
DJ
7463LIBS=$ac_func_search_save_LIBS
7464fi
7465echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
7466echo "${ECHO_T}$ac_cv_search_frexp" >&6
7467if test "$ac_cv_search_frexp" != no; then
d15b04bd 7468 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 7469
f353eb8a
ILT
7470fi
7471
42ecbf5e
DJ
7472
7473echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7474echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
7475if test "${bu_cv_decl_time_t_time_h+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7477else
42ecbf5e
DJ
7478 cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h. */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h. */
252b5132 7484#include <time.h>
42ecbf5e
DJ
7485int
7486main ()
7487{
252b5132 7488time_t i;
42ecbf5e
DJ
7489 ;
7490 return 0;
7491}
7492_ACEOF
7493rm -f conftest.$ac_objext
7494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495 (eval $ac_compile) 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
b7d4af3a
JW
7502 { ac_try='test -z "$ac_c_werror_flag"
7503 || test ! -s conftest.err'
42ecbf5e
DJ
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
252b5132
RH
7515 bu_cv_decl_time_t_time_h=yes
7516else
42ecbf5e
DJ
7517 echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520bu_cv_decl_time_t_time_h=no
252b5132 7521fi
42ecbf5e 7522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7523fi
7524
42ecbf5e
DJ
7525echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
7526echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 7527if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
7528
7529cat >>confdefs.h <<\_ACEOF
252b5132 7530#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 7531_ACEOF
252b5132
RH
7532
7533fi
7534
42ecbf5e
DJ
7535echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
7536echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
7537if test "${bu_cv_decl_time_t_types_h+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7539else
42ecbf5e
DJ
7540 cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h. */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h. */
252b5132 7546#include <sys/types.h>
42ecbf5e
DJ
7547int
7548main ()
7549{
252b5132 7550time_t i;
42ecbf5e
DJ
7551 ;
7552 return 0;
7553}
7554_ACEOF
7555rm -f conftest.$ac_objext
7556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
b7d4af3a
JW
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
42ecbf5e
DJ
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
252b5132
RH
7577 bu_cv_decl_time_t_types_h=yes
7578else
42ecbf5e
DJ
7579 echo "$as_me: failed program was:" >&5
7580sed 's/^/| /' conftest.$ac_ext >&5
7581
7582bu_cv_decl_time_t_types_h=no
252b5132 7583fi
42ecbf5e 7584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7585fi
7586
42ecbf5e
DJ
7587echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
7588echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 7589if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
7590
7591cat >>confdefs.h <<\_ACEOF
252b5132 7592#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 7593_ACEOF
252b5132
RH
7594
7595fi
7596
42ecbf5e
DJ
7597echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
7598echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
7599if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 7601else
42ecbf5e
DJ
7602 cat >conftest.$ac_ext <<_ACEOF
7603/* confdefs.h. */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h. */
e46eba98 7608#include <unistd.h>
42ecbf5e
DJ
7609int
7610main ()
7611{
e46eba98 7612extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
7613 ;
7614 return 0;
7615}
7616_ACEOF
7617rm -f conftest.$ac_objext
7618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
b7d4af3a
JW
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
42ecbf5e
DJ
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
e46eba98
NC
7639 bu_cv_decl_getopt_unistd_h=yes
7640else
42ecbf5e
DJ
7641 echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644bu_cv_decl_getopt_unistd_h=no
e46eba98 7645fi
42ecbf5e 7646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
7647fi
7648
42ecbf5e
DJ
7649echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
7650echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 7651if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
7652
7653cat >>confdefs.h <<\_ACEOF
e46eba98 7654#define HAVE_DECL_GETOPT 1
42ecbf5e 7655_ACEOF
e46eba98
NC
7656
7657fi
7658
252b5132
RH
7659# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
7660# by default.
42ecbf5e
DJ
7661echo "$as_me:$LINENO: checking for utime.h" >&5
7662echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
7663if test "${bu_cv_header_utime_h+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
252b5132
RH
7672#include <sys/types.h>
7673#ifdef HAVE_TIME_H
7674#include <time.h>
7675#endif
7676#include <utime.h>
42ecbf5e
DJ
7677int
7678main ()
7679{
252b5132 7680struct utimbuf s;
42ecbf5e
DJ
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687 (eval $ac_compile) 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
b7d4af3a
JW
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
42ecbf5e
DJ
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest.$ac_objext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
252b5132
RH
7707 bu_cv_header_utime_h=yes
7708else
42ecbf5e
DJ
7709 echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712bu_cv_header_utime_h=no
252b5132 7713fi
42ecbf5e 7714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7715fi
7716
42ecbf5e
DJ
7717echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
7718echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 7719if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
7720
7721cat >>confdefs.h <<\_ACEOF
252b5132 7722#define HAVE_GOOD_UTIME_H 1
42ecbf5e 7723_ACEOF
252b5132
RH
7724
7725fi
7726
398ee8f1
SE
7727echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
7728echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
7729if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 7730 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7731else
42ecbf5e
DJ
7732 cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
398ee8f1 7738$ac_includes_default
42ecbf5e
DJ
7739int
7740main ()
7741{
398ee8f1
SE
7742#ifndef fprintf
7743 char *p = (char *) fprintf;
7744#endif
7745
42ecbf5e
DJ
7746 ;
7747 return 0;
7748}
7749_ACEOF
7750rm -f conftest.$ac_objext
7751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7752 (eval $ac_compile) 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
b7d4af3a
JW
7759 { ac_try='test -z "$ac_c_werror_flag"
7760 || test ! -s conftest.err'
42ecbf5e
DJ
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; } &&
7766 { ac_try='test -s conftest.$ac_objext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
398ee8f1 7772 ac_cv_have_decl_fprintf=yes
252b5132 7773else
42ecbf5e
DJ
7774 echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
398ee8f1 7777ac_cv_have_decl_fprintf=no
252b5132 7778fi
42ecbf5e 7779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 7780fi
398ee8f1
SE
7781echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
7782echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
7783if test $ac_cv_have_decl_fprintf = yes; then
252b5132 7784
398ee8f1
SE
7785cat >>confdefs.h <<_ACEOF
7786#define HAVE_DECL_FPRINTF 1
7787_ACEOF
42ecbf5e 7788
398ee8f1
SE
7789
7790else
7791 cat >>confdefs.h <<_ACEOF
7792#define HAVE_DECL_FPRINTF 0
42ecbf5e 7793_ACEOF
252b5132 7794
252b5132 7795
3e321448
L
7796fi
7797echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
7798echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7799if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808$ac_includes_default
7809int
7810main ()
7811{
7812#ifndef stpcpy
7813 char *p = (char *) stpcpy;
7814#endif
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext
7821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_have_decl_stpcpy=yes
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847ac_cv_have_decl_stpcpy=no
7848fi
7849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850fi
7851echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
7852echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
7853if test $ac_cv_have_decl_stpcpy = yes; then
7854
7855cat >>confdefs.h <<_ACEOF
7856#define HAVE_DECL_STPCPY 1
7857_ACEOF
7858
7859
7860else
7861 cat >>confdefs.h <<_ACEOF
7862#define HAVE_DECL_STPCPY 0
7863_ACEOF
7864
7865
398ee8f1
SE
7866fi
7867echo "$as_me:$LINENO: checking whether strstr is declared" >&5
7868echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
7869if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 7870 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7871else
42ecbf5e
DJ
7872 cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
398ee8f1 7878$ac_includes_default
42ecbf5e
DJ
7879int
7880main ()
7881{
398ee8f1
SE
7882#ifndef strstr
7883 char *p = (char *) strstr;
7884#endif
7885
42ecbf5e
DJ
7886 ;
7887 return 0;
7888}
7889_ACEOF
7890rm -f conftest.$ac_objext
7891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
b7d4af3a
JW
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
42ecbf5e
DJ
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
398ee8f1 7912 ac_cv_have_decl_strstr=yes
252b5132 7913else
42ecbf5e
DJ
7914 echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
398ee8f1 7917ac_cv_have_decl_strstr=no
252b5132 7918fi
42ecbf5e 7919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 7920fi
398ee8f1
SE
7921echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
7922echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
7923if test $ac_cv_have_decl_strstr = yes; then
252b5132 7924
398ee8f1
SE
7925cat >>confdefs.h <<_ACEOF
7926#define HAVE_DECL_STRSTR 1
7927_ACEOF
42ecbf5e 7928
398ee8f1
SE
7929
7930else
7931 cat >>confdefs.h <<_ACEOF
7932#define HAVE_DECL_STRSTR 0
42ecbf5e 7933_ACEOF
252b5132 7934
252b5132 7935
398ee8f1
SE
7936fi
7937echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
7938echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
7939if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 7940 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7941else
42ecbf5e
DJ
7942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
398ee8f1 7948$ac_includes_default
42ecbf5e
DJ
7949int
7950main ()
7951{
398ee8f1
SE
7952#ifndef sbrk
7953 char *p = (char *) sbrk;
7954#endif
7955
42ecbf5e
DJ
7956 ;
7957 return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext
7961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
b7d4af3a
JW
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
42ecbf5e
DJ
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
398ee8f1 7982 ac_cv_have_decl_sbrk=yes
252b5132 7983else
42ecbf5e
DJ
7984 echo "$as_me: failed program was:" >&5
7985sed 's/^/| /' conftest.$ac_ext >&5
7986
398ee8f1 7987ac_cv_have_decl_sbrk=no
252b5132 7988fi
42ecbf5e 7989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 7990fi
398ee8f1
SE
7991echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
7992echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
7993if test $ac_cv_have_decl_sbrk = yes; then
252b5132 7994
398ee8f1
SE
7995cat >>confdefs.h <<_ACEOF
7996#define HAVE_DECL_SBRK 1
7997_ACEOF
42ecbf5e 7998
398ee8f1
SE
7999
8000else
8001 cat >>confdefs.h <<_ACEOF
8002#define HAVE_DECL_SBRK 0
42ecbf5e 8003_ACEOF
252b5132 8004
252b5132 8005
398ee8f1
SE
8006fi
8007echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8008echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8009if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 8010 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8011else
42ecbf5e
DJ
8012 cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
398ee8f1 8018$ac_includes_default
42ecbf5e
DJ
8019int
8020main ()
8021{
398ee8f1
SE
8022#ifndef getenv
8023 char *p = (char *) getenv;
8024#endif
8025
42ecbf5e
DJ
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030rm -f conftest.$ac_objext
8031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032 (eval $ac_compile) 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
b7d4af3a
JW
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
42ecbf5e
DJ
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
398ee8f1 8052 ac_cv_have_decl_getenv=yes
252b5132 8053else
42ecbf5e
DJ
8054 echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
398ee8f1 8057ac_cv_have_decl_getenv=no
252b5132 8058fi
42ecbf5e 8059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8060fi
398ee8f1
SE
8061echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8062echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8063if test $ac_cv_have_decl_getenv = yes; then
252b5132 8064
398ee8f1
SE
8065cat >>confdefs.h <<_ACEOF
8066#define HAVE_DECL_GETENV 1
8067_ACEOF
42ecbf5e 8068
398ee8f1
SE
8069
8070else
8071 cat >>confdefs.h <<_ACEOF
8072#define HAVE_DECL_GETENV 0
42ecbf5e 8073_ACEOF
252b5132 8074
252b5132 8075
398ee8f1
SE
8076fi
8077echo "$as_me:$LINENO: checking whether environ is declared" >&5
8078echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
8079if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 8080 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8081else
42ecbf5e
DJ
8082 cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
398ee8f1 8088$ac_includes_default
42ecbf5e
DJ
8089int
8090main ()
8091{
398ee8f1
SE
8092#ifndef environ
8093 char *p = (char *) environ;
8094#endif
8095
42ecbf5e
DJ
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
b7d4af3a
JW
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
42ecbf5e
DJ
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
398ee8f1 8122 ac_cv_have_decl_environ=yes
252b5132 8123else
42ecbf5e
DJ
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
398ee8f1 8127ac_cv_have_decl_environ=no
252b5132 8128fi
42ecbf5e 8129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8130fi
398ee8f1
SE
8131echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
8132echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
8133if test $ac_cv_have_decl_environ = yes; then
252b5132 8134
398ee8f1
SE
8135cat >>confdefs.h <<_ACEOF
8136#define HAVE_DECL_ENVIRON 1
8137_ACEOF
42ecbf5e 8138
398ee8f1
SE
8139
8140else
8141 cat >>confdefs.h <<_ACEOF
8142#define HAVE_DECL_ENVIRON 0
42ecbf5e 8143_ACEOF
252b5132 8144
252b5132 8145
398ee8f1 8146fi
b7d4af3a
JW
8147echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8148echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8149if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158$ac_includes_default
8159int
8160main ()
8161{
8162#ifndef getc_unlocked
8163 char *p = (char *) getc_unlocked;
8164#endif
8165
8166 ;
8167 return 0;
8168}
8169_ACEOF
8170rm -f conftest.$ac_objext
8171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172 (eval $ac_compile) 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag"
8180 || test ! -s conftest.err'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; } &&
8186 { ac_try='test -s conftest.$ac_objext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_cv_have_decl_getc_unlocked=yes
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197ac_cv_have_decl_getc_unlocked=no
8198fi
8199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8200fi
8201echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8202echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8203if test $ac_cv_have_decl_getc_unlocked = yes; then
8204
8205cat >>confdefs.h <<_ACEOF
8206#define HAVE_DECL_GETC_UNLOCKED 1
8207_ACEOF
8208
8209
8210else
8211 cat >>confdefs.h <<_ACEOF
8212#define HAVE_DECL_GETC_UNLOCKED 0
8213_ACEOF
8214
8215
db50c840
EB
8216fi
8217echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8218echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8219if test "${ac_cv_have_decl_snprintf+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228$ac_includes_default
8229int
8230main ()
8231{
8232#ifndef snprintf
8233 char *p = (char *) snprintf;
8234#endif
8235
8236 ;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext
8241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest.$ac_objext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_have_decl_snprintf=yes
8263else
8264 echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267ac_cv_have_decl_snprintf=no
8268fi
8269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8270fi
8271echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8272echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8273if test $ac_cv_have_decl_snprintf = yes; then
8274
8275cat >>confdefs.h <<_ACEOF
8276#define HAVE_DECL_SNPRINTF 1
8277_ACEOF
8278
8279
8280else
8281 cat >>confdefs.h <<_ACEOF
8282#define HAVE_DECL_SNPRINTF 0
8283_ACEOF
8284
8285
8286fi
8287echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8288echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8289if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 cat >conftest.$ac_ext <<_ACEOF
8293/* confdefs.h. */
8294_ACEOF
8295cat confdefs.h >>conftest.$ac_ext
8296cat >>conftest.$ac_ext <<_ACEOF
8297/* end confdefs.h. */
8298$ac_includes_default
8299int
8300main ()
8301{
8302#ifndef vsnprintf
8303 char *p = (char *) vsnprintf;
8304#endif
8305
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext
8311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_have_decl_vsnprintf=yes
8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337ac_cv_have_decl_vsnprintf=no
8338fi
8339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340fi
8341echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8342echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8343if test $ac_cv_have_decl_vsnprintf = yes; then
8344
8345cat >>confdefs.h <<_ACEOF
8346#define HAVE_DECL_VSNPRINTF 1
8347_ACEOF
8348
8349
8350else
8351 cat >>confdefs.h <<_ACEOF
8352#define HAVE_DECL_VSNPRINTF 0
8353_ACEOF
8354
8355
b7d4af3a
JW
8356fi
8357
8358
252b5132
RH
8359
8360
8361case "${host}" in
8a965946 8362*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
8363
8364cat >>confdefs.h <<\_ACEOF
252b5132 8365#define USE_BINARY_FOPEN 1
42ecbf5e 8366_ACEOF
252b5132
RH
8367 ;;
8368esac
8369
8370# target-specific stuff:
8371
8372# Canonicalize the secondary target names.
8373if test -n "$enable_targets"; then
8374 for targ in `echo $enable_targets | sed 's/,/ /g'`
8375 do
6d83c84b 8376 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
8377 if test -n "$result"; then
8378 canon_targets="$canon_targets $result"
8379 else
8380 # Allow targets that config.sub doesn't recognize, like "all".
8381 canon_targets="$canon_targets $targ"
8382 fi
8383 done
8384fi
8385
8386all_targets=false
8387BUILD_NLMCONV=
8388NLMCONV_DEFS=
8389BUILD_SRCONV=
8390BUILD_DLLTOOL=
8391DLLTOOL_DEFS=
8392BUILD_WINDRES=
8393BUILD_DLLWRAP=
8394BUILD_MISC=
8b1e6df3 8395OBJDUMP_DEFS=
252b5132
RH
8396
8397for targ in $target $canon_targets
8398do
8399 if test "x$targ" = "xall"; then
8400 all_targets=true
8401 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8402 BUILD_SRCONV='$(SRCONV_PROG)'
8403 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
8404 else
8405 case $targ in
42ecbf5e 8406 i[3-7]86*-*-netware*)
252b5132
RH
8407 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8408 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
8409 ;;
8410 alpha*-*-netware*)
8411 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8412 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
8413 ;;
8414 powerpc*-*-netware*)
8415 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8416 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
8417 ;;
8418 sparc*-*-netware*)
8419 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8420 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
8421 ;;
8422 esac
8423 case $targ in
8424 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
8425 esac
8426 case $targ in
a8c548cb
NC
8427 arm-epoc-pe*)
8428 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8429 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
8430 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8431 ;;
27a710e5 8432 arm-*-pe* | arm-*-wince)
252b5132
RH
8433 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8434 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8435 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8436 ;;
27a710e5 8437 thumb-*-pe*)
252b5132
RH
8438 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8439 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8440 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8441 ;;
80c7c40a 8442 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
8443 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8444 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8445 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8446 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 8447 ;;
80c7c40a 8448 i[3-7]86-*-interix)
7a7b06ef
ILT
8449 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
8450 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8451 ;;
f0660b73
NC
8452 powerpc*-aix5.[01])
8453 ;;
8454 powerpc*-aix5.*)
8455 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
8456 ;;
e1d5b1e7 8457 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132
RH
8458 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8459 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
8460 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 8461 ;;
e1d5b1e7 8462 sh*-*-pe)
8a0e0f38
NC
8463 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8464 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
8465 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8466 ;;
e1d5b1e7 8467 mips*-*-pe)
8a0e0f38
NC
8468 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8469 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
8470 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8471 ;;
27a710e5 8472 mcore-*-pe)
661016bb
NC
8473 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8474 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
8475 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8476 ;;
27a710e5 8477 mcore-*-elf)
661016bb
NC
8478 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8479 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 8480 ;;
252b5132
RH
8481 esac
8482 fi
8483done
8484
42ecbf5e
DJ
8485if test "${with_windres+set}" = set; then
8486 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8487fi
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500cat >>confdefs.h <<_ACEOF
8501#define TARGET "${target}"
8502_ACEOF
8503
8504
8505targ=$target
8506. $srcdir/../bfd/config.bfd
8507if test "x$targ_underscore" = "xyes"; then
8508 UNDERSCORE=1
8509else
8510 UNDERSCORE=0
8511fi
8512
8513cat >>confdefs.h <<_ACEOF
8514#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
8515_ACEOF
8516
8517
8518# Emulation
8519for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8520do
8521 # Canonicalize the secondary target names.
8522 result=`$ac_config_sub $targ_alias 2>/dev/null`
8523 if test -n "$result"; then
8524 targ=$result
8525 else
8526 targ=$targ_alias
8527 fi
8528
8529 . ${srcdir}/configure.tgt
8530
8531 EMULATION=$targ_emul
8532 EMULATION_VECTOR=$targ_emul_vector
8533done
8534
8535
8536
8537
108a6f8e
CD
8538# Required for html and install-html
8539
8540
8541
8542
42ecbf5e 8543 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
8544cat >confcache <<\_ACEOF
8545# This file is a shell script that caches the results of configure
8546# tests run on this system so they can be shared between configure
8547# scripts and configure runs, see configure's option --config-cache.
8548# It is not useful on other systems. If it contains results you don't
8549# want to keep, you may remove or edit it.
8550#
8551# config.status only pays attention to the cache file if you give it
8552# the --recheck option to rerun configure.
8553#
8554# `ac_cv_env_foo' variables (set or unset) will be overridden when
8555# loading this file, other *unset* `ac_cv_foo' will be assigned the
8556# following values.
8557
8558_ACEOF
8559
8560# The following way of writing the cache mishandles newlines in values,
8561# but we know of no workaround that is simple, portable, and efficient.
8562# So, don't put newlines in cache variables' values.
8563# Ultrix sh set writes to stderr and can't be redirected directly,
8564# and sets the high bit in the cache file unless we assign to the vars.
8565{
8566 (set) 2>&1 |
8567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8568 *ac_space=\ *)
8569 # `set' does not quote correctly, so add quotes (double-quote
8570 # substitution turns \\\\ into \\, and sed turns \\ into \).
8571 sed -n \
8572 "s/'/'\\\\''/g;
8573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8574 ;;
8575 *)
8576 # `set' quotes correctly as required by POSIX, so do not add quotes.
8577 sed -n \
8578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8579 ;;
8580 esac;
8581} |
8582 sed '
8583 t clear
8584 : clear
8585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8586 t end
8587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8588 : end' >>confcache
8589if diff $cache_file confcache >/dev/null 2>&1; then :; else
8590 if test -w $cache_file; then
8591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8592 cat confcache >$cache_file
8593 else
8594 echo "not updating unwritable cache $cache_file"
8595 fi
8596fi
8597rm -f confcache
8598
8599test "x$prefix" = xNONE && prefix=$ac_default_prefix
8600# Let make expand exec_prefix.
8601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8602
8603# VPATH may cause trouble with some makes, so we remove $(srcdir),
8604# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8605# trailing colons and then remove the whole line if VPATH becomes empty
8606# (actually we leave an empty line to preserve line numbers).
8607if test "x$srcdir" = x.; then
8608 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8609s/:*\$(srcdir):*/:/;
8610s/:*\${srcdir}:*/:/;
8611s/:*@srcdir@:*/:/;
8612s/^\([^=]*=[ ]*\):*/\1/;
8613s/:*$//;
8614s/^[^=]*=[ ]*$//;
8615}'
8616fi
8617
8618DEFS=-DHAVE_CONFIG_H
8619
8620ac_libobjs=
8621ac_ltlibobjs=
8622for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8623 # 1. Remove the extension, and $U if already installed.
8624 ac_i=`echo "$ac_i" |
8625 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8626 # 2. Add them.
8627 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8628 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8629done
8630LIBOBJS=$ac_libobjs
8631
8632LTLIBOBJS=$ac_ltlibobjs
8633
8634
8635if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8636 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8637Usually this means the macro was only invoked conditionally." >&5
8638echo "$as_me: error: conditional \"AMDEP\" was never defined.
8639Usually this means the macro was only invoked conditionally." >&2;}
8640 { (exit 1); exit 1; }; }
8641fi
8642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8643 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8644Usually this means the macro was only invoked conditionally." >&5
8645echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8646Usually this means the macro was only invoked conditionally." >&2;}
8647 { (exit 1); exit 1; }; }
8648fi
8649if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8650 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8651Usually this means the macro was only invoked conditionally." >&5
8652echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8653Usually this means the macro was only invoked conditionally." >&2;}
8654 { (exit 1); exit 1; }; }
8655fi
8656
8657: ${CONFIG_STATUS=./config.status}
8658ac_clean_files_save=$ac_clean_files
8659ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8660{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8661echo "$as_me: creating $CONFIG_STATUS" >&6;}
8662cat >$CONFIG_STATUS <<_ACEOF
8663#! $SHELL
8664# Generated by $as_me.
8665# Run this file to recreate the current configuration.
8666# Compiler output produced by configure, useful for debugging
8667# configure, is in config.log if it exists.
8668
8669debug=false
8670ac_cs_recheck=false
8671ac_cs_silent=false
8672SHELL=\${CONFIG_SHELL-$SHELL}
8673_ACEOF
252b5132 8674
42ecbf5e
DJ
8675cat >>$CONFIG_STATUS <<\_ACEOF
8676## --------------------- ##
8677## M4sh Initialization. ##
8678## --------------------- ##
252b5132 8679
42ecbf5e
DJ
8680# Be Bourne compatible
8681if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8682 emulate sh
8683 NULLCMD=:
8684 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8685 # is contrary to our usage. Disable this feature.
8686 alias -g '${1+"$@"}'='"$@"'
8687elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8688 set -o posix
8689fi
8690DUALCASE=1; export DUALCASE # for MKS sh
252b5132 8691
42ecbf5e
DJ
8692# Support unset when possible.
8693if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8694 as_unset=unset
8695else
8696 as_unset=false
8697fi
252b5132
RH
8698
8699
42ecbf5e
DJ
8700# Work around bugs in pre-3.0 UWIN ksh.
8701$as_unset ENV MAIL MAILPATH
8702PS1='$ '
8703PS2='> '
8704PS4='+ '
252b5132 8705
42ecbf5e
DJ
8706# NLS nuisances.
8707for as_var in \
8708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8710 LC_TELEPHONE LC_TIME
8711do
8712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8713 eval $as_var=C; export $as_var
8714 else
8715 $as_unset $as_var
8716 fi
8717done
252b5132 8718
42ecbf5e
DJ
8719# Required to use basename.
8720if expr a : '\(a\)' >/dev/null 2>&1; then
8721 as_expr=expr
8722else
8723 as_expr=false
8724fi
252b5132 8725
42ecbf5e
DJ
8726if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8727 as_basename=basename
8728else
8729 as_basename=false
8730fi
252b5132 8731
8b1e6df3 8732
42ecbf5e
DJ
8733# Name of the executable.
8734as_me=`$as_basename "$0" ||
8735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8736 X"$0" : 'X\(//\)$' \| \
8737 X"$0" : 'X\(/\)$' \| \
8738 . : '\(.\)' 2>/dev/null ||
8739echo X/"$0" |
8740 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8741 /^X\/\(\/\/\)$/{ s//\1/; q; }
8742 /^X\/\(\/\).*/{ s//\1/; q; }
8743 s/.*/./; q'`
0218d1e4 8744
252b5132 8745
42ecbf5e
DJ
8746# PATH needs CR, and LINENO needs CR and PATH.
8747# Avoid depending upon Character Ranges.
8748as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8750as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8751as_cr_digits='0123456789'
8752as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 8753
42ecbf5e
DJ
8754# The user is always right.
8755if test "${PATH_SEPARATOR+set}" != set; then
8756 echo "#! /bin/sh" >conf$$.sh
8757 echo "exit 0" >>conf$$.sh
8758 chmod +x conf$$.sh
8759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8760 PATH_SEPARATOR=';'
8761 else
8762 PATH_SEPARATOR=:
8763 fi
8764 rm -f conf$$.sh
252b5132
RH
8765fi
8766
8767
42ecbf5e
DJ
8768 as_lineno_1=$LINENO
8769 as_lineno_2=$LINENO
8770 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8771 test "x$as_lineno_1" != "x$as_lineno_2" &&
8772 test "x$as_lineno_3" = "x$as_lineno_2" || {
8773 # Find who we are. Look in the path if we contain no path at all
8774 # relative or not.
8775 case $0 in
8776 *[\\/]* ) as_myself=$0 ;;
8777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
eb1e0e80 8779do
42ecbf5e
DJ
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8783done
eb1e0e80 8784
42ecbf5e
DJ
8785 ;;
8786 esac
8787 # We did not find ourselves, most probably we were run as `sh COMMAND'
8788 # in which case we are not to be found in the path.
8789 if test "x$as_myself" = x; then
8790 as_myself=$0
8791 fi
8792 if test ! -f "$as_myself"; then
8793 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8794echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8795 { (exit 1); exit 1; }; }
8796 fi
8797 case $CONFIG_SHELL in
8798 '')
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for as_base in sh bash ksh sh5; do
8805 case $as_dir in
8806 /*)
8807 if ("$as_dir/$as_base" -c '
8808 as_lineno_1=$LINENO
8809 as_lineno_2=$LINENO
8810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8811 test "x$as_lineno_1" != "x$as_lineno_2" &&
8812 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8813 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8814 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8815 CONFIG_SHELL=$as_dir/$as_base
8816 export CONFIG_SHELL
8817 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8818 fi;;
8819 esac
8820 done
eb1e0e80 8821done
42ecbf5e
DJ
8822;;
8823 esac
eb1e0e80 8824
42ecbf5e
DJ
8825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8826 # uniformly replaced by the line number. The first 'sed' inserts a
8827 # line-number line before each line; the second 'sed' does the real
8828 # work. The second script uses 'N' to pair each line-number line
8829 # with the numbered line, and appends trailing '-' during
8830 # substitution so that $LINENO is not a special case at line end.
8831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8832 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8833 sed '=' <$as_myself |
8834 sed '
8835 N
8836 s,$,-,
8837 : loop
8838 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8839 t loop
8840 s,-$,,
8841 s,^['$as_cr_digits']*\n,,
8842 ' >$as_me.lineno &&
8843 chmod +x $as_me.lineno ||
8844 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8845echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8846 { (exit 1); exit 1; }; }
8847
8848 # Don't try to exec as it changes $[0], causing all sort of problems
8849 # (the dirname of $[0] is not the place where we might find the
8850 # original and so on. Autoconf is especially sensible to this).
8851 . ./$as_me.lineno
8852 # Exit status is that of the last command.
8853 exit
8854}
eb1e0e80
NC
8855
8856
42ecbf5e
DJ
8857case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8858 *c*,-n*) ECHO_N= ECHO_C='
8859' ECHO_T=' ' ;;
8860 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8861 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8862esac
eb1e0e80 8863
42ecbf5e
DJ
8864if expr a : '\(a\)' >/dev/null 2>&1; then
8865 as_expr=expr
d15b04bd 8866else
42ecbf5e
DJ
8867 as_expr=false
8868fi
8869
8870rm -f conf$$ conf$$.exe conf$$.file
8871echo >conf$$.file
8872if ln -s conf$$.file conf$$ 2>/dev/null; then
8873 # We could just check for DJGPP; but this test a) works b) is more generic
8874 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8875 if test -f conf$$.exe; then
8876 # Don't use ln at all; we don't have any links
8877 as_ln_s='cp -p'
252b5132 8878 else
42ecbf5e 8879 as_ln_s='ln -s'
252b5132 8880 fi
42ecbf5e
DJ
8881elif ln conf$$.file conf$$ 2>/dev/null; then
8882 as_ln_s=ln
8883else
8884 as_ln_s='cp -p'
252b5132 8885fi
42ecbf5e 8886rm -f conf$$ conf$$.exe conf$$.file
252b5132 8887
42ecbf5e
DJ
8888if mkdir -p . 2>/dev/null; then
8889 as_mkdir_p=:
8890else
8891 test -d ./-p && rmdir ./-p
8892 as_mkdir_p=false
8893fi
d15b04bd 8894
42ecbf5e 8895as_executable_p="test -f"
252b5132 8896
42ecbf5e
DJ
8897# Sed expression to map a string onto a valid CPP name.
8898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8899
8900# Sed expression to map a string onto a valid variable name.
8901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8902
8903
8904# IFS
8905# We need space, tab and new line, in precisely that order.
8906as_nl='
8907'
8908IFS=" $as_nl"
8909
8910# CDPATH.
8911$as_unset CDPATH
8912
8913exec 6>&1
8914
8915# Open the log real soon, to keep \$[0] and so on meaningful, and to
8916# report actual input values of CONFIG_FILES etc. instead of their
8917# values after options handling. Logging --version etc. is OK.
8918exec 5>>config.log
8919{
8920 echo
8921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8922## Running $as_me. ##
8923_ASBOX
8924} >&5
8925cat >&5 <<_CSEOF
8926
8927This file was extended by $as_me, which was
8928generated by GNU Autoconf 2.59. Invocation command line was
8929
8930 CONFIG_FILES = $CONFIG_FILES
8931 CONFIG_HEADERS = $CONFIG_HEADERS
8932 CONFIG_LINKS = $CONFIG_LINKS
8933 CONFIG_COMMANDS = $CONFIG_COMMANDS
8934 $ $0 $@
8935
8936_CSEOF
8937echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8938echo >&5
8939_ACEOF
8940
8941# Files that config.status was made for.
8942if test -n "$ac_config_files"; then
8943 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
8944fi
8945
42ecbf5e
DJ
8946if test -n "$ac_config_headers"; then
8947 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8948fi
e5a52504 8949
42ecbf5e
DJ
8950if test -n "$ac_config_links"; then
8951 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8952fi
e5a52504 8953
42ecbf5e
DJ
8954if test -n "$ac_config_commands"; then
8955 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8956fi
d15b04bd 8957
42ecbf5e
DJ
8958cat >>$CONFIG_STATUS <<\_ACEOF
8959
8960ac_cs_usage="\
8961\`$as_me' instantiates files from templates according to the
8962current configuration.
8963
8964Usage: $0 [OPTIONS] [FILE]...
8965
8966 -h, --help print this help, then exit
8967 -V, --version print version number, then exit
8968 -q, --quiet do not print progress messages
8969 -d, --debug don't remove temporary files
8970 --recheck update $as_me by reconfiguring in the same conditions
8971 --file=FILE[:TEMPLATE]
8972 instantiate the configuration file FILE
8973 --header=FILE[:TEMPLATE]
8974 instantiate the configuration header FILE
8975
8976Configuration files:
8977$config_files
8978
8979Configuration headers:
8980$config_headers
8981
8982Configuration commands:
8983$config_commands
8984
8985Report bugs to <bug-autoconf@gnu.org>."
8986_ACEOF
8987
8988cat >>$CONFIG_STATUS <<_ACEOF
8989ac_cs_version="\\
8990config.status
8991configured by $0, generated by GNU Autoconf 2.59,
8992 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8993
8994Copyright (C) 2003 Free Software Foundation, Inc.
8995This config.status script is free software; the Free Software Foundation
8996gives unlimited permission to copy, distribute and modify it."
8997srcdir=$srcdir
8998INSTALL="$INSTALL"
8999_ACEOF
9000
9001cat >>$CONFIG_STATUS <<\_ACEOF
9002# If no file are specified by the user, then we need to provide default
9003# value. By we need to know if files were specified by the user.
9004ac_need_defaults=:
9005while test $# != 0
9006do
9007 case $1 in
9008 --*=*)
9009 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9010 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9011 ac_shift=:
9012 ;;
9013 -*)
9014 ac_option=$1
9015 ac_optarg=$2
9016 ac_shift=shift
9017 ;;
9018 *) # This is not an option, so the user has probably given explicit
9019 # arguments.
9020 ac_option=$1
9021 ac_need_defaults=false;;
9022 esac
9023
9024 case $ac_option in
9025 # Handling of the options.
9026_ACEOF
9027cat >>$CONFIG_STATUS <<\_ACEOF
9028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9029 ac_cs_recheck=: ;;
9030 --version | --vers* | -V )
9031 echo "$ac_cs_version"; exit 0 ;;
9032 --he | --h)
9033 # Conflict between --help and --header
9034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9035Try \`$0 --help' for more information." >&5
9036echo "$as_me: error: ambiguous option: $1
9037Try \`$0 --help' for more information." >&2;}
9038 { (exit 1); exit 1; }; };;
9039 --help | --hel | -h )
9040 echo "$ac_cs_usage"; exit 0 ;;
9041 --debug | --d* | -d )
9042 debug=: ;;
9043 --file | --fil | --fi | --f )
9044 $ac_shift
9045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9046 ac_need_defaults=false;;
9047 --header | --heade | --head | --hea )
9048 $ac_shift
9049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9050 ac_need_defaults=false;;
9051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9053 ac_cs_silent=: ;;
9054
9055 # This is an error.
9056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9057Try \`$0 --help' for more information." >&5
9058echo "$as_me: error: unrecognized option: $1
9059Try \`$0 --help' for more information." >&2;}
9060 { (exit 1); exit 1; }; } ;;
9061
9062 *) ac_config_targets="$ac_config_targets $1" ;;
9063
9064 esac
9065 shift
9066done
9067
9068ac_configure_extra_args=
9069
9070if $ac_cs_silent; then
9071 exec 6>/dev/null
9072 ac_configure_extra_args="$ac_configure_extra_args --silent"
9073fi
9074
9075_ACEOF
9076cat >>$CONFIG_STATUS <<_ACEOF
9077if \$ac_cs_recheck; then
9078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9080fi
9081
9082_ACEOF
9083
9084cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 9085#
42ecbf5e 9086# INIT-COMMANDS section.
d15b04bd 9087#
e5a52504 9088
42ecbf5e 9089AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
9090# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9091 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9092 # from automake.
9093 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9094 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9095 LINGUAS="${LINGUAS-%UNSET%}"
9096
42ecbf5e
DJ
9097
9098_ACEOF
9099
9100
9101
9102cat >>$CONFIG_STATUS <<\_ACEOF
9103for ac_config_target in $ac_config_targets
252b5132 9104do
42ecbf5e
DJ
9105 case "$ac_config_target" in
9106 # Handling of arguments.
9107 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9108 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9109 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9110 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 9111 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
9112 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9113 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9114echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9115 { (exit 1); exit 1; }; };;
d15b04bd 9116 esac
252b5132
RH
9117done
9118
42ecbf5e
DJ
9119# If the user did not use the arguments to specify the items to instantiate,
9120# then the envvar interface is used. Set only those that are not.
9121# We use the long form for the default assignment because of an extremely
9122# bizarre bug on SunOS 4.1.3.
9123if $ac_need_defaults; then
9124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9126 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9127fi
9128
9129# Have a temporary directory for convenience. Make it in the build tree
9130# simply because there is no reason to put it here, and in addition,
9131# creating and moving files from /tmp can sometimes cause problems.
9132# Create a temporary directory, and hook for its removal unless debugging.
9133$debug ||
9134{
9135 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9136 trap '{ (exit 1); exit 1; }' 1 2 13 15
9137}
252b5132 9138
42ecbf5e 9139# Create a (secure) tmp directory for tmp files.
e5a52504 9140
42ecbf5e
DJ
9141{
9142 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9143 test -n "$tmp" && test -d "$tmp"
9144} ||
9145{
9146 tmp=./confstat$$-$RANDOM
9147 (umask 077 && mkdir $tmp)
9148} ||
9149{
9150 echo "$me: cannot create a temporary directory in ." >&2
9151 { (exit 1); exit 1; }
9152}
9153
9154_ACEOF
9155
9156cat >>$CONFIG_STATUS <<_ACEOF
9157
9158#
9159# CONFIG_FILES section.
9160#
e5a52504 9161
42ecbf5e
DJ
9162# No need to generate the scripts if there are no CONFIG_FILES.
9163# This happens for instance when ./config.status config.h
9164if test -n "\$CONFIG_FILES"; then
9165 # Protect against being on the right side of a sed subst in config.status.
9166 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9167 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9168s,@SHELL@,$SHELL,;t t
9169s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9170s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9171s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9172s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9173s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9174s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9175s,@exec_prefix@,$exec_prefix,;t t
9176s,@prefix@,$prefix,;t t
9177s,@program_transform_name@,$program_transform_name,;t t
9178s,@bindir@,$bindir,;t t
9179s,@sbindir@,$sbindir,;t t
9180s,@libexecdir@,$libexecdir,;t t
9181s,@datadir@,$datadir,;t t
9182s,@sysconfdir@,$sysconfdir,;t t
9183s,@sharedstatedir@,$sharedstatedir,;t t
9184s,@localstatedir@,$localstatedir,;t t
9185s,@libdir@,$libdir,;t t
9186s,@includedir@,$includedir,;t t
9187s,@oldincludedir@,$oldincludedir,;t t
9188s,@infodir@,$infodir,;t t
9189s,@mandir@,$mandir,;t t
9190s,@build_alias@,$build_alias,;t t
9191s,@host_alias@,$host_alias,;t t
9192s,@target_alias@,$target_alias,;t t
9193s,@DEFS@,$DEFS,;t t
9194s,@ECHO_C@,$ECHO_C,;t t
9195s,@ECHO_N@,$ECHO_N,;t t
9196s,@ECHO_T@,$ECHO_T,;t t
9197s,@LIBS@,$LIBS,;t t
9198s,@build@,$build,;t t
9199s,@build_cpu@,$build_cpu,;t t
9200s,@build_vendor@,$build_vendor,;t t
9201s,@build_os@,$build_os,;t t
9202s,@host@,$host,;t t
9203s,@host_cpu@,$host_cpu,;t t
9204s,@host_vendor@,$host_vendor,;t t
9205s,@host_os@,$host_os,;t t
9206s,@target@,$target,;t t
9207s,@target_cpu@,$target_cpu,;t t
9208s,@target_vendor@,$target_vendor,;t t
9209s,@target_os@,$target_os,;t t
9210s,@CC@,$CC,;t t
9211s,@CFLAGS@,$CFLAGS,;t t
9212s,@LDFLAGS@,$LDFLAGS,;t t
9213s,@CPPFLAGS@,$CPPFLAGS,;t t
9214s,@ac_ct_CC@,$ac_ct_CC,;t t
9215s,@EXEEXT@,$EXEEXT,;t t
9216s,@OBJEXT@,$OBJEXT,;t t
9217s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9218s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9219s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9220s,@CYGPATH_W@,$CYGPATH_W,;t t
9221s,@PACKAGE@,$PACKAGE,;t t
9222s,@VERSION@,$VERSION,;t t
9223s,@ACLOCAL@,$ACLOCAL,;t t
9224s,@AUTOCONF@,$AUTOCONF,;t t
9225s,@AUTOMAKE@,$AUTOMAKE,;t t
9226s,@AUTOHEADER@,$AUTOHEADER,;t t
9227s,@MAKEINFO@,$MAKEINFO,;t t
9228s,@install_sh@,$install_sh,;t t
9229s,@STRIP@,$STRIP,;t t
9230s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9231s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9232s,@mkdir_p@,$mkdir_p,;t t
9233s,@AWK@,$AWK,;t t
9234s,@SET_MAKE@,$SET_MAKE,;t t
9235s,@am__leading_dot@,$am__leading_dot,;t t
9236s,@AMTAR@,$AMTAR,;t t
9237s,@am__tar@,$am__tar,;t t
9238s,@am__untar@,$am__untar,;t t
9239s,@DEPDIR@,$DEPDIR,;t t
9240s,@am__include@,$am__include,;t t
9241s,@am__quote@,$am__quote,;t t
9242s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9243s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9244s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9245s,@CCDEPMODE@,$CCDEPMODE,;t t
9246s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9247s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9248s,@LN_S@,$LN_S,;t t
9249s,@RANLIB@,$RANLIB,;t t
9250s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9251s,@LIBTOOL@,$LIBTOOL,;t t
9252s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9253s,@NO_WERROR@,$NO_WERROR,;t t
9254s,@YACC@,$YACC,;t t
9255s,@LEX@,$LEX,;t t
9256s,@LEXLIB@,$LEXLIB,;t t
9257s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 9258s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
9259s,@LIBINTL@,$LIBINTL,;t t
9260s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9261s,@INCINTL@,$INCINTL,;t t
42ecbf5e 9262s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
9263s,@GMSGFMT@,$GMSGFMT,;t t
9264s,@POSUB@,$POSUB,;t t
42ecbf5e 9265s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 9266s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 9267s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
9268s,@GENCAT@,$GENCAT,;t t
9269s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 9270s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
9271s,@MSGFMT@,$MSGFMT,;t t
9272s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
9273s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9274s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9275s,@MAINT@,$MAINT,;t t
9276s,@HDEFINES@,$HDEFINES,;t t
9277s,@AR@,$AR,;t t
9278s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9279s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9280s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23
DJ
9281s,@CPP@,$CPP,;t t
9282s,@EGREP@,$EGREP,;t t
9283s,@ALLOCA@,$ALLOCA,;t t
42ecbf5e
DJ
9284s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
9285s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
9286s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
9287s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
9288s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
9289s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
9290s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
9291s,@BUILD_MISC@,$BUILD_MISC,;t t
9292s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
9293s,@EMULATION@,$EMULATION,;t t
9294s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
9295s,@datarootdir@,$datarootdir,;t t
9296s,@docdir@,$docdir,;t t
9297s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
9298s,@LIBOBJS@,$LIBOBJS,;t t
9299s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 9300CEOF
252b5132 9301
42ecbf5e
DJ
9302_ACEOF
9303
9304 cat >>$CONFIG_STATUS <<\_ACEOF
9305 # Split the substitutions into bite-sized pieces for seds with
9306 # small command number limits, like on Digital OSF/1 and HP-UX.
9307 ac_max_sed_lines=48
9308 ac_sed_frag=1 # Number of current file.
9309 ac_beg=1 # First line for current file.
9310 ac_end=$ac_max_sed_lines # Line after last line for current file.
9311 ac_more_lines=:
9312 ac_sed_cmds=
9313 while $ac_more_lines; do
9314 if test $ac_beg -gt 1; then
9315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9316 else
9317 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9318 fi
9319 if test ! -s $tmp/subs.frag; then
9320 ac_more_lines=false
d15b04bd 9321 else
42ecbf5e
DJ
9322 # The purpose of the label and of the branching condition is to
9323 # speed up the sed processing (if there are no `@' at all, there
9324 # is no need to browse any of the substitutions).
9325 # These are the two extra sed commands mentioned above.
9326 (echo ':t
9327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9328 if test -z "$ac_sed_cmds"; then
9329 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9330 else
9331 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9332 fi
9333 ac_sed_frag=`expr $ac_sed_frag + 1`
9334 ac_beg=$ac_end
9335 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 9336 fi
42ecbf5e
DJ
9337 done
9338 if test -z "$ac_sed_cmds"; then
9339 ac_sed_cmds=cat
252b5132 9340 fi
42ecbf5e 9341fi # test -n "$CONFIG_FILES"
252b5132 9342
42ecbf5e
DJ
9343_ACEOF
9344cat >>$CONFIG_STATUS <<\_ACEOF
9345for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 9346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
9347 case $ac_file in
9348 - | *:- | *:-:* ) # input from stdin
9349 cat >$tmp/stdin
9350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9354 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9355 esac
9356
42ecbf5e
DJ
9357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9360 X"$ac_file" : 'X\(//\)[^/]' \| \
9361 X"$ac_file" : 'X\(//\)$' \| \
9362 X"$ac_file" : 'X\(/\)' \| \
9363 . : '\(.\)' 2>/dev/null ||
9364echo X"$ac_file" |
9365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9367 /^X\(\/\/\)$/{ s//\1/; q; }
9368 /^X\(\/\).*/{ s//\1/; q; }
9369 s/.*/./; q'`
9370 { if $as_mkdir_p; then
9371 mkdir -p "$ac_dir"
d15b04bd 9372 else
42ecbf5e
DJ
9373 as_dir="$ac_dir"
9374 as_dirs=
9375 while test ! -d "$as_dir"; do
9376 as_dirs="$as_dir $as_dirs"
9377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9379 X"$as_dir" : 'X\(//\)[^/]' \| \
9380 X"$as_dir" : 'X\(//\)$' \| \
9381 X"$as_dir" : 'X\(/\)' \| \
9382 . : '\(.\)' 2>/dev/null ||
9383echo X"$as_dir" |
9384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9386 /^X\(\/\/\)$/{ s//\1/; q; }
9387 /^X\(\/\).*/{ s//\1/; q; }
9388 s/.*/./; q'`
9389 done
9390 test ! -n "$as_dirs" || mkdir $as_dirs
9391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9393 { (exit 1); exit 1; }; }; }
9394
9395 ac_builddir=.
e5a52504 9396
42ecbf5e
DJ
9397if test "$ac_dir" != .; then
9398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9399 # A "../" for each directory in $ac_dir_suffix.
9400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9401else
9402 ac_dir_suffix= ac_top_builddir=
9403fi
9404
9405case $srcdir in
9406 .) # No --srcdir option. We are building in place.
9407 ac_srcdir=.
9408 if test -z "$ac_top_builddir"; then
9409 ac_top_srcdir=.
9410 else
9411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9412 fi ;;
9413 [\\/]* | ?:[\\/]* ) # Absolute path.
9414 ac_srcdir=$srcdir$ac_dir_suffix;
9415 ac_top_srcdir=$srcdir ;;
e5a52504 9416 *) # Relative path.
42ecbf5e
DJ
9417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9419esac
252b5132 9420
42ecbf5e
DJ
9421# Do not use `cd foo && pwd` to compute absolute paths, because
9422# the directories may not exist.
9423case `pwd` in
9424.) ac_abs_builddir="$ac_dir";;
9425*)
9426 case "$ac_dir" in
9427 .) ac_abs_builddir=`pwd`;;
9428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9430 esac;;
9431esac
9432case $ac_abs_builddir in
9433.) ac_abs_top_builddir=${ac_top_builddir}.;;
9434*)
9435 case ${ac_top_builddir}. in
9436 .) ac_abs_top_builddir=$ac_abs_builddir;;
9437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9439 esac;;
9440esac
9441case $ac_abs_builddir in
9442.) ac_abs_srcdir=$ac_srcdir;;
9443*)
9444 case $ac_srcdir in
9445 .) ac_abs_srcdir=$ac_abs_builddir;;
9446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9448 esac;;
9449esac
9450case $ac_abs_builddir in
9451.) ac_abs_top_srcdir=$ac_top_srcdir;;
9452*)
9453 case $ac_top_srcdir in
9454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9457 esac;;
9458esac
e5a52504 9459
42ecbf5e
DJ
9460
9461 case $INSTALL in
9462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9463 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 9464 esac
e5a52504 9465
b7d4af3a
JW
9466 if test x"$ac_file" != x-; then
9467 { echo "$as_me:$LINENO: creating $ac_file" >&5
9468echo "$as_me: creating $ac_file" >&6;}
9469 rm -f "$ac_file"
9470 fi
42ecbf5e
DJ
9471 # Let's still pretend it is `configure' which instantiates (i.e., don't
9472 # use $as_me), people would be surprised to read:
9473 # /* config.h. Generated by config.status. */
9474 if test x"$ac_file" = x-; then
9475 configure_input=
9476 else
9477 configure_input="$ac_file. "
9478 fi
9479 configure_input=$configure_input"Generated from `echo $ac_file_in |
9480 sed 's,.*/,,'` by configure."
9481
9482 # First look for the input files in the build tree, otherwise in the
9483 # src tree.
9484 ac_file_inputs=`IFS=:
9485 for f in $ac_file_in; do
9486 case $f in
9487 -) echo $tmp/stdin ;;
9488 [\\/$]*)
9489 # Absolute (can't be DOS-style, as IFS=:)
9490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9491echo "$as_me: error: cannot find input file: $f" >&2;}
9492 { (exit 1); exit 1; }; }
9493 echo "$f";;
9494 *) # Relative
9495 if test -f "$f"; then
9496 # Build tree
9497 echo "$f"
9498 elif test -f "$srcdir/$f"; then
9499 # Source tree
9500 echo "$srcdir/$f"
9501 else
9502 # /dev/null tree
9503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9504echo "$as_me: error: cannot find input file: $f" >&2;}
9505 { (exit 1); exit 1; }; }
9506 fi;;
9507 esac
9508 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
9509_ACEOF
9510cat >>$CONFIG_STATUS <<_ACEOF
9511 sed "$ac_vpsub
9512$extrasub
9513_ACEOF
9514cat >>$CONFIG_STATUS <<\_ACEOF
9515:t
9516/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9517s,@configure_input@,$configure_input,;t t
9518s,@srcdir@,$ac_srcdir,;t t
9519s,@abs_srcdir@,$ac_abs_srcdir,;t t
9520s,@top_srcdir@,$ac_top_srcdir,;t t
9521s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9522s,@builddir@,$ac_builddir,;t t
9523s,@abs_builddir@,$ac_abs_builddir,;t t
9524s,@top_builddir@,$ac_top_builddir,;t t
9525s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9526s,@INSTALL@,$ac_INSTALL,;t t
9527" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9528 rm -f $tmp/stdin
9529 if test x"$ac_file" != x-; then
9530 mv $tmp/out $ac_file
9531 else
9532 cat $tmp/out
9533 rm -f $tmp/out
9534 fi
9535
9536done
9537_ACEOF
9538cat >>$CONFIG_STATUS <<\_ACEOF
9539
9540#
9541# CONFIG_HEADER section.
9542#
252b5132
RH
9543
9544# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9545# NAME is the cpp macro being defined and VALUE is the value it is being given.
9546#
9547# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
9548ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9549ac_dB='[ ].*$,\1#\2'
9550ac_dC=' '
9551ac_dD=',;t'
9552# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9553ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9554ac_uB='$,\1#\2define\3'
252b5132 9555ac_uC=' '
42ecbf5e
DJ
9556ac_uD=',;t'
9557
9558for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9559 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
9560 case $ac_file in
9561 - | *:- | *:-:* ) # input from stdin
9562 cat >$tmp/stdin
9563 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9565 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9567 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9568 esac
9569
42ecbf5e
DJ
9570 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9571echo "$as_me: creating $ac_file" >&6;}
9572
9573 # First look for the input files in the build tree, otherwise in the
9574 # src tree.
9575 ac_file_inputs=`IFS=:
9576 for f in $ac_file_in; do
9577 case $f in
9578 -) echo $tmp/stdin ;;
9579 [\\/$]*)
9580 # Absolute (can't be DOS-style, as IFS=:)
9581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9582echo "$as_me: error: cannot find input file: $f" >&2;}
9583 { (exit 1); exit 1; }; }
9584 # Do quote $f, to prevent DOS paths from being IFS'd.
9585 echo "$f";;
9586 *) # Relative
9587 if test -f "$f"; then
9588 # Build tree
9589 echo "$f"
9590 elif test -f "$srcdir/$f"; then
9591 # Source tree
9592 echo "$srcdir/$f"
9593 else
9594 # /dev/null tree
9595 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9596echo "$as_me: error: cannot find input file: $f" >&2;}
9597 { (exit 1); exit 1; }; }
9598 fi;;
9599 esac
9600 done` || { (exit 1); exit 1; }
9601 # Remove the trailing spaces.
9602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9603
9604_ACEOF
9605
9606# Transform confdefs.h into two sed scripts, `conftest.defines' and
9607# `conftest.undefs', that substitutes the proper values into
9608# config.h.in to produce config.h. The first handles `#define'
9609# templates, and the second `#undef' templates.
9610# And first: Protect against being on the right side of a sed subst in
9611# config.status. Protect against being in an unquoted here document
9612# in config.status.
9613rm -f conftest.defines conftest.undefs
9614# Using a here document instead of a string reduces the quoting nightmare.
9615# Putting comments in sed scripts is not portable.
9616#
9617# `end' is used to avoid that the second main sed command (meant for
9618# 0-ary CPP macros) applies to n-ary macro definitions.
9619# See the Autoconf documentation for `clear'.
9620cat >confdef2sed.sed <<\_ACEOF
9621s/[\\&,]/\\&/g
9622s,[\\$`],\\&,g
9623t clear
9624: clear
9625s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9626t end
9627s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9628: end
9629_ACEOF
9630# If some macros were called several times there might be several times
9631# the same #defines, which is useless. Nevertheless, we may not want to
9632# sort them, since we want the *last* AC-DEFINE to be honored.
9633uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9634sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9635rm -f confdef2sed.sed
252b5132
RH
9636
9637# This sed command replaces #undef with comments. This is necessary, for
9638# example, in the case of _POSIX_SOURCE, which is predefined and required
9639# on some systems where configure will not decide to define it.
42ecbf5e
DJ
9640cat >>conftest.undefs <<\_ACEOF
9641s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9642_ACEOF
9643
9644# Break up conftest.defines because some shells have a limit on the size
9645# of here documents, and old seds have small limits too (100 cmds).
9646echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9647echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9648echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9649echo ' :' >>$CONFIG_STATUS
9650rm -f conftest.tail
9651while grep . conftest.defines >/dev/null
9652do
9653 # Write a limited-size here document to $tmp/defines.sed.
9654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9655 # Speed up: don't consider the non `#define' lines.
9656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9657 # Work around the forget-to-reset-the-flag bug.
9658 echo 't clr' >>$CONFIG_STATUS
9659 echo ': clr' >>$CONFIG_STATUS
9660 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9661 echo 'CEOF
9662 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9663 rm -f $tmp/in
9664 mv $tmp/out $tmp/in
9665' >>$CONFIG_STATUS
9666 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9667 rm -f conftest.defines
9668 mv conftest.tail conftest.defines
9669done
9670rm -f conftest.defines
9671echo ' fi # grep' >>$CONFIG_STATUS
9672echo >>$CONFIG_STATUS
252b5132 9673
42ecbf5e
DJ
9674# Break up conftest.undefs because some shells have a limit on the size
9675# of here documents, and old seds have small limits too (100 cmds).
9676echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 9677rm -f conftest.tail
42ecbf5e 9678while grep . conftest.undefs >/dev/null
252b5132 9679do
42ecbf5e
DJ
9680 # Write a limited-size here document to $tmp/undefs.sed.
9681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9682 # Speed up: don't consider the non `#undef'
9683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9684 # Work around the forget-to-reset-the-flag bug.
9685 echo 't clr' >>$CONFIG_STATUS
9686 echo ': clr' >>$CONFIG_STATUS
9687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 9688 echo 'CEOF
42ecbf5e
DJ
9689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9690 rm -f $tmp/in
9691 mv $tmp/out $tmp/in
9692' >>$CONFIG_STATUS
9693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9694 rm -f conftest.undefs
9695 mv conftest.tail conftest.undefs
252b5132 9696done
42ecbf5e
DJ
9697rm -f conftest.undefs
9698
9699cat >>$CONFIG_STATUS <<\_ACEOF
9700 # Let's still pretend it is `configure' which instantiates (i.e., don't
9701 # use $as_me), people would be surprised to read:
9702 # /* config.h. Generated by config.status. */
9703 if test x"$ac_file" = x-; then
9704 echo "/* Generated by configure. */" >$tmp/config.h
9705 else
9706 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9707 fi
9708 cat $tmp/in >>$tmp/config.h
9709 rm -f $tmp/in
9710 if test x"$ac_file" != x-; then
9711 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9712 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9713echo "$as_me: $ac_file is unchanged" >&6;}
9714 else
9715 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9716$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9717 X"$ac_file" : 'X\(//\)[^/]' \| \
9718 X"$ac_file" : 'X\(//\)$' \| \
9719 X"$ac_file" : 'X\(/\)' \| \
9720 . : '\(.\)' 2>/dev/null ||
9721echo X"$ac_file" |
9722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9724 /^X\(\/\/\)$/{ s//\1/; q; }
9725 /^X\(\/\).*/{ s//\1/; q; }
9726 s/.*/./; q'`
9727 { if $as_mkdir_p; then
9728 mkdir -p "$ac_dir"
252b5132 9729 else
42ecbf5e
DJ
9730 as_dir="$ac_dir"
9731 as_dirs=
9732 while test ! -d "$as_dir"; do
9733 as_dirs="$as_dir $as_dirs"
9734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9736 X"$as_dir" : 'X\(//\)[^/]' \| \
9737 X"$as_dir" : 'X\(//\)$' \| \
9738 X"$as_dir" : 'X\(/\)' \| \
9739 . : '\(.\)' 2>/dev/null ||
9740echo X"$as_dir" |
9741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9743 /^X\(\/\/\)$/{ s//\1/; q; }
9744 /^X\(\/\).*/{ s//\1/; q; }
9745 s/.*/./; q'`
9746 done
9747 test ! -n "$as_dirs" || mkdir $as_dirs
9748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9749echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9750 { (exit 1); exit 1; }; }; }
9751
9752 rm -f $ac_file
9753 mv $tmp/config.h $ac_file
252b5132 9754 fi
42ecbf5e
DJ
9755 else
9756 cat $tmp/config.h
9757 rm -f $tmp/config.h
252b5132 9758 fi
42ecbf5e
DJ
9759# Compute $ac_file's index in $config_headers.
9760_am_stamp_count=1
9761for _am_header in $config_headers :; do
9762 case $_am_header in
9763 $ac_file | $ac_file:* )
9764 break ;;
9765 * )
9766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9767 esac
9768done
9769echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9770$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9771 X$ac_file : 'X\(//\)[^/]' \| \
9772 X$ac_file : 'X\(//\)$' \| \
9773 X$ac_file : 'X\(/\)' \| \
9774 . : '\(.\)' 2>/dev/null ||
9775echo X$ac_file |
9776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9778 /^X\(\/\/\)$/{ s//\1/; q; }
9779 /^X\(\/\).*/{ s//\1/; q; }
9780 s/.*/./; q'`/stamp-h$_am_stamp_count
9781done
9782_ACEOF
9783cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 9784
42ecbf5e
DJ
9785#
9786# CONFIG_COMMANDS section.
9787#
9788for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9789 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9790 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9791 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9792$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9793 X"$ac_dest" : 'X\(//\)[^/]' \| \
9794 X"$ac_dest" : 'X\(//\)$' \| \
9795 X"$ac_dest" : 'X\(/\)' \| \
9796 . : '\(.\)' 2>/dev/null ||
9797echo X"$ac_dest" |
9798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9800 /^X\(\/\/\)$/{ s//\1/; q; }
9801 /^X\(\/\).*/{ s//\1/; q; }
9802 s/.*/./; q'`
9803 { if $as_mkdir_p; then
9804 mkdir -p "$ac_dir"
9805 else
9806 as_dir="$ac_dir"
9807 as_dirs=
9808 while test ! -d "$as_dir"; do
9809 as_dirs="$as_dir $as_dirs"
9810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9812 X"$as_dir" : 'X\(//\)[^/]' \| \
9813 X"$as_dir" : 'X\(//\)$' \| \
9814 X"$as_dir" : 'X\(/\)' \| \
9815 . : '\(.\)' 2>/dev/null ||
9816echo X"$as_dir" |
9817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9819 /^X\(\/\/\)$/{ s//\1/; q; }
9820 /^X\(\/\).*/{ s//\1/; q; }
9821 s/.*/./; q'`
9822 done
9823 test ! -n "$as_dirs" || mkdir $as_dirs
9824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9826 { (exit 1); exit 1; }; }; }
252b5132 9827
42ecbf5e 9828 ac_builddir=.
e5a52504 9829
42ecbf5e
DJ
9830if test "$ac_dir" != .; then
9831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9832 # A "../" for each directory in $ac_dir_suffix.
9833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9834else
9835 ac_dir_suffix= ac_top_builddir=
9836fi
9837
9838case $srcdir in
9839 .) # No --srcdir option. We are building in place.
9840 ac_srcdir=.
9841 if test -z "$ac_top_builddir"; then
9842 ac_top_srcdir=.
9843 else
9844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9845 fi ;;
9846 [\\/]* | ?:[\\/]* ) # Absolute path.
9847 ac_srcdir=$srcdir$ac_dir_suffix;
9848 ac_top_srcdir=$srcdir ;;
9849 *) # Relative path.
9850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9852esac
9853
9854# Do not use `cd foo && pwd` to compute absolute paths, because
9855# the directories may not exist.
9856case `pwd` in
9857.) ac_abs_builddir="$ac_dir";;
9858*)
9859 case "$ac_dir" in
9860 .) ac_abs_builddir=`pwd`;;
9861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9862 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9863 esac;;
9864esac
9865case $ac_abs_builddir in
9866.) ac_abs_top_builddir=${ac_top_builddir}.;;
9867*)
9868 case ${ac_top_builddir}. in
9869 .) ac_abs_top_builddir=$ac_abs_builddir;;
9870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9872 esac;;
9873esac
9874case $ac_abs_builddir in
9875.) ac_abs_srcdir=$ac_srcdir;;
9876*)
9877 case $ac_srcdir in
9878 .) ac_abs_srcdir=$ac_abs_builddir;;
9879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9881 esac;;
9882esac
9883case $ac_abs_builddir in
9884.) ac_abs_top_srcdir=$ac_top_srcdir;;
9885*)
9886 case $ac_top_srcdir in
9887 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9890 esac;;
9891esac
e5a52504 9892
42ecbf5e
DJ
9893
9894 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9895echo "$as_me: executing $ac_dest commands" >&6;}
9896 case $ac_dest in
9897 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9898 # Strip MF so we end up with the name of the file.
9899 mf=`echo "$mf" | sed -e 's/:.*$//'`
9900 # Check whether this is an Automake generated Makefile or not.
9901 # We used to match only the files named `Makefile.in', but
9902 # some people rename them; so instead we look at the file content.
9903 # Grep'ing the first line is not enough: some people post-process
9904 # each Makefile.in and add a new line on top of each file to say so.
9905 # So let's grep whole file.
9906 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9907 dirpart=`(dirname "$mf") 2>/dev/null ||
9908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9909 X"$mf" : 'X\(//\)[^/]' \| \
9910 X"$mf" : 'X\(//\)$' \| \
9911 X"$mf" : 'X\(/\)' \| \
9912 . : '\(.\)' 2>/dev/null ||
9913echo X"$mf" |
9914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9916 /^X\(\/\/\)$/{ s//\1/; q; }
9917 /^X\(\/\).*/{ s//\1/; q; }
9918 s/.*/./; q'`
9919 else
9920 continue
9921 fi
9922 # Extract the definition of DEPDIR, am__include, and am__quote
9923 # from the Makefile without running `make'.
9924 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9925 test -z "$DEPDIR" && continue
9926 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9927 test -z "am__include" && continue
9928 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9929 # When using ansi2knr, U may be empty or an underscore; expand it
9930 U=`sed -n 's/^U = //p' < "$mf"`
9931 # Find all dependency output files, they are included files with
9932 # $(DEPDIR) in their names. We invoke sed twice because it is the
9933 # simplest approach to changing $(DEPDIR) to its actual value in the
9934 # expansion.
9935 for file in `sed -n "
9936 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9937 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9938 # Make sure the directory exists.
9939 test -f "$dirpart/$file" && continue
9940 fdir=`(dirname "$file") 2>/dev/null ||
9941$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9942 X"$file" : 'X\(//\)[^/]' \| \
9943 X"$file" : 'X\(//\)$' \| \
9944 X"$file" : 'X\(/\)' \| \
9945 . : '\(.\)' 2>/dev/null ||
9946echo X"$file" |
9947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9949 /^X\(\/\/\)$/{ s//\1/; q; }
9950 /^X\(\/\).*/{ s//\1/; q; }
9951 s/.*/./; q'`
9952 { if $as_mkdir_p; then
9953 mkdir -p $dirpart/$fdir
9954 else
9955 as_dir=$dirpart/$fdir
9956 as_dirs=
9957 while test ! -d "$as_dir"; do
9958 as_dirs="$as_dir $as_dirs"
9959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9961 X"$as_dir" : 'X\(//\)[^/]' \| \
9962 X"$as_dir" : 'X\(//\)$' \| \
9963 X"$as_dir" : 'X\(/\)' \| \
9964 . : '\(.\)' 2>/dev/null ||
9965echo X"$as_dir" |
9966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9968 /^X\(\/\/\)$/{ s//\1/; q; }
9969 /^X\(\/\).*/{ s//\1/; q; }
9970 s/.*/./; q'`
9971 done
9972 test ! -n "$as_dirs" || mkdir $as_dirs
9973 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9974echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9975 { (exit 1); exit 1; }; }; }
9976
9977 # echo "creating $dirpart/$file"
9978 echo '# dummy' > "$dirpart/$file"
9979 done
9980done
9981 ;;
20e95c23
DJ
9982 default-1 )
9983 for ac_file in $CONFIG_FILES; do
9984 # Support "outfile[:infile[:infile...]]"
9985 case "$ac_file" in
9986 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9987 esac
9988 # PO directories have a Makefile.in generated from Makefile.in.in.
9989 case "$ac_file" in */Makefile.in)
9990 # Adjust a relative srcdir.
9991 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9992 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9993 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9994 # In autoconf-2.13 it is called $ac_given_srcdir.
9995 # In autoconf-2.50 it is called $srcdir.
9996 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9997 case "$ac_given_srcdir" in
9998 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9999 /*) top_srcdir="$ac_given_srcdir" ;;
10000 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10001 esac
10002 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10003 rm -f "$ac_dir/POTFILES"
10004 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10005 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10006 POMAKEFILEDEPS="POTFILES.in"
10007 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10008 # on $ac_dir but don't depend on user-specified configuration
10009 # parameters.
10010 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10011 # The LINGUAS file contains the set of available languages.
10012 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10013 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10014 fi
10015 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10016 # Hide the ALL_LINGUAS assigment from automake.
10017 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10018 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10019 else
10020 # The set of available languages was given in configure.in.
10021 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10022 fi
10023 case "$ac_given_srcdir" in
10024 .) srcdirpre= ;;
10025 *) srcdirpre='$(srcdir)/' ;;
10026 esac
10027 POFILES=
10028 GMOFILES=
10029 UPDATEPOFILES=
10030 DUMMYPOFILES=
10031 for lang in $ALL_LINGUAS; do
10032 POFILES="$POFILES $srcdirpre$lang.po"
10033 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10034 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10035 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10036 done
10037 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10038 # environment variable.
10039 INST_LINGUAS=
10040 if test -n "$ALL_LINGUAS"; then
10041 for presentlang in $ALL_LINGUAS; do
10042 useit=no
10043 if test "%UNSET%" != "$LINGUAS"; then
10044 desiredlanguages="$LINGUAS"
10045 else
10046 desiredlanguages="$ALL_LINGUAS"
10047 fi
10048 for desiredlang in $desiredlanguages; do
10049 # Use the presentlang catalog if desiredlang is
10050 # a. equal to presentlang, or
10051 # b. a variant of presentlang (because in this case,
10052 # presentlang can be used as a fallback for messages
10053 # which are not translated in the desiredlang catalog).
10054 case "$desiredlang" in
10055 "$presentlang"*) useit=yes;;
10056 esac
10057 done
10058 if test $useit = yes; then
10059 INST_LINGUAS="$INST_LINGUAS $presentlang"
10060 fi
10061 done
10062 fi
10063 CATALOGS=
10064 if test -n "$INST_LINGUAS"; then
10065 for lang in $INST_LINGUAS; do
10066 CATALOGS="$CATALOGS $lang.gmo"
10067 done
10068 fi
10069 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10070 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"
10071 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10072 if test -f "$f"; then
10073 case "$f" in
10074 *.orig | *.bak | *~) ;;
10075 *) cat "$f" >> "$ac_dir/Makefile" ;;
10076 esac
10077 fi
10078 done
10079 fi
10080 ;;
10081 esac
10082 done ;;
42ecbf5e
DJ
10083 esac
10084done
10085_ACEOF
e5a52504 10086
42ecbf5e
DJ
10087cat >>$CONFIG_STATUS <<\_ACEOF
10088
10089{ (exit 0); exit 0; }
10090_ACEOF
252b5132 10091chmod +x $CONFIG_STATUS
42ecbf5e
DJ
10092ac_clean_files=$ac_clean_files_save
10093
10094
10095# configure is writing to config.log, and then calls config.status.
10096# config.status does its own redirection, appending to config.log.
10097# Unfortunately, on DOS this fails, as config.log is still kept open
10098# by configure, so config.status won't be able to write to it; its
10099# output is simply discarded. So we exec the FD to /dev/null,
10100# effectively closing config.log, so it can be properly (re)opened and
10101# appended to by config.status. When coming back to configure, we
10102# need to make the FD available again.
10103if test "$no_create" != yes; then
10104 ac_cs_success=:
10105 ac_config_status_args=
10106 test "$silent" = yes &&
10107 ac_config_status_args="$ac_config_status_args --quiet"
10108 exec 5>/dev/null
10109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10110 exec 5>>config.log
10111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10112 # would make configure fail if this is the last instruction.
10113 $ac_cs_success || { (exit 1); exit 1; }
10114fi
252b5132 10115
This page took 1.104432 seconds and 4 git commands to generate.