binutils:
[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
ad22bfe8 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 REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES 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 BUILD_INSTALL_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
92f01d61 872 --with-bugurl=URL Direct users to URL to report a bug
252b5132 873
42ecbf5e
DJ
874Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
e5a52504 882
42ecbf5e
DJ
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
252b5132
RH
887fi
888
42ecbf5e
DJ
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
252b5132 903
42ecbf5e
DJ
904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 911 fi ;;
42ecbf5e
DJ
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
918esac
919
42ecbf5e
DJ
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
252b5132 930esac
42ecbf5e
DJ
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
d15b04bd 957esac
5d64ca4e 958
42ecbf5e
DJ
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
b7d4af3a 974 cd $ac_popdir
42ecbf5e
DJ
975 done
976fi
5d64ca4e 977
42ecbf5e
DJ
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
5d64ca4e 981
42ecbf5e
DJ
982Copyright (C) 2003 Free Software Foundation, Inc.
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986 exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
429cc0ae 992
42ecbf5e
DJ
993It was created by $as_me, which was
994generated by GNU Autoconf 2.59. Invocation command line was
252b5132 995
42ecbf5e 996 $ $0 $@
e5a52504 997
42ecbf5e
DJ
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030done
e5a52504 1031
42ecbf5e 1032} >&5
ceae3e33 1033
42ecbf5e 1034cat >&5 <<_ACEOF
e5a52504 1035
42ecbf5e
DJ
1036
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
1040
1041_ACEOF
1042
1043
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log. We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112{
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125}
1126 echo
1127
1128 cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227done
1228
1229if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288done
1289if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337done
1338if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Make sure we can run config.sub.
1348$ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353echo "$as_me:$LINENO: checking build system type" >&5
1354echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358 ac_cv_build_alias=$build_alias
1359test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372echo "${ECHO_T}$ac_cv_build" >&6
1373build=$ac_cv_build
1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379echo "$as_me:$LINENO: checking host system type" >&5
1380echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 ac_cv_host_alias=$host_alias
1385test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394echo "${ECHO_T}$ac_cv_host" >&6
1395host=$ac_cv_host
1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking target system type" >&5
1402echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_target_alias=$target_alias
1407test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416echo "${ECHO_T}$ac_cv_target" >&6
1417target=$ac_cv_target
1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423# The aliases save the names the user supplied, while $host etc.
1424# will get canonicalized.
1425test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429ac_ext=c
1430ac_cpp='$CPP $CPPFLAGS'
1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474set dummy gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536done
1537done
1538
1539fi
1540fi
1541CC=$ac_cv_prog_CC
1542if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
1545else
1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550fi
1551if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
1577fi
1578fi
1579ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582echo "${ECHO_T}$ac_ct_CC" >&6
1583else
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588 CC=$ac_ct_CC
1589else
1590 CC="$ac_cv_prog_CC"
1591fi
1592
1593fi
1594if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596set dummy cc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605 ac_prog_rejected=no
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 test -n "$CC" && break
1688 done
1689fi
1690if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729 test -n "$ac_ct_CC" && break
1730done
1731
1732 CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739See \`config.log' for more details." >&5
1740echo "$as_me: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744# Provide some information about the compiler.
1745echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747ac_compiler=`set X $ac_compile; echo $2`
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764cat >conftest.$ac_ext <<_ACEOF
1765/* confdefs.h. */
1766_ACEOF
1767cat confdefs.h >>conftest.$ac_ext
1768cat >>conftest.$ac_ext <<_ACEOF
1769/* end confdefs.h. */
1770
1771int
1772main ()
1773{
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
1795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
1799# b.out is created by i960 compilers.
1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 ;;
1806 conftest.$ac_ext )
1807 # This is the source file.
1808 ;;
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1820 * )
1821 break;;
1822 esac
1823done
1824else
1825 echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: C compiler cannot create executables
1831See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833fi
1834
1835ac_exeext=$ac_cv_exeext
1836echo "$as_me:$LINENO: result: $ac_file" >&5
1837echo "${ECHO_T}$ac_file" >&6
1838
1839# Check the compiler produces executables we can run. If not, either
1840# the compiler is broken, or we cross compile.
1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844# If not cross compiling, check that we can run a simple program.
1845if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866fi
1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869
1870rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871ac_clean_files=$ac_clean_files_save
1872# Check the compiler produces executables we can run. If not, either
1873# the compiler is broken, or we cross compile.
1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877echo "${ECHO_T}$cross_compiling" >&6
1878
1879echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888# work properly (i.e., refer to `conftest.exe'), while it won't with
1889# `rm'.
1890for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899done
1900else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest$ac_cv_exeext
1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912rm -f conftest.$ac_ext
1913EXEEXT=$ac_cv_exeext
1914ac_exeext=$EXEEXT
1915echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920 cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.o conftest.obj
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947done
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953See \`config.log' for more details." >&5
1954echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957fi
1958
1959rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962echo "${ECHO_T}$ac_cv_objext" >&6
1963OBJEXT=$ac_cv_objext
1964ac_objext=$OBJEXT
1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981 choke me
1982#endif
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b7d4af3a
JW
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
42ecbf5e
DJ
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011else
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015ac_compiler_gnu=no
2016fi
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023GCC=`test $ac_compiler_gnu = yes && echo yes`
2024ac_test_CFLAGS=${CFLAGS+set}
2025ac_save_CFLAGS=$CFLAGS
2026CFLAGS="-g"
2027echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
b7d4af3a
JW
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
42ecbf5e
DJ
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070else
2071 echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074ac_cv_prog_cc_g=no
2075fi
2076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2087 fi
2088else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2093 fi
2094fi
2095echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 ac_cv_prog_cc_stdc=no
2101ac_save_CC=$CC
2102cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h. */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h. */
2108#include <stdarg.h>
2109#include <stdio.h>
2110#include <sys/types.h>
2111#include <sys/stat.h>
2112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113struct buf { int x; };
2114FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115static char *e (p, i)
2116 char **p;
2117 int i;
2118{
2119 return p[i];
2120}
2121static char *f (char * (*g) (char **, int), char **p, ...)
2122{
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2129}
2130
2131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140int test (int i, double x);
2141struct s1 {int (*f) (int a);};
2142struct s2 {int (*f) (double a);};
2143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144int argc;
2145char **argv;
2146int
2147main ()
2148{
2149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154# Don't try gcc -ansi; that turns off useful extensions and
2155# breaks some systems' header files.
2156# AIX -qlanglvl=ansi
2157# Ultrix and OSF/1 -std1
2158# HP-UX 10.20 and later -Ae
2159# HP-UX older versions -Aa -D_HPUX_SOURCE
2160# SVR4 -Xc -D__EXTENSIONS__
2161for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162do
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
b7d4af3a
JW
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
42ecbf5e
DJ
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189 echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192fi
2193rm -f conftest.err conftest.$ac_objext
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
2210# Some people use a C++ compiler to compile C. Since we use `exit',
2211# in C++ we need to declare it. In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216 choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
b7d4af3a
JW
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
42ecbf5e
DJ
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2248do
2249 cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255$ac_declaration
2256#include <stdlib.h>
2257int
2258main ()
2259{
2260exit (42);
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
b7d4af3a
JW
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
42ecbf5e
DJ
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 :
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292continue
2293fi
2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
2301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
b7d4af3a
JW
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
42ecbf5e
DJ
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333else
2334 echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337fi
2338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339done
2340rm -f conftest*
2341if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2345fi
2346
2347else
2348 echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351fi
2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362if test "${ac_cv_search_strerror+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 ac_func_search_save_LIBS=$LIBS
2366ac_cv_search_strerror=no
2367cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374/* Override any gcc2 internal prototype to avoid an error. */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378/* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380char strerror ();
2381int
2382main ()
2383{
2384strerror ();
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext conftest$ac_exeext
2390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
b7d4af3a
JW
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
42ecbf5e
DJ
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_search_strerror="none required"
2412else
2413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
2428
2429/* Override any gcc2 internal prototype to avoid an error. */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433/* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435char strerror ();
2436int
2437main ()
2438{
2439strerror ();
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext conftest$ac_exeext
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
b7d4af3a
JW
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
42ecbf5e
DJ
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467break
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472fi
2473rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
2476fi
2477LIBS=$ac_func_search_save_LIBS
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483
2484fi
2485
2486
2487BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488am__api_version="1.9"
2489# Find a good install program. We prefer a C program (faster),
2490# so one script is as good as another. But avoid the broken or
2491# incompatible versions:
2492# SysV /etc/install, /usr/sbin/install
2493# SunOS /usr/etc/install
2494# IRIX /sbin/install
2495# AIX /bin/install
2496# AmigaOS /C/install, which installs bootblocks on floppy discs
2497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500# OS/2's system install, which has a completely different semantic
2501# ./install, which can be erroneously created by make from ./install.sh.
2502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504if test -z "$INSTALL"; then
2505if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2528 # AIX install. It has an incompatible calling convention.
2529 :
42ecbf5e
DJ
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
252b5132 2534 else
42ecbf5e
DJ
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
252b5132
RH
2537 fi
2538 fi
d15b04bd 2539 done
42ecbf5e
DJ
2540 done
2541 ;;
2542esac
2543done
2544
252b5132
RH
2545
2546fi
2547 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2548 INSTALL=$ac_cv_path_install
252b5132
RH
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
42ecbf5e 2554 INSTALL=$ac_install_sh
252b5132
RH
2555 fi
2556fi
42ecbf5e
DJ
2557echo "$as_me:$LINENO: result: $INSTALL" >&5
2558echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
42ecbf5e 2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
42ecbf5e
DJ
2568echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2570# Just in case
2571sleep 1
42ecbf5e 2572echo timestamp > conftest.file
252b5132
RH
2573# Do `set' in a subshell so we don't clobber the current shell's
2574# arguments. Must try -L first in case configure is actually a
2575# symlink; some systems play weird games with the mod time of symlinks
2576# (eg FreeBSD returns the mod time of the symlink's containing
2577# directory).
2578if (
42ecbf5e 2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2580 if test "$*" = "X"; then
2581 # -L didn't work.
42ecbf5e 2582 set X `ls -t $srcdir/configure conftest.file`
252b5132 2583 fi
42ecbf5e
DJ
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2587
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593alias in your environment" >&5
2594echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
252b5132
RH
2597 fi
2598
42ecbf5e 2599 test "$2" = conftest.file
252b5132
RH
2600 )
2601then
2602 # Ok.
2603 :
2604else
42ecbf5e
DJ
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606Check your system clock" >&5
2607echo "$as_me: error: newly created file is older than distributed files!
2608Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615# Use a double $ so make ignores it.
2616test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618# Double any \ or $. echo might interpret backslashes.
2619# By default was `s,x,x', remove it if useless.
2620cat <<\_ACEOF >conftest.sed
2621s/[\\$]/&&/g;s/;s,x,x,$//
2622_ACEOF
2623program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624rm conftest.sed
2625
2626# expand $ac_aux_dir to an absolute path
2627am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630# Use eval to expand $SHELL
2631if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637fi
2638
2639if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
2642 # $(mkdir_p) $(somedir)
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
2655else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
2660 for d in ./-p ./--version;
2661 do
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2669 fi
2670fi
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703echo "${ECHO_T}$AWK" >&6
2704else
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709 test -n "$AWK" && break
2710done
2711
2712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 cat >conftest.make <<\_ACEOF
2719all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721_ACEOF
2722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2728fi
2729rm -f conftest.make
2730fi
2731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2739fi
2740
2741rm -rf .tst 2>/dev/null
2742mkdir .tst 2>/dev/null
2743if test -d .tst; then
2744 am__leading_dot=.
2745else
2746 am__leading_dot=_
2747fi
2748rmdir .tst 2>/dev/null
2749
2750DEPDIR="${am__leading_dot}deps"
2751
2752 ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755am_make=${MAKE-make}
2756cat > confinc << 'END'
2757am__doit:
2758 @echo done
2759.PHONY: am__doit
2760END
2761# If we don't find an include directive, just comment out the code.
2762echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764am__include="#"
2765am__quote=
2766_am_result=none
2767# First try GNU make style include.
2768echo "include confinc" > confmf
2769# We grep out `Entering directory' and `Leaving directory'
2770# messages which can occur if `w' ends up in MAKEFLAGS.
2771# In particular we don't look at `^make:' because GNU make might
2772# be invoked under some other name (usually "gmake"), in which
2773# case it prints its new name instead of `make'.
2774if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2778fi
2779# Now try BSD make style include.
2780if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2786 fi
2787fi
2788
2789
2790echo "$as_me:$LINENO: result: $_am_result" >&5
2791echo "${ECHO_T}$_am_result" >&6
2792rm -f confinc confmf
2793
2794# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2797
2798fi;
2799if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2802fi
2803
2804
2805if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2811fi
2812
2813
2814
2815# test to see if srcdir already configured
2816if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2821fi
2822
2823# test whether we have cygpath
2824if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2829 fi
2830fi
2831
2832
2833# Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2836
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE "$PACKAGE"
2840_ACEOF
2841
2842
2843cat >>confdefs.h <<_ACEOF
2844#define VERSION "$VERSION"
2845_ACEOF
2846
2847# Some tools Automake needs.
2848
2849ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
2863install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864
2865# Installed binaries are usually stripped using `strip' when the user
2866# run `make install-strip'. However `strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the `STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873echo "$as_me:$LINENO: checking for $ac_word" >&5
2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893done
2894
252b5132 2895fi
42ecbf5e
DJ
2896fi
2897STRIP=$ac_cv_prog_STRIP
2898if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900echo "${ECHO_T}$STRIP" >&6
d15b04bd 2901else
42ecbf5e
DJ
2902 echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
d15b04bd 2904fi
d15b04bd 2905
42ecbf5e
DJ
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 2915else
42ecbf5e
DJ
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2918else
42ecbf5e
DJ
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931done
2932
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2934fi
252b5132 2935fi
42ecbf5e
DJ
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2940else
42ecbf5e
DJ
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
252b5132
RH
2943fi
2944
42ecbf5e
DJ
2945 STRIP=$ac_ct_STRIP
2946else
2947 STRIP="$ac_cv_prog_STRIP"
2948fi
252b5132 2949
42ecbf5e
DJ
2950fi
2951INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2952
42ecbf5e
DJ
2953# We need awk for the "check" target. The system "awk" is bad on
2954# some platforms.
2955# Always define AMTAR for backward compatibility.
252b5132 2956
42ecbf5e 2957AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 2958
42ecbf5e 2959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
2960
2961
2962
252b5132 2963
42ecbf5e
DJ
2964depcc="$CC" am_compiler_list=
2965
2966echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2970else
42ecbf5e
DJ
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
252b5132 2989
42ecbf5e
DJ
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 fi
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2998 #
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3019 fi
3020 ;;
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3045 fi
3046 fi
3047 done
3048
3049 cd ..
3050 rm -rf conftest.dir
252b5132 3051else
42ecbf5e 3052 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3053fi
3054
252b5132 3055fi
42ecbf5e
DJ
3056echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
3060
252b5132 3061
42ecbf5e
DJ
3062if
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
252b5132 3067else
42ecbf5e
DJ
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
252b5132
RH
3070fi
3071
3072
3073
42ecbf5e 3074
252b5132
RH
3075# Check whether --enable-shared or --disable-shared was given.
3076if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
6be7c12c 3079case $enableval in
252b5132
RH
3080yes) enable_shared=yes ;;
3081no) enable_shared=no ;;
3082*)
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3089 fi
3090 done
3091 IFS="$ac_save_ifs"
3092 ;;
3093esac
3094else
3095 enable_shared=yes
42ecbf5e 3096fi;
252b5132
RH
3097# Check whether --enable-static or --disable-static was given.
3098if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
6be7c12c 3101case $enableval in
252b5132
RH
3102yes) enable_static=yes ;;
3103no) enable_static=no ;;
3104*)
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3111 fi
3112 done
3113 IFS="$ac_save_ifs"
3114 ;;
3115esac
3116else
3117 enable_static=yes
42ecbf5e 3118fi;
252b5132
RH
3119# Check whether --enable-fast-install or --disable-fast-install was given.
3120if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
6be7c12c 3123case $enableval in
252b5132
RH
3124yes) enable_fast_install=yes ;;
3125no) enable_fast_install=no ;;
3126*)
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
e5a52504
MM
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
1a09a22c
NC
3133 fi
3134 done
3135 IFS="$ac_save_ifs"
e5a52504
MM
3136 ;;
3137esac
1a09a22c 3138else
e5a52504 3139 enable_fast_install=yes
42ecbf5e 3140fi;
ceae3e33 3141
252b5132
RH
3142# Check whether --with-gnu-ld or --without-gnu-ld was given.
3143if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146else
3147 with_gnu_ld=no
42ecbf5e 3148fi;
252b5132 3149ac_prog=ld
6be7c12c 3150if test "$GCC" = yes; then
252b5132 3151 # Check if gcc -print-prog-name=ld gives a path.
42ecbf5e
DJ
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 *)
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
6be7c12c 3161 case $ac_prog in
252b5132 3162 # Accept absolute paths.
a74801ba 3163 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3171 ;;
3172 "")
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3175 ;;
3176 *)
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3179 ;;
3180 esac
3181elif test "$with_gnu_ld" = yes; then
42ecbf5e
DJ
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3184else
42ecbf5e
DJ
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3187fi
42ecbf5e
DJ
3188if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3190else
3191 if test -z "$LD"; then
a74801ba 3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
a74801ba 3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 3196 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
6be7c12c 3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3201 test "$with_gnu_ld" != no && break
3202 else
3203 test "$with_gnu_ld" != yes && break
3204 fi
3205 fi
3206 done
3207 IFS="$ac_save_ifs"
3208else
6be7c12c 3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3210fi
3211fi
3212
6be7c12c 3213LD="$lt_cv_path_LD"
252b5132 3214if test -n "$LD"; then
42ecbf5e
DJ
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216echo "${ECHO_T}$LD" >&6
252b5132 3217else
42ecbf5e
DJ
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
252b5132 3220fi
42ecbf5e
DJ
3221test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3228else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6be7c12c 3231 lt_cv_prog_gnu_ld=yes
252b5132 3232else
6be7c12c 3233 lt_cv_prog_gnu_ld=no
252b5132
RH
3234fi
3235fi
42ecbf5e
DJ
3236echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6be7c12c 3238with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3239
3240
42ecbf5e
DJ
3241echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3245else
3246 lt_cv_ld_reload_flag='-r'
3247fi
42ecbf5e
DJ
3248echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3250reload_flag=$lt_cv_ld_reload_flag
3251test -n "$reload_flag" && reload_flag=" $reload_flag"
3252
42ecbf5e
DJ
3253echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3257else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
6be7c12c 3260 lt_cv_path_NM="$NM"
252b5132 3261else
a74801ba 3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
58cccadb
AO
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6be7c12c 3272 lt_cv_path_NM="$tmp_nm -B"
252b5132 3273 break
ac48eca1 3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6be7c12c 3275 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3276 break
3277 else
6be7c12c 3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3279 continue # so that we can try to find one that supports BSD flags
3280 fi
3281 fi
3282 done
3283 IFS="$ac_save_ifs"
6be7c12c 3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3285fi
3286fi
3287
6be7c12c 3288NM="$lt_cv_path_NM"
42ecbf5e
DJ
3289echo "$as_me:$LINENO: result: $NM" >&5
3290echo "${ECHO_T}$NM" >&6
252b5132 3291
42ecbf5e
DJ
3292echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294LN_S=$as_ln_s
3295if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
252b5132 3298else
42ecbf5e
DJ
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3301fi
3302
42ecbf5e
DJ
3303echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3307else
d64552c5 3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3309lt_cv_file_magic_test_file=
3310lt_cv_deplibs_check_method='unknown'
3311# Need to set the preceding variable on all platforms that support
3312# interlibrary dependencies.
3313# 'none' -- dependencies not supported.
3314# `unknown' -- same as none, but documents that we really don't know.
3315# 'pass_all' -- all dependencies passed with no checks.
3316# 'test_compile' -- check by making test program.
3317# 'file_magic [regex]' -- check by looking for files in library path
3318# which responds to the $file_magic_cmd with a given egrep regex.
3319# If you have `file' or equivalent on your system and you're not sure
3320# whether `pass_all' will *always* work, you probably want this one.
3321
6be7c12c
AO
3322case $host_os in
3323aix*)
ac48eca1
AO
3324 lt_cv_deplibs_check_method=pass_all
3325 ;;
3326
3327beos*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331bsdi4*)
6be7c12c
AO
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3335 ;;
3336
d64552c5 3337cygwin* | mingw* |pw32*)
ac48eca1 3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3340 ;;
3341
6be7c12c 3342darwin* | rhapsody*)
bdcfeba5 3343 # this will be overwritten by pass_all, but leave it in just in case
6be7c12c
AO
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 ;;
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 ;;
3353 esac
bdcfeba5 3354 lt_cv_deplibs_check_method=pass_all
6be7c12c
AO
3355 ;;
3356
d15b04bd 3357freebsd* | kfreebsd*-gnu)
ac48eca1 3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6be7c12c 3359 case $host_cpu in
ac48eca1 3360 i*86 )
58cccadb
AO
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
6be7c12c
AO
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 ;;
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3370 fi
3371 ;;
3372
3373gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
6be7c12c 3377hpux10.20*|hpux11*)
4867be41
DJ
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ;;
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 ;;
3389 esac
ac48eca1
AO
3390 ;;
3391
3392irix5* | irix6*)
6be7c12c 3393 case $host_os in
ac48eca1
AO
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 ;;
3398 *)
6be7c12c 3399 case $LD in
ac48eca1
AO
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 ;;
ac48eca1
AO
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3411 ;;
3412
3413# This must be Linux ELF.
58cccadb 3414linux-gnu*)
bdcfeba5 3415 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3416 ;;
3417
d15b04bd 3418netbsd* | knetbsd*-gnu)
6be7c12c
AO
3419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3421 else
6be7c12c 3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3423 fi
3424 ;;
3425
6be7c12c
AO
3426newsos6)
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3430 ;;
3431
ac48eca1
AO
3432osf3* | osf4* | osf5*)
3433 # this will be overridden with pass_all, but let us keep it just in case
3434 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435 lt_cv_file_magic_test_file=/shlib/libc.so
3436 lt_cv_deplibs_check_method=pass_all
3437 ;;
3438
3439sco3.2v5*)
3440 lt_cv_deplibs_check_method=pass_all
3441 ;;
3442
3443solaris*)
3444 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_file_magic_test_file=/lib/libc.so
3446 ;;
3447
6be7c12c
AO
3448sysv5uw[78]* | sysv4*uw2*)
3449 lt_cv_deplibs_check_method=pass_all
3450 ;;
3451
ac48eca1 3452sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 3453 case $host_vendor in
ac48eca1
AO
3454 ncr)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457 motorola)
6be7c12c
AO
3458 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]'
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3460 ;;
3461 esac
3462 ;;
3463esac
3464
3465fi
42ecbf5e
DJ
3466echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3468file_magic_cmd=$lt_cv_file_magic_cmd
3469deplibs_check_method=$lt_cv_deplibs_check_method
3470
ac48eca1 3471
ac48eca1 3472
ac48eca1
AO
3473
3474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475
bdcfeba5
NC
3476# find the maximum length of command line arguments
3477echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 i=0
3483 teststring="ABCD"
3484
3485 case $build_os in
3486 msdosdjgpp*)
3487 # On DJGPP, this test can blow up pretty badly due to problems in libc
3488 # (any single argument exceeding 2000 bytes causes a buffer overrun
3489 # during glob expansion). Even if it were fixed, the result of this
3490 # check would be larger than it should be.
3491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3492 ;;
3493
3494 cygwin* | mingw*)
3495 # On Win9x/ME, this test blows up -- it succeeds, but takes
3496 # about 5 minutes as the teststring grows exponentially.
3497 # Worse, since 9x/ME are not pre-emptively multitasking,
3498 # you end up with a "frozen" computer, even though with patience
3499 # the test eventually succeeds (with a max line length of 256k).
3500 # Instead, let's just punt: use the minimum linelength reported by
3501 # all of the supported platforms: 8192 (on NT/2K/XP).
3502 lt_cv_sys_max_cmd_len=8192;
3503 ;;
3504
3505 amigaos*)
3506 # On AmigaOS with pdksh, this test takes hours, literally.
3507 # So we just punt and use a minimum line length of 8192.
3508 lt_cv_sys_max_cmd_len=8192;
3509 ;;
3510
3511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512 # This has been around since 386BSD, at least. Likely further.
3513 if test -x /sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515 elif test -x /usr/sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517 else
3518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519 fi
3520 # And add a safety zone
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523 ;;
3524 esac
3525
3526fi
3527
3528if test -n "$lt_cv_sys_max_cmd_len" ; then
3529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531else
3532 echo "$as_me:$LINENO: result: none" >&5
3533echo "${ECHO_T}none" >&6
3534fi
3535
3536
ac48eca1 3537# Only perform the check for file, if the check method requires it
6be7c12c 3538case $deplibs_check_method in
ac48eca1 3539file_magic*)
d64552c5 3540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
42ecbf5e
DJ
3541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3543if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3545else
6be7c12c 3546 case $MAGIC_CMD in
ac48eca1 3547 /*)
d64552c5 3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3549 ;;
3550 ?:/*)
d64552c5 3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3552 ;;
3553 *)
d64552c5 3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3561 if test -n "$file_magic_test_file"; then
6be7c12c 3562 case $deplibs_check_method in
ac48eca1
AO
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3568 :
3569 else
3570 cat <<EOF 1>&2
3571
3572*** Warning: the command libtool uses to detect shared libraries,
3573*** $file_magic_cmd, produces output that libtool cannot recognize.
3574*** The result is that libtool may fail to recognize shared libraries
3575*** as such. This will affect the creation of libtool libraries that
3576*** depend on shared libraries, but programs linked with such libtool
3577*** libraries will work regardless of this problem. Nevertheless, you
3578*** may want to report the problem to your system manager and/or to
3579*** bug-libtool@gnu.org
3580
3581EOF
3582 fi ;;
3583 esac
3584 fi
3585 break
3586 fi
3587 done
3588 IFS="$ac_save_ifs"
d64552c5 3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3590 ;;
3591esac
3592fi
3593
d64552c5
AO
3594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3598else
42ecbf5e
DJ
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
ac48eca1
AO
3601fi
3602
d64552c5 3603if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3604 if test -n "$ac_tool_prefix"; then
42ecbf5e
DJ
3605 echo "$as_me:$LINENO: checking for file" >&5
3606echo $ECHO_N "checking for file... $ECHO_C" >&6
3607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3609else
6be7c12c 3610 case $MAGIC_CMD in
ac48eca1 3611 /*)
d64552c5 3612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3613 ;;
3614 ?:/*)
d64552c5 3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3616 ;;
3617 *)
d64552c5 3618 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="/usr/bin:$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/file; then
d64552c5 3624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3625 if test -n "$file_magic_test_file"; then
6be7c12c 3626 case $deplibs_check_method in
ac48eca1
AO
3627 "file_magic "*)
3628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631 egrep "$file_magic_regex" > /dev/null; then
3632 :
3633 else
3634 cat <<EOF 1>&2
3635
3636*** Warning: the command libtool uses to detect shared libraries,
3637*** $file_magic_cmd, produces output that libtool cannot recognize.
3638*** The result is that libtool may fail to recognize shared libraries
3639*** as such. This will affect the creation of libtool libraries that
3640*** depend on shared libraries, but programs linked with such libtool
3641*** libraries will work regardless of this problem. Nevertheless, you
3642*** may want to report the problem to your system manager and/or to
3643*** bug-libtool@gnu.org
3644
3645EOF
3646 fi ;;
3647 esac
3648 fi
3649 break
3650 fi
3651 done
3652 IFS="$ac_save_ifs"
d64552c5 3653 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3654 ;;
3655esac
3656fi
3657
d64552c5
AO
3658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3662else
42ecbf5e
DJ
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
ac48eca1
AO
3665fi
3666
3667 else
d64552c5 3668 MAGIC_CMD=:
ac48eca1
AO
3669 fi
3670fi
252b5132 3671
ac48eca1
AO
3672 fi
3673 ;;
a74801ba 3674esac
252b5132 3675
42ecbf5e
DJ
3676if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42ecbf5e
DJ
3679echo "$as_me:$LINENO: checking for $ac_word" >&5
3680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3683else
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686else
42ecbf5e
DJ
3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698done
3699done
3700
ac48eca1
AO
3701fi
3702fi
42ecbf5e 3703RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3704if test -n "$RANLIB"; then
42ecbf5e
DJ
3705 echo "$as_me:$LINENO: result: $RANLIB" >&5
3706echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3707else
42ecbf5e
DJ
3708 echo "$as_me:$LINENO: result: no" >&5
3709echo "${ECHO_T}no" >&6
ac48eca1
AO
3710fi
3711
42ecbf5e 3712fi
ac48eca1 3713if test -z "$ac_cv_prog_RANLIB"; then
42ecbf5e 3714 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3715 # Extract the first word of "ranlib", so it can be a program name with args.
3716set dummy ranlib; ac_word=$2
42ecbf5e
DJ
3717echo "$as_me:$LINENO: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3721else
42ecbf5e
DJ
3722 if test -n "$ac_ct_RANLIB"; then
3723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_RANLIB="ranlib"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737done
3738
3739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3740fi
3741fi
42ecbf5e
DJ
3742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743if test -n "$ac_ct_RANLIB"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3746else
42ecbf5e
DJ
3747 echo "$as_me:$LINENO: result: no" >&5
3748echo "${ECHO_T}no" >&6
ac48eca1
AO
3749fi
3750
42ecbf5e 3751 RANLIB=$ac_ct_RANLIB
ac48eca1 3752else
42ecbf5e 3753 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3754fi
3755
42ecbf5e
DJ
3756if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3758set dummy ${ac_tool_prefix}strip; ac_word=$2
42ecbf5e
DJ
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_prog_STRIP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3763else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
42ecbf5e
DJ
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
3780
ac48eca1
AO
3781fi
3782fi
42ecbf5e 3783STRIP=$ac_cv_prog_STRIP
ac48eca1 3784if test -n "$STRIP"; then
42ecbf5e
DJ
3785 echo "$as_me:$LINENO: result: $STRIP" >&5
3786echo "${ECHO_T}$STRIP" >&6
ac48eca1 3787else
42ecbf5e
DJ
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
ac48eca1
AO
3790fi
3791
42ecbf5e 3792fi
ac48eca1 3793if test -z "$ac_cv_prog_STRIP"; then
42ecbf5e 3794 ac_ct_STRIP=$STRIP
ac48eca1
AO
3795 # Extract the first word of "strip", so it can be a program name with args.
3796set dummy strip; ac_word=$2
42ecbf5e
DJ
3797echo "$as_me:$LINENO: checking for $ac_word" >&5
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3801else
42ecbf5e
DJ
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3804else
42ecbf5e
DJ
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817done
3818
3819 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3820fi
3821fi
42ecbf5e
DJ
3822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823if test -n "$ac_ct_STRIP"; then
3824 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3826else
42ecbf5e
DJ
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
ac48eca1
AO
3829fi
3830
42ecbf5e 3831 STRIP=$ac_ct_STRIP
ac48eca1 3832else
42ecbf5e 3833 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3834fi
3835
3836
252b5132
RH
3837# Check for any special flags to pass to ltconfig.
3838libtool_flags="--cache-file=$cache_file"
3839test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3841test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
3842test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3844
a74801ba
ILT
3845
3846# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847if test "${enable_libtool_lock+set}" = set; then
3848 enableval="$enable_libtool_lock"
a74801ba 3849
42ecbf5e 3850fi;
a74801ba
ILT
3851test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3853
42ecbf5e 3854
ac48eca1
AO
3855# Check whether --with-pic or --without-pic was given.
3856if test "${with_pic+set}" = set; then
3857 withval="$with_pic"
3858 pic_mode="$withval"
3859else
3860 pic_mode=default
42ecbf5e 3861fi;
ac48eca1
AO
3862test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864
252b5132
RH
3865# Some flags need to be propagated to the compiler or linker for good
3866# libtool support.
6be7c12c 3867case $host in
252b5132
RH
3868*-*-irix6*)
3869 # Find out which ABI we are using.
92f01d61 3870 echo '#line 3870 "configure"' > conftest.$ac_ext
42ecbf5e
DJ
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
27a710e5
NC
3876 if test "$lt_cv_prog_gnu_ld" = yes; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3878 *32-bit*)
3879 LD="${LD-ld} -melf32bsmip"
3880 ;;
3881 *N32*)
3882 LD="${LD-ld} -melf32bmipn32"
3883 ;;
3884 *64-bit*)
3885 LD="${LD-ld} -melf64bmip"
3886 ;;
3887 esac
3888 else
6be7c12c 3889 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3890 *32-bit*)
3891 LD="${LD-ld} -32"
3892 ;;
3893 *N32*)
3894 LD="${LD-ld} -n32"
3895 ;;
3896 *64-bit*)
3897 LD="${LD-ld} -64"
3898 ;;
3899 esac
27a710e5 3900 fi
252b5132
RH
3901 fi
3902 rm -rf conftest*
3903 ;;
3904
4867be41
DJ
3905ia64-*-hpux*)
3906 # Find out which ABI we are using.
3907 echo 'int i;' > conftest.$ac_ext
42ecbf5e
DJ
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then
4867be41
DJ
3913 case "`/usr/bin/file conftest.o`" in
3914 *ELF-32*)
3915 HPUX_IA64_MODE="32"
3916 ;;
3917 *ELF-64*)
3918 HPUX_IA64_MODE="64"
3919 ;;
3920 esac
3921 fi
3922 rm -rf conftest*
3923 ;;
3924
bdcfeba5
NC
3925x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3926 # Find out which ABI we are using.
3927 echo 'int i;' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 case "`/usr/bin/file conftest.o`" in
3934 *32-bit*)
3935 case $host in
3936 x86_64-*linux*)
3937 LD="${LD-ld} -m elf_i386"
3938 ;;
3939 ppc64-*linux*|powerpc64-*linux*)
3940 LD="${LD-ld} -m elf32ppclinux"
3941 ;;
3942 s390x-*linux*)
3943 LD="${LD-ld} -m elf_s390"
3944 ;;
3945 sparc64-*linux*)
3946 LD="${LD-ld} -m elf32_sparc"
3947 ;;
3948 esac
3949 ;;
3950 *64-bit*)
3951 case $host in
3952 x86_64-*linux*)
3953 LD="${LD-ld} -m elf_x86_64"
3954 ;;
3955 ppc*-*linux*|powerpc*-*linux*)
3956 LD="${LD-ld} -m elf64ppc"
3957 ;;
3958 s390*-*linux*)
3959 LD="${LD-ld} -m elf64_s390"
3960 ;;
3961 sparc*-*linux*)
3962 LD="${LD-ld} -m elf64_sparc"
3963 ;;
3964 esac
3965 ;;
3966 esac
3967 fi
3968 rm -rf conftest*
3969 ;;
3970
252b5132
RH
3971*-*-sco3.2v5*)
3972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3973 SAVE_CFLAGS="$CFLAGS"
3974 CFLAGS="$CFLAGS -belf"
42ecbf5e
DJ
3975 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977if test "${lt_cv_cc_needs_belf+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3979else
42ecbf5e
DJ
3980
3981
ac48eca1 3982 ac_ext=c
ac48eca1 3983ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3987
42ecbf5e
DJ
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
252b5132 3994
42ecbf5e
DJ
3995int
3996main ()
3997{
252b5132 3998
42ecbf5e
DJ
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext conftest$ac_exeext
4004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
b7d4af3a
JW
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
42ecbf5e
DJ
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
252b5132
RH
4025 lt_cv_cc_needs_belf=yes
4026else
42ecbf5e
DJ
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030lt_cv_cc_needs_belf=no
252b5132 4031fi
42ecbf5e
DJ
4032rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4034 ac_ext=c
ac48eca1 4035ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4039
252b5132 4040fi
42ecbf5e
DJ
4041echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
4043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045 CFLAGS="$SAVE_CFLAGS"
4046 fi
4047 ;;
4048
252b5132
RH
4049
4050esac
4051
252b5132
RH
4052
4053# Save cache, so that ltconfig can load it
42ecbf5e 4054cat >confcache <<\_ACEOF
252b5132
RH
4055# This file is a shell script that caches the results of configure
4056# tests run on this system so they can be shared between configure
42ecbf5e
DJ
4057# scripts and configure runs, see configure's option --config-cache.
4058# It is not useful on other systems. If it contains results you don't
4059# want to keep, you may remove or edit it.
252b5132 4060#
42ecbf5e
DJ
4061# config.status only pays attention to the cache file if you give it
4062# the --recheck option to rerun configure.
252b5132 4063#
42ecbf5e
DJ
4064# `ac_cv_env_foo' variables (set or unset) will be overridden when
4065# loading this file, other *unset* `ac_cv_foo' will be assigned the
4066# following values.
4067
4068_ACEOF
4069
252b5132
RH
4070# The following way of writing the cache mishandles newlines in values,
4071# but we know of no workaround that is simple, portable, and efficient.
4072# So, don't put newlines in cache variables' values.
4073# Ultrix sh set writes to stderr and can't be redirected directly,
4074# and sets the high bit in the cache file unless we assign to the vars.
42ecbf5e
DJ
4075{
4076 (set) 2>&1 |
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078 *ac_space=\ *)
4079 # `set' does not quote correctly, so add quotes (double-quote
4080 # substitution turns \\\\ into \\, and sed turns \\ into \).
4081 sed -n \
4082 "s/'/'\\\\''/g;
4083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4084 ;;
4085 *)
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n \
4088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4089 ;;
4090 esac;
4091} |
4092 sed '
4093 t clear
4094 : clear
4095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096 t end
4097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098 : end' >>confcache
4099if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 4100 if test -w $cache_file; then
42ecbf5e
DJ
4101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102 cat confcache >$cache_file
252b5132
RH
4103 else
4104 echo "not updating unwritable cache $cache_file"
4105 fi
4106fi
4107rm -f confcache
4108
252b5132 4109# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4110AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4111MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4112LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4116${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4117$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
42ecbf5e
DJ
4118|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119echo "$as_me: error: libtool configure failed" >&2;}
4120 { (exit 1); exit 1; }; }
252b5132
RH
4121
4122# Reload cache, that may have been modified by ltconfig
4123if test -r "$cache_file"; then
42ecbf5e
DJ
4124 # Some versions of bash will fail to source /dev/null (special
4125 # files actually), so we avoid doing that.
4126 if test -f "$cache_file"; then
4127 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128echo "$as_me: loading cache $cache_file" >&6;}
4129 case $cache_file in
4130 [\\/]* | ?:[\\/]* ) . $cache_file;;
4131 *) . ./$cache_file;;
4132 esac
4133 fi
252b5132 4134else
42ecbf5e
DJ
4135 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136echo "$as_me: creating cache $cache_file" >&6;}
4137 >$cache_file
252b5132
RH
4138fi
4139
4140
4141# This can be used to rebuild libtool when needed
ac48eca1 4142LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4143
4144# Always use our own libtool.
4145LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146
4147# Redirect the config.log output again, so that the ltconfig log is not
4148# clobbered by the next message.
4149exec 5>>./config.log
4150
ac48eca1 4151
42ecbf5e
DJ
4152
4153
4154
4155
ac48eca1 4156
252b5132
RH
4157# Check whether --enable-targets or --disable-targets was given.
4158if test "${enable_targets+set}" = set; then
4159 enableval="$enable_targets"
4160 case "${enableval}" in
42ecbf5e
DJ
4161 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163 { (exit 1); exit 1; }; }
252b5132
RH
4164 ;;
4165 no) enable_targets= ;;
4166 *) enable_targets=$enableval ;;
4167esac
42ecbf5e 4168fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4169if test "${enable_commonbfdlib+set}" = set; then
4170 enableval="$enable_commonbfdlib"
4171 case "${enableval}" in
4172 yes) commonbfdlib=true ;;
4173 no) commonbfdlib=false ;;
42ecbf5e
DJ
4174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176 { (exit 1); exit 1; }; } ;;
252b5132 4177esac
42ecbf5e 4178fi;
92f01d61
JM
4179# The location to which bugs should be reported.
4180
4181# Check whether --with-bugurl or --without-bugurl was given.
4182if test "${with_bugurl+set}" = set; then
4183 withval="$with_bugurl"
4184 case "$withval" in
4185 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4186echo "$as_me: error: bug URL not specified" >&2;}
4187 { (exit 1); exit 1; }; } ;;
ad22bfe8
JM
4188 no) REPORT_BUGS_TO="";
4189 REPORT_BUGS_TEXI=""
4190 ;;
4191 *) REPORT_BUGS_TO="<URL:$withval>"
4192 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4193 ;;
92f01d61
JM
4194 esac
4195else
4196 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
ad22bfe8 4197 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
92f01d61
JM
4198
4199fi;
4200
4201
398ee8f1 4202
ad22bfe8 4203
a541e3ce 4204GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4205
569acd2c
NC
4206# Check whether --enable-werror or --disable-werror was given.
4207if test "${enable_werror+set}" = set; then
4208 enableval="$enable_werror"
1ad12f97
NC
4209 case "${enableval}" in
4210 yes | y) ERROR_ON_WARNING="yes" ;;
4211 no | n) ERROR_ON_WARNING="no" ;;
42ecbf5e
DJ
4212 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4213echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4214 { (exit 1); exit 1; }; } ;;
1ad12f97 4215 esac
42ecbf5e 4216fi;
1ad12f97 4217
9e9b66a9
AM
4218# Enable -Werror by default when using gcc
4219if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4220 ERROR_ON_WARNING=yes
1ad12f97 4221fi
569acd2c 4222
9e9b66a9
AM
4223NO_WERROR=
4224if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4225 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9
AM
4226 NO_WERROR="-Wno-error"
4227fi
42ecbf5e 4228
a541e3ce
SE
4229if test "${GCC}" = yes ; then
4230 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4231fi
4232
a2d91340
AC
4233# Check whether --enable-build-warnings or --disable-build-warnings was given.
4234if test "${enable_build_warnings+set}" = set; then
4235 enableval="$enable_build_warnings"
4236 case "${enableval}" in
a541e3ce
SE
4237 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4238 no) if test "${GCC}" = yes ; then
4239 WARN_CFLAGS="-w"
4240 fi;;
a2d91340 4241 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4242 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4243 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4244 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4245 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d15b04bd 4246esac
42ecbf5e 4247fi;
9e9b66a9
AM
4248
4249if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4250 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d15b04bd 4251fi
9e9b66a9
AM
4252
4253
e5a52504 4254
e5a52504 4255
398ee8f1 4256
42ecbf5e 4257 ac_config_headers="$ac_config_headers config.h:config.in"
d15b04bd
L
4258
4259
4260if test -z "$target" ; then
42ecbf5e
DJ
4261 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4262echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4263 { (exit 1); exit 1; }; }
d15b04bd
L
4264fi
4265if test -z "$host" ; then
42ecbf5e
DJ
4266 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4267echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4268 { (exit 1); exit 1; }; }
4269fi
4270
4271ac_ext=c
4272ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4278set dummy ${ac_tool_prefix}gcc; ac_word=$2
4279echo "$as_me:$LINENO: checking for $ac_word" >&5
4280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281if test "${ac_cv_prog_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299done
4300
4301fi
4302fi
4303CC=$ac_cv_prog_CC
4304if test -n "$CC"; then
4305 echo "$as_me:$LINENO: result: $CC" >&5
4306echo "${ECHO_T}$CC" >&6
4307else
4308 echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
d15b04bd
L
4310fi
4311
42ecbf5e
DJ
4312fi
4313if test -z "$ac_cv_prog_CC"; then
4314 ac_ct_CC=$CC
4315 # Extract the first word of "gcc", so it can be a program name with args.
d15b04bd 4316set dummy gcc; ac_word=$2
42ecbf5e
DJ
4317echo "$as_me:$LINENO: checking for $ac_word" >&5
4318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="gcc"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337done
4338
4339fi
4340fi
4341ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342if test -n "$ac_ct_CC"; then
4343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4344echo "${ECHO_T}$ac_ct_CC" >&6
4345else
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348fi
4349
4350 CC=$ac_ct_CC
4351else
4352 CC="$ac_cv_prog_CC"
4353fi
4354
4355if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4358set dummy ${ac_tool_prefix}cc; ac_word=$2
4359echo "$as_me:$LINENO: checking for $ac_word" >&5
4360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4361if test "${ac_cv_prog_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 4363else
d15b04bd
L
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
e5a52504 4366else
42ecbf5e
DJ
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_CC="${ac_tool_prefix}cc"
4375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378done
4379done
4380
252b5132 4381fi
e5a52504 4382fi
42ecbf5e 4383CC=$ac_cv_prog_CC
d15b04bd 4384if test -n "$CC"; then
42ecbf5e
DJ
4385 echo "$as_me:$LINENO: result: $CC" >&5
4386echo "${ECHO_T}$CC" >&6
4387else
4388 echo "$as_me:$LINENO: result: no" >&5
4389echo "${ECHO_T}no" >&6
4390fi
4391
4392fi
4393if test -z "$ac_cv_prog_CC"; then
4394 ac_ct_CC=$CC
4395 # Extract the first word of "cc", so it can be a program name with args.
4396set dummy cc; ac_word=$2
4397echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_ac_ct_CC="cc"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
4417done
4418
4419fi
4420fi
4421ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422if test -n "$ac_ct_CC"; then
4423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4424echo "${ECHO_T}$ac_ct_CC" >&6
4425else
4426 echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6
4428fi
4429
4430 CC=$ac_ct_CC
252b5132 4431else
42ecbf5e 4432 CC="$ac_cv_prog_CC"
252b5132 4433fi
e5a52504 4434
42ecbf5e 4435fi
d15b04bd
L
4436if test -z "$CC"; then
4437 # Extract the first word of "cc", so it can be a program name with args.
4438set dummy cc; ac_word=$2
42ecbf5e
DJ
4439echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441if test "${ac_cv_prog_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4443else
d15b04bd
L
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4446else
d15b04bd 4447 ac_prog_rejected=no
42ecbf5e
DJ
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4456 ac_prog_rejected=yes
4457 continue
4458 fi
4459 ac_cv_prog_CC="cc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464done
4465
d15b04bd
L
4466if test $ac_prog_rejected = yes; then
4467 # We found a bogon in the path, so make sure we never use it.
4468 set dummy $ac_cv_prog_CC
4469 shift
42ecbf5e 4470 if test $# != 0; then
d15b04bd
L
4471 # We chose a different compiler from the bogus one.
4472 # However, it has the same basename, so the bogon will be chosen
4473 # first if we set CC to just the basename; use the full file name.
4474 shift
42ecbf5e 4475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
e5a52504 4476 fi
252b5132
RH
4477fi
4478fi
d15b04bd 4479fi
42ecbf5e 4480CC=$ac_cv_prog_CC
d15b04bd 4481if test -n "$CC"; then
42ecbf5e
DJ
4482 echo "$as_me:$LINENO: result: $CC" >&5
4483echo "${ECHO_T}$CC" >&6
252b5132 4484else
42ecbf5e
DJ
4485 echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6
252b5132
RH
4487fi
4488
42ecbf5e
DJ
4489fi
4490if test -z "$CC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in cl
4493 do
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498if test "${ac_cv_prog_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4500else
d15b04bd
L
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4503else
42ecbf5e
DJ
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
4517
252b5132
RH
4518fi
4519fi
42ecbf5e 4520CC=$ac_cv_prog_CC
d15b04bd 4521if test -n "$CC"; then
42ecbf5e
DJ
4522 echo "$as_me:$LINENO: result: $CC" >&5
4523echo "${ECHO_T}$CC" >&6
252b5132 4524else
42ecbf5e
DJ
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
d15b04bd 4527fi
42ecbf5e
DJ
4528
4529 test -n "$CC" && break
4530 done
4531fi
4532if test -z "$CC"; then
4533 ac_ct_CC=$CC
4534 for ac_prog in cl
4535do
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537set dummy $ac_prog; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543 if test -n "$ac_ct_CC"; then
4544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_ac_ct_CC="$ac_prog"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
d15b04bd 4556 fi
42ecbf5e
DJ
4557done
4558done
4559
4560fi
4561fi
4562ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563if test -n "$ac_ct_CC"; then
4564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4565echo "${ECHO_T}$ac_ct_CC" >&6
4566else
4567 echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
252b5132
RH
4569fi
4570
42ecbf5e
DJ
4571 test -n "$ac_ct_CC" && break
4572done
e5a52504 4573
42ecbf5e
DJ
4574 CC=$ac_ct_CC
4575fi
4576
4577fi
4578
4579
4580test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4581See \`config.log' for more details." >&5
4582echo "$as_me: error: no acceptable C compiler found in \$PATH
4583See \`config.log' for more details." >&2;}
4584 { (exit 1); exit 1; }; }
4585
4586# Provide some information about the compiler.
4587echo "$as_me:$LINENO:" \
4588 "checking for C compiler version" >&5
4589ac_compiler=`set X $ac_compile; echo $2`
4590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4591 (eval $ac_compiler --version </dev/null >&5) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4596 (eval $ac_compiler -v </dev/null >&5) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4601 (eval $ac_compiler -V </dev/null >&5) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605
4606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4608if test "${ac_cv_c_compiler_gnu+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 cat >conftest.$ac_ext <<_ACEOF
4612/* confdefs.h. */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h. */
4617
4618int
4619main ()
4620{
4621#ifndef __GNUC__
4622 choke me
4623#endif
e5a52504 4624
42ecbf5e
DJ
4625 ;
4626 return 0;
4627}
4628_ACEOF
4629rm -f conftest.$ac_objext
4630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
b7d4af3a
JW
4638 { ac_try='test -z "$ac_c_werror_flag"
4639 || test ! -s conftest.err'
42ecbf5e
DJ
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_compiler_gnu=yes
4652else
4653 echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656ac_compiler_gnu=no
4657fi
4658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659ac_cv_c_compiler_gnu=$ac_compiler_gnu
4660
4661fi
4662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4664GCC=`test $ac_compiler_gnu = yes && echo yes`
4665ac_test_CFLAGS=${CFLAGS+set}
4666ac_save_CFLAGS=$CFLAGS
4667CFLAGS="-g"
4668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4670if test "${ac_cv_prog_cc_g+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672else
4673 cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h. */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h. */
252b5132 4679
42ecbf5e
DJ
4680int
4681main ()
4682{
d15b04bd 4683
42ecbf5e
DJ
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext
4689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
b7d4af3a
JW
4697 { ac_try='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
42ecbf5e
DJ
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_prog_cc_g=yes
4711else
4712 echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715ac_cv_prog_cc_g=no
4716fi
4717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718fi
4719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4721if test "$ac_test_CFLAGS" = set; then
4722 CFLAGS=$ac_save_CFLAGS
4723elif test $ac_cv_prog_cc_g = yes; then
4724 if test "$GCC" = yes; then
4725 CFLAGS="-g -O2"
d15b04bd 4726 else
42ecbf5e 4727 CFLAGS="-g"
d15b04bd 4728 fi
252b5132 4729else
42ecbf5e
DJ
4730 if test "$GCC" = yes; then
4731 CFLAGS="-O2"
4732 else
4733 CFLAGS=
4734 fi
252b5132 4735fi
42ecbf5e
DJ
4736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4738if test "${ac_cv_prog_cc_stdc+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 ac_cv_prog_cc_stdc=no
4742ac_save_CC=$CC
4743cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
4749#include <stdarg.h>
4750#include <stdio.h>
4751#include <sys/types.h>
4752#include <sys/stat.h>
4753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4754struct buf { int x; };
4755FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756static char *e (p, i)
4757 char **p;
4758 int i;
4759{
4760 return p[i];
4761}
4762static char *f (char * (*g) (char **, int), char **p, ...)
4763{
4764 char *s;
4765 va_list v;
4766 va_start (v,p);
4767 s = g (p, va_arg (v,int));
4768 va_end (v);
4769 return s;
4770}
252b5132 4771
42ecbf5e
DJ
4772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4773 function prototypes and stuff, but not '\xHH' hex character constants.
4774 These don't provoke an error unfortunately, instead are silently treated
4775 as 'x'. The following induces an error, until -std1 is added to get
4776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4777 array size at least. It's necessary to write '\x00'==0 to get something
4778 that's true only with -std1. */
4779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4780
4781int test (int i, double x);
4782struct s1 {int (*f) (int a);};
4783struct s2 {int (*f) (double a);};
4784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4785int argc;
4786char **argv;
4787int
4788main ()
4789{
4790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795# Don't try gcc -ansi; that turns off useful extensions and
4796# breaks some systems' header files.
4797# AIX -qlanglvl=ansi
4798# Ultrix and OSF/1 -std1
4799# HP-UX 10.20 and later -Ae
4800# HP-UX older versions -Aa -D_HPUX_SOURCE
4801# SVR4 -Xc -D__EXTENSIONS__
4802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4803do
4804 CC="$ac_save_CC $ac_arg"
4805 rm -f conftest.$ac_objext
4806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
b7d4af3a
JW
4814 { ac_try='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
42ecbf5e
DJ
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_prog_cc_stdc=$ac_arg
4828break
252b5132 4829else
42ecbf5e
DJ
4830 echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
252b5132 4833fi
42ecbf5e
DJ
4834rm -f conftest.err conftest.$ac_objext
4835done
4836rm -f conftest.$ac_ext conftest.$ac_objext
4837CC=$ac_save_CC
4838
252b5132 4839fi
e5a52504 4840
42ecbf5e
DJ
4841case "x$ac_cv_prog_cc_stdc" in
4842 x|xno)
4843 echo "$as_me:$LINENO: result: none needed" >&5
4844echo "${ECHO_T}none needed" >&6 ;;
4845 *)
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4848 CC="$CC $ac_cv_prog_cc_stdc" ;;
4849esac
e5a52504 4850
42ecbf5e
DJ
4851# Some people use a C++ compiler to compile C. Since we use `exit',
4852# in C++ we need to declare it. In case someone uses the same compiler
4853# for both compiling C and C++ we need to have the C++ compiler decide
4854# the declaration of exit, since it's the most demanding environment.
4855cat >conftest.$ac_ext <<_ACEOF
4856#ifndef __cplusplus
4857 choke me
4858#endif
4859_ACEOF
4860rm -f conftest.$ac_objext
4861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
b7d4af3a
JW
4869 { ac_try='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
42ecbf5e
DJ
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 for ac_declaration in \
4883 '' \
4884 'extern "C" void std::exit (int) throw (); using std::exit;' \
4885 'extern "C" void std::exit (int); using std::exit;' \
4886 'extern "C" void exit (int) throw ();' \
4887 'extern "C" void exit (int);' \
4888 'void exit (int);'
4889do
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896$ac_declaration
4897#include <stdlib.h>
4898int
4899main ()
4900{
4901exit (42);
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906rm -f conftest.$ac_objext
4907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
b7d4af3a
JW
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
42ecbf5e
DJ
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 :
d15b04bd 4929else
42ecbf5e
DJ
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4932
42ecbf5e
DJ
4933continue
4934fi
4935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942$ac_declaration
4943int
4944main ()
4945{
4946exit (42);
4947 ;
4948 return 0;
4949}
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
b7d4af3a
JW
4960 { ac_try='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
42ecbf5e
DJ
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 break
d15b04bd 4974else
42ecbf5e
DJ
4975 echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
252b5132 4978fi
42ecbf5e
DJ
4979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4980done
d15b04bd 4981rm -f conftest*
42ecbf5e
DJ
4982if test -n "$ac_declaration"; then
4983 echo '#ifdef __cplusplus' >>confdefs.h
4984 echo $ac_declaration >>confdefs.h
4985 echo '#endif' >>confdefs.h
d15b04bd 4986fi
252b5132 4987
ac48eca1 4988else
42ecbf5e
DJ
4989 echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
d15b04bd 4992fi
42ecbf5e
DJ
4993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994ac_ext=c
4995ac_cpp='$CPP $CPPFLAGS'
4996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998ac_compiler_gnu=$ac_cv_c_compiler_gnu
e5a52504 4999
d15b04bd 5000
3e321448
L
5001cat >>confdefs.h <<\_ACEOF
5002#define _GNU_SOURCE 1
5003_ACEOF
5004
5005
5006
d15b04bd
L
5007for ac_prog in 'bison -y' byacc
5008do
42ecbf5e 5009 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 5010set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_prog_YACC+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
5015else
5016 if test -n "$YACC"; then
5017 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5018else
42ecbf5e
DJ
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_YACC="$ac_prog"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
5031done
5032
ac48eca1
AO
5033fi
5034fi
42ecbf5e 5035YACC=$ac_cv_prog_YACC
d15b04bd 5036if test -n "$YACC"; then
42ecbf5e
DJ
5037 echo "$as_me:$LINENO: result: $YACC" >&5
5038echo "${ECHO_T}$YACC" >&6
e5a52504 5039else
42ecbf5e
DJ
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
e5a52504
MM
5042fi
5043
42ecbf5e 5044 test -n "$YACC" && break
d15b04bd
L
5045done
5046test -n "$YACC" || YACC="yacc"
5047
d15b04bd
L
5048for ac_prog in flex lex
5049do
42ecbf5e 5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 5051set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
5052echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054if test "${ac_cv_prog_LEX+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
5056else
5057 if test -n "$LEX"; then
5058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5059else
42ecbf5e
DJ
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_LEX="$ac_prog"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071done
d15b04bd 5072done
d15b04bd 5073
d15b04bd 5074fi
e5a52504 5075fi
42ecbf5e 5076LEX=$ac_cv_prog_LEX
d15b04bd 5077if test -n "$LEX"; then
42ecbf5e
DJ
5078 echo "$as_me:$LINENO: result: $LEX" >&5
5079echo "${ECHO_T}$LEX" >&6
e5a52504 5080else
42ecbf5e
DJ
5081 echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
e5a52504 5083fi
e5a52504 5084
42ecbf5e
DJ
5085 test -n "$LEX" && break
5086done
5087test -n "$LEX" || LEX=":"
5088
d15b04bd
L
5089if test -z "$LEXLIB"
5090then
42ecbf5e
DJ
5091 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5092echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5093if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 ac_check_lib_save_LIBS=$LIBS
5097LIBS="-lfl $LIBS"
5098cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h. */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h. */
5104
d15b04bd 5105/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
5106#ifdef __cplusplus
5107extern "C"
5108#endif
d15b04bd 5109/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
5110 builtin and then its argument prototype would still apply. */
5111char yywrap ();
5112int
5113main ()
5114{
5115yywrap ();
5116 ;
5117 return 0;
5118}
5119_ACEOF
5120rm -f conftest.$ac_objext conftest$ac_exeext
5121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5122 (eval $ac_link) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
b7d4af3a
JW
5129 { ac_try='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
42ecbf5e
DJ
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_lib_fl_yywrap=yes
5143else
5144 echo "$as_me: failed program was:" >&5
5145sed 's/^/| /' conftest.$ac_ext >&5
5146
5147ac_cv_lib_fl_yywrap=no
5148fi
5149rm -f conftest.err conftest.$ac_objext \
5150 conftest$ac_exeext conftest.$ac_ext
5151LIBS=$ac_check_lib_save_LIBS
5152fi
5153echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5154echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5155if test $ac_cv_lib_fl_yywrap = yes; then
5156 LEXLIB="-lfl"
5157else
5158 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5159echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5160if test "${ac_cv_lib_l_yywrap+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 ac_check_lib_save_LIBS=$LIBS
5164LIBS="-ll $LIBS"
5165cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
d15b04bd 5171
42ecbf5e
DJ
5172/* Override any gcc2 internal prototype to avoid an error. */
5173#ifdef __cplusplus
5174extern "C"
5175#endif
5176/* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5178char yywrap ();
5179int
5180main ()
5181{
5182yywrap ();
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext conftest$ac_exeext
5188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
b7d4af3a
JW
5196 { ac_try='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
42ecbf5e
DJ
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_lib_l_yywrap=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214ac_cv_lib_l_yywrap=no
5215fi
5216rm -f conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218LIBS=$ac_check_lib_save_LIBS
5219fi
5220echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5221echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5222if test $ac_cv_lib_l_yywrap = yes; then
5223 LEXLIB="-ll"
5224fi
5225
5226fi
5227
5228fi
5229
5230if test "x$LEX" != "x:"; then
5231 echo "$as_me:$LINENO: checking lex output file root" >&5
5232echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5233if test "${ac_cv_prog_lex_root+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5235else
d15b04bd
L
5236 # The minimal lex program is just a single line: %%. But some broken lexes
5237# (Solaris, I think it was) want two %% lines, so accommodate them.
42ecbf5e
DJ
5238cat >conftest.l <<_ACEOF
5239%%
5240%%
5241_ACEOF
5242{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5243 (eval $LEX conftest.l) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
d15b04bd
L
5247if test -f lex.yy.c; then
5248 ac_cv_prog_lex_root=lex.yy
5249elif test -f lexyy.c; then
5250 ac_cv_prog_lex_root=lexyy
e5a52504 5251else
42ecbf5e
DJ
5252 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5253echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5254 { (exit 1); exit 1; }; }
e5a52504 5255fi
d15b04bd 5256fi
42ecbf5e
DJ
5257echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5258echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5259rm -f conftest.l
d15b04bd
L
5260LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5261
42ecbf5e
DJ
5262echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5263echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5264if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5266else
d15b04bd
L
5267 # POSIX says lex can declare yytext either as a pointer or an array; the
5268# default is implementation-dependent. Figure out which it is, since
5269# not all implementations provide the %pointer and %array declarations.
5270ac_cv_prog_lex_yytext_pointer=no
5271echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
42ecbf5e 5272ac_save_LIBS=$LIBS
d15b04bd 5273LIBS="$LIBS $LEXLIB"
42ecbf5e 5274cat >conftest.$ac_ext <<_ACEOF
d15b04bd 5275`cat $LEX_OUTPUT_ROOT.c`
42ecbf5e
DJ
5276_ACEOF
5277rm -f conftest.$ac_objext conftest$ac_exeext
5278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
b7d4af3a
JW
5286 { ac_try='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
42ecbf5e
DJ
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
d15b04bd
L
5299 ac_cv_prog_lex_yytext_pointer=yes
5300else
42ecbf5e
DJ
5301 echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
e5a52504 5304fi
42ecbf5e
DJ
5305rm -f conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307LIBS=$ac_save_LIBS
d15b04bd 5308rm -f "${LEX_OUTPUT_ROOT}.c"
e5a52504 5309
e5a52504 5310fi
42ecbf5e
DJ
5311echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5312echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d15b04bd 5313if test $ac_cv_prog_lex_yytext_pointer = yes; then
42ecbf5e
DJ
5314
5315cat >>confdefs.h <<\_ACEOF
d15b04bd 5316#define YYTEXT_POINTER 1
42ecbf5e 5317_ACEOF
d15b04bd
L
5318
5319fi
e5a52504 5320
42ecbf5e
DJ
5321fi
5322if test "$LEX" = :; then
5323 LEX=${am_missing_run}flex
5324fi
e5a52504 5325
bdcfeba5 5326ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
20e95c23
DJ
5327# If we haven't got the data from the intl directory,
5328# assume NLS is disabled.
5329USE_NLS=no
5330LIBINTL=
5331LIBINTL_DEP=
5332INCINTL=
5333XGETTEXT=
5334GMSGFMT=
5335POSUB=
7148cc28
NC
5336
5337if test -f ../intl/config.intl; then
5338 . ../intl/config.intl
20e95c23
DJ
5339fi
5340echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5341echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5342if test x"$USE_NLS" != xyes; then
5343 echo "$as_me:$LINENO: result: no" >&5
5344echo "${ECHO_T}no" >&6
e5a52504 5345else
20e95c23
DJ
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
5348
5349cat >>confdefs.h <<\_ACEOF
5350#define ENABLE_NLS 1
5351_ACEOF
5352
5353
5354 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5355echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5356 # Look for .po and .gmo files in the source directory.
5357 CATALOGS=
5358 XLINGUAS=
5359 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5360 # If there aren't any .gmo files the shell will give us the
5361 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5362 # weeded out.
5363 case "$cat" in *\**)
5364 continue;;
5365 esac
5366 # The quadruple backslash is collapsed to a double backslash
5367 # by the backticks, then collapsed again by the double quotes,
5368 # leaving us with one backslash in the sed expression (right
5369 # before the dot that mustn't act as a wildcard).
5370 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5371 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5372 # The user is allowed to set LINGUAS to a list of languages to
5373 # install catalogs for. If it's empty that means "all of them."
5374 if test "x$LINGUAS" = x; then
5375 CATALOGS="$CATALOGS $cat"
5376 XLINGUAS="$XLINGUAS $lang"
5377 else
5378 case "$LINGUAS" in *$lang*)
5379 CATALOGS="$CATALOGS $cat"
5380 XLINGUAS="$XLINGUAS $lang"
5381 ;;
5382 esac
5383 fi
5384 done
5385 LINGUAS="$XLINGUAS"
5386 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5387echo "${ECHO_T}$LINGUAS" >&6
5388
5389
5390 DATADIRNAME=share
5391
5392 INSTOBJEXT=.mo
5393
5394 GENCAT=gencat
5395
5396 CATOBJEXT=.gmo
5397
5398fi
5399
5400 MKINSTALLDIRS=
5401 if test -n "$ac_aux_dir"; then
5402 case "$ac_aux_dir" in
5403 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5404 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5405 esac
5406 fi
5407 if test -z "$MKINSTALLDIRS"; then
5408 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5409 fi
5410
5411
5412
5413 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5414echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5415 # Check whether --enable-nls or --disable-nls was given.
5416if test "${enable_nls+set}" = set; then
5417 enableval="$enable_nls"
5418 USE_NLS=$enableval
d15b04bd 5419else
20e95c23
DJ
5420 USE_NLS=yes
5421fi;
5422 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5423echo "${ECHO_T}$USE_NLS" >&6
5424
5425
5426
5427
5428
5429
5430# Prepare PATH_SEPARATOR.
5431# The user is always right.
5432if test "${PATH_SEPARATOR+set}" != set; then
5433 echo "#! /bin/sh" >conf$$.sh
5434 echo "exit 0" >>conf$$.sh
5435 chmod +x conf$$.sh
5436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5437 PATH_SEPARATOR=';'
5438 else
5439 PATH_SEPARATOR=:
42ecbf5e 5440 fi
20e95c23
DJ
5441 rm -f conf$$.sh
5442fi
42ecbf5e 5443
20e95c23
DJ
5444# Find out how to test for executable files. Don't use a zero-byte file,
5445# as systems may use methods other than mode bits to determine executability.
5446cat >conf$$.file <<_ASEOF
5447#! /bin/sh
5448exit 0
5449_ASEOF
5450chmod +x conf$$.file
5451if test -x conf$$.file >/dev/null 2>&1; then
5452 ac_executable_p="test -x"
5453else
5454 ac_executable_p="test -f"
d15b04bd 5455fi
20e95c23
DJ
5456rm -f conf$$.file
5457
5458# Extract the first word of "msgfmt", so it can be a program name with args.
5459set dummy msgfmt; ac_word=$2
5460echo "$as_me:$LINENO: checking for $ac_word" >&5
5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462if test "${ac_cv_path_MSGFMT+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 case "$MSGFMT" in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5468 ;;
5469 *)
5470 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5471 for ac_dir in $PATH; do
5472 IFS="$ac_save_IFS"
5473 test -z "$ac_dir" && ac_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5476 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5477 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5478 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5479 break 2
5480 fi
5481 fi
5482 done
5483 done
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5486 ;;
5487esac
d15b04bd 5488fi
20e95c23
DJ
5489MSGFMT="$ac_cv_path_MSGFMT"
5490if test "$MSGFMT" != ":"; then
5491 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5492echo "${ECHO_T}$MSGFMT" >&6
42ecbf5e
DJ
5493else
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
20e95c23
DJ
5498 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5499set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
5500echo "$as_me:$LINENO: checking for $ac_word" >&5
5501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5502if test "${ac_cv_path_GMSGFMT+set}" = set; then
42ecbf5e
DJ
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
20e95c23
DJ
5505 case $GMSGFMT in
5506 [\\/]* | ?:[\\/]*)
5507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5508 ;;
5509 *)
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5517 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
42ecbf5e
DJ
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522done
5523
20e95c23
DJ
5524 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5525 ;;
5526esac
42ecbf5e 5527fi
20e95c23
DJ
5528GMSGFMT=$ac_cv_path_GMSGFMT
5529
5530if test -n "$GMSGFMT"; then
5531 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5532echo "${ECHO_T}$GMSGFMT" >&6
42ecbf5e
DJ
5533else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536fi
5537
20e95c23
DJ
5538
5539
5540# Prepare PATH_SEPARATOR.
5541# The user is always right.
5542if test "${PATH_SEPARATOR+set}" != set; then
5543 echo "#! /bin/sh" >conf$$.sh
5544 echo "exit 0" >>conf$$.sh
5545 chmod +x conf$$.sh
5546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5547 PATH_SEPARATOR=';'
5548 else
5549 PATH_SEPARATOR=:
5550 fi
5551 rm -f conf$$.sh
42ecbf5e
DJ
5552fi
5553
20e95c23
DJ
5554# Find out how to test for executable files. Don't use a zero-byte file,
5555# as systems may use methods other than mode bits to determine executability.
5556cat >conf$$.file <<_ASEOF
5557#! /bin/sh
5558exit 0
5559_ASEOF
5560chmod +x conf$$.file
5561if test -x conf$$.file >/dev/null 2>&1; then
5562 ac_executable_p="test -x"
5563else
5564 ac_executable_p="test -f"
42ecbf5e 5565fi
20e95c23
DJ
5566rm -f conf$$.file
5567
5568# Extract the first word of "xgettext", so it can be a program name with args.
5569set dummy xgettext; ac_word=$2
5570echo "$as_me:$LINENO: checking for $ac_word" >&5
5571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572if test "${ac_cv_path_XGETTEXT+set}" = set; then
42ecbf5e
DJ
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
20e95c23
DJ
5575 case "$XGETTEXT" in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5581 for ac_dir in $PATH; do
5582 IFS="$ac_save_IFS"
5583 test -z "$ac_dir" && ac_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5586 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5587 (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
5588 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5589 break 2
5590 fi
5591 fi
5592 done
5593 done
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5596 ;;
5597esac
5598fi
5599XGETTEXT="$ac_cv_path_XGETTEXT"
5600if test "$XGETTEXT" != ":"; then
5601 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5602echo "${ECHO_T}$XGETTEXT" >&6
5603else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606fi
5607
5608 rm -f messages.po
5609
5610
5611# Prepare PATH_SEPARATOR.
5612# The user is always right.
5613if test "${PATH_SEPARATOR+set}" != set; then
5614 echo "#! /bin/sh" >conf$$.sh
5615 echo "exit 0" >>conf$$.sh
5616 chmod +x conf$$.sh
5617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5618 PATH_SEPARATOR=';'
42ecbf5e 5619 else
20e95c23 5620 PATH_SEPARATOR=:
42ecbf5e 5621 fi
20e95c23 5622 rm -f conf$$.sh
42ecbf5e 5623fi
42ecbf5e 5624
20e95c23
DJ
5625# Find out how to test for executable files. Don't use a zero-byte file,
5626# as systems may use methods other than mode bits to determine executability.
5627cat >conf$$.file <<_ASEOF
5628#! /bin/sh
5629exit 0
5630_ASEOF
5631chmod +x conf$$.file
5632if test -x conf$$.file >/dev/null 2>&1; then
5633 ac_executable_p="test -x"
5634else
5635 ac_executable_p="test -f"
42ecbf5e 5636fi
20e95c23 5637rm -f conf$$.file
42ecbf5e 5638
20e95c23
DJ
5639# Extract the first word of "msgmerge", so it can be a program name with args.
5640set dummy msgmerge; ac_word=$2
5641echo "$as_me:$LINENO: checking for $ac_word" >&5
5642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643if test "${ac_cv_path_MSGMERGE+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5645else
20e95c23
DJ
5646 case "$MSGMERGE" in
5647 [\\/]* | ?:[\\/]*)
5648 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5649 ;;
5650 *)
5651 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5652 for ac_dir in $PATH; do
5653 IFS="$ac_save_IFS"
5654 test -z "$ac_dir" && ac_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5657 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5658 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5659 break 2
5660 fi
5661 fi
5662 done
5663 done
5664 IFS="$ac_save_IFS"
5665 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5666 ;;
5667esac
42ecbf5e 5668fi
20e95c23
DJ
5669MSGMERGE="$ac_cv_path_MSGMERGE"
5670if test "$MSGMERGE" != ":"; then
5671 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5672echo "${ECHO_T}$MSGMERGE" >&6
42ecbf5e 5673else
20e95c23
DJ
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
42ecbf5e 5676fi
42ecbf5e 5677
42ecbf5e 5678
20e95c23
DJ
5679 if test "$GMSGFMT" != ":"; then
5680 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5681 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5682 : ;
5683 else
5684 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5685 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5686echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5687 GMSGFMT=":"
5688 fi
5689 fi
42ecbf5e 5690
20e95c23
DJ
5691 if test "$XGETTEXT" != ":"; then
5692 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5693 (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
5694 : ;
5695 else
5696 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5697echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5698 XGETTEXT=":"
5699 fi
5700 rm -f messages.po
42ecbf5e 5701 fi
42ecbf5e 5702
20e95c23 5703 ac_config_commands="$ac_config_commands default-1"
42ecbf5e 5704
42ecbf5e 5705
42ecbf5e 5706
20e95c23
DJ
5707echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5708echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5709 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5710if test "${enable_maintainer_mode+set}" = set; then
5711 enableval="$enable_maintainer_mode"
5712 USE_MAINTAINER_MODE=$enableval
42ecbf5e 5713else
20e95c23
DJ
5714 USE_MAINTAINER_MODE=no
5715fi;
5716 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5717echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e
DJ
5718
5719
20e95c23
DJ
5720if test $USE_MAINTAINER_MODE = yes; then
5721 MAINTAINER_MODE_TRUE=
5722 MAINTAINER_MODE_FALSE='#'
d15b04bd 5723else
20e95c23
DJ
5724 MAINTAINER_MODE_TRUE='#'
5725 MAINTAINER_MODE_FALSE=
e5a52504 5726fi
42ecbf5e 5727
20e95c23 5728 MAINT=$MAINTAINER_MODE_TRUE
ac48eca1 5729
42ecbf5e 5730
42ecbf5e 5731
d5fbea21
DJ
5732
5733if false; then
5734 GENINSRC_NEVER_TRUE=
5735 GENINSRC_NEVER_FALSE='#'
5736else
5737 GENINSRC_NEVER_TRUE='#'
5738 GENINSRC_NEVER_FALSE=
5739fi
5740
5741
20e95c23
DJ
5742if test -n "$EXEEXT"; then
5743
5744cat >>confdefs.h <<\_ACEOF
5745#define HAVE_EXECUTABLE_SUFFIX 1
42ecbf5e 5746_ACEOF
42ecbf5e 5747
252b5132 5748fi
252b5132 5749
20e95c23
DJ
5750cat >>confdefs.h <<_ACEOF
5751#define EXECUTABLE_SUFFIX "${EXEEXT}"
42ecbf5e 5752_ACEOF
42ecbf5e 5753
252b5132 5754
20e95c23 5755# host-specific stuff:
252b5132 5756
20e95c23 5757HDEFINES=
42ecbf5e 5758
20e95c23 5759. ${srcdir}/../bfd/configure.host
252b5132 5760
252b5132 5761
20e95c23 5762AR=${AR-ar}
d15b04bd 5763
20e95c23
DJ
5764if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_RANLIB+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5771else
20e95c23
DJ
5772 if test -n "$RANLIB"; then
5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787done
42ecbf5e 5788
252b5132 5789fi
252b5132 5790fi
20e95c23
DJ
5791RANLIB=$ac_cv_prog_RANLIB
5792if test -n "$RANLIB"; then
5793 echo "$as_me:$LINENO: result: $RANLIB" >&5
5794echo "${ECHO_T}$RANLIB" >&6
5795else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
252b5132 5798fi
252b5132
RH
5799
5800fi
20e95c23
DJ
5801if test -z "$ac_cv_prog_RANLIB"; then
5802 ac_ct_RANLIB=$RANLIB
5803 # Extract the first word of "ranlib", so it can be a program name with args.
5804set dummy ranlib; ac_word=$2
5805echo "$as_me:$LINENO: checking for $ac_word" >&5
5806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e
DJ
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
20e95c23
DJ
5810 if test -n "$ac_ct_RANLIB"; then
5811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5812else
20e95c23
DJ
5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_RANLIB="ranlib"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824done
5825done
42ecbf5e 5826
20e95c23 5827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132 5828fi
252b5132 5829fi
20e95c23
DJ
5830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5831if test -n "$ac_ct_RANLIB"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5833echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5834else
20e95c23
DJ
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
252b5132 5837fi
252b5132 5838
20e95c23
DJ
5839 RANLIB=$ac_ct_RANLIB
5840else
5841 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5842fi
42ecbf5e 5843
20e95c23
DJ
5844# Find a good install program. We prefer a C program (faster),
5845# so one script is as good as another. But avoid the broken or
5846# incompatible versions:
5847# SysV /etc/install, /usr/sbin/install
5848# SunOS /usr/etc/install
5849# IRIX /sbin/install
5850# AIX /bin/install
5851# AmigaOS /C/install, which installs bootblocks on floppy discs
5852# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5853# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5854# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5855# OS/2's system install, which has a completely different semantic
5856# ./install, which can be erroneously created by make from ./install.sh.
5857echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5858echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5859if test -z "$INSTALL"; then
5860if test "${ac_cv_path_install+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5862else
20e95c23
DJ
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 # Account for people who put trailing slashes in PATH elements.
5869case $as_dir/ in
5870 ./ | .// | /cC/* | \
5871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5872 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5873 /usr/ucb/* ) ;;
5874 *)
5875 # OSF1 and SCO ODT 3.0 have their own names for install.
5876 # Don't use installbsd from OSF since it installs stuff as root
5877 # by default.
5878 for ac_prog in ginstall scoinst install; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5881 if test $ac_prog = install &&
5882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5883 # AIX install. It has an incompatible calling convention.
5884 :
5885 elif test $ac_prog = install &&
5886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5887 # program-specific install script used by HP pwplus--don't use.
5888 :
5889 else
5890 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5891 break 3
5892 fi
5893 fi
5894 done
5895 done
42ecbf5e
DJ
5896 ;;
5897esac
20e95c23 5898done
42ecbf5e 5899
42ecbf5e 5900
42ecbf5e 5901fi
20e95c23
DJ
5902 if test "${ac_cv_path_install+set}" = set; then
5903 INSTALL=$ac_cv_path_install
5904 else
5905 # As a last resort, use the slow shell script. We don't cache a
5906 # path for INSTALL within a source directory, because that will
5907 # break other packages using the cache if that directory is
5908 # removed, or if the path is relative.
5909 INSTALL=$ac_install_sh
5910 fi
42ecbf5e 5911fi
20e95c23
DJ
5912echo "$as_me:$LINENO: result: $INSTALL" >&5
5913echo "${ECHO_T}$INSTALL" >&6
42ecbf5e 5914
20e95c23
DJ
5915# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5916# It thinks the first close brace ends the variable substitution.
5917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5918
20e95c23 5919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132 5920
20e95c23 5921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42ecbf5e 5922
252b5132 5923
20e95c23
DJ
5924# Put a plausible default for CC_FOR_BUILD in Makefile.
5925if test -z "$CC_FOR_BUILD"; then
5926 if test "x$cross_compiling" = "xno"; then
5927 CC_FOR_BUILD='$(CC)'
5928 else
5929 CC_FOR_BUILD=gcc
5930 fi
5931fi
5932
5933# Also set EXEEXT_FOR_BUILD.
5934if test "x$cross_compiling" = "xno"; then
5935 EXEEXT_FOR_BUILD='$(EXEEXT)'
5936else
5937 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
5938echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
5939if test "${bfd_cv_build_exeext+set}" = set; then
42ecbf5e 5940 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5941else
20e95c23
DJ
5942 rm -f conftest*
5943 echo 'int main () { return 0; }' > conftest.c
5944 bfd_cv_build_exeext=
5945 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5946 for file in conftest.*; do
5947 case $file in
5948 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5949 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5950 esac
5951 done
5952 rm -f conftest*
5953 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 5954fi
20e95c23
DJ
5955echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
5956echo "${ECHO_T}$bfd_cv_build_exeext" >&6
5957 EXEEXT_FOR_BUILD=""
5958 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132 5959fi
42ecbf5e 5960
20e95c23
DJ
5961
5962DEMANGLER_NAME=c++filt
5963case "${host}" in
5964 *-*-go32* | *-*-msdos*)
5965 DEMANGLER_NAME=cxxfilt
5966esac
5967
5968
5969ac_ext=c
5970ac_cpp='$CPP $CPPFLAGS'
5971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973ac_compiler_gnu=$ac_cv_c_compiler_gnu
5974echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5976# On Suns, sometimes $CPP names a directory.
5977if test -n "$CPP" && test -d "$CPP"; then
5978 CPP=
5979fi
5980if test -z "$CPP"; then
5981 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e
DJ
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
20e95c23
DJ
5984 # Double quotes because CPP needs to be expanded
5985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5986 do
5987 ac_preproc_ok=false
5988for ac_c_preproc_warn_flag in '' yes
5989do
5990 # Use a header file that comes with gcc, so configuring glibc
5991 # with a fresh cross-compiler works.
5992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5993 # <limits.h> exists even on freestanding compilers.
5994 # On the NeXT, cc -E runs the code through the compiler's parser,
5995 # not just through cpp. "Syntax error" is here to catch this case.
42ecbf5e
DJ
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
42ecbf5e
DJ
6002#ifdef __STDC__
6003# include <limits.h>
6004#else
6005# include <assert.h>
6006#endif
20e95c23 6007 Syntax error
42ecbf5e 6008_ACEOF
20e95c23
DJ
6009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6016 (exit $ac_status); } >/dev/null; then
6017 if test -s conftest.err; then
6018 ac_cpp_err=$ac_c_preproc_warn_flag
6019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6020 else
6021 ac_cpp_err=
42ecbf5e 6022 fi
252b5132 6023else
20e95c23 6024 ac_cpp_err=yes
252b5132 6025fi
20e95c23
DJ
6026if test -z "$ac_cpp_err"; then
6027 :
252b5132 6028else
20e95c23
DJ
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 # Broken: fails on valid input.
6033continue
252b5132 6034fi
20e95c23 6035rm -f conftest.err conftest.$ac_ext
252b5132 6036
20e95c23
DJ
6037 # OK, works on sane cases. Now check whether non-existent headers
6038 # can be detected and how.
6039 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
20e95c23 6045#include <ac_nonexistent.h>
42ecbf5e 6046_ACEOF
20e95c23
DJ
6047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6054 (exit $ac_status); } >/dev/null; then
6055 if test -s conftest.err; then
6056 ac_cpp_err=$ac_c_preproc_warn_flag
6057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6058 else
6059 ac_cpp_err=
6060 fi
6061else
6062 ac_cpp_err=yes
6063fi
6064if test -z "$ac_cpp_err"; then
6065 # Broken: success on invalid input.
6066continue
252b5132 6067else
42ecbf5e
DJ
6068 echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
20e95c23
DJ
6071 # Passes both tests.
6072ac_preproc_ok=:
6073break
252b5132 6074fi
20e95c23 6075rm -f conftest.err conftest.$ac_ext
42ecbf5e 6076
20e95c23
DJ
6077done
6078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6079rm -f conftest.err conftest.$ac_ext
6080if $ac_preproc_ok; then
6081 break
252b5132
RH
6082fi
6083
20e95c23
DJ
6084 done
6085 ac_cv_prog_CPP=$CPP
252b5132 6086
252b5132 6087fi
20e95c23 6088 CPP=$ac_cv_prog_CPP
252b5132 6089else
20e95c23 6090 ac_cv_prog_CPP=$CPP
252b5132 6091fi
20e95c23
DJ
6092echo "$as_me:$LINENO: result: $CPP" >&5
6093echo "${ECHO_T}$CPP" >&6
6094ac_preproc_ok=false
6095for ac_c_preproc_warn_flag in '' yes
42ecbf5e 6096do
20e95c23
DJ
6097 # Use a header file that comes with gcc, so configuring glibc
6098 # with a fresh cross-compiler works.
6099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6100 # <limits.h> exists even on freestanding compilers.
6101 # On the NeXT, cc -E runs the code through the compiler's parser,
6102 # not just through cpp. "Syntax error" is here to catch this case.
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109#ifdef __STDC__
6110# include <limits.h>
6111#else
6112# include <assert.h>
6113#endif
6114 Syntax error
6115_ACEOF
6116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null; then
6124 if test -s conftest.err; then
6125 ac_cpp_err=$ac_c_preproc_warn_flag
6126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6127 else
6128 ac_cpp_err=
42ecbf5e 6129 fi
20e95c23
DJ
6130else
6131 ac_cpp_err=yes
252b5132 6132fi
20e95c23
DJ
6133if test -z "$ac_cpp_err"; then
6134 :
252b5132 6135else
20e95c23
DJ
6136 echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 # Broken: fails on valid input.
6140continue
252b5132 6141fi
20e95c23 6142rm -f conftest.err conftest.$ac_ext
252b5132 6143
20e95c23
DJ
6144 # OK, works on sane cases. Now check whether non-existent headers
6145 # can be detected and how.
6146 cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h. */
6152#include <ac_nonexistent.h>
6153_ACEOF
6154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6165 else
6166 ac_cpp_err=
6167 fi
252b5132 6168else
20e95c23 6169 ac_cpp_err=yes
252b5132 6170fi
20e95c23
DJ
6171if test -z "$ac_cpp_err"; then
6172 # Broken: success on invalid input.
6173continue
252b5132 6174else
20e95c23
DJ
6175 echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
c46f8c51 6177
20e95c23
DJ
6178 # Passes both tests.
6179ac_preproc_ok=:
6180break
6181fi
6182rm -f conftest.err conftest.$ac_ext
42ecbf5e 6183
20e95c23
DJ
6184done
6185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6186rm -f conftest.err conftest.$ac_ext
6187if $ac_preproc_ok; then
6188 :
6189else
6190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6191See \`config.log' for more details." >&5
6192echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6193See \`config.log' for more details." >&2;}
6194 { (exit 1); exit 1; }; }
6195fi
252b5132 6196
20e95c23
DJ
6197ac_ext=c
6198ac_cpp='$CPP $CPPFLAGS'
6199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 6202
252b5132 6203
20e95c23
DJ
6204echo "$as_me:$LINENO: checking for egrep" >&5
6205echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6206if test "${ac_cv_prog_egrep+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6210 then ac_cv_prog_egrep='grep -E'
6211 else ac_cv_prog_egrep='egrep'
6212 fi
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6215echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6216 EGREP=$ac_cv_prog_egrep
42ecbf5e 6217
252b5132 6218
20e95c23
DJ
6219echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6220echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6221if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 6222 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6223else
20e95c23 6224 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
20e95c23
DJ
6230#include <stdlib.h>
6231#include <stdarg.h>
6232#include <string.h>
6233#include <float.h>
6234
6235int
6236main ()
6237{
6238
6239 ;
6240 return 0;
6241}
42ecbf5e
DJ
6242_ACEOF
6243rm -f conftest.$ac_objext
6244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
b7d4af3a
JW
6252 { ac_try='test -z "$ac_c_werror_flag"
6253 || test ! -s conftest.err'
42ecbf5e
DJ
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
20e95c23 6265 ac_cv_header_stdc=yes
42ecbf5e
DJ
6266else
6267 echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
20e95c23 6270ac_cv_header_stdc=no
42ecbf5e
DJ
6271fi
6272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6273
20e95c23
DJ
6274if test $ac_cv_header_stdc = yes; then
6275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6276 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
20e95c23 6282#include <string.h>
42ecbf5e 6283
20e95c23
DJ
6284_ACEOF
6285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 $EGREP "memchr" >/dev/null 2>&1; then
6287 :
42ecbf5e 6288else
20e95c23 6289 ac_cv_header_stdc=no
e5a52504 6290fi
20e95c23 6291rm -f conftest*
42ecbf5e
DJ
6292
6293fi
252b5132 6294
20e95c23
DJ
6295if test $ac_cv_header_stdc = yes; then
6296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6297 cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303#include <stdlib.h>
252b5132 6304
20e95c23
DJ
6305_ACEOF
6306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 $EGREP "free" >/dev/null 2>&1; then
6308 :
252b5132 6309else
20e95c23 6310 ac_cv_header_stdc=no
252b5132 6311fi
20e95c23 6312rm -f conftest*
2481e6a2
ILT
6313
6314fi
42ecbf5e 6315
20e95c23
DJ
6316if test $ac_cv_header_stdc = yes; then
6317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6318 if test "$cross_compiling" = yes; then
6319 :
252b5132 6320else
20e95c23
DJ
6321 cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h. */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h. */
6327#include <ctype.h>
6328#if ((' ' & 0x0FF) == 0x020)
6329# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331#else
6332# define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337#endif
42ecbf5e 6338
20e95c23
DJ
6339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6340int
6341main ()
6342{
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 exit(2);
6348 exit (0);
6349}
6350_ACEOF
6351rm -f conftest$ac_exeext
6352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 :
42ecbf5e 6363else
20e95c23
DJ
6364 echo "$as_me: program exited with status $ac_status" >&5
6365echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6367
20e95c23
DJ
6368( exit $ac_status )
6369ac_cv_header_stdc=no
42ecbf5e 6370fi
20e95c23 6371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
6372fi
6373fi
42ecbf5e 6374fi
20e95c23
DJ
6375echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6376echo "${ECHO_T}$ac_cv_header_stdc" >&6
6377if test $ac_cv_header_stdc = yes; then
6378
6379cat >>confdefs.h <<\_ACEOF
6380#define STDC_HEADERS 1
6381_ACEOF
42ecbf5e 6382
252b5132
RH
6383fi
6384
20e95c23 6385# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42ecbf5e 6386
252b5132 6387
252b5132 6388
252b5132 6389
252b5132 6390
252b5132
RH
6391
6392
252b5132 6393
20e95c23
DJ
6394
6395for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6396 inttypes.h stdint.h unistd.h
6397do
6398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399echo "$as_me:$LINENO: checking for $ac_header" >&5
6400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
42ecbf5e 6402 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6403else
20e95c23
DJ
6404 cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h. */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h. */
6410$ac_includes_default
6411
6412#include <$ac_header>
6413_ACEOF
6414rm -f conftest.$ac_objext
6415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_c_werror_flag"
6424 || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 eval "$as_ac_Header=yes"
6437else
6438 echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441eval "$as_ac_Header=no"
252b5132 6442fi
20e95c23 6443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6444fi
20e95c23
DJ
6445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450_ACEOF
252b5132 6451
20e95c23 6452fi
252b5132 6453
20e95c23 6454done
8a965946
ILT
6455
6456
42ecbf5e
DJ
6457
6458
6459
6460
6461
6462
f8eae8b2
L
6463
6464
6465for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 6466do
42ecbf5e
DJ
6467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468if eval "test \"\${$as_ac_Header+set}\" = set"; then
6469 echo "$as_me:$LINENO: checking for $ac_header" >&5
6470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473fi
6474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476else
6477 # Is the header compilable?
6478echo "$as_me:$LINENO: checking $ac_header usability" >&5
6479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6480cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h. */
6486$ac_includes_default
6487#include <$ac_header>
6488_ACEOF
6489rm -f conftest.$ac_objext
6490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
b7d4af3a
JW
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
42ecbf5e
DJ
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_header_compiler=yes
6512else
6513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516ac_header_compiler=no
6517fi
6518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520echo "${ECHO_T}$ac_header_compiler" >&6
6521
6522# Is the header present?
6523echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6525cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
6531#include <$ac_header>
6532_ACEOF
6533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6544 else
6545 ac_cpp_err=
6546 fi
252b5132 6547else
42ecbf5e 6548 ac_cpp_err=yes
252b5132 6549fi
42ecbf5e
DJ
6550if test -z "$ac_cpp_err"; then
6551 ac_header_preproc=yes
6552else
6553 echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_header_preproc=no
252b5132 6557fi
42ecbf5e
DJ
6558rm -f conftest.err conftest.$ac_ext
6559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560echo "${ECHO_T}$ac_header_preproc" >&6
6561
6562# So? What about this header?
6563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 yes:no: )
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6570 ;;
6571 no:yes:* )
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6584 (
6585 cat <<\_ASBOX
6586## ------------------------------------------ ##
6587## Report this to the AC_PACKAGE_NAME lists. ##
6588## ------------------------------------------ ##
6589_ASBOX
6590 ) |
6591 sed "s/^/$as_me: WARNING: /" >&2
6592 ;;
6593esac
6594echo "$as_me:$LINENO: checking for $ac_header" >&5
6595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6598else
42ecbf5e
DJ
6599 eval "$as_ac_Header=\$ac_header_preproc"
6600fi
6601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603
252b5132 6604fi
42ecbf5e
DJ
6605if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608_ACEOF
6609
6610fi
6611
252b5132
RH
6612done
6613
42ecbf5e
DJ
6614echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6615echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6616if test "${ac_cv_header_sys_wait_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
252b5132
RH
6625#include <sys/types.h>
6626#include <sys/wait.h>
6627#ifndef WEXITSTATUS
42ecbf5e 6628# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
6629#endif
6630#ifndef WIFEXITED
42ecbf5e 6631# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 6632#endif
42ecbf5e
DJ
6633
6634int
6635main ()
6636{
6637 int s;
6638 wait (&s);
6639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6640 ;
6641 return 0;
6642}
6643_ACEOF
6644rm -f conftest.$ac_objext
6645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
b7d4af3a
JW
6653 { ac_try='test -z "$ac_c_werror_flag"
6654 || test ! -s conftest.err'
42ecbf5e
DJ
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
252b5132
RH
6666 ac_cv_header_sys_wait_h=yes
6667else
42ecbf5e
DJ
6668 echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
6671ac_cv_header_sys_wait_h=no
252b5132 6672fi
42ecbf5e 6673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6674fi
42ecbf5e
DJ
6675echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6676echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 6677if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
6678
6679cat >>confdefs.h <<\_ACEOF
252b5132 6680#define HAVE_SYS_WAIT_H 1
42ecbf5e 6681_ACEOF
252b5132
RH
6682
6683fi
6684
6685# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6686# for constant arguments. Useless!
42ecbf5e
DJ
6687echo "$as_me:$LINENO: checking for working alloca.h" >&5
6688echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6689if test "${ac_cv_working_alloca_h+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 cat >conftest.$ac_ext <<_ACEOF
6693/* confdefs.h. */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h. */
252b5132 6698#include <alloca.h>
42ecbf5e
DJ
6699int
6700main ()
6701{
6702char *p = (char *) alloca (2 * sizeof (int));
6703 ;
6704 return 0;
6705}
6706_ACEOF
6707rm -f conftest.$ac_objext conftest$ac_exeext
6708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
b7d4af3a
JW
6716 { ac_try='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
42ecbf5e
DJ
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_working_alloca_h=yes
6730else
6731 echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734ac_cv_working_alloca_h=no
6735fi
6736rm -f conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738fi
6739echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6740echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6741if test $ac_cv_working_alloca_h = yes; then
6742
6743cat >>confdefs.h <<\_ACEOF
252b5132 6744#define HAVE_ALLOCA_H 1
42ecbf5e 6745_ACEOF
252b5132
RH
6746
6747fi
6748
42ecbf5e
DJ
6749echo "$as_me:$LINENO: checking for alloca" >&5
6750echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6751if test "${ac_cv_func_alloca_works+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6753else
42ecbf5e
DJ
6754 cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
252b5132
RH
6760#ifdef __GNUC__
6761# define alloca __builtin_alloca
6762#else
6763# ifdef _MSC_VER
6764# include <malloc.h>
6765# define alloca _alloca
6766# else
6767# if HAVE_ALLOCA_H
6768# include <alloca.h>
6769# else
6770# ifdef _AIX
6771 #pragma alloca
6772# else
6773# ifndef alloca /* predefined by HP cc +Olibcalls */
6774char *alloca ();
6775# endif
6776# endif
6777# endif
6778# endif
6779#endif
6780
42ecbf5e
DJ
6781int
6782main ()
6783{
6784char *p = (char *) alloca (1);
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789rm -f conftest.$ac_objext conftest$ac_exeext
6790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
b7d4af3a
JW
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
42ecbf5e
DJ
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
252b5132
RH
6811 ac_cv_func_alloca_works=yes
6812else
42ecbf5e
DJ
6813 echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816ac_cv_func_alloca_works=no
252b5132 6817fi
42ecbf5e
DJ
6818rm -f conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
252b5132 6820fi
42ecbf5e
DJ
6821echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6822echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6823
252b5132 6824if test $ac_cv_func_alloca_works = yes; then
e5a52504 6825
42ecbf5e
DJ
6826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_ALLOCA 1
6828_ACEOF
e5a52504 6829
42ecbf5e 6830else
d15b04bd 6831 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
6832# that cause trouble. Some versions do not even contain alloca or
6833# contain a buggy version. If you still want to use their alloca,
6834# use ar to extract alloca.o from them instead of compiling alloca.c.
6835
6836ALLOCA=alloca.$ac_objext
6837
6838cat >>confdefs.h <<\_ACEOF
252b5132 6839#define C_ALLOCA 1
42ecbf5e 6840_ACEOF
252b5132
RH
6841
6842
42ecbf5e
DJ
6843echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6844echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6845if test "${ac_cv_os_cray+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6847else
42ecbf5e
DJ
6848 cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
252b5132
RH
6854#if defined(CRAY) && ! defined(CRAY2)
6855webecray
6856#else
6857wenotbecray
6858#endif
6859
42ecbf5e 6860_ACEOF
252b5132 6861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 6862 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6863 ac_cv_os_cray=yes
6864else
252b5132
RH
6865 ac_cv_os_cray=no
6866fi
6867rm -f conftest*
6868
6869fi
42ecbf5e
DJ
6870echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6871echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 6872if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
6873 for ac_func in _getb67 GETB67 getb67; do
6874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875echo "$as_me:$LINENO: checking for $ac_func" >&5
6876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6877if eval "test \"\${$as_ac_var+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6888#define $ac_func innocuous_$ac_func
6889
252b5132 6890/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6891 which can conflict with char $ac_func (); below.
6892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 <limits.h> exists even on freestanding compilers. */
6894
6895#ifdef __STDC__
6896# include <limits.h>
6897#else
6898# include <assert.h>
6899#endif
d15b04bd 6900
42ecbf5e 6901#undef $ac_func
d15b04bd 6902
42ecbf5e
DJ
6903/* Override any gcc2 internal prototype to avoid an error. */
6904#ifdef __cplusplus
6905extern "C"
6906{
6907#endif
6908/* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6910char $ac_func ();
252b5132
RH
6911/* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915choke me
6916#else
42ecbf5e
DJ
6917char (*f) () = $ac_func;
6918#endif
6919#ifdef __cplusplus
6920}
252b5132
RH
6921#endif
6922
42ecbf5e
DJ
6923int
6924main ()
6925{
6926return f != $ac_func;
6927 ;
6928 return 0;
6929}
6930_ACEOF
6931rm -f conftest.$ac_objext conftest$ac_exeext
6932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
b7d4af3a
JW
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
42ecbf5e
DJ
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 eval "$as_ac_var=yes"
6954else
6955 echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958eval "$as_ac_var=no"
6959fi
6960rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962fi
6963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965if test `eval echo '${'$as_ac_var'}'` = yes; then
6966
6967cat >>confdefs.h <<_ACEOF
252b5132 6968#define CRAY_STACKSEG_END $ac_func
42ecbf5e 6969_ACEOF
252b5132 6970
42ecbf5e 6971 break
252b5132
RH
6972fi
6973
42ecbf5e 6974 done
252b5132
RH
6975fi
6976
42ecbf5e
DJ
6977echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6978echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6979if test "${ac_cv_c_stack_direction+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6981else
6982 if test "$cross_compiling" = yes; then
6983 ac_cv_c_stack_direction=0
6984else
42ecbf5e
DJ
6985 cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h. */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h. */
6991int
252b5132
RH
6992find_stack_direction ()
6993{
6994 static char *addr = 0;
6995 auto char dummy;
6996 if (addr == 0)
6997 {
6998 addr = &dummy;
6999 return find_stack_direction ();
7000 }
7001 else
7002 return (&dummy > addr) ? 1 : -1;
7003}
42ecbf5e
DJ
7004
7005int
252b5132
RH
7006main ()
7007{
42ecbf5e 7008 exit (find_stack_direction () < 0);
252b5132 7009}
42ecbf5e
DJ
7010_ACEOF
7011rm -f conftest$ac_exeext
7012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
252b5132
RH
7022 ac_cv_c_stack_direction=1
7023else
42ecbf5e
DJ
7024 echo "$as_me: program exited with status $ac_status" >&5
7025echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028( exit $ac_status )
7029ac_cv_c_stack_direction=-1
252b5132 7030fi
42ecbf5e 7031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7032fi
252b5132 7033fi
42ecbf5e
DJ
7034echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7035echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7036
42ecbf5e 7037cat >>confdefs.h <<_ACEOF
252b5132 7038#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
7039_ACEOF
7040
252b5132
RH
7041
7042fi
7043
42ecbf5e
DJ
7044
7045
7046
7047
7048
9710509e 7049for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 7050do
42ecbf5e
DJ
7051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7052echo "$as_me:$LINENO: checking for $ac_func" >&5
7053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7054if eval "test \"\${$as_ac_var+set}\" = set"; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057 cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7065#define $ac_func innocuous_$ac_func
7066
252b5132 7067/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7068 which can conflict with char $ac_func (); below.
7069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070 <limits.h> exists even on freestanding compilers. */
7071
7072#ifdef __STDC__
7073# include <limits.h>
7074#else
7075# include <assert.h>
7076#endif
d15b04bd 7077
42ecbf5e 7078#undef $ac_func
d15b04bd 7079
42ecbf5e
DJ
7080/* Override any gcc2 internal prototype to avoid an error. */
7081#ifdef __cplusplus
7082extern "C"
7083{
7084#endif
7085/* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087char $ac_func ();
252b5132
RH
7088/* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092choke me
7093#else
42ecbf5e
DJ
7094char (*f) () = $ac_func;
7095#endif
7096#ifdef __cplusplus
7097}
252b5132
RH
7098#endif
7099
42ecbf5e
DJ
7100int
7101main ()
7102{
7103return f != $ac_func;
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext conftest$ac_exeext
7109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
b7d4af3a
JW
7117 { ac_try='test -z "$ac_c_werror_flag"
7118 || test ! -s conftest.err'
42ecbf5e
DJ
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 eval "$as_ac_var=yes"
7131else
7132 echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135eval "$as_ac_var=no"
7136fi
7137rm -f conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139fi
7140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7142if test `eval echo '${'$as_ac_var'}'` = yes; then
7143 cat >>confdefs.h <<_ACEOF
7144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7145_ACEOF
252b5132 7146
252b5132
RH
7147fi
7148done
7149
f9c026a8
NC
7150echo "$as_me:$LINENO: checking for mkstemp" >&5
7151echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7152if test "${ac_cv_func_mkstemp+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
7162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7163#define mkstemp innocuous_mkstemp
7164
7165/* System header to define __stub macros and hopefully few prototypes,
7166 which can conflict with char mkstemp (); below.
7167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 <limits.h> exists even on freestanding compilers. */
7169
7170#ifdef __STDC__
7171# include <limits.h>
7172#else
7173# include <assert.h>
7174#endif
7175
7176#undef mkstemp
7177
7178/* Override any gcc2 internal prototype to avoid an error. */
7179#ifdef __cplusplus
7180extern "C"
7181{
7182#endif
7183/* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7185char mkstemp ();
7186/* The GNU C library defines this for functions which it implements
7187 to always fail with ENOSYS. Some functions are actually named
7188 something starting with __ and the normal name is an alias. */
7189#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
7190choke me
7191#else
7192char (*f) () = mkstemp;
7193#endif
7194#ifdef __cplusplus
7195}
7196#endif
7197
7198int
7199main ()
7200{
7201return f != mkstemp;
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext conftest$ac_exeext
7207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -z "$ac_c_werror_flag"
7216 || test ! -s conftest.err'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_cv_func_mkstemp=yes
7229else
7230 echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233ac_cv_func_mkstemp=no
7234fi
7235rm -f conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237fi
7238echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
7239echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
7240if test $ac_cv_func_mkstemp = yes; then
7241
7242cat >>confdefs.h <<\_ACEOF
7243#define HAVE_MKSTEMP 1
7244_ACEOF
7245
7246fi
7247
7248echo "$as_me:$LINENO: checking for mkdtemp" >&5
7249echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
7250if test "${ac_cv_func_mkdtemp+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253 cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
7259/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
7260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7261#define mkdtemp innocuous_mkdtemp
7262
7263/* System header to define __stub macros and hopefully few prototypes,
7264 which can conflict with char mkdtemp (); below.
7265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266 <limits.h> exists even on freestanding compilers. */
7267
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273
7274#undef mkdtemp
7275
7276/* Override any gcc2 internal prototype to avoid an error. */
7277#ifdef __cplusplus
7278extern "C"
7279{
7280#endif
7281/* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283char mkdtemp ();
7284/* The GNU C library defines this for functions which it implements
7285 to always fail with ENOSYS. Some functions are actually named
7286 something starting with __ and the normal name is an alias. */
7287#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
7288choke me
7289#else
7290char (*f) () = mkdtemp;
7291#endif
7292#ifdef __cplusplus
7293}
7294#endif
7295
7296int
7297main ()
7298{
7299return f != mkdtemp;
7300 ;
7301 return 0;
7302}
7303_ACEOF
7304rm -f conftest.$ac_objext conftest$ac_exeext
7305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_cv_func_mkdtemp=yes
7327else
7328 echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331ac_cv_func_mkdtemp=no
7332fi
7333rm -f conftest.err conftest.$ac_objext \
7334 conftest$ac_exeext conftest.$ac_ext
7335fi
7336echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
7337echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
7338if test $ac_cv_func_mkdtemp = yes; then
7339
7340cat >>confdefs.h <<\_ACEOF
7341#define HAVE_MKDTEMP 1
7342_ACEOF
7343
7344fi
7345
252b5132 7346
cedd9a58
JJ
7347# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
7348# needs to be defined for it
42ecbf5e
DJ
7349echo "$as_me:$LINENO: checking for fopen64" >&5
7350echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
7351if test "${bu_cv_have_fopen64+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
cedd9a58 7360#include <stdio.h>
42ecbf5e
DJ
7361int
7362main ()
7363{
cedd9a58 7364FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
7365 ;
7366 return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext conftest$ac_exeext
7370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
b7d4af3a
JW
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
42ecbf5e
DJ
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
cedd9a58
JJ
7391 bu_cv_have_fopen64=yes
7392else
42ecbf5e
DJ
7393 echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396saved_CPPFLAGS=$CPPFLAGS
cedd9a58 7397 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
7398 cat >conftest.$ac_ext <<_ACEOF
7399/* confdefs.h. */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h. */
cedd9a58 7404#include <stdio.h>
42ecbf5e
DJ
7405int
7406main ()
7407{
cedd9a58 7408FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413rm -f conftest.$ac_objext conftest$ac_exeext
7414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
b7d4af3a
JW
7422 { ac_try='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
42ecbf5e
DJ
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
cedd9a58
JJ
7435 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
7436else
42ecbf5e
DJ
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440bu_cv_have_fopen64=no
cedd9a58 7441fi
42ecbf5e
DJ
7442rm -f conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 7444 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 7445fi
42ecbf5e
DJ
7446rm -f conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
cedd9a58 7448fi
cedd9a58 7449
42ecbf5e
DJ
7450echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
7451echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 7452if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
7453
7454cat >>confdefs.h <<\_ACEOF
cedd9a58 7455#define HAVE_FOPEN64 1
42ecbf5e 7456_ACEOF
cedd9a58 7457
fb5b5478 7458fi
42ecbf5e
DJ
7459echo "$as_me:$LINENO: checking for stat64" >&5
7460echo $ECHO_N "checking for stat64... $ECHO_C" >&6
7461if test "${bu_cv_have_stat64+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 7463else
42ecbf5e
DJ
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
fb5b5478 7470#include <sys/stat.h>
42ecbf5e
DJ
7471int
7472main ()
7473{
fb5b5478 7474struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
7475 ;
7476 return 0;
7477}
7478_ACEOF
7479rm -f conftest.$ac_objext conftest$ac_exeext
7480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
b7d4af3a
JW
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
42ecbf5e
DJ
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
fb5b5478
JJ
7501 bu_cv_have_stat64=yes
7502else
42ecbf5e
DJ
7503 echo "$as_me: failed program was:" >&5
7504sed 's/^/| /' conftest.$ac_ext >&5
7505
7506saved_CPPFLAGS=$CPPFLAGS
fb5b5478 7507 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
7508 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
fb5b5478 7514#include <sys/stat.h>
42ecbf5e
DJ
7515int
7516main ()
7517{
fb5b5478 7518struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523rm -f conftest.$ac_objext conftest$ac_exeext
7524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
b7d4af3a
JW
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
42ecbf5e
DJ
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest$ac_exeext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
fb5b5478
JJ
7545 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
7546else
42ecbf5e
DJ
7547 echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
7550bu_cv_have_stat64=no
fb5b5478 7551fi
42ecbf5e
DJ
7552rm -f conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
7554 CPPFLAGS=$saved_CPPFLAGS
7555fi
42ecbf5e
DJ
7556rm -f conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
7558fi
7559
42ecbf5e
DJ
7560echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
7561echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 7562if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
7563
7564cat >>confdefs.h <<\_ACEOF
fb5b5478 7565#define HAVE_STAT64 1
42ecbf5e 7566_ACEOF
fb5b5478
JJ
7567
7568fi
7569if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
7570 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
7571
7572cat >>confdefs.h <<\_ACEOF
cedd9a58 7573#define _LARGEFILE64_SOURCE 1
42ecbf5e 7574_ACEOF
cedd9a58 7575
fb5b5478 7576 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
7577fi
7578
f353eb8a 7579# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
7580echo "$as_me:$LINENO: checking for library containing frexp" >&5
7581echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
7582if test "${ac_cv_search_frexp+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 ac_func_search_save_LIBS=$LIBS
7586ac_cv_search_frexp=no
7587cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
f353eb8a 7593
f353eb8a 7594/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7595#ifdef __cplusplus
7596extern "C"
7597#endif
f353eb8a 7598/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7599 builtin and then its argument prototype would still apply. */
7600char frexp ();
7601int
7602main ()
7603{
7604frexp ();
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609rm -f conftest.$ac_objext conftest$ac_exeext
7610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
b7d4af3a
JW
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
42ecbf5e
DJ
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
f353eb8a
ILT
7631 ac_cv_search_frexp="none required"
7632else
42ecbf5e
DJ
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
f353eb8a 7636fi
42ecbf5e
DJ
7637rm -f conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639if test "$ac_cv_search_frexp" = no; then
7640 for ac_lib in m; do
7641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643/* confdefs.h. */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
7647/* end confdefs.h. */
7648
f353eb8a 7649/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7650#ifdef __cplusplus
7651extern "C"
7652#endif
f353eb8a 7653/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7654 builtin and then its argument prototype would still apply. */
7655char frexp ();
7656int
7657main ()
7658{
7659frexp ();
7660 ;
7661 return 0;
7662}
7663_ACEOF
7664rm -f conftest.$ac_objext conftest$ac_exeext
7665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
b7d4af3a
JW
7673 { ac_try='test -z "$ac_c_werror_flag"
7674 || test ! -s conftest.err'
42ecbf5e
DJ
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; } &&
7680 { ac_try='test -s conftest$ac_exeext'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
7687break
7688else
42ecbf5e
DJ
7689 echo "$as_me: failed program was:" >&5
7690sed 's/^/| /' conftest.$ac_ext >&5
7691
f353eb8a 7692fi
42ecbf5e
DJ
7693rm -f conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7695 done
e5a52504 7696fi
42ecbf5e
DJ
7697LIBS=$ac_func_search_save_LIBS
7698fi
7699echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
7700echo "${ECHO_T}$ac_cv_search_frexp" >&6
7701if test "$ac_cv_search_frexp" != no; then
d15b04bd 7702 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 7703
f353eb8a
ILT
7704fi
7705
42ecbf5e
DJ
7706
7707echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7708echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
7709if test "${bu_cv_decl_time_t_time_h+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7711else
42ecbf5e
DJ
7712 cat >conftest.$ac_ext <<_ACEOF
7713/* confdefs.h. */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h. */
252b5132 7718#include <time.h>
42ecbf5e
DJ
7719int
7720main ()
7721{
252b5132 7722time_t i;
42ecbf5e
DJ
7723 ;
7724 return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext
7728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
b7d4af3a
JW
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
42ecbf5e
DJ
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
252b5132
RH
7749 bu_cv_decl_time_t_time_h=yes
7750else
42ecbf5e
DJ
7751 echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754bu_cv_decl_time_t_time_h=no
252b5132 7755fi
42ecbf5e 7756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7757fi
7758
42ecbf5e
DJ
7759echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
7760echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 7761if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
7762
7763cat >>confdefs.h <<\_ACEOF
252b5132 7764#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 7765_ACEOF
252b5132
RH
7766
7767fi
7768
42ecbf5e
DJ
7769echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
7770echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
7771if test "${bu_cv_decl_time_t_types_h+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7773else
42ecbf5e
DJ
7774 cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h. */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h. */
252b5132 7780#include <sys/types.h>
42ecbf5e
DJ
7781int
7782main ()
7783{
252b5132 7784time_t i;
42ecbf5e
DJ
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext
7790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
b7d4af3a
JW
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
42ecbf5e
DJ
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
252b5132
RH
7811 bu_cv_decl_time_t_types_h=yes
7812else
42ecbf5e
DJ
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816bu_cv_decl_time_t_types_h=no
252b5132 7817fi
42ecbf5e 7818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7819fi
7820
42ecbf5e
DJ
7821echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
7822echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 7823if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
7824
7825cat >>confdefs.h <<\_ACEOF
252b5132 7826#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 7827_ACEOF
252b5132
RH
7828
7829fi
7830
42ecbf5e
DJ
7831echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
7832echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
7833if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 7835else
42ecbf5e
DJ
7836 cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h. */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h. */
e46eba98 7842#include <unistd.h>
42ecbf5e
DJ
7843int
7844main ()
7845{
e46eba98 7846extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext
7852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853 (eval $ac_compile) 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
b7d4af3a
JW
7860 { ac_try='test -z "$ac_c_werror_flag"
7861 || test ! -s conftest.err'
42ecbf5e
DJ
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest.$ac_objext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
e46eba98
NC
7873 bu_cv_decl_getopt_unistd_h=yes
7874else
42ecbf5e
DJ
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878bu_cv_decl_getopt_unistd_h=no
e46eba98 7879fi
42ecbf5e 7880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
7881fi
7882
42ecbf5e
DJ
7883echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
7884echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 7885if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
7886
7887cat >>confdefs.h <<\_ACEOF
e46eba98 7888#define HAVE_DECL_GETOPT 1
42ecbf5e 7889_ACEOF
e46eba98
NC
7890
7891fi
7892
252b5132
RH
7893# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
7894# by default.
42ecbf5e
DJ
7895echo "$as_me:$LINENO: checking for utime.h" >&5
7896echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
7897if test "${bu_cv_header_utime_h+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
252b5132
RH
7906#include <sys/types.h>
7907#ifdef HAVE_TIME_H
7908#include <time.h>
7909#endif
7910#include <utime.h>
42ecbf5e
DJ
7911int
7912main ()
7913{
252b5132 7914struct utimbuf s;
42ecbf5e
DJ
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest.$ac_objext
7920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7921 (eval $ac_compile) 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
b7d4af3a
JW
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
42ecbf5e
DJ
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest.$ac_objext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
252b5132
RH
7941 bu_cv_header_utime_h=yes
7942else
42ecbf5e
DJ
7943 echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946bu_cv_header_utime_h=no
252b5132 7947fi
42ecbf5e 7948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7949fi
7950
42ecbf5e
DJ
7951echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
7952echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 7953if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
7954
7955cat >>confdefs.h <<\_ACEOF
252b5132 7956#define HAVE_GOOD_UTIME_H 1
42ecbf5e 7957_ACEOF
252b5132
RH
7958
7959fi
7960
398ee8f1
SE
7961echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
7962echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
7963if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 7964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7965else
42ecbf5e
DJ
7966 cat >conftest.$ac_ext <<_ACEOF
7967/* confdefs.h. */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h. */
398ee8f1 7972$ac_includes_default
42ecbf5e
DJ
7973int
7974main ()
7975{
398ee8f1
SE
7976#ifndef fprintf
7977 char *p = (char *) fprintf;
7978#endif
7979
42ecbf5e
DJ
7980 ;
7981 return 0;
7982}
7983_ACEOF
7984rm -f conftest.$ac_objext
7985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7986 (eval $ac_compile) 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
b7d4af3a
JW
7993 { ac_try='test -z "$ac_c_werror_flag"
7994 || test ! -s conftest.err'
42ecbf5e
DJ
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 (eval $ac_try) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest.$ac_objext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
398ee8f1 8006 ac_cv_have_decl_fprintf=yes
252b5132 8007else
42ecbf5e
DJ
8008 echo "$as_me: failed program was:" >&5
8009sed 's/^/| /' conftest.$ac_ext >&5
8010
398ee8f1 8011ac_cv_have_decl_fprintf=no
252b5132 8012fi
42ecbf5e 8013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8014fi
398ee8f1
SE
8015echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
8016echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
8017if test $ac_cv_have_decl_fprintf = yes; then
252b5132 8018
398ee8f1
SE
8019cat >>confdefs.h <<_ACEOF
8020#define HAVE_DECL_FPRINTF 1
8021_ACEOF
42ecbf5e 8022
398ee8f1
SE
8023
8024else
8025 cat >>confdefs.h <<_ACEOF
8026#define HAVE_DECL_FPRINTF 0
42ecbf5e 8027_ACEOF
252b5132 8028
252b5132 8029
3e321448
L
8030fi
8031echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8032echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8033if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8042$ac_includes_default
8043int
8044main ()
8045{
8046#ifndef stpcpy
8047 char *p = (char *) stpcpy;
8048#endif
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext
8055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_have_decl_stpcpy=yes
8077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081ac_cv_have_decl_stpcpy=no
8082fi
8083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084fi
8085echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8086echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8087if test $ac_cv_have_decl_stpcpy = yes; then
8088
8089cat >>confdefs.h <<_ACEOF
8090#define HAVE_DECL_STPCPY 1
8091_ACEOF
8092
8093
8094else
8095 cat >>confdefs.h <<_ACEOF
8096#define HAVE_DECL_STPCPY 0
8097_ACEOF
8098
8099
398ee8f1
SE
8100fi
8101echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8102echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8103if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 8104 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8105else
42ecbf5e
DJ
8106 cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
398ee8f1 8112$ac_includes_default
42ecbf5e
DJ
8113int
8114main ()
8115{
398ee8f1
SE
8116#ifndef strstr
8117 char *p = (char *) strstr;
8118#endif
8119
42ecbf5e
DJ
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext
8125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
b7d4af3a
JW
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
42ecbf5e
DJ
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
398ee8f1 8146 ac_cv_have_decl_strstr=yes
252b5132 8147else
42ecbf5e
DJ
8148 echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
398ee8f1 8151ac_cv_have_decl_strstr=no
252b5132 8152fi
42ecbf5e 8153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8154fi
398ee8f1
SE
8155echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8156echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8157if test $ac_cv_have_decl_strstr = yes; then
252b5132 8158
398ee8f1
SE
8159cat >>confdefs.h <<_ACEOF
8160#define HAVE_DECL_STRSTR 1
8161_ACEOF
42ecbf5e 8162
398ee8f1
SE
8163
8164else
8165 cat >>confdefs.h <<_ACEOF
8166#define HAVE_DECL_STRSTR 0
42ecbf5e 8167_ACEOF
252b5132 8168
252b5132 8169
398ee8f1
SE
8170fi
8171echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8172echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8173if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 8174 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8175else
42ecbf5e
DJ
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
398ee8f1 8182$ac_includes_default
42ecbf5e
DJ
8183int
8184main ()
8185{
398ee8f1
SE
8186#ifndef sbrk
8187 char *p = (char *) sbrk;
8188#endif
8189
42ecbf5e
DJ
8190 ;
8191 return 0;
8192}
8193_ACEOF
8194rm -f conftest.$ac_objext
8195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
b7d4af3a
JW
8203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
42ecbf5e
DJ
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
398ee8f1 8216 ac_cv_have_decl_sbrk=yes
252b5132 8217else
42ecbf5e
DJ
8218 echo "$as_me: failed program was:" >&5
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
398ee8f1 8221ac_cv_have_decl_sbrk=no
252b5132 8222fi
42ecbf5e 8223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8224fi
398ee8f1
SE
8225echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8226echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8227if test $ac_cv_have_decl_sbrk = yes; then
252b5132 8228
398ee8f1
SE
8229cat >>confdefs.h <<_ACEOF
8230#define HAVE_DECL_SBRK 1
8231_ACEOF
42ecbf5e 8232
398ee8f1
SE
8233
8234else
8235 cat >>confdefs.h <<_ACEOF
8236#define HAVE_DECL_SBRK 0
42ecbf5e 8237_ACEOF
252b5132 8238
252b5132 8239
398ee8f1
SE
8240fi
8241echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8242echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8243if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 8244 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8245else
42ecbf5e
DJ
8246 cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h. */
8248_ACEOF
8249cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF
8251/* end confdefs.h. */
398ee8f1 8252$ac_includes_default
42ecbf5e
DJ
8253int
8254main ()
8255{
398ee8f1
SE
8256#ifndef getenv
8257 char *p = (char *) getenv;
8258#endif
8259
42ecbf5e
DJ
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext
8265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266 (eval $ac_compile) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
b7d4af3a
JW
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
42ecbf5e
DJ
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest.$ac_objext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
398ee8f1 8286 ac_cv_have_decl_getenv=yes
252b5132 8287else
42ecbf5e
DJ
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
398ee8f1 8291ac_cv_have_decl_getenv=no
252b5132 8292fi
42ecbf5e 8293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8294fi
398ee8f1
SE
8295echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8296echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8297if test $ac_cv_have_decl_getenv = yes; then
252b5132 8298
398ee8f1
SE
8299cat >>confdefs.h <<_ACEOF
8300#define HAVE_DECL_GETENV 1
8301_ACEOF
42ecbf5e 8302
398ee8f1
SE
8303
8304else
8305 cat >>confdefs.h <<_ACEOF
8306#define HAVE_DECL_GETENV 0
42ecbf5e 8307_ACEOF
252b5132 8308
252b5132 8309
398ee8f1
SE
8310fi
8311echo "$as_me:$LINENO: checking whether environ is declared" >&5
8312echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
8313if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 8314 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8315else
42ecbf5e
DJ
8316 cat >conftest.$ac_ext <<_ACEOF
8317/* confdefs.h. */
8318_ACEOF
8319cat confdefs.h >>conftest.$ac_ext
8320cat >>conftest.$ac_ext <<_ACEOF
8321/* end confdefs.h. */
398ee8f1 8322$ac_includes_default
42ecbf5e
DJ
8323int
8324main ()
8325{
398ee8f1
SE
8326#ifndef environ
8327 char *p = (char *) environ;
8328#endif
8329
42ecbf5e
DJ
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
b7d4af3a
JW
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
42ecbf5e
DJ
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
398ee8f1 8356 ac_cv_have_decl_environ=yes
252b5132 8357else
42ecbf5e
DJ
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
398ee8f1 8361ac_cv_have_decl_environ=no
252b5132 8362fi
42ecbf5e 8363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8364fi
398ee8f1
SE
8365echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
8366echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
8367if test $ac_cv_have_decl_environ = yes; then
252b5132 8368
398ee8f1
SE
8369cat >>confdefs.h <<_ACEOF
8370#define HAVE_DECL_ENVIRON 1
8371_ACEOF
42ecbf5e 8372
398ee8f1
SE
8373
8374else
8375 cat >>confdefs.h <<_ACEOF
8376#define HAVE_DECL_ENVIRON 0
42ecbf5e 8377_ACEOF
252b5132 8378
252b5132 8379
398ee8f1 8380fi
b7d4af3a
JW
8381echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8382echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8383if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h. */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h. */
8392$ac_includes_default
8393int
8394main ()
8395{
8396#ifndef getc_unlocked
8397 char *p = (char *) getc_unlocked;
8398#endif
8399
8400 ;
8401 return 0;
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext
8405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_have_decl_getc_unlocked=yes
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431ac_cv_have_decl_getc_unlocked=no
8432fi
8433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8436echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8437if test $ac_cv_have_decl_getc_unlocked = yes; then
8438
8439cat >>confdefs.h <<_ACEOF
8440#define HAVE_DECL_GETC_UNLOCKED 1
8441_ACEOF
8442
8443
8444else
8445 cat >>confdefs.h <<_ACEOF
8446#define HAVE_DECL_GETC_UNLOCKED 0
8447_ACEOF
8448
8449
db50c840
EB
8450fi
8451echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8452echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8453if test "${ac_cv_have_decl_snprintf+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
8462$ac_includes_default
8463int
8464main ()
8465{
8466#ifndef snprintf
8467 char *p = (char *) snprintf;
8468#endif
8469
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext
8475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_have_decl_snprintf=yes
8497else
8498 echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501ac_cv_have_decl_snprintf=no
8502fi
8503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8504fi
8505echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8506echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8507if test $ac_cv_have_decl_snprintf = yes; then
8508
8509cat >>confdefs.h <<_ACEOF
8510#define HAVE_DECL_SNPRINTF 1
8511_ACEOF
8512
8513
8514else
8515 cat >>confdefs.h <<_ACEOF
8516#define HAVE_DECL_SNPRINTF 0
8517_ACEOF
8518
8519
8520fi
8521echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8522echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8523if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526 cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532$ac_includes_default
8533int
8534main ()
8535{
8536#ifndef vsnprintf
8537 char *p = (char *) vsnprintf;
8538#endif
8539
8540 ;
8541 return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext
8545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_have_decl_vsnprintf=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571ac_cv_have_decl_vsnprintf=no
8572fi
8573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8574fi
8575echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8576echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8577if test $ac_cv_have_decl_vsnprintf = yes; then
8578
8579cat >>confdefs.h <<_ACEOF
8580#define HAVE_DECL_VSNPRINTF 1
8581_ACEOF
8582
8583
8584else
8585 cat >>confdefs.h <<_ACEOF
8586#define HAVE_DECL_VSNPRINTF 0
8587_ACEOF
8588
8589
b7d4af3a
JW
8590fi
8591
8592
252b5132
RH
8593
8594
8595case "${host}" in
8a965946 8596*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
8597
8598cat >>confdefs.h <<\_ACEOF
252b5132 8599#define USE_BINARY_FOPEN 1
42ecbf5e 8600_ACEOF
252b5132
RH
8601 ;;
8602esac
8603
8604# target-specific stuff:
8605
8606# Canonicalize the secondary target names.
8607if test -n "$enable_targets"; then
8608 for targ in `echo $enable_targets | sed 's/,/ /g'`
8609 do
6d83c84b 8610 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
8611 if test -n "$result"; then
8612 canon_targets="$canon_targets $result"
8613 else
8614 # Allow targets that config.sub doesn't recognize, like "all".
8615 canon_targets="$canon_targets $targ"
8616 fi
8617 done
8618fi
8619
8620all_targets=false
8621BUILD_NLMCONV=
8622NLMCONV_DEFS=
8623BUILD_SRCONV=
8624BUILD_DLLTOOL=
8625DLLTOOL_DEFS=
7aad4c3d 8626DLLTOOL_DEFAULT=
252b5132
RH
8627BUILD_WINDRES=
8628BUILD_DLLWRAP=
8629BUILD_MISC=
1d97d67f 8630BUILD_INSTALL_MISC=
8b1e6df3 8631OBJDUMP_DEFS=
252b5132
RH
8632
8633for targ in $target $canon_targets
8634do
8635 if test "x$targ" = "xall"; then
8636 all_targets=true
8637 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8638 BUILD_SRCONV='$(SRCONV_PROG)'
8639 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 8640 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
252b5132
RH
8641 else
8642 case $targ in
42ecbf5e 8643 i[3-7]86*-*-netware*)
252b5132
RH
8644 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8645 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
8646 ;;
8647 alpha*-*-netware*)
8648 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8649 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
8650 ;;
8651 powerpc*-*-netware*)
8652 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8653 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
8654 ;;
8655 sparc*-*-netware*)
8656 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8657 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
8658 ;;
8659 esac
8660 case $targ in
8661 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
8662 esac
8663 case $targ in
a8c548cb
NC
8664 arm-epoc-pe*)
8665 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8666 if test -z "$DLLTOOL_DEFAULT"; then
8667 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
8668 fi
a8c548cb
NC
8669 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
8670 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8671 ;;
7148cc28
NC
8672 arm-wince-pe* | arm-*-wince)
8673 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8674 if test -z "$DLLTOOL_DEFAULT"; then
8675 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
8676 fi
7148cc28
NC
8677 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
8678 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8679 ;;
8680 arm-*-pe*)
252b5132 8681 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8682 if test -z "$DLLTOOL_DEFAULT"; then
8683 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8684 fi
252b5132
RH
8685 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8686 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8687 ;;
27a710e5 8688 thumb-*-pe*)
252b5132 8689 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8690 if test -z "$DLLTOOL_DEFAULT"; then
8691 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8692 fi
252b5132
RH
8693 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8694 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8695 ;;
42037fe5 8696 x86_64-*-mingw*)
99ad8390 8697 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8698 if test -z "$DLLTOOL_DEFAULT"; then
8699 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
8700 fi
99ad8390
NC
8701 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
8702 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8703 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8704 ;;
80c7c40a 8705 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 8706 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8707 if test -z "$DLLTOOL_DEFAULT"; then
8708 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8709 fi
252b5132
RH
8710 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8711 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8712 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 8713 ;;
80c7c40a 8714 i[3-7]86-*-interix)
7a7b06ef 8715 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
8716 if test -z "$DLLTOOL_DEFAULT"; then
8717 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8718 fi
7a7b06ef
ILT
8719 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8720 ;;
f0660b73
NC
8721 powerpc*-aix5.[01])
8722 ;;
8723 powerpc*-aix5.*)
8724 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
8725 ;;
e1d5b1e7 8726 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 8727 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8728 if test -z "$DLLTOOL_DEFAULT"; then
8729 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
8730 fi
252b5132
RH
8731 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
8732 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 8733 ;;
669a9a2a 8734 powerpc*-*-linux* | powerpc*-*-elf*)
1d97d67f 8735 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 8736 ;;
e1d5b1e7 8737 sh*-*-pe)
8a0e0f38 8738 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8739 if test -z "$DLLTOOL_DEFAULT"; then
8740 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
8741 fi
8a0e0f38
NC
8742 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
8743 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8744 ;;
cd14b966 8745 spu-*-*)
1d97d67f 8746 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 8747 ;;
e1d5b1e7 8748 mips*-*-pe)
8a0e0f38 8749 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8750 if test -z "$DLLTOOL_DEFAULT"; then
8751 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
8752 fi
8a0e0f38
NC
8753 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
8754 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8755 ;;
27a710e5 8756 mcore-*-pe)
661016bb 8757 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8758 if test -z "$DLLTOOL_DEFAULT"; then
8759 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
8760 fi
661016bb
NC
8761 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
8762 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 8763 ;;
27a710e5 8764 mcore-*-elf)
661016bb 8765 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
8766 if test -z "$DLLTOOL_DEFAULT"; then
8767 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
8768 fi
661016bb 8769 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 8770 ;;
15ab5209
DB
8771 mep-*)
8772 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
8773 ;;
252b5132
RH
8774 esac
8775 fi
8776done
8777
7aad4c3d
L
8778DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
8779
42ecbf5e
DJ
8780if test "${with_windres+set}" = set; then
8781 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8782fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
1d97d67f 8795
42ecbf5e
DJ
8796cat >>confdefs.h <<_ACEOF
8797#define TARGET "${target}"
8798_ACEOF
8799
8800
8801targ=$target
8802. $srcdir/../bfd/config.bfd
8803if test "x$targ_underscore" = "xyes"; then
8804 UNDERSCORE=1
8805else
8806 UNDERSCORE=0
8807fi
8808
8809cat >>confdefs.h <<_ACEOF
8810#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
8811_ACEOF
8812
8813
8814# Emulation
8815for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8816do
8817 # Canonicalize the secondary target names.
8818 result=`$ac_config_sub $targ_alias 2>/dev/null`
8819 if test -n "$result"; then
8820 targ=$result
8821 else
8822 targ=$targ_alias
8823 fi
8824
8825 . ${srcdir}/configure.tgt
8826
8827 EMULATION=$targ_emul
8828 EMULATION_VECTOR=$targ_emul_vector
8829done
8830
8831
8832
8833
108a6f8e
CD
8834# Required for html and install-html
8835
8836
8837
8838
42ecbf5e 8839 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
8840cat >confcache <<\_ACEOF
8841# This file is a shell script that caches the results of configure
8842# tests run on this system so they can be shared between configure
8843# scripts and configure runs, see configure's option --config-cache.
8844# It is not useful on other systems. If it contains results you don't
8845# want to keep, you may remove or edit it.
8846#
8847# config.status only pays attention to the cache file if you give it
8848# the --recheck option to rerun configure.
8849#
8850# `ac_cv_env_foo' variables (set or unset) will be overridden when
8851# loading this file, other *unset* `ac_cv_foo' will be assigned the
8852# following values.
8853
8854_ACEOF
8855
8856# The following way of writing the cache mishandles newlines in values,
8857# but we know of no workaround that is simple, portable, and efficient.
8858# So, don't put newlines in cache variables' values.
8859# Ultrix sh set writes to stderr and can't be redirected directly,
8860# and sets the high bit in the cache file unless we assign to the vars.
8861{
8862 (set) 2>&1 |
8863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8864 *ac_space=\ *)
8865 # `set' does not quote correctly, so add quotes (double-quote
8866 # substitution turns \\\\ into \\, and sed turns \\ into \).
8867 sed -n \
8868 "s/'/'\\\\''/g;
8869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8870 ;;
8871 *)
8872 # `set' quotes correctly as required by POSIX, so do not add quotes.
8873 sed -n \
8874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8875 ;;
8876 esac;
8877} |
8878 sed '
8879 t clear
8880 : clear
8881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8882 t end
8883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8884 : end' >>confcache
8885if diff $cache_file confcache >/dev/null 2>&1; then :; else
8886 if test -w $cache_file; then
8887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8888 cat confcache >$cache_file
8889 else
8890 echo "not updating unwritable cache $cache_file"
8891 fi
8892fi
8893rm -f confcache
8894
8895test "x$prefix" = xNONE && prefix=$ac_default_prefix
8896# Let make expand exec_prefix.
8897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8898
8899# VPATH may cause trouble with some makes, so we remove $(srcdir),
8900# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8901# trailing colons and then remove the whole line if VPATH becomes empty
8902# (actually we leave an empty line to preserve line numbers).
8903if test "x$srcdir" = x.; then
8904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8905s/:*\$(srcdir):*/:/;
8906s/:*\${srcdir}:*/:/;
8907s/:*@srcdir@:*/:/;
8908s/^\([^=]*=[ ]*\):*/\1/;
8909s/:*$//;
8910s/^[^=]*=[ ]*$//;
8911}'
8912fi
8913
8914DEFS=-DHAVE_CONFIG_H
8915
8916ac_libobjs=
8917ac_ltlibobjs=
8918for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8919 # 1. Remove the extension, and $U if already installed.
8920 ac_i=`echo "$ac_i" |
8921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8922 # 2. Add them.
8923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8925done
8926LIBOBJS=$ac_libobjs
8927
8928LTLIBOBJS=$ac_ltlibobjs
8929
8930
8931if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8932 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8933Usually this means the macro was only invoked conditionally." >&5
8934echo "$as_me: error: conditional \"AMDEP\" was never defined.
8935Usually this means the macro was only invoked conditionally." >&2;}
8936 { (exit 1); exit 1; }; }
8937fi
8938if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8939 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8940Usually this means the macro was only invoked conditionally." >&5
8941echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8942Usually this means the macro was only invoked conditionally." >&2;}
8943 { (exit 1); exit 1; }; }
8944fi
8945if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8946 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8947Usually this means the macro was only invoked conditionally." >&5
8948echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8949Usually this means the macro was only invoked conditionally." >&2;}
8950 { (exit 1); exit 1; }; }
8951fi
d5fbea21
DJ
8952if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
8953 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
8954Usually this means the macro was only invoked conditionally." >&5
8955echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
8956Usually this means the macro was only invoked conditionally." >&2;}
8957 { (exit 1); exit 1; }; }
8958fi
42ecbf5e
DJ
8959
8960: ${CONFIG_STATUS=./config.status}
8961ac_clean_files_save=$ac_clean_files
8962ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8963{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8964echo "$as_me: creating $CONFIG_STATUS" >&6;}
8965cat >$CONFIG_STATUS <<_ACEOF
8966#! $SHELL
8967# Generated by $as_me.
8968# Run this file to recreate the current configuration.
8969# Compiler output produced by configure, useful for debugging
8970# configure, is in config.log if it exists.
8971
8972debug=false
8973ac_cs_recheck=false
8974ac_cs_silent=false
8975SHELL=\${CONFIG_SHELL-$SHELL}
8976_ACEOF
252b5132 8977
42ecbf5e
DJ
8978cat >>$CONFIG_STATUS <<\_ACEOF
8979## --------------------- ##
8980## M4sh Initialization. ##
8981## --------------------- ##
252b5132 8982
42ecbf5e
DJ
8983# Be Bourne compatible
8984if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8985 emulate sh
8986 NULLCMD=:
8987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8988 # is contrary to our usage. Disable this feature.
8989 alias -g '${1+"$@"}'='"$@"'
8990elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8991 set -o posix
8992fi
8993DUALCASE=1; export DUALCASE # for MKS sh
252b5132 8994
42ecbf5e
DJ
8995# Support unset when possible.
8996if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8997 as_unset=unset
8998else
8999 as_unset=false
9000fi
252b5132
RH
9001
9002
42ecbf5e
DJ
9003# Work around bugs in pre-3.0 UWIN ksh.
9004$as_unset ENV MAIL MAILPATH
9005PS1='$ '
9006PS2='> '
9007PS4='+ '
252b5132 9008
42ecbf5e
DJ
9009# NLS nuisances.
9010for as_var in \
9011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9013 LC_TELEPHONE LC_TIME
9014do
9015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9016 eval $as_var=C; export $as_var
9017 else
9018 $as_unset $as_var
9019 fi
9020done
252b5132 9021
42ecbf5e
DJ
9022# Required to use basename.
9023if expr a : '\(a\)' >/dev/null 2>&1; then
9024 as_expr=expr
9025else
9026 as_expr=false
9027fi
252b5132 9028
42ecbf5e
DJ
9029if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9030 as_basename=basename
9031else
9032 as_basename=false
9033fi
252b5132 9034
8b1e6df3 9035
42ecbf5e
DJ
9036# Name of the executable.
9037as_me=`$as_basename "$0" ||
9038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9039 X"$0" : 'X\(//\)$' \| \
9040 X"$0" : 'X\(/\)$' \| \
9041 . : '\(.\)' 2>/dev/null ||
9042echo X/"$0" |
9043 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9044 /^X\/\(\/\/\)$/{ s//\1/; q; }
9045 /^X\/\(\/\).*/{ s//\1/; q; }
9046 s/.*/./; q'`
0218d1e4 9047
252b5132 9048
42ecbf5e
DJ
9049# PATH needs CR, and LINENO needs CR and PATH.
9050# Avoid depending upon Character Ranges.
9051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9054as_cr_digits='0123456789'
9055as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 9056
42ecbf5e
DJ
9057# The user is always right.
9058if test "${PATH_SEPARATOR+set}" != set; then
9059 echo "#! /bin/sh" >conf$$.sh
9060 echo "exit 0" >>conf$$.sh
9061 chmod +x conf$$.sh
9062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9063 PATH_SEPARATOR=';'
9064 else
9065 PATH_SEPARATOR=:
9066 fi
9067 rm -f conf$$.sh
252b5132
RH
9068fi
9069
9070
42ecbf5e
DJ
9071 as_lineno_1=$LINENO
9072 as_lineno_2=$LINENO
9073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9074 test "x$as_lineno_1" != "x$as_lineno_2" &&
9075 test "x$as_lineno_3" = "x$as_lineno_2" || {
9076 # Find who we are. Look in the path if we contain no path at all
9077 # relative or not.
9078 case $0 in
9079 *[\\/]* ) as_myself=$0 ;;
9080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
eb1e0e80 9082do
42ecbf5e
DJ
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9086done
eb1e0e80 9087
42ecbf5e
DJ
9088 ;;
9089 esac
9090 # We did not find ourselves, most probably we were run as `sh COMMAND'
9091 # in which case we are not to be found in the path.
9092 if test "x$as_myself" = x; then
9093 as_myself=$0
9094 fi
9095 if test ! -f "$as_myself"; then
9096 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9097echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9098 { (exit 1); exit 1; }; }
9099 fi
9100 case $CONFIG_SHELL in
9101 '')
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9104do
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for as_base in sh bash ksh sh5; do
9108 case $as_dir in
9109 /*)
9110 if ("$as_dir/$as_base" -c '
9111 as_lineno_1=$LINENO
9112 as_lineno_2=$LINENO
9113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9114 test "x$as_lineno_1" != "x$as_lineno_2" &&
9115 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9116 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9117 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9118 CONFIG_SHELL=$as_dir/$as_base
9119 export CONFIG_SHELL
9120 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9121 fi;;
9122 esac
9123 done
eb1e0e80 9124done
42ecbf5e
DJ
9125;;
9126 esac
eb1e0e80 9127
42ecbf5e
DJ
9128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9129 # uniformly replaced by the line number. The first 'sed' inserts a
9130 # line-number line before each line; the second 'sed' does the real
9131 # work. The second script uses 'N' to pair each line-number line
9132 # with the numbered line, and appends trailing '-' during
9133 # substitution so that $LINENO is not a special case at line end.
9134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9135 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9136 sed '=' <$as_myself |
9137 sed '
9138 N
9139 s,$,-,
9140 : loop
9141 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9142 t loop
9143 s,-$,,
9144 s,^['$as_cr_digits']*\n,,
9145 ' >$as_me.lineno &&
9146 chmod +x $as_me.lineno ||
9147 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9148echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9149 { (exit 1); exit 1; }; }
9150
9151 # Don't try to exec as it changes $[0], causing all sort of problems
9152 # (the dirname of $[0] is not the place where we might find the
9153 # original and so on. Autoconf is especially sensible to this).
9154 . ./$as_me.lineno
9155 # Exit status is that of the last command.
9156 exit
9157}
eb1e0e80
NC
9158
9159
42ecbf5e
DJ
9160case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9161 *c*,-n*) ECHO_N= ECHO_C='
9162' ECHO_T=' ' ;;
9163 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9164 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9165esac
eb1e0e80 9166
42ecbf5e
DJ
9167if expr a : '\(a\)' >/dev/null 2>&1; then
9168 as_expr=expr
d15b04bd 9169else
42ecbf5e
DJ
9170 as_expr=false
9171fi
9172
9173rm -f conf$$ conf$$.exe conf$$.file
9174echo >conf$$.file
9175if ln -s conf$$.file conf$$ 2>/dev/null; then
9176 # We could just check for DJGPP; but this test a) works b) is more generic
9177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9178 if test -f conf$$.exe; then
9179 # Don't use ln at all; we don't have any links
9180 as_ln_s='cp -p'
252b5132 9181 else
42ecbf5e 9182 as_ln_s='ln -s'
252b5132 9183 fi
42ecbf5e
DJ
9184elif ln conf$$.file conf$$ 2>/dev/null; then
9185 as_ln_s=ln
9186else
9187 as_ln_s='cp -p'
252b5132 9188fi
42ecbf5e 9189rm -f conf$$ conf$$.exe conf$$.file
252b5132 9190
42ecbf5e
DJ
9191if mkdir -p . 2>/dev/null; then
9192 as_mkdir_p=:
9193else
9194 test -d ./-p && rmdir ./-p
9195 as_mkdir_p=false
9196fi
d15b04bd 9197
42ecbf5e 9198as_executable_p="test -f"
252b5132 9199
42ecbf5e
DJ
9200# Sed expression to map a string onto a valid CPP name.
9201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9202
9203# Sed expression to map a string onto a valid variable name.
9204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9205
9206
9207# IFS
9208# We need space, tab and new line, in precisely that order.
9209as_nl='
9210'
9211IFS=" $as_nl"
9212
9213# CDPATH.
9214$as_unset CDPATH
9215
9216exec 6>&1
9217
9218# Open the log real soon, to keep \$[0] and so on meaningful, and to
9219# report actual input values of CONFIG_FILES etc. instead of their
9220# values after options handling. Logging --version etc. is OK.
9221exec 5>>config.log
9222{
9223 echo
9224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9225## Running $as_me. ##
9226_ASBOX
9227} >&5
9228cat >&5 <<_CSEOF
9229
9230This file was extended by $as_me, which was
9231generated by GNU Autoconf 2.59. Invocation command line was
9232
9233 CONFIG_FILES = $CONFIG_FILES
9234 CONFIG_HEADERS = $CONFIG_HEADERS
9235 CONFIG_LINKS = $CONFIG_LINKS
9236 CONFIG_COMMANDS = $CONFIG_COMMANDS
9237 $ $0 $@
9238
9239_CSEOF
9240echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9241echo >&5
9242_ACEOF
9243
9244# Files that config.status was made for.
9245if test -n "$ac_config_files"; then
9246 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
9247fi
9248
42ecbf5e
DJ
9249if test -n "$ac_config_headers"; then
9250 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9251fi
e5a52504 9252
42ecbf5e
DJ
9253if test -n "$ac_config_links"; then
9254 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9255fi
e5a52504 9256
42ecbf5e
DJ
9257if test -n "$ac_config_commands"; then
9258 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9259fi
d15b04bd 9260
42ecbf5e
DJ
9261cat >>$CONFIG_STATUS <<\_ACEOF
9262
9263ac_cs_usage="\
9264\`$as_me' instantiates files from templates according to the
9265current configuration.
9266
9267Usage: $0 [OPTIONS] [FILE]...
9268
9269 -h, --help print this help, then exit
9270 -V, --version print version number, then exit
9271 -q, --quiet do not print progress messages
9272 -d, --debug don't remove temporary files
9273 --recheck update $as_me by reconfiguring in the same conditions
9274 --file=FILE[:TEMPLATE]
9275 instantiate the configuration file FILE
9276 --header=FILE[:TEMPLATE]
9277 instantiate the configuration header FILE
9278
9279Configuration files:
9280$config_files
9281
9282Configuration headers:
9283$config_headers
9284
9285Configuration commands:
9286$config_commands
9287
9288Report bugs to <bug-autoconf@gnu.org>."
9289_ACEOF
9290
9291cat >>$CONFIG_STATUS <<_ACEOF
9292ac_cs_version="\\
9293config.status
9294configured by $0, generated by GNU Autoconf 2.59,
9295 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9296
9297Copyright (C) 2003 Free Software Foundation, Inc.
9298This config.status script is free software; the Free Software Foundation
9299gives unlimited permission to copy, distribute and modify it."
9300srcdir=$srcdir
9301INSTALL="$INSTALL"
9302_ACEOF
9303
9304cat >>$CONFIG_STATUS <<\_ACEOF
9305# If no file are specified by the user, then we need to provide default
9306# value. By we need to know if files were specified by the user.
9307ac_need_defaults=:
9308while test $# != 0
9309do
9310 case $1 in
9311 --*=*)
9312 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9313 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9314 ac_shift=:
9315 ;;
9316 -*)
9317 ac_option=$1
9318 ac_optarg=$2
9319 ac_shift=shift
9320 ;;
9321 *) # This is not an option, so the user has probably given explicit
9322 # arguments.
9323 ac_option=$1
9324 ac_need_defaults=false;;
9325 esac
9326
9327 case $ac_option in
9328 # Handling of the options.
9329_ACEOF
9330cat >>$CONFIG_STATUS <<\_ACEOF
9331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9332 ac_cs_recheck=: ;;
9333 --version | --vers* | -V )
9334 echo "$ac_cs_version"; exit 0 ;;
9335 --he | --h)
9336 # Conflict between --help and --header
9337 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9338Try \`$0 --help' for more information." >&5
9339echo "$as_me: error: ambiguous option: $1
9340Try \`$0 --help' for more information." >&2;}
9341 { (exit 1); exit 1; }; };;
9342 --help | --hel | -h )
9343 echo "$ac_cs_usage"; exit 0 ;;
9344 --debug | --d* | -d )
9345 debug=: ;;
9346 --file | --fil | --fi | --f )
9347 $ac_shift
9348 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9349 ac_need_defaults=false;;
9350 --header | --heade | --head | --hea )
9351 $ac_shift
9352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9353 ac_need_defaults=false;;
9354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9356 ac_cs_silent=: ;;
9357
9358 # This is an error.
9359 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9360Try \`$0 --help' for more information." >&5
9361echo "$as_me: error: unrecognized option: $1
9362Try \`$0 --help' for more information." >&2;}
9363 { (exit 1); exit 1; }; } ;;
9364
9365 *) ac_config_targets="$ac_config_targets $1" ;;
9366
9367 esac
9368 shift
9369done
9370
9371ac_configure_extra_args=
9372
9373if $ac_cs_silent; then
9374 exec 6>/dev/null
9375 ac_configure_extra_args="$ac_configure_extra_args --silent"
9376fi
9377
9378_ACEOF
9379cat >>$CONFIG_STATUS <<_ACEOF
9380if \$ac_cs_recheck; then
9381 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9382 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9383fi
9384
9385_ACEOF
9386
9387cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 9388#
42ecbf5e 9389# INIT-COMMANDS section.
d15b04bd 9390#
e5a52504 9391
42ecbf5e 9392AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
9393# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9394 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9395 # from automake.
9396 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9397 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9398 LINGUAS="${LINGUAS-%UNSET%}"
9399
42ecbf5e
DJ
9400
9401_ACEOF
9402
9403
9404
9405cat >>$CONFIG_STATUS <<\_ACEOF
9406for ac_config_target in $ac_config_targets
252b5132 9407do
42ecbf5e
DJ
9408 case "$ac_config_target" in
9409 # Handling of arguments.
9410 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9411 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9412 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9413 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 9414 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
9415 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9416 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9417echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9418 { (exit 1); exit 1; }; };;
d15b04bd 9419 esac
252b5132
RH
9420done
9421
42ecbf5e
DJ
9422# If the user did not use the arguments to specify the items to instantiate,
9423# then the envvar interface is used. Set only those that are not.
9424# We use the long form for the default assignment because of an extremely
9425# bizarre bug on SunOS 4.1.3.
9426if $ac_need_defaults; then
9427 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9428 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9429 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9430fi
9431
9432# Have a temporary directory for convenience. Make it in the build tree
9433# simply because there is no reason to put it here, and in addition,
9434# creating and moving files from /tmp can sometimes cause problems.
9435# Create a temporary directory, and hook for its removal unless debugging.
9436$debug ||
9437{
9438 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9439 trap '{ (exit 1); exit 1; }' 1 2 13 15
9440}
252b5132 9441
42ecbf5e 9442# Create a (secure) tmp directory for tmp files.
e5a52504 9443
42ecbf5e
DJ
9444{
9445 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9446 test -n "$tmp" && test -d "$tmp"
9447} ||
9448{
9449 tmp=./confstat$$-$RANDOM
9450 (umask 077 && mkdir $tmp)
9451} ||
9452{
9453 echo "$me: cannot create a temporary directory in ." >&2
9454 { (exit 1); exit 1; }
9455}
9456
9457_ACEOF
9458
9459cat >>$CONFIG_STATUS <<_ACEOF
9460
9461#
9462# CONFIG_FILES section.
9463#
e5a52504 9464
42ecbf5e
DJ
9465# No need to generate the scripts if there are no CONFIG_FILES.
9466# This happens for instance when ./config.status config.h
9467if test -n "\$CONFIG_FILES"; then
9468 # Protect against being on the right side of a sed subst in config.status.
9469 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9470 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9471s,@SHELL@,$SHELL,;t t
9472s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9473s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9474s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9475s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9476s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9477s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9478s,@exec_prefix@,$exec_prefix,;t t
9479s,@prefix@,$prefix,;t t
9480s,@program_transform_name@,$program_transform_name,;t t
9481s,@bindir@,$bindir,;t t
9482s,@sbindir@,$sbindir,;t t
9483s,@libexecdir@,$libexecdir,;t t
9484s,@datadir@,$datadir,;t t
9485s,@sysconfdir@,$sysconfdir,;t t
9486s,@sharedstatedir@,$sharedstatedir,;t t
9487s,@localstatedir@,$localstatedir,;t t
9488s,@libdir@,$libdir,;t t
9489s,@includedir@,$includedir,;t t
9490s,@oldincludedir@,$oldincludedir,;t t
9491s,@infodir@,$infodir,;t t
9492s,@mandir@,$mandir,;t t
9493s,@build_alias@,$build_alias,;t t
9494s,@host_alias@,$host_alias,;t t
9495s,@target_alias@,$target_alias,;t t
9496s,@DEFS@,$DEFS,;t t
9497s,@ECHO_C@,$ECHO_C,;t t
9498s,@ECHO_N@,$ECHO_N,;t t
9499s,@ECHO_T@,$ECHO_T,;t t
9500s,@LIBS@,$LIBS,;t t
9501s,@build@,$build,;t t
9502s,@build_cpu@,$build_cpu,;t t
9503s,@build_vendor@,$build_vendor,;t t
9504s,@build_os@,$build_os,;t t
9505s,@host@,$host,;t t
9506s,@host_cpu@,$host_cpu,;t t
9507s,@host_vendor@,$host_vendor,;t t
9508s,@host_os@,$host_os,;t t
9509s,@target@,$target,;t t
9510s,@target_cpu@,$target_cpu,;t t
9511s,@target_vendor@,$target_vendor,;t t
9512s,@target_os@,$target_os,;t t
9513s,@CC@,$CC,;t t
9514s,@CFLAGS@,$CFLAGS,;t t
9515s,@LDFLAGS@,$LDFLAGS,;t t
9516s,@CPPFLAGS@,$CPPFLAGS,;t t
9517s,@ac_ct_CC@,$ac_ct_CC,;t t
9518s,@EXEEXT@,$EXEEXT,;t t
9519s,@OBJEXT@,$OBJEXT,;t t
9520s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9521s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9522s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9523s,@CYGPATH_W@,$CYGPATH_W,;t t
9524s,@PACKAGE@,$PACKAGE,;t t
9525s,@VERSION@,$VERSION,;t t
9526s,@ACLOCAL@,$ACLOCAL,;t t
9527s,@AUTOCONF@,$AUTOCONF,;t t
9528s,@AUTOMAKE@,$AUTOMAKE,;t t
9529s,@AUTOHEADER@,$AUTOHEADER,;t t
9530s,@MAKEINFO@,$MAKEINFO,;t t
9531s,@install_sh@,$install_sh,;t t
9532s,@STRIP@,$STRIP,;t t
9533s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9534s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9535s,@mkdir_p@,$mkdir_p,;t t
9536s,@AWK@,$AWK,;t t
9537s,@SET_MAKE@,$SET_MAKE,;t t
9538s,@am__leading_dot@,$am__leading_dot,;t t
9539s,@AMTAR@,$AMTAR,;t t
9540s,@am__tar@,$am__tar,;t t
9541s,@am__untar@,$am__untar,;t t
9542s,@DEPDIR@,$DEPDIR,;t t
9543s,@am__include@,$am__include,;t t
9544s,@am__quote@,$am__quote,;t t
9545s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9546s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9547s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9548s,@CCDEPMODE@,$CCDEPMODE,;t t
9549s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9550s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9551s,@LN_S@,$LN_S,;t t
9552s,@RANLIB@,$RANLIB,;t t
9553s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9554s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 9555s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
ad22bfe8 9556s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
42ecbf5e
DJ
9557s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9558s,@NO_WERROR@,$NO_WERROR,;t t
9559s,@YACC@,$YACC,;t t
9560s,@LEX@,$LEX,;t t
9561s,@LEXLIB@,$LEXLIB,;t t
9562s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 9563s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
9564s,@LIBINTL@,$LIBINTL,;t t
9565s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9566s,@INCINTL@,$INCINTL,;t t
42ecbf5e 9567s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
9568s,@GMSGFMT@,$GMSGFMT,;t t
9569s,@POSUB@,$POSUB,;t t
42ecbf5e 9570s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 9571s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 9572s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
9573s,@GENCAT@,$GENCAT,;t t
9574s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 9575s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
9576s,@MSGFMT@,$MSGFMT,;t t
9577s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
9578s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9579s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9580s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
9581s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9582s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
9583s,@HDEFINES@,$HDEFINES,;t t
9584s,@AR@,$AR,;t t
9585s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9586s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9587s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23
DJ
9588s,@CPP@,$CPP,;t t
9589s,@EGREP@,$EGREP,;t t
9590s,@ALLOCA@,$ALLOCA,;t t
42ecbf5e
DJ
9591s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
9592s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
9593s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
9594s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
9595s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
9596s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
9597s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
9598s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 9599s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
9600s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
9601s,@EMULATION@,$EMULATION,;t t
9602s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
9603s,@datarootdir@,$datarootdir,;t t
9604s,@docdir@,$docdir,;t t
9605s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
9606s,@LIBOBJS@,$LIBOBJS,;t t
9607s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 9608CEOF
252b5132 9609
42ecbf5e
DJ
9610_ACEOF
9611
9612 cat >>$CONFIG_STATUS <<\_ACEOF
9613 # Split the substitutions into bite-sized pieces for seds with
9614 # small command number limits, like on Digital OSF/1 and HP-UX.
9615 ac_max_sed_lines=48
9616 ac_sed_frag=1 # Number of current file.
9617 ac_beg=1 # First line for current file.
9618 ac_end=$ac_max_sed_lines # Line after last line for current file.
9619 ac_more_lines=:
9620 ac_sed_cmds=
9621 while $ac_more_lines; do
9622 if test $ac_beg -gt 1; then
9623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9624 else
9625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9626 fi
9627 if test ! -s $tmp/subs.frag; then
9628 ac_more_lines=false
d15b04bd 9629 else
42ecbf5e
DJ
9630 # The purpose of the label and of the branching condition is to
9631 # speed up the sed processing (if there are no `@' at all, there
9632 # is no need to browse any of the substitutions).
9633 # These are the two extra sed commands mentioned above.
9634 (echo ':t
9635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9636 if test -z "$ac_sed_cmds"; then
9637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9638 else
9639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9640 fi
9641 ac_sed_frag=`expr $ac_sed_frag + 1`
9642 ac_beg=$ac_end
9643 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 9644 fi
42ecbf5e
DJ
9645 done
9646 if test -z "$ac_sed_cmds"; then
9647 ac_sed_cmds=cat
252b5132 9648 fi
42ecbf5e 9649fi # test -n "$CONFIG_FILES"
252b5132 9650
42ecbf5e
DJ
9651_ACEOF
9652cat >>$CONFIG_STATUS <<\_ACEOF
9653for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 9654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
9655 case $ac_file in
9656 - | *:- | *:-:* ) # input from stdin
9657 cat >$tmp/stdin
9658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9662 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9663 esac
9664
42ecbf5e
DJ
9665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$ac_file" : 'X\(//\)[^/]' \| \
9669 X"$ac_file" : 'X\(//\)$' \| \
9670 X"$ac_file" : 'X\(/\)' \| \
9671 . : '\(.\)' 2>/dev/null ||
9672echo X"$ac_file" |
9673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675 /^X\(\/\/\)$/{ s//\1/; q; }
9676 /^X\(\/\).*/{ s//\1/; q; }
9677 s/.*/./; q'`
9678 { if $as_mkdir_p; then
9679 mkdir -p "$ac_dir"
d15b04bd 9680 else
42ecbf5e
DJ
9681 as_dir="$ac_dir"
9682 as_dirs=
9683 while test ! -d "$as_dir"; do
9684 as_dirs="$as_dir $as_dirs"
9685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9687 X"$as_dir" : 'X\(//\)[^/]' \| \
9688 X"$as_dir" : 'X\(//\)$' \| \
9689 X"$as_dir" : 'X\(/\)' \| \
9690 . : '\(.\)' 2>/dev/null ||
9691echo X"$as_dir" |
9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9694 /^X\(\/\/\)$/{ s//\1/; q; }
9695 /^X\(\/\).*/{ s//\1/; q; }
9696 s/.*/./; q'`
9697 done
9698 test ! -n "$as_dirs" || mkdir $as_dirs
9699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9701 { (exit 1); exit 1; }; }; }
9702
9703 ac_builddir=.
e5a52504 9704
42ecbf5e
DJ
9705if test "$ac_dir" != .; then
9706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9707 # A "../" for each directory in $ac_dir_suffix.
9708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9709else
9710 ac_dir_suffix= ac_top_builddir=
9711fi
9712
9713case $srcdir in
9714 .) # No --srcdir option. We are building in place.
9715 ac_srcdir=.
9716 if test -z "$ac_top_builddir"; then
9717 ac_top_srcdir=.
9718 else
9719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9720 fi ;;
9721 [\\/]* | ?:[\\/]* ) # Absolute path.
9722 ac_srcdir=$srcdir$ac_dir_suffix;
9723 ac_top_srcdir=$srcdir ;;
e5a52504 9724 *) # Relative path.
42ecbf5e
DJ
9725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9727esac
252b5132 9728
42ecbf5e
DJ
9729# Do not use `cd foo && pwd` to compute absolute paths, because
9730# the directories may not exist.
9731case `pwd` in
9732.) ac_abs_builddir="$ac_dir";;
9733*)
9734 case "$ac_dir" in
9735 .) ac_abs_builddir=`pwd`;;
9736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9738 esac;;
9739esac
9740case $ac_abs_builddir in
9741.) ac_abs_top_builddir=${ac_top_builddir}.;;
9742*)
9743 case ${ac_top_builddir}. in
9744 .) ac_abs_top_builddir=$ac_abs_builddir;;
9745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9747 esac;;
9748esac
9749case $ac_abs_builddir in
9750.) ac_abs_srcdir=$ac_srcdir;;
9751*)
9752 case $ac_srcdir in
9753 .) ac_abs_srcdir=$ac_abs_builddir;;
9754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9756 esac;;
9757esac
9758case $ac_abs_builddir in
9759.) ac_abs_top_srcdir=$ac_top_srcdir;;
9760*)
9761 case $ac_top_srcdir in
9762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9765 esac;;
9766esac
e5a52504 9767
42ecbf5e
DJ
9768
9769 case $INSTALL in
9770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 9772 esac
e5a52504 9773
b7d4af3a
JW
9774 if test x"$ac_file" != x-; then
9775 { echo "$as_me:$LINENO: creating $ac_file" >&5
9776echo "$as_me: creating $ac_file" >&6;}
9777 rm -f "$ac_file"
9778 fi
42ecbf5e
DJ
9779 # Let's still pretend it is `configure' which instantiates (i.e., don't
9780 # use $as_me), people would be surprised to read:
9781 # /* config.h. Generated by config.status. */
9782 if test x"$ac_file" = x-; then
9783 configure_input=
9784 else
9785 configure_input="$ac_file. "
9786 fi
9787 configure_input=$configure_input"Generated from `echo $ac_file_in |
9788 sed 's,.*/,,'` by configure."
9789
9790 # First look for the input files in the build tree, otherwise in the
9791 # src tree.
9792 ac_file_inputs=`IFS=:
9793 for f in $ac_file_in; do
9794 case $f in
9795 -) echo $tmp/stdin ;;
9796 [\\/$]*)
9797 # Absolute (can't be DOS-style, as IFS=:)
9798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9799echo "$as_me: error: cannot find input file: $f" >&2;}
9800 { (exit 1); exit 1; }; }
9801 echo "$f";;
9802 *) # Relative
9803 if test -f "$f"; then
9804 # Build tree
9805 echo "$f"
9806 elif test -f "$srcdir/$f"; then
9807 # Source tree
9808 echo "$srcdir/$f"
9809 else
9810 # /dev/null tree
9811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9812echo "$as_me: error: cannot find input file: $f" >&2;}
9813 { (exit 1); exit 1; }; }
9814 fi;;
9815 esac
9816 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
9817_ACEOF
9818cat >>$CONFIG_STATUS <<_ACEOF
9819 sed "$ac_vpsub
9820$extrasub
9821_ACEOF
9822cat >>$CONFIG_STATUS <<\_ACEOF
9823:t
9824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9825s,@configure_input@,$configure_input,;t t
9826s,@srcdir@,$ac_srcdir,;t t
9827s,@abs_srcdir@,$ac_abs_srcdir,;t t
9828s,@top_srcdir@,$ac_top_srcdir,;t t
9829s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9830s,@builddir@,$ac_builddir,;t t
9831s,@abs_builddir@,$ac_abs_builddir,;t t
9832s,@top_builddir@,$ac_top_builddir,;t t
9833s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9834s,@INSTALL@,$ac_INSTALL,;t t
9835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9836 rm -f $tmp/stdin
9837 if test x"$ac_file" != x-; then
9838 mv $tmp/out $ac_file
9839 else
9840 cat $tmp/out
9841 rm -f $tmp/out
9842 fi
9843
9844done
9845_ACEOF
9846cat >>$CONFIG_STATUS <<\_ACEOF
9847
9848#
9849# CONFIG_HEADER section.
9850#
252b5132
RH
9851
9852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9853# NAME is the cpp macro being defined and VALUE is the value it is being given.
9854#
9855# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
9856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9857ac_dB='[ ].*$,\1#\2'
9858ac_dC=' '
9859ac_dD=',;t'
9860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9862ac_uB='$,\1#\2define\3'
252b5132 9863ac_uC=' '
42ecbf5e
DJ
9864ac_uD=',;t'
9865
9866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
9868 case $ac_file in
9869 - | *:- | *:-:* ) # input from stdin
9870 cat >$tmp/stdin
9871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9875 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9876 esac
9877
42ecbf5e
DJ
9878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9879echo "$as_me: creating $ac_file" >&6;}
9880
9881 # First look for the input files in the build tree, otherwise in the
9882 # src tree.
9883 ac_file_inputs=`IFS=:
9884 for f in $ac_file_in; do
9885 case $f in
9886 -) echo $tmp/stdin ;;
9887 [\\/$]*)
9888 # Absolute (can't be DOS-style, as IFS=:)
9889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9890echo "$as_me: error: cannot find input file: $f" >&2;}
9891 { (exit 1); exit 1; }; }
9892 # Do quote $f, to prevent DOS paths from being IFS'd.
9893 echo "$f";;
9894 *) # Relative
9895 if test -f "$f"; then
9896 # Build tree
9897 echo "$f"
9898 elif test -f "$srcdir/$f"; then
9899 # Source tree
9900 echo "$srcdir/$f"
9901 else
9902 # /dev/null tree
9903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9904echo "$as_me: error: cannot find input file: $f" >&2;}
9905 { (exit 1); exit 1; }; }
9906 fi;;
9907 esac
9908 done` || { (exit 1); exit 1; }
9909 # Remove the trailing spaces.
9910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9911
9912_ACEOF
9913
9914# Transform confdefs.h into two sed scripts, `conftest.defines' and
9915# `conftest.undefs', that substitutes the proper values into
9916# config.h.in to produce config.h. The first handles `#define'
9917# templates, and the second `#undef' templates.
9918# And first: Protect against being on the right side of a sed subst in
9919# config.status. Protect against being in an unquoted here document
9920# in config.status.
9921rm -f conftest.defines conftest.undefs
9922# Using a here document instead of a string reduces the quoting nightmare.
9923# Putting comments in sed scripts is not portable.
9924#
9925# `end' is used to avoid that the second main sed command (meant for
9926# 0-ary CPP macros) applies to n-ary macro definitions.
9927# See the Autoconf documentation for `clear'.
9928cat >confdef2sed.sed <<\_ACEOF
9929s/[\\&,]/\\&/g
9930s,[\\$`],\\&,g
9931t clear
9932: clear
9933s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9934t end
9935s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9936: end
9937_ACEOF
9938# If some macros were called several times there might be several times
9939# the same #defines, which is useless. Nevertheless, we may not want to
9940# sort them, since we want the *last* AC-DEFINE to be honored.
9941uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9942sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9943rm -f confdef2sed.sed
252b5132
RH
9944
9945# This sed command replaces #undef with comments. This is necessary, for
9946# example, in the case of _POSIX_SOURCE, which is predefined and required
9947# on some systems where configure will not decide to define it.
42ecbf5e
DJ
9948cat >>conftest.undefs <<\_ACEOF
9949s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9950_ACEOF
9951
9952# Break up conftest.defines because some shells have a limit on the size
9953# of here documents, and old seds have small limits too (100 cmds).
9954echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9955echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9956echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9957echo ' :' >>$CONFIG_STATUS
9958rm -f conftest.tail
9959while grep . conftest.defines >/dev/null
9960do
9961 # Write a limited-size here document to $tmp/defines.sed.
9962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9963 # Speed up: don't consider the non `#define' lines.
9964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9965 # Work around the forget-to-reset-the-flag bug.
9966 echo 't clr' >>$CONFIG_STATUS
9967 echo ': clr' >>$CONFIG_STATUS
9968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9969 echo 'CEOF
9970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9971 rm -f $tmp/in
9972 mv $tmp/out $tmp/in
9973' >>$CONFIG_STATUS
9974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9975 rm -f conftest.defines
9976 mv conftest.tail conftest.defines
9977done
9978rm -f conftest.defines
9979echo ' fi # grep' >>$CONFIG_STATUS
9980echo >>$CONFIG_STATUS
252b5132 9981
42ecbf5e
DJ
9982# Break up conftest.undefs because some shells have a limit on the size
9983# of here documents, and old seds have small limits too (100 cmds).
9984echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 9985rm -f conftest.tail
42ecbf5e 9986while grep . conftest.undefs >/dev/null
252b5132 9987do
42ecbf5e
DJ
9988 # Write a limited-size here document to $tmp/undefs.sed.
9989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9990 # Speed up: don't consider the non `#undef'
9991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9992 # Work around the forget-to-reset-the-flag bug.
9993 echo 't clr' >>$CONFIG_STATUS
9994 echo ': clr' >>$CONFIG_STATUS
9995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 9996 echo 'CEOF
42ecbf5e
DJ
9997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9998 rm -f $tmp/in
9999 mv $tmp/out $tmp/in
10000' >>$CONFIG_STATUS
10001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10002 rm -f conftest.undefs
10003 mv conftest.tail conftest.undefs
252b5132 10004done
42ecbf5e
DJ
10005rm -f conftest.undefs
10006
10007cat >>$CONFIG_STATUS <<\_ACEOF
10008 # Let's still pretend it is `configure' which instantiates (i.e., don't
10009 # use $as_me), people would be surprised to read:
10010 # /* config.h. Generated by config.status. */
10011 if test x"$ac_file" = x-; then
10012 echo "/* Generated by configure. */" >$tmp/config.h
10013 else
10014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10015 fi
10016 cat $tmp/in >>$tmp/config.h
10017 rm -f $tmp/in
10018 if test x"$ac_file" != x-; then
10019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10021echo "$as_me: $ac_file is unchanged" >&6;}
10022 else
10023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10025 X"$ac_file" : 'X\(//\)[^/]' \| \
10026 X"$ac_file" : 'X\(//\)$' \| \
10027 X"$ac_file" : 'X\(/\)' \| \
10028 . : '\(.\)' 2>/dev/null ||
10029echo X"$ac_file" |
10030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10032 /^X\(\/\/\)$/{ s//\1/; q; }
10033 /^X\(\/\).*/{ s//\1/; q; }
10034 s/.*/./; q'`
10035 { if $as_mkdir_p; then
10036 mkdir -p "$ac_dir"
252b5132 10037 else
42ecbf5e
DJ
10038 as_dir="$ac_dir"
10039 as_dirs=
10040 while test ! -d "$as_dir"; do
10041 as_dirs="$as_dir $as_dirs"
10042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10044 X"$as_dir" : 'X\(//\)[^/]' \| \
10045 X"$as_dir" : 'X\(//\)$' \| \
10046 X"$as_dir" : 'X\(/\)' \| \
10047 . : '\(.\)' 2>/dev/null ||
10048echo X"$as_dir" |
10049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10051 /^X\(\/\/\)$/{ s//\1/; q; }
10052 /^X\(\/\).*/{ s//\1/; q; }
10053 s/.*/./; q'`
10054 done
10055 test ! -n "$as_dirs" || mkdir $as_dirs
10056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10058 { (exit 1); exit 1; }; }; }
10059
10060 rm -f $ac_file
10061 mv $tmp/config.h $ac_file
252b5132 10062 fi
42ecbf5e
DJ
10063 else
10064 cat $tmp/config.h
10065 rm -f $tmp/config.h
252b5132 10066 fi
42ecbf5e
DJ
10067# Compute $ac_file's index in $config_headers.
10068_am_stamp_count=1
10069for _am_header in $config_headers :; do
10070 case $_am_header in
10071 $ac_file | $ac_file:* )
10072 break ;;
10073 * )
10074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10075 esac
10076done
10077echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10078$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X$ac_file : 'X\(//\)[^/]' \| \
10080 X$ac_file : 'X\(//\)$' \| \
10081 X$ac_file : 'X\(/\)' \| \
10082 . : '\(.\)' 2>/dev/null ||
10083echo X$ac_file |
10084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10086 /^X\(\/\/\)$/{ s//\1/; q; }
10087 /^X\(\/\).*/{ s//\1/; q; }
10088 s/.*/./; q'`/stamp-h$_am_stamp_count
10089done
10090_ACEOF
10091cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10092
42ecbf5e
DJ
10093#
10094# CONFIG_COMMANDS section.
10095#
10096for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10097 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10098 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10099 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10100$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10101 X"$ac_dest" : 'X\(//\)[^/]' \| \
10102 X"$ac_dest" : 'X\(//\)$' \| \
10103 X"$ac_dest" : 'X\(/\)' \| \
10104 . : '\(.\)' 2>/dev/null ||
10105echo X"$ac_dest" |
10106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10108 /^X\(\/\/\)$/{ s//\1/; q; }
10109 /^X\(\/\).*/{ s//\1/; q; }
10110 s/.*/./; q'`
10111 { if $as_mkdir_p; then
10112 mkdir -p "$ac_dir"
10113 else
10114 as_dir="$ac_dir"
10115 as_dirs=
10116 while test ! -d "$as_dir"; do
10117 as_dirs="$as_dir $as_dirs"
10118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10120 X"$as_dir" : 'X\(//\)[^/]' \| \
10121 X"$as_dir" : 'X\(//\)$' \| \
10122 X"$as_dir" : 'X\(/\)' \| \
10123 . : '\(.\)' 2>/dev/null ||
10124echo X"$as_dir" |
10125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10127 /^X\(\/\/\)$/{ s//\1/; q; }
10128 /^X\(\/\).*/{ s//\1/; q; }
10129 s/.*/./; q'`
10130 done
10131 test ! -n "$as_dirs" || mkdir $as_dirs
10132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10133echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10134 { (exit 1); exit 1; }; }; }
252b5132 10135
42ecbf5e 10136 ac_builddir=.
e5a52504 10137
42ecbf5e
DJ
10138if test "$ac_dir" != .; then
10139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10140 # A "../" for each directory in $ac_dir_suffix.
10141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10142else
10143 ac_dir_suffix= ac_top_builddir=
10144fi
10145
10146case $srcdir in
10147 .) # No --srcdir option. We are building in place.
10148 ac_srcdir=.
10149 if test -z "$ac_top_builddir"; then
10150 ac_top_srcdir=.
10151 else
10152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10153 fi ;;
10154 [\\/]* | ?:[\\/]* ) # Absolute path.
10155 ac_srcdir=$srcdir$ac_dir_suffix;
10156 ac_top_srcdir=$srcdir ;;
10157 *) # Relative path.
10158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10160esac
10161
10162# Do not use `cd foo && pwd` to compute absolute paths, because
10163# the directories may not exist.
10164case `pwd` in
10165.) ac_abs_builddir="$ac_dir";;
10166*)
10167 case "$ac_dir" in
10168 .) ac_abs_builddir=`pwd`;;
10169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10171 esac;;
10172esac
10173case $ac_abs_builddir in
10174.) ac_abs_top_builddir=${ac_top_builddir}.;;
10175*)
10176 case ${ac_top_builddir}. in
10177 .) ac_abs_top_builddir=$ac_abs_builddir;;
10178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10180 esac;;
10181esac
10182case $ac_abs_builddir in
10183.) ac_abs_srcdir=$ac_srcdir;;
10184*)
10185 case $ac_srcdir in
10186 .) ac_abs_srcdir=$ac_abs_builddir;;
10187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10189 esac;;
10190esac
10191case $ac_abs_builddir in
10192.) ac_abs_top_srcdir=$ac_top_srcdir;;
10193*)
10194 case $ac_top_srcdir in
10195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10198 esac;;
10199esac
e5a52504 10200
42ecbf5e
DJ
10201
10202 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10203echo "$as_me: executing $ac_dest commands" >&6;}
10204 case $ac_dest in
10205 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10206 # Strip MF so we end up with the name of the file.
10207 mf=`echo "$mf" | sed -e 's/:.*$//'`
10208 # Check whether this is an Automake generated Makefile or not.
10209 # We used to match only the files named `Makefile.in', but
10210 # some people rename them; so instead we look at the file content.
10211 # Grep'ing the first line is not enough: some people post-process
10212 # each Makefile.in and add a new line on top of each file to say so.
10213 # So let's grep whole file.
10214 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10215 dirpart=`(dirname "$mf") 2>/dev/null ||
10216$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10217 X"$mf" : 'X\(//\)[^/]' \| \
10218 X"$mf" : 'X\(//\)$' \| \
10219 X"$mf" : 'X\(/\)' \| \
10220 . : '\(.\)' 2>/dev/null ||
10221echo X"$mf" |
10222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10224 /^X\(\/\/\)$/{ s//\1/; q; }
10225 /^X\(\/\).*/{ s//\1/; q; }
10226 s/.*/./; q'`
10227 else
10228 continue
10229 fi
10230 # Extract the definition of DEPDIR, am__include, and am__quote
10231 # from the Makefile without running `make'.
10232 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10233 test -z "$DEPDIR" && continue
10234 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10235 test -z "am__include" && continue
10236 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10237 # When using ansi2knr, U may be empty or an underscore; expand it
10238 U=`sed -n 's/^U = //p' < "$mf"`
10239 # Find all dependency output files, they are included files with
10240 # $(DEPDIR) in their names. We invoke sed twice because it is the
10241 # simplest approach to changing $(DEPDIR) to its actual value in the
10242 # expansion.
10243 for file in `sed -n "
10244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10246 # Make sure the directory exists.
10247 test -f "$dirpart/$file" && continue
10248 fdir=`(dirname "$file") 2>/dev/null ||
10249$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10250 X"$file" : 'X\(//\)[^/]' \| \
10251 X"$file" : 'X\(//\)$' \| \
10252 X"$file" : 'X\(/\)' \| \
10253 . : '\(.\)' 2>/dev/null ||
10254echo X"$file" |
10255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10257 /^X\(\/\/\)$/{ s//\1/; q; }
10258 /^X\(\/\).*/{ s//\1/; q; }
10259 s/.*/./; q'`
10260 { if $as_mkdir_p; then
10261 mkdir -p $dirpart/$fdir
10262 else
10263 as_dir=$dirpart/$fdir
10264 as_dirs=
10265 while test ! -d "$as_dir"; do
10266 as_dirs="$as_dir $as_dirs"
10267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10269 X"$as_dir" : 'X\(//\)[^/]' \| \
10270 X"$as_dir" : 'X\(//\)$' \| \
10271 X"$as_dir" : 'X\(/\)' \| \
10272 . : '\(.\)' 2>/dev/null ||
10273echo X"$as_dir" |
10274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10276 /^X\(\/\/\)$/{ s//\1/; q; }
10277 /^X\(\/\).*/{ s//\1/; q; }
10278 s/.*/./; q'`
10279 done
10280 test ! -n "$as_dirs" || mkdir $as_dirs
10281 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10282echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10283 { (exit 1); exit 1; }; }; }
10284
10285 # echo "creating $dirpart/$file"
10286 echo '# dummy' > "$dirpart/$file"
10287 done
10288done
10289 ;;
20e95c23
DJ
10290 default-1 )
10291 for ac_file in $CONFIG_FILES; do
10292 # Support "outfile[:infile[:infile...]]"
10293 case "$ac_file" in
10294 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10295 esac
10296 # PO directories have a Makefile.in generated from Makefile.in.in.
10297 case "$ac_file" in */Makefile.in)
10298 # Adjust a relative srcdir.
10299 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10300 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10301 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10302 # In autoconf-2.13 it is called $ac_given_srcdir.
10303 # In autoconf-2.50 it is called $srcdir.
10304 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10305 case "$ac_given_srcdir" in
10306 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10307 /*) top_srcdir="$ac_given_srcdir" ;;
10308 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10309 esac
10310 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10311 rm -f "$ac_dir/POTFILES"
10312 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10313 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10314 POMAKEFILEDEPS="POTFILES.in"
10315 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10316 # on $ac_dir but don't depend on user-specified configuration
10317 # parameters.
10318 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10319 # The LINGUAS file contains the set of available languages.
10320 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10321 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10322 fi
10323 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10324 # Hide the ALL_LINGUAS assigment from automake.
10325 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10326 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10327 else
10328 # The set of available languages was given in configure.in.
10329 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10330 fi
10331 case "$ac_given_srcdir" in
10332 .) srcdirpre= ;;
10333 *) srcdirpre='$(srcdir)/' ;;
10334 esac
10335 POFILES=
10336 GMOFILES=
10337 UPDATEPOFILES=
10338 DUMMYPOFILES=
10339 for lang in $ALL_LINGUAS; do
10340 POFILES="$POFILES $srcdirpre$lang.po"
10341 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10342 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10343 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10344 done
10345 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10346 # environment variable.
10347 INST_LINGUAS=
10348 if test -n "$ALL_LINGUAS"; then
10349 for presentlang in $ALL_LINGUAS; do
10350 useit=no
10351 if test "%UNSET%" != "$LINGUAS"; then
10352 desiredlanguages="$LINGUAS"
10353 else
10354 desiredlanguages="$ALL_LINGUAS"
10355 fi
10356 for desiredlang in $desiredlanguages; do
10357 # Use the presentlang catalog if desiredlang is
10358 # a. equal to presentlang, or
10359 # b. a variant of presentlang (because in this case,
10360 # presentlang can be used as a fallback for messages
10361 # which are not translated in the desiredlang catalog).
10362 case "$desiredlang" in
10363 "$presentlang"*) useit=yes;;
10364 esac
10365 done
10366 if test $useit = yes; then
10367 INST_LINGUAS="$INST_LINGUAS $presentlang"
10368 fi
10369 done
10370 fi
10371 CATALOGS=
10372 if test -n "$INST_LINGUAS"; then
10373 for lang in $INST_LINGUAS; do
10374 CATALOGS="$CATALOGS $lang.gmo"
10375 done
10376 fi
10377 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10378 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"
10379 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10380 if test -f "$f"; then
10381 case "$f" in
10382 *.orig | *.bak | *~) ;;
10383 *) cat "$f" >> "$ac_dir/Makefile" ;;
10384 esac
10385 fi
10386 done
10387 fi
10388 ;;
10389 esac
10390 done ;;
42ecbf5e
DJ
10391 esac
10392done
10393_ACEOF
e5a52504 10394
42ecbf5e
DJ
10395cat >>$CONFIG_STATUS <<\_ACEOF
10396
10397{ (exit 0); exit 0; }
10398_ACEOF
252b5132 10399chmod +x $CONFIG_STATUS
42ecbf5e
DJ
10400ac_clean_files=$ac_clean_files_save
10401
10402
10403# configure is writing to config.log, and then calls config.status.
10404# config.status does its own redirection, appending to config.log.
10405# Unfortunately, on DOS this fails, as config.log is still kept open
10406# by configure, so config.status won't be able to write to it; its
10407# output is simply discarded. So we exec the FD to /dev/null,
10408# effectively closing config.log, so it can be properly (re)opened and
10409# appended to by config.status. When coming back to configure, we
10410# need to make the FD available again.
10411if test "$no_create" != yes; then
10412 ac_cs_success=:
10413 ac_config_status_args=
10414 test "$silent" = yes &&
10415 ac_config_status_args="$ac_config_status_args --quiet"
10416 exec 5>/dev/null
10417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10418 exec 5>>config.log
10419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10420 # would make configure fail if this is the last instruction.
10421 $ac_cs_success || { (exit 1); exit 1; }
10422fi
252b5132 10423
This page took 2.431716 seconds and 4 git commands to generate.