bfd/
[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
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR LIBOBJS LTLIBOBJS'
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
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
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
872 --with-included-gettext use the GNU gettext library included here
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.
bdcfeba5 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;
398ee8f1 4179
a541e3ce 4180GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4181
569acd2c
NC
4182# Check whether --enable-werror or --disable-werror was given.
4183if test "${enable_werror+set}" = set; then
4184 enableval="$enable_werror"
1ad12f97
NC
4185 case "${enableval}" in
4186 yes | y) ERROR_ON_WARNING="yes" ;;
4187 no | n) ERROR_ON_WARNING="no" ;;
42ecbf5e
DJ
4188 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4189echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4190 { (exit 1); exit 1; }; } ;;
1ad12f97 4191 esac
42ecbf5e 4192fi;
1ad12f97 4193
9e9b66a9
AM
4194# Enable -Werror by default when using gcc
4195if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4196 ERROR_ON_WARNING=yes
1ad12f97 4197fi
569acd2c 4198
9e9b66a9
AM
4199NO_WERROR=
4200if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4201 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9
AM
4202 NO_WERROR="-Wno-error"
4203fi
42ecbf5e 4204
a541e3ce
SE
4205if test "${GCC}" = yes ; then
4206 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4207fi
4208
a2d91340
AC
4209# Check whether --enable-build-warnings or --disable-build-warnings was given.
4210if test "${enable_build_warnings+set}" = set; then
4211 enableval="$enable_build_warnings"
4212 case "${enableval}" in
a541e3ce
SE
4213 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4214 no) if test "${GCC}" = yes ; then
4215 WARN_CFLAGS="-w"
4216 fi;;
a2d91340 4217 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4218 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4219 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4220 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4221 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d15b04bd 4222esac
42ecbf5e 4223fi;
9e9b66a9
AM
4224
4225if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4226 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d15b04bd 4227fi
9e9b66a9
AM
4228
4229
e5a52504 4230
e5a52504 4231
398ee8f1 4232
42ecbf5e 4233 ac_config_headers="$ac_config_headers config.h:config.in"
d15b04bd
L
4234
4235
4236if test -z "$target" ; then
42ecbf5e
DJ
4237 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4238echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4239 { (exit 1); exit 1; }; }
d15b04bd
L
4240fi
4241if test -z "$host" ; then
42ecbf5e
DJ
4242 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4243echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4244 { (exit 1); exit 1; }; }
4245fi
4246
4247ac_ext=c
4248ac_cpp='$CPP $CPPFLAGS'
4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252if test -n "$ac_tool_prefix"; then
4253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4254set dummy ${ac_tool_prefix}gcc; ac_word=$2
4255echo "$as_me:$LINENO: checking for $ac_word" >&5
4256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4257if test "${ac_cv_prog_CC+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262else
4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH
4265do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4273 fi
4274done
4275done
4276
4277fi
4278fi
4279CC=$ac_cv_prog_CC
4280if test -n "$CC"; then
4281 echo "$as_me:$LINENO: result: $CC" >&5
4282echo "${ECHO_T}$CC" >&6
4283else
4284 echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
d15b04bd
L
4286fi
4287
42ecbf5e
DJ
4288fi
4289if test -z "$ac_cv_prog_CC"; then
4290 ac_ct_CC=$CC
4291 # Extract the first word of "gcc", so it can be a program name with args.
d15b04bd 4292set dummy gcc; ac_word=$2
42ecbf5e
DJ
4293echo "$as_me:$LINENO: checking for $ac_word" >&5
4294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 if test -n "$ac_ct_CC"; then
4299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_ac_ct_CC="gcc"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4311 fi
4312done
4313done
4314
4315fi
4316fi
4317ac_ct_CC=$ac_cv_prog_ac_ct_CC
4318if test -n "$ac_ct_CC"; then
4319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4320echo "${ECHO_T}$ac_ct_CC" >&6
4321else
4322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324fi
4325
4326 CC=$ac_ct_CC
4327else
4328 CC="$ac_cv_prog_CC"
4329fi
4330
4331if test -z "$CC"; then
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4334set dummy ${ac_tool_prefix}cc; ac_word=$2
4335echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337if test "${ac_cv_prog_CC+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 4339else
d15b04bd
L
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
e5a52504 4342else
42ecbf5e
DJ
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="${ac_tool_prefix}cc"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354done
4355done
4356
252b5132 4357fi
e5a52504 4358fi
42ecbf5e 4359CC=$ac_cv_prog_CC
d15b04bd 4360if test -n "$CC"; then
42ecbf5e
DJ
4361 echo "$as_me:$LINENO: result: $CC" >&5
4362echo "${ECHO_T}$CC" >&6
4363else
4364 echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6
4366fi
4367
4368fi
4369if test -z "$ac_cv_prog_CC"; then
4370 ac_ct_CC=$CC
4371 # Extract the first word of "cc", so it can be a program name with args.
4372set dummy cc; ac_word=$2
4373echo "$as_me:$LINENO: checking for $ac_word" >&5
4374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378 if test -n "$ac_ct_CC"; then
4379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380else
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_ac_ct_CC="cc"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392done
4393done
4394
4395fi
4396fi
4397ac_ct_CC=$ac_cv_prog_ac_ct_CC
4398if test -n "$ac_ct_CC"; then
4399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4400echo "${ECHO_T}$ac_ct_CC" >&6
4401else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404fi
4405
4406 CC=$ac_ct_CC
252b5132 4407else
42ecbf5e 4408 CC="$ac_cv_prog_CC"
252b5132 4409fi
e5a52504 4410
42ecbf5e 4411fi
d15b04bd
L
4412if test -z "$CC"; then
4413 # Extract the first word of "cc", so it can be a program name with args.
4414set dummy cc; ac_word=$2
42ecbf5e
DJ
4415echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417if test "${ac_cv_prog_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4419else
d15b04bd
L
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4422else
d15b04bd 4423 ac_prog_rejected=no
42ecbf5e
DJ
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4432 ac_prog_rejected=yes
4433 continue
4434 fi
4435 ac_cv_prog_CC="cc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439done
4440done
4441
d15b04bd
L
4442if test $ac_prog_rejected = yes; then
4443 # We found a bogon in the path, so make sure we never use it.
4444 set dummy $ac_cv_prog_CC
4445 shift
42ecbf5e 4446 if test $# != 0; then
d15b04bd
L
4447 # We chose a different compiler from the bogus one.
4448 # However, it has the same basename, so the bogon will be chosen
4449 # first if we set CC to just the basename; use the full file name.
4450 shift
42ecbf5e 4451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
e5a52504 4452 fi
252b5132
RH
4453fi
4454fi
d15b04bd 4455fi
42ecbf5e 4456CC=$ac_cv_prog_CC
d15b04bd 4457if test -n "$CC"; then
42ecbf5e
DJ
4458 echo "$as_me:$LINENO: result: $CC" >&5
4459echo "${ECHO_T}$CC" >&6
252b5132 4460else
42ecbf5e
DJ
4461 echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
252b5132
RH
4463fi
4464
42ecbf5e
DJ
4465fi
4466if test -z "$CC"; then
4467 if test -n "$ac_tool_prefix"; then
4468 for ac_prog in cl
4469 do
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_prog_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4476else
d15b04bd
L
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4479else
42ecbf5e
DJ
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493
252b5132
RH
4494fi
4495fi
42ecbf5e 4496CC=$ac_cv_prog_CC
d15b04bd 4497if test -n "$CC"; then
42ecbf5e
DJ
4498 echo "$as_me:$LINENO: result: $CC" >&5
4499echo "${ECHO_T}$CC" >&6
252b5132 4500else
42ecbf5e
DJ
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
d15b04bd 4503fi
42ecbf5e
DJ
4504
4505 test -n "$CC" && break
4506 done
4507fi
4508if test -z "$CC"; then
4509 ac_ct_CC=$CC
4510 for ac_prog in cl
4511do
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513set dummy $ac_prog; ac_word=$2
4514echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 if test -n "$ac_ct_CC"; then
4520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_ac_ct_CC="$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
d15b04bd 4532 fi
42ecbf5e
DJ
4533done
4534done
4535
4536fi
4537fi
4538ac_ct_CC=$ac_cv_prog_ac_ct_CC
4539if test -n "$ac_ct_CC"; then
4540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4541echo "${ECHO_T}$ac_ct_CC" >&6
4542else
4543 echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
252b5132
RH
4545fi
4546
42ecbf5e
DJ
4547 test -n "$ac_ct_CC" && break
4548done
e5a52504 4549
42ecbf5e
DJ
4550 CC=$ac_ct_CC
4551fi
4552
4553fi
4554
4555
4556test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4557See \`config.log' for more details." >&5
4558echo "$as_me: error: no acceptable C compiler found in \$PATH
4559See \`config.log' for more details." >&2;}
4560 { (exit 1); exit 1; }; }
4561
4562# Provide some information about the compiler.
4563echo "$as_me:$LINENO:" \
4564 "checking for C compiler version" >&5
4565ac_compiler=`set X $ac_compile; echo $2`
4566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4567 (eval $ac_compiler --version </dev/null >&5) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }
4571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4572 (eval $ac_compiler -v </dev/null >&5) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }
4576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4577 (eval $ac_compiler -V </dev/null >&5) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }
4581
4582echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4583echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4584if test "${ac_cv_c_compiler_gnu+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593
4594int
4595main ()
4596{
4597#ifndef __GNUC__
4598 choke me
4599#endif
e5a52504 4600
42ecbf5e
DJ
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
b7d4af3a
JW
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
42ecbf5e
DJ
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_compiler_gnu=yes
4628else
4629 echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632ac_compiler_gnu=no
4633fi
4634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637fi
4638echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4639echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4640GCC=`test $ac_compiler_gnu = yes && echo yes`
4641ac_test_CFLAGS=${CFLAGS+set}
4642ac_save_CFLAGS=$CFLAGS
4643CFLAGS="-g"
4644echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4645echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4646if test "${ac_cv_prog_cc_g+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
252b5132 4655
42ecbf5e
DJ
4656int
4657main ()
4658{
d15b04bd 4659
42ecbf5e
DJ
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
b7d4af3a
JW
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
42ecbf5e
DJ
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_prog_cc_g=yes
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691ac_cv_prog_cc_g=no
4692fi
4693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694fi
4695echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4696echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4697if test "$ac_test_CFLAGS" = set; then
4698 CFLAGS=$ac_save_CFLAGS
4699elif test $ac_cv_prog_cc_g = yes; then
4700 if test "$GCC" = yes; then
4701 CFLAGS="-g -O2"
d15b04bd 4702 else
42ecbf5e 4703 CFLAGS="-g"
d15b04bd 4704 fi
252b5132 4705else
42ecbf5e
DJ
4706 if test "$GCC" = yes; then
4707 CFLAGS="-O2"
4708 else
4709 CFLAGS=
4710 fi
252b5132 4711fi
42ecbf5e
DJ
4712echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4713echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4714if test "${ac_cv_prog_cc_stdc+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 ac_cv_prog_cc_stdc=no
4718ac_save_CC=$CC
4719cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725#include <stdarg.h>
4726#include <stdio.h>
4727#include <sys/types.h>
4728#include <sys/stat.h>
4729/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4730struct buf { int x; };
4731FILE * (*rcsopen) (struct buf *, struct stat *, int);
4732static char *e (p, i)
4733 char **p;
4734 int i;
4735{
4736 return p[i];
4737}
4738static char *f (char * (*g) (char **, int), char **p, ...)
4739{
4740 char *s;
4741 va_list v;
4742 va_start (v,p);
4743 s = g (p, va_arg (v,int));
4744 va_end (v);
4745 return s;
4746}
252b5132 4747
42ecbf5e
DJ
4748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4749 function prototypes and stuff, but not '\xHH' hex character constants.
4750 These don't provoke an error unfortunately, instead are silently treated
4751 as 'x'. The following induces an error, until -std1 is added to get
4752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4753 array size at least. It's necessary to write '\x00'==0 to get something
4754 that's true only with -std1. */
4755int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4756
4757int test (int i, double x);
4758struct s1 {int (*f) (int a);};
4759struct s2 {int (*f) (double a);};
4760int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4761int argc;
4762char **argv;
4763int
4764main ()
4765{
4766return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4767 ;
4768 return 0;
4769}
4770_ACEOF
4771# Don't try gcc -ansi; that turns off useful extensions and
4772# breaks some systems' header files.
4773# AIX -qlanglvl=ansi
4774# Ultrix and OSF/1 -std1
4775# HP-UX 10.20 and later -Ae
4776# HP-UX older versions -Aa -D_HPUX_SOURCE
4777# SVR4 -Xc -D__EXTENSIONS__
4778for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4779do
4780 CC="$ac_save_CC $ac_arg"
4781 rm -f conftest.$ac_objext
4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
b7d4af3a
JW
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
42ecbf5e
DJ
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_prog_cc_stdc=$ac_arg
4804break
252b5132 4805else
42ecbf5e
DJ
4806 echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
252b5132 4809fi
42ecbf5e
DJ
4810rm -f conftest.err conftest.$ac_objext
4811done
4812rm -f conftest.$ac_ext conftest.$ac_objext
4813CC=$ac_save_CC
4814
252b5132 4815fi
e5a52504 4816
42ecbf5e
DJ
4817case "x$ac_cv_prog_cc_stdc" in
4818 x|xno)
4819 echo "$as_me:$LINENO: result: none needed" >&5
4820echo "${ECHO_T}none needed" >&6 ;;
4821 *)
4822 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4823echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4824 CC="$CC $ac_cv_prog_cc_stdc" ;;
4825esac
e5a52504 4826
42ecbf5e
DJ
4827# Some people use a C++ compiler to compile C. Since we use `exit',
4828# in C++ we need to declare it. In case someone uses the same compiler
4829# for both compiling C and C++ we need to have the C++ compiler decide
4830# the declaration of exit, since it's the most demanding environment.
4831cat >conftest.$ac_ext <<_ACEOF
4832#ifndef __cplusplus
4833 choke me
4834#endif
4835_ACEOF
4836rm -f conftest.$ac_objext
4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
b7d4af3a
JW
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
42ecbf5e
DJ
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 for ac_declaration in \
4859 '' \
4860 'extern "C" void std::exit (int) throw (); using std::exit;' \
4861 'extern "C" void std::exit (int); using std::exit;' \
4862 'extern "C" void exit (int) throw ();' \
4863 'extern "C" void exit (int);' \
4864 'void exit (int);'
4865do
4866 cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872$ac_declaration
4873#include <stdlib.h>
4874int
4875main ()
4876{
4877exit (42);
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
b7d4af3a
JW
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
42ecbf5e
DJ
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 :
d15b04bd 4905else
42ecbf5e
DJ
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4908
42ecbf5e
DJ
4909continue
4910fi
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918$ac_declaration
4919int
4920main ()
4921{
4922exit (42);
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
b7d4af3a
JW
4936 { ac_try='test -z "$ac_c_werror_flag"
4937 || test ! -s conftest.err'
42ecbf5e
DJ
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; } &&
4943 { ac_try='test -s conftest.$ac_objext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 break
d15b04bd 4950else
42ecbf5e
DJ
4951 echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
252b5132 4954fi
42ecbf5e
DJ
4955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956done
d15b04bd 4957rm -f conftest*
42ecbf5e
DJ
4958if test -n "$ac_declaration"; then
4959 echo '#ifdef __cplusplus' >>confdefs.h
4960 echo $ac_declaration >>confdefs.h
4961 echo '#endif' >>confdefs.h
d15b04bd 4962fi
252b5132 4963
ac48eca1 4964else
42ecbf5e
DJ
4965 echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
d15b04bd 4968fi
42ecbf5e
DJ
4969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
e5a52504 4975
d15b04bd 4976
3e321448
L
4977cat >>confdefs.h <<\_ACEOF
4978#define _GNU_SOURCE 1
4979_ACEOF
4980
4981
4982
d15b04bd
L
4983for ac_prog in 'bison -y' byacc
4984do
42ecbf5e 4985 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 4986set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
4987echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989if test "${ac_cv_prog_YACC+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
4991else
4992 if test -n "$YACC"; then
4993 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4994else
42ecbf5e
DJ
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_YACC="$ac_prog"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
5008
ac48eca1
AO
5009fi
5010fi
42ecbf5e 5011YACC=$ac_cv_prog_YACC
d15b04bd 5012if test -n "$YACC"; then
42ecbf5e
DJ
5013 echo "$as_me:$LINENO: result: $YACC" >&5
5014echo "${ECHO_T}$YACC" >&6
e5a52504 5015else
42ecbf5e
DJ
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
e5a52504
MM
5018fi
5019
42ecbf5e 5020 test -n "$YACC" && break
d15b04bd
L
5021done
5022test -n "$YACC" || YACC="yacc"
5023
d15b04bd
L
5024for ac_prog in flex lex
5025do
42ecbf5e 5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 5027set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
5028echo "$as_me:$LINENO: checking for $ac_word" >&5
5029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5030if test "${ac_cv_prog_LEX+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
5032else
5033 if test -n "$LEX"; then
5034 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5035else
42ecbf5e
DJ
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_LEX="$ac_prog"
5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047done
d15b04bd 5048done
d15b04bd 5049
d15b04bd 5050fi
e5a52504 5051fi
42ecbf5e 5052LEX=$ac_cv_prog_LEX
d15b04bd 5053if test -n "$LEX"; then
42ecbf5e
DJ
5054 echo "$as_me:$LINENO: result: $LEX" >&5
5055echo "${ECHO_T}$LEX" >&6
e5a52504 5056else
42ecbf5e
DJ
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
e5a52504 5059fi
e5a52504 5060
42ecbf5e
DJ
5061 test -n "$LEX" && break
5062done
5063test -n "$LEX" || LEX=":"
5064
d15b04bd
L
5065if test -z "$LEXLIB"
5066then
42ecbf5e
DJ
5067 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5068echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5069if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 ac_check_lib_save_LIBS=$LIBS
5073LIBS="-lfl $LIBS"
5074cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080
d15b04bd 5081/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
5082#ifdef __cplusplus
5083extern "C"
5084#endif
d15b04bd 5085/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
5086 builtin and then its argument prototype would still apply. */
5087char yywrap ();
5088int
5089main ()
5090{
5091yywrap ();
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096rm -f conftest.$ac_objext conftest$ac_exeext
5097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
b7d4af3a
JW
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
42ecbf5e
DJ
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_lib_fl_yywrap=yes
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123ac_cv_lib_fl_yywrap=no
5124fi
5125rm -f conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127LIBS=$ac_check_lib_save_LIBS
5128fi
5129echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5130echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5131if test $ac_cv_lib_fl_yywrap = yes; then
5132 LEXLIB="-lfl"
5133else
5134 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5135echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5136if test "${ac_cv_lib_l_yywrap+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139 ac_check_lib_save_LIBS=$LIBS
5140LIBS="-ll $LIBS"
5141cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h. */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h. */
d15b04bd 5147
42ecbf5e
DJ
5148/* Override any gcc2 internal prototype to avoid an error. */
5149#ifdef __cplusplus
5150extern "C"
5151#endif
5152/* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154char yywrap ();
5155int
5156main ()
5157{
5158yywrap ();
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163rm -f conftest.$ac_objext conftest$ac_exeext
5164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
b7d4af3a
JW
5172 { ac_try='test -z "$ac_c_werror_flag"
5173 || test ! -s conftest.err'
42ecbf5e
DJ
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest$ac_exeext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_cv_lib_l_yywrap=yes
5186else
5187 echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190ac_cv_lib_l_yywrap=no
5191fi
5192rm -f conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194LIBS=$ac_check_lib_save_LIBS
5195fi
5196echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5197echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5198if test $ac_cv_lib_l_yywrap = yes; then
5199 LEXLIB="-ll"
5200fi
5201
5202fi
5203
5204fi
5205
5206if test "x$LEX" != "x:"; then
5207 echo "$as_me:$LINENO: checking lex output file root" >&5
5208echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5209if test "${ac_cv_prog_lex_root+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5211else
d15b04bd
L
5212 # The minimal lex program is just a single line: %%. But some broken lexes
5213# (Solaris, I think it was) want two %% lines, so accommodate them.
42ecbf5e
DJ
5214cat >conftest.l <<_ACEOF
5215%%
5216%%
5217_ACEOF
5218{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5219 (eval $LEX conftest.l) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }
d15b04bd
L
5223if test -f lex.yy.c; then
5224 ac_cv_prog_lex_root=lex.yy
5225elif test -f lexyy.c; then
5226 ac_cv_prog_lex_root=lexyy
e5a52504 5227else
42ecbf5e
DJ
5228 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5229echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5230 { (exit 1); exit 1; }; }
e5a52504 5231fi
d15b04bd 5232fi
42ecbf5e
DJ
5233echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5234echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5235rm -f conftest.l
d15b04bd
L
5236LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5237
42ecbf5e
DJ
5238echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5239echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5240if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5242else
d15b04bd
L
5243 # POSIX says lex can declare yytext either as a pointer or an array; the
5244# default is implementation-dependent. Figure out which it is, since
5245# not all implementations provide the %pointer and %array declarations.
5246ac_cv_prog_lex_yytext_pointer=no
5247echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
42ecbf5e 5248ac_save_LIBS=$LIBS
d15b04bd 5249LIBS="$LIBS $LEXLIB"
42ecbf5e 5250cat >conftest.$ac_ext <<_ACEOF
d15b04bd 5251`cat $LEX_OUTPUT_ROOT.c`
42ecbf5e
DJ
5252_ACEOF
5253rm -f conftest.$ac_objext conftest$ac_exeext
5254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
b7d4af3a
JW
5262 { ac_try='test -z "$ac_c_werror_flag"
5263 || test ! -s conftest.err'
42ecbf5e
DJ
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest$ac_exeext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
d15b04bd
L
5275 ac_cv_prog_lex_yytext_pointer=yes
5276else
42ecbf5e
DJ
5277 echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
e5a52504 5280fi
42ecbf5e
DJ
5281rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283LIBS=$ac_save_LIBS
d15b04bd 5284rm -f "${LEX_OUTPUT_ROOT}.c"
e5a52504 5285
e5a52504 5286fi
42ecbf5e
DJ
5287echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5288echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d15b04bd 5289if test $ac_cv_prog_lex_yytext_pointer = yes; then
42ecbf5e
DJ
5290
5291cat >>confdefs.h <<\_ACEOF
d15b04bd 5292#define YYTEXT_POINTER 1
42ecbf5e 5293_ACEOF
d15b04bd
L
5294
5295fi
e5a52504 5296
42ecbf5e
DJ
5297fi
5298if test "$LEX" = :; then
5299 LEX=${am_missing_run}flex
5300fi
e5a52504 5301
bdcfeba5 5302ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
42ecbf5e
DJ
5303if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5305set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5306echo "$as_me:$LINENO: checking for $ac_word" >&5
5307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308if test "${ac_cv_prog_RANLIB+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5310else
d15b04bd
L
5311 if test -n "$RANLIB"; then
5312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5313else
42ecbf5e
DJ
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325done
5326done
5327
d15b04bd
L
5328fi
5329fi
42ecbf5e 5330RANLIB=$ac_cv_prog_RANLIB
d15b04bd 5331if test -n "$RANLIB"; then
42ecbf5e
DJ
5332 echo "$as_me:$LINENO: result: $RANLIB" >&5
5333echo "${ECHO_T}$RANLIB" >&6
5334else
5335 echo "$as_me:$LINENO: result: no" >&5
5336echo "${ECHO_T}no" >&6
5337fi
5338
5339fi
5340if test -z "$ac_cv_prog_RANLIB"; then
5341 ac_ct_RANLIB=$RANLIB
5342 # Extract the first word of "ranlib", so it can be a program name with args.
5343set dummy ranlib; ac_word=$2
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349 if test -n "$ac_ct_RANLIB"; then
5350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_ac_ct_RANLIB="ranlib"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363done
5364done
5365
5366 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5367fi
5368fi
5369ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5370if test -n "$ac_ct_RANLIB"; then
5371 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5372echo "${ECHO_T}$ac_ct_RANLIB" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378 RANLIB=$ac_ct_RANLIB
5379else
5380 RANLIB="$ac_cv_prog_RANLIB"
5381fi
5382
5383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5390# On Suns, sometimes $CPP names a directory.
5391if test -n "$CPP" && test -d "$CPP"; then
5392 CPP=
5393fi
5394if test -z "$CPP"; then
5395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5400 do
5401 ac_preproc_ok=false
5402for ac_c_preproc_warn_flag in '' yes
5403do
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416#ifdef __STDC__
5417# include <limits.h>
5418#else
5419# include <assert.h>
5420#endif
5421 Syntax error
5422_ACEOF
5423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_c_preproc_warn_flag
5433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434 else
5435 ac_cpp_err=
5436 fi
5437else
5438 ac_cpp_err=yes
5439fi
5440if test -z "$ac_cpp_err"; then
5441 :
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 # Broken: fails on valid input.
5447continue
5448fi
5449rm -f conftest.err conftest.$ac_ext
5450
5451 # OK, works on sane cases. Now check whether non-existent headers
5452 # can be detected and how.
5453 cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459#include <ac_nonexistent.h>
5460_ACEOF
5461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 else
5473 ac_cpp_err=
5474 fi
5475else
5476 ac_cpp_err=yes
5477fi
5478if test -z "$ac_cpp_err"; then
5479 # Broken: success on invalid input.
5480continue
5481else
5482 echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 # Passes both tests.
5486ac_preproc_ok=:
5487break
5488fi
5489rm -f conftest.err conftest.$ac_ext
5490
5491done
5492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493rm -f conftest.err conftest.$ac_ext
5494if $ac_preproc_ok; then
5495 break
5496fi
5497
5498 done
5499 ac_cv_prog_CPP=$CPP
5500
5501fi
5502 CPP=$ac_cv_prog_CPP
5503else
5504 ac_cv_prog_CPP=$CPP
5505fi
5506echo "$as_me:$LINENO: result: $CPP" >&5
5507echo "${ECHO_T}$CPP" >&6
5508ac_preproc_ok=false
5509for ac_c_preproc_warn_flag in '' yes
5510do
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523#ifdef __STDC__
5524# include <limits.h>
5525#else
5526# include <assert.h>
5527#endif
5528 Syntax error
5529_ACEOF
5530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_c_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541 else
5542 ac_cpp_err=
5543 fi
5544else
5545 ac_cpp_err=yes
5546fi
5547if test -z "$ac_cpp_err"; then
5548 :
5549else
5550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 # Broken: fails on valid input.
5554continue
5555fi
5556rm -f conftest.err conftest.$ac_ext
5557
5558 # OK, works on sane cases. Now check whether non-existent headers
5559 # can be detected and how.
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566#include <ac_nonexistent.h>
5567_ACEOF
5568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_c_preproc_warn_flag
5578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579 else
5580 ac_cpp_err=
5581 fi
5582else
5583 ac_cpp_err=yes
5584fi
5585if test -z "$ac_cpp_err"; then
5586 # Broken: success on invalid input.
5587continue
5588else
5589 echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 # Passes both tests.
5593ac_preproc_ok=:
5594break
5595fi
5596rm -f conftest.err conftest.$ac_ext
5597
5598done
5599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600rm -f conftest.err conftest.$ac_ext
5601if $ac_preproc_ok; then
5602 :
5603else
5604 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5605See \`config.log' for more details." >&5
5606echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5607See \`config.log' for more details." >&2;}
5608 { (exit 1); exit 1; }; }
5609fi
5610
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617
5618echo "$as_me:$LINENO: checking for egrep" >&5
5619echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5620if test "${ac_cv_prog_egrep+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5622else
42ecbf5e
DJ
5623 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5624 then ac_cv_prog_egrep='grep -E'
5625 else ac_cv_prog_egrep='egrep'
5626 fi
e5a52504 5627fi
42ecbf5e
DJ
5628echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5629echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5630 EGREP=$ac_cv_prog_egrep
5631
ac48eca1 5632
42ecbf5e
DJ
5633echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5634echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5635if test "${ac_cv_header_stdc+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5637else
42ecbf5e
DJ
5638 cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */
252b5132
RH
5644#include <stdlib.h>
5645#include <stdarg.h>
5646#include <string.h>
5647#include <float.h>
42ecbf5e
DJ
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
b7d4af3a
JW
5666 { ac_try='test -z "$ac_c_werror_flag"
5667 || test ! -s conftest.err'
42ecbf5e
DJ
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
252b5132
RH
5679 ac_cv_header_stdc=yes
5680else
42ecbf5e
DJ
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684ac_cv_header_stdc=no
252b5132 5685fi
42ecbf5e 5686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5687
5688if test $ac_cv_header_stdc = yes; then
5689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42ecbf5e
DJ
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
252b5132 5696#include <string.h>
42ecbf5e
DJ
5697
5698_ACEOF
252b5132 5699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5700 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5701 :
5702else
252b5132
RH
5703 ac_cv_header_stdc=no
5704fi
5705rm -f conftest*
5706
5707fi
5708
5709if test $ac_cv_header_stdc = yes; then
5710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42ecbf5e
DJ
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
252b5132 5717#include <stdlib.h>
42ecbf5e
DJ
5718
5719_ACEOF
252b5132 5720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5721 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5722 :
5723else
252b5132
RH
5724 ac_cv_header_stdc=no
5725fi
5726rm -f conftest*
5727
5728fi
5729
5730if test $ac_cv_header_stdc = yes; then
5731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42ecbf5e 5732 if test "$cross_compiling" = yes; then
252b5132
RH
5733 :
5734else
42ecbf5e
DJ
5735 cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
252b5132 5741#include <ctype.h>
42ecbf5e
DJ
5742#if ((' ' & 0x0FF) == 0x020)
5743# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5744# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5745#else
5746# define ISLOWER(c) \
5747 (('a' <= (c) && (c) <= 'i') \
5748 || ('j' <= (c) && (c) <= 'r') \
5749 || ('s' <= (c) && (c) <= 'z'))
5750# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5751#endif
d15b04bd 5752
42ecbf5e
DJ
5753#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5754int
5755main ()
5756{
5757 int i;
5758 for (i = 0; i < 256; i++)
5759 if (XOR (islower (i), ISLOWER (i))
5760 || toupper (i) != TOUPPER (i))
5761 exit(2);
5762 exit (0);
5763}
5764_ACEOF
5765rm -f conftest$ac_exeext
5766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
252b5132
RH
5776 :
5777else
42ecbf5e
DJ
5778 echo "$as_me: program exited with status $ac_status" >&5
5779echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782( exit $ac_status )
5783ac_cv_header_stdc=no
252b5132 5784fi
42ecbf5e 5785rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5786fi
252b5132
RH
5787fi
5788fi
42ecbf5e
DJ
5789echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5790echo "${ECHO_T}$ac_cv_header_stdc" >&6
d15b04bd 5791if test $ac_cv_header_stdc = yes; then
42ecbf5e
DJ
5792
5793cat >>confdefs.h <<\_ACEOF
252b5132 5794#define STDC_HEADERS 1
42ecbf5e 5795_ACEOF
252b5132
RH
5796
5797fi
5798
42ecbf5e
DJ
5799echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5800echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5801if test "${ac_cv_c_const+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
d15b04bd 5810
42ecbf5e
DJ
5811int
5812main ()
5813{
5814/* FIXME: Include the comments suggested by Paul. */
5815#ifndef __cplusplus
5816 /* Ultrix mips cc rejects this. */
5817 typedef int charset[2];
5818 const charset x;
5819 /* SunOS 4.1.1 cc rejects this. */
5820 char const *const *ccp;
5821 char **p;
5822 /* NEC SVR4.0.2 mips cc rejects this. */
5823 struct point {int x, y;};
5824 static struct point const zero = {0,0};
5825 /* AIX XL C 1.02.0.0 rejects this.
5826 It does not let you subtract one const X* pointer from another in
5827 an arm of an if-expression whose if-part is not a constant
5828 expression */
5829 const char *g = "string";
5830 ccp = &g + (g ? g-g : 0);
5831 /* HPUX 7.0 cc rejects these. */
5832 ++ccp;
5833 p = (char**) ccp;
5834 ccp = (char const *const *) p;
5835 { /* SCO 3.2v4 cc rejects this. */
5836 char *t;
5837 char const *s = 0 ? (char *) 0 : (char const *) 0;
5838
5839 *t++ = 0;
5840 }
5841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5842 int x[] = {25, 17};
5843 const int *foo = &x[0];
5844 ++foo;
5845 }
5846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5847 typedef const int *iptr;
5848 iptr p = 0;
5849 ++p;
5850 }
5851 { /* AIX XL C 1.02.0.0 rejects this saying
5852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5853 struct s { int j; const int *ap[3]; };
5854 struct s *b; b->j = 5;
5855 }
5856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5857 const int foo = 10;
5858 }
5859#endif
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
b7d4af3a
JW
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
42ecbf5e
DJ
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
252b5132
RH
5887 ac_cv_c_const=yes
5888else
42ecbf5e
DJ
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892ac_cv_c_const=no
252b5132 5893fi
42ecbf5e 5894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5895fi
42ecbf5e
DJ
5896echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5897echo "${ECHO_T}$ac_cv_c_const" >&6
d15b04bd 5898if test $ac_cv_c_const = no; then
42ecbf5e
DJ
5899
5900cat >>confdefs.h <<\_ACEOF
5901#define const
5902_ACEOF
252b5132
RH
5903
5904fi
5905
42ecbf5e
DJ
5906echo "$as_me:$LINENO: checking for inline" >&5
5907echo $ECHO_N "checking for inline... $ECHO_C" >&6
5908if test "${ac_cv_c_inline+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5910else
5911 ac_cv_c_inline=no
5912for ac_kw in inline __inline__ __inline; do
42ecbf5e
DJ
5913 cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
5919#ifndef __cplusplus
5920typedef int foo_t;
5921static $ac_kw foo_t static_foo () {return 0; }
5922$ac_kw foo_t foo () {return 0; }
5923#endif
252b5132 5924
42ecbf5e
DJ
5925_ACEOF
5926rm -f conftest.$ac_objext
5927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
b7d4af3a
JW
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
42ecbf5e
DJ
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
252b5132
RH
5948 ac_cv_c_inline=$ac_kw; break
5949else
42ecbf5e
DJ
5950 echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
252b5132 5953fi
42ecbf5e 5954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5955done
5956
5957fi
42ecbf5e
DJ
5958echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5959echo "${ECHO_T}$ac_cv_c_inline" >&6
252b5132 5960
42ecbf5e
DJ
5961
5962case $ac_cv_c_inline in
252b5132 5963 inline | yes) ;;
42ecbf5e
DJ
5964 *)
5965 case $ac_cv_c_inline in
5966 no) ac_val=;;
5967 *) ac_val=$ac_cv_c_inline;;
5968 esac
5969 cat >>confdefs.h <<_ACEOF
5970#ifndef __cplusplus
5971#define inline $ac_val
5972#endif
5973_ACEOF
5974 ;;
252b5132
RH
5975esac
5976
42ecbf5e
DJ
5977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5988 inttypes.h stdint.h unistd.h
5989do
5990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991echo "$as_me:$LINENO: checking for $ac_header" >&5
5992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
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. */
6002$ac_includes_default
6003
6004#include <$ac_header>
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
b7d4af3a
JW
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
42ecbf5e
DJ
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 eval "$as_ac_Header=yes"
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033eval "$as_ac_Header=no"
6034fi
6035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
6037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042_ACEOF
6043
6044fi
6045
6046done
6047
6048
6049echo "$as_me:$LINENO: checking for off_t" >&5
6050echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6051if test "${ac_cv_type_off_t+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6053else
42ecbf5e
DJ
6054 cat >conftest.$ac_ext <<_ACEOF
6055/* confdefs.h. */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h. */
6060$ac_includes_default
6061int
6062main ()
6063{
6064if ((off_t *) 0)
6065 return 0;
6066if (sizeof (off_t))
6067 return 0;
6068 ;
6069 return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext
6073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
b7d4af3a
JW
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
42ecbf5e
DJ
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
252b5132
RH
6094 ac_cv_type_off_t=yes
6095else
42ecbf5e
DJ
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 6098
42ecbf5e
DJ
6099ac_cv_type_off_t=no
6100fi
6101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d15b04bd 6102fi
42ecbf5e
DJ
6103echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6104echo "${ECHO_T}$ac_cv_type_off_t" >&6
6105if test $ac_cv_type_off_t = yes; then
6106 :
6107else
6108
6109cat >>confdefs.h <<_ACEOF
252b5132 6110#define off_t long
42ecbf5e 6111_ACEOF
252b5132
RH
6112
6113fi
6114
42ecbf5e
DJ
6115echo "$as_me:$LINENO: checking for size_t" >&5
6116echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6117if test "${ac_cv_type_size_t+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6119else
42ecbf5e
DJ
6120 cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
6126$ac_includes_default
6127int
6128main ()
6129{
6130if ((size_t *) 0)
6131 return 0;
6132if (sizeof (size_t))
6133 return 0;
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
b7d4af3a
JW
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
42ecbf5e
DJ
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
252b5132
RH
6160 ac_cv_type_size_t=yes
6161else
42ecbf5e
DJ
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 6164
42ecbf5e 6165ac_cv_type_size_t=no
d15b04bd 6166fi
42ecbf5e
DJ
6167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168fi
6169echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6170echo "${ECHO_T}$ac_cv_type_size_t" >&6
6171if test $ac_cv_type_size_t = yes; then
6172 :
6173else
6174
6175cat >>confdefs.h <<_ACEOF
252b5132 6176#define size_t unsigned
42ecbf5e 6177_ACEOF
252b5132
RH
6178
6179fi
6180
6181# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6182# for constant arguments. Useless!
42ecbf5e
DJ
6183echo "$as_me:$LINENO: checking for working alloca.h" >&5
6184echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6185if test "${ac_cv_working_alloca_h+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
252b5132 6194#include <alloca.h>
42ecbf5e
DJ
6195int
6196main ()
6197{
6198char *p = (char *) alloca (2 * sizeof (int));
6199 ;
6200 return 0;
6201}
6202_ACEOF
6203rm -f conftest.$ac_objext conftest$ac_exeext
6204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
b7d4af3a
JW
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
42ecbf5e
DJ
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest$ac_exeext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_working_alloca_h=yes
6226else
6227 echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230ac_cv_working_alloca_h=no
6231fi
6232rm -f conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234fi
6235echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6236echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6237if test $ac_cv_working_alloca_h = yes; then
6238
6239cat >>confdefs.h <<\_ACEOF
252b5132 6240#define HAVE_ALLOCA_H 1
42ecbf5e 6241_ACEOF
252b5132
RH
6242
6243fi
6244
42ecbf5e
DJ
6245echo "$as_me:$LINENO: checking for alloca" >&5
6246echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6247if test "${ac_cv_func_alloca_works+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6249else
42ecbf5e
DJ
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
252b5132
RH
6256#ifdef __GNUC__
6257# define alloca __builtin_alloca
6258#else
6259# ifdef _MSC_VER
6260# include <malloc.h>
6261# define alloca _alloca
6262# else
6263# if HAVE_ALLOCA_H
6264# include <alloca.h>
6265# else
6266# ifdef _AIX
6267 #pragma alloca
6268# else
6269# ifndef alloca /* predefined by HP cc +Olibcalls */
6270char *alloca ();
6271# endif
6272# endif
6273# endif
6274# endif
6275#endif
6276
42ecbf5e
DJ
6277int
6278main ()
6279{
6280char *p = (char *) alloca (1);
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext conftest$ac_exeext
6286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
b7d4af3a
JW
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
42ecbf5e
DJ
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
252b5132
RH
6307 ac_cv_func_alloca_works=yes
6308else
42ecbf5e
DJ
6309 echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312ac_cv_func_alloca_works=no
252b5132 6313fi
42ecbf5e
DJ
6314rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
252b5132 6316fi
42ecbf5e
DJ
6317echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6318echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6319
252b5132 6320if test $ac_cv_func_alloca_works = yes; then
e5a52504 6321
42ecbf5e
DJ
6322cat >>confdefs.h <<\_ACEOF
6323#define HAVE_ALLOCA 1
6324_ACEOF
e5a52504 6325
42ecbf5e 6326else
d15b04bd 6327 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
6328# that cause trouble. Some versions do not even contain alloca or
6329# contain a buggy version. If you still want to use their alloca,
6330# use ar to extract alloca.o from them instead of compiling alloca.c.
6331
6332ALLOCA=alloca.$ac_objext
6333
6334cat >>confdefs.h <<\_ACEOF
252b5132 6335#define C_ALLOCA 1
42ecbf5e 6336_ACEOF
252b5132
RH
6337
6338
42ecbf5e
DJ
6339echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6340echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6341if test "${ac_cv_os_cray+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6343else
42ecbf5e
DJ
6344 cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
252b5132
RH
6350#if defined(CRAY) && ! defined(CRAY2)
6351webecray
6352#else
6353wenotbecray
6354#endif
6355
42ecbf5e 6356_ACEOF
252b5132 6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 6358 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6359 ac_cv_os_cray=yes
6360else
252b5132
RH
6361 ac_cv_os_cray=no
6362fi
6363rm -f conftest*
6364
6365fi
42ecbf5e
DJ
6366echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6367echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 6368if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
6369 for ac_func in _getb67 GETB67 getb67; do
6370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6371echo "$as_me:$LINENO: checking for $ac_func" >&5
6372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6373if eval "test \"\${$as_ac_var+set}\" = set"; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6384#define $ac_func innocuous_$ac_func
6385
252b5132 6386/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6387 which can conflict with char $ac_func (); below.
6388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 <limits.h> exists even on freestanding compilers. */
6390
6391#ifdef __STDC__
6392# include <limits.h>
6393#else
6394# include <assert.h>
6395#endif
d15b04bd 6396
42ecbf5e 6397#undef $ac_func
d15b04bd 6398
42ecbf5e
DJ
6399/* Override any gcc2 internal prototype to avoid an error. */
6400#ifdef __cplusplus
6401extern "C"
6402{
6403#endif
6404/* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406char $ac_func ();
252b5132
RH
6407/* The GNU C library defines this for functions which it implements
6408 to always fail with ENOSYS. Some functions are actually named
6409 something starting with __ and the normal name is an alias. */
6410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411choke me
6412#else
42ecbf5e
DJ
6413char (*f) () = $ac_func;
6414#endif
6415#ifdef __cplusplus
6416}
252b5132
RH
6417#endif
6418
42ecbf5e
DJ
6419int
6420main ()
6421{
6422return f != $ac_func;
6423 ;
6424 return 0;
6425}
6426_ACEOF
6427rm -f conftest.$ac_objext conftest$ac_exeext
6428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
b7d4af3a
JW
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
42ecbf5e
DJ
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 eval "$as_ac_var=yes"
6450else
6451 echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454eval "$as_ac_var=no"
6455fi
6456rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458fi
6459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6461if test `eval echo '${'$as_ac_var'}'` = yes; then
6462
6463cat >>confdefs.h <<_ACEOF
252b5132 6464#define CRAY_STACKSEG_END $ac_func
42ecbf5e 6465_ACEOF
252b5132 6466
42ecbf5e 6467 break
252b5132
RH
6468fi
6469
42ecbf5e 6470 done
252b5132
RH
6471fi
6472
42ecbf5e
DJ
6473echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6474echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6475if test "${ac_cv_c_stack_direction+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6477else
6478 if test "$cross_compiling" = yes; then
6479 ac_cv_c_stack_direction=0
6480else
42ecbf5e
DJ
6481 cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487int
252b5132
RH
6488find_stack_direction ()
6489{
6490 static char *addr = 0;
6491 auto char dummy;
6492 if (addr == 0)
6493 {
6494 addr = &dummy;
6495 return find_stack_direction ();
6496 }
6497 else
6498 return (&dummy > addr) ? 1 : -1;
6499}
42ecbf5e
DJ
6500
6501int
252b5132
RH
6502main ()
6503{
42ecbf5e 6504 exit (find_stack_direction () < 0);
252b5132 6505}
42ecbf5e
DJ
6506_ACEOF
6507rm -f conftest$ac_exeext
6508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509 (eval $ac_link) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
252b5132
RH
6518 ac_cv_c_stack_direction=1
6519else
42ecbf5e
DJ
6520 echo "$as_me: program exited with status $ac_status" >&5
6521echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
6524( exit $ac_status )
6525ac_cv_c_stack_direction=-1
252b5132 6526fi
42ecbf5e 6527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6528fi
252b5132 6529fi
42ecbf5e
DJ
6530echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6531echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6532
42ecbf5e 6533cat >>confdefs.h <<_ACEOF
252b5132 6534#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
6535_ACEOF
6536
252b5132
RH
6537
6538fi
6539
42ecbf5e
DJ
6540
6541
6542for ac_header in stdlib.h unistd.h
252b5132 6543do
42ecbf5e
DJ
6544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550fi
6551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553else
6554 # Is the header compilable?
6555echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h. */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h. */
6563$ac_includes_default
6564#include <$ac_header>
6565_ACEOF
6566rm -f conftest.$ac_objext
6567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
b7d4af3a
JW
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
42ecbf5e
DJ
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_header_compiler=yes
6589else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593ac_header_compiler=no
6594fi
6595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597echo "${ECHO_T}$ac_header_compiler" >&6
6598
6599# Is the header present?
6600echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h. */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h. */
6608#include <$ac_header>
6609_ACEOF
6610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } >/dev/null; then
6618 if test -s conftest.err; then
6619 ac_cpp_err=$ac_c_preproc_warn_flag
6620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6621 else
6622 ac_cpp_err=
6623 fi
252b5132 6624else
42ecbf5e 6625 ac_cpp_err=yes
252b5132 6626fi
42ecbf5e
DJ
6627if test -z "$ac_cpp_err"; then
6628 ac_header_preproc=yes
6629else
6630 echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ac_header_preproc=no
252b5132 6634fi
42ecbf5e
DJ
6635rm -f conftest.err conftest.$ac_ext
6636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637echo "${ECHO_T}$ac_header_preproc" >&6
6638
6639# So? What about this header?
6640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 yes:no: )
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6646 ac_header_preproc=yes
6647 ;;
6648 no:yes:* )
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6652echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6656echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6661 (
6662 cat <<\_ASBOX
6663## ------------------------------------------ ##
6664## Report this to the AC_PACKAGE_NAME lists. ##
6665## ------------------------------------------ ##
6666_ASBOX
6667 ) |
6668 sed "s/^/$as_me: WARNING: /" >&2
6669 ;;
6670esac
6671echo "$as_me:$LINENO: checking for $ac_header" >&5
6672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6675else
42ecbf5e 6676 eval "$as_ac_Header=\$ac_header_preproc"
e5a52504 6677fi
42ecbf5e
DJ
6678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6680
6681fi
6682if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685_ACEOF
6686
6687fi
6688
252b5132
RH
6689done
6690
42ecbf5e 6691
252b5132
RH
6692for ac_func in getpagesize
6693do
42ecbf5e
DJ
6694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6695echo "$as_me:$LINENO: checking for $ac_func" >&5
6696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_var+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h. */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h. */
6706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6708#define $ac_func innocuous_$ac_func
6709
252b5132 6710/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6711 which can conflict with char $ac_func (); below.
6712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713 <limits.h> exists even on freestanding compilers. */
6714
6715#ifdef __STDC__
6716# include <limits.h>
6717#else
6718# include <assert.h>
6719#endif
d15b04bd 6720
42ecbf5e 6721#undef $ac_func
d15b04bd 6722
42ecbf5e
DJ
6723/* Override any gcc2 internal prototype to avoid an error. */
6724#ifdef __cplusplus
6725extern "C"
6726{
6727#endif
6728/* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730char $ac_func ();
252b5132
RH
6731/* The GNU C library defines this for functions which it implements
6732 to always fail with ENOSYS. Some functions are actually named
6733 something starting with __ and the normal name is an alias. */
6734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735choke me
6736#else
42ecbf5e
DJ
6737char (*f) () = $ac_func;
6738#endif
6739#ifdef __cplusplus
6740}
252b5132
RH
6741#endif
6742
42ecbf5e
DJ
6743int
6744main ()
6745{
6746return f != $ac_func;
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext conftest$ac_exeext
6752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
b7d4af3a
JW
6760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
42ecbf5e
DJ
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 eval "$as_ac_var=yes"
6774else
6775 echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778eval "$as_ac_var=no"
6779fi
6780rm -f conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6782fi
6783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6785if test `eval echo '${'$as_ac_var'}'` = yes; then
6786 cat >>confdefs.h <<_ACEOF
6787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6788_ACEOF
252b5132 6789
252b5132
RH
6790fi
6791done
6792
42ecbf5e
DJ
6793echo "$as_me:$LINENO: checking for working mmap" >&5
6794echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6795if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6797else
6798 if test "$cross_compiling" = yes; then
6799 ac_cv_func_mmap_fixed_mapped=no
6800else
42ecbf5e
DJ
6801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807$ac_includes_default
6808/* malloc might have been renamed as rpl_malloc. */
6809#undef malloc
252b5132
RH
6810
6811/* Thanks to Mike Haertel and Jim Avera for this test.
6812 Here is a matrix of mmap possibilities:
6813 mmap private not fixed
6814 mmap private fixed at somewhere currently unmapped
6815 mmap private fixed at somewhere already mapped
6816 mmap shared not fixed
6817 mmap shared fixed at somewhere currently unmapped
6818 mmap shared fixed at somewhere already mapped
6819 For private mappings, we should verify that changes cannot be read()
6820 back from the file, nor mmap's back from the file at a different
6821 address. (There have been systems where private was not correctly
6822 implemented like the infamous i386 svr4.0, and systems where the
42ecbf5e 6823 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6824 like early versions of FreeBSD and possibly contemporary NetBSD.)
6825 For shared mappings, we should conversely verify that changes get
42ecbf5e 6826 propagated back to all the places they're supposed to be.
252b5132
RH
6827
6828 Grep wants private fixed already mapped.
6829 The main things grep needs to know about mmap are:
6830 * does it exist and is it safe to write into the mmap'd area
6831 * how to use it (BSD variants) */
42ecbf5e 6832
252b5132
RH
6833#include <fcntl.h>
6834#include <sys/mman.h>
6835
42ecbf5e
DJ
6836#if !STDC_HEADERS && !HAVE_STDLIB_H
6837char *malloc ();
6838#endif
d15b04bd 6839
42ecbf5e
DJ
6840/* This mess was copied from the GNU getpagesize.h. */
6841#if !HAVE_GETPAGESIZE
252b5132 6842/* Assume that all systems that can run configure have sys/param.h. */
42ecbf5e 6843# if !HAVE_SYS_PARAM_H
252b5132
RH
6844# define HAVE_SYS_PARAM_H 1
6845# endif
6846
6847# ifdef _SC_PAGESIZE
6848# define getpagesize() sysconf(_SC_PAGESIZE)
6849# else /* no _SC_PAGESIZE */
42ecbf5e 6850# if HAVE_SYS_PARAM_H
252b5132
RH
6851# include <sys/param.h>
6852# ifdef EXEC_PAGESIZE
6853# define getpagesize() EXEC_PAGESIZE
6854# else /* no EXEC_PAGESIZE */
6855# ifdef NBPG
6856# define getpagesize() NBPG * CLSIZE
6857# ifndef CLSIZE
6858# define CLSIZE 1
6859# endif /* no CLSIZE */
6860# else /* no NBPG */
6861# ifdef NBPC
6862# define getpagesize() NBPC
6863# else /* no NBPC */
6864# ifdef PAGESIZE
6865# define getpagesize() PAGESIZE
6866# endif /* PAGESIZE */
6867# endif /* no NBPC */
6868# endif /* no NBPG */
6869# endif /* no EXEC_PAGESIZE */
6870# else /* no HAVE_SYS_PARAM_H */
6871# define getpagesize() 8192 /* punt totally */
6872# endif /* no HAVE_SYS_PARAM_H */
6873# endif /* no _SC_PAGESIZE */
6874
6875#endif /* no HAVE_GETPAGESIZE */
6876
252b5132 6877int
42ecbf5e 6878main ()
252b5132 6879{
42ecbf5e
DJ
6880 char *data, *data2, *data3;
6881 int i, pagesize;
6882 int fd;
6883
6884 pagesize = getpagesize ();
6885
6886 /* First, make a file with some known garbage in it. */
6887 data = (char *) malloc (pagesize);
6888 if (!data)
6889 exit (1);
6890 for (i = 0; i < pagesize; ++i)
6891 *(data + i) = rand ();
6892 umask (0);
6893 fd = creat ("conftest.mmap", 0600);
6894 if (fd < 0)
6895 exit (1);
6896 if (write (fd, data, pagesize) != pagesize)
6897 exit (1);
6898 close (fd);
6899
6900 /* Next, try to mmap the file at a fixed address which already has
6901 something else allocated at it. If we can, also make sure that
6902 we see the same garbage. */
6903 fd = open ("conftest.mmap", O_RDWR);
6904 if (fd < 0)
6905 exit (1);
6906 data2 = (char *) malloc (2 * pagesize);
6907 if (!data2)
6908 exit (1);
6909 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6912 exit (1);
6913 for (i = 0; i < pagesize; ++i)
6914 if (*(data + i) != *(data2 + i))
6915 exit (1);
6916
6917 /* Finally, make sure that changes to the mapped area do not
6918 percolate back to the file as seen by read(). (This is a bug on
6919 some variants of i386 svr4.0.) */
6920 for (i = 0; i < pagesize; ++i)
6921 *(data2 + i) = *(data2 + i) + 1;
6922 data3 = (char *) malloc (pagesize);
6923 if (!data3)
6924 exit (1);
6925 if (read (fd, data3, pagesize) != pagesize)
6926 exit (1);
6927 for (i = 0; i < pagesize; ++i)
6928 if (*(data + i) != *(data3 + i))
6929 exit (1);
6930 close (fd);
6931 exit (0);
6932}
6933_ACEOF
6934rm -f conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
252b5132
RH
6945 ac_cv_func_mmap_fixed_mapped=yes
6946else
42ecbf5e
DJ
6947 echo "$as_me: program exited with status $ac_status" >&5
6948echo "$as_me: failed program was:" >&5
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
6951( exit $ac_status )
6952ac_cv_func_mmap_fixed_mapped=no
252b5132 6953fi
42ecbf5e 6954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6955fi
252b5132 6956fi
42ecbf5e
DJ
6957echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6958echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
d15b04bd 6959if test $ac_cv_func_mmap_fixed_mapped = yes; then
42ecbf5e
DJ
6960
6961cat >>confdefs.h <<\_ACEOF
252b5132 6962#define HAVE_MMAP 1
42ecbf5e 6963_ACEOF
252b5132
RH
6964
6965fi
42ecbf5e
DJ
6966rm -f conftest.mmap
6967
6968
6969
6970
6971
6972
6973
6974
6975
e5a52504 6976
42ecbf5e
DJ
6977
6978for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6979unistd.h values.h sys/param.h
6980do
42ecbf5e
DJ
6981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982if eval "test \"\${$as_ac_Header+set}\" = set"; then
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987fi
6988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6990else
6991 # Is the header compilable?
6992echo "$as_me:$LINENO: checking $ac_header usability" >&5
6993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6994cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000$ac_includes_default
7001#include <$ac_header>
7002_ACEOF
7003rm -f conftest.$ac_objext
7004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
b7d4af3a
JW
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
42ecbf5e
DJ
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_header_compiler=yes
7026else
7027 echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030ac_header_compiler=no
7031fi
7032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034echo "${ECHO_T}$ac_header_compiler" >&6
7035
7036# Is the header present?
7037echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7039cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045#include <$ac_header>
7046_ACEOF
7047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null; then
7055 if test -s conftest.err; then
7056 ac_cpp_err=$ac_c_preproc_warn_flag
7057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7058 else
7059 ac_cpp_err=
7060 fi
252b5132 7061else
42ecbf5e 7062 ac_cpp_err=yes
252b5132 7063fi
42ecbf5e
DJ
7064if test -z "$ac_cpp_err"; then
7065 ac_header_preproc=yes
7066else
7067 echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 ac_header_preproc=no
252b5132 7071fi
42ecbf5e
DJ
7072rm -f conftest.err conftest.$ac_ext
7073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074echo "${ECHO_T}$ac_header_preproc" >&6
7075
7076# So? What about this header?
7077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 yes:no: )
7079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083 ac_header_preproc=yes
7084 ;;
7085 no:yes:* )
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7098 (
7099 cat <<\_ASBOX
7100## ------------------------------------------ ##
7101## Report this to the AC_PACKAGE_NAME lists. ##
7102## ------------------------------------------ ##
7103_ASBOX
7104 ) |
7105 sed "s/^/$as_me: WARNING: /" >&2
7106 ;;
7107esac
7108echo "$as_me:$LINENO: checking for $ac_header" >&5
7109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7110if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7112else
42ecbf5e
DJ
7113 eval "$as_ac_Header=\$ac_header_preproc"
7114fi
7115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117
e5a52504 7118fi
42ecbf5e
DJ
7119if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122_ACEOF
7123
7124fi
7125
252b5132
RH
7126done
7127
42ecbf5e
DJ
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7139__argz_count __argz_stringify __argz_next
7140do
42ecbf5e
DJ
7141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7142echo "$as_me:$LINENO: checking for $ac_func" >&5
7143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7144if eval "test \"\${$as_ac_var+set}\" = set"; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155#define $ac_func innocuous_$ac_func
7156
252b5132 7157/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7158 which can conflict with char $ac_func (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
d15b04bd 7161
42ecbf5e
DJ
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
d15b04bd 7167
42ecbf5e
DJ
7168#undef $ac_func
7169
7170/* Override any gcc2 internal prototype to avoid an error. */
7171#ifdef __cplusplus
7172extern "C"
7173{
7174#endif
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char $ac_func ();
252b5132
RH
7178/* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182choke me
7183#else
42ecbf5e
DJ
7184char (*f) () = $ac_func;
7185#endif
7186#ifdef __cplusplus
7187}
252b5132
RH
7188#endif
7189
42ecbf5e
DJ
7190int
7191main ()
7192{
7193return f != $ac_func;
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
b7d4af3a
JW
7207 { ac_try='test -z "$ac_c_werror_flag"
7208 || test ! -s conftest.err'
42ecbf5e
DJ
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; } &&
7214 { ac_try='test -s conftest$ac_exeext'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7220 eval "$as_ac_var=yes"
7221else
7222 echo "$as_me: failed program was:" >&5
7223sed 's/^/| /' conftest.$ac_ext >&5
7224
7225eval "$as_ac_var=no"
7226fi
7227rm -f conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229fi
7230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7232if test `eval echo '${'$as_ac_var'}'` = yes; then
7233 cat >>confdefs.h <<_ACEOF
7234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7235_ACEOF
252b5132 7236
252b5132
RH
7237fi
7238done
7239
7240
7241 if test "${ac_cv_func_stpcpy+set}" != "set"; then
42ecbf5e
DJ
7242
7243for ac_func in stpcpy
252b5132 7244do
42ecbf5e
DJ
7245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7246echo "$as_me:$LINENO: checking for $ac_func" >&5
7247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7248if eval "test \"\${$as_ac_var+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h. */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h. */
7257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7259#define $ac_func innocuous_$ac_func
7260
252b5132 7261/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
d15b04bd 7265
42ecbf5e
DJ
7266#ifdef __STDC__
7267# include <limits.h>
7268#else
7269# include <assert.h>
7270#endif
d15b04bd 7271
42ecbf5e
DJ
7272#undef $ac_func
7273
7274/* Override any gcc2 internal prototype to avoid an error. */
7275#ifdef __cplusplus
7276extern "C"
7277{
7278#endif
7279/* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7281char $ac_func ();
252b5132
RH
7282/* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286choke me
7287#else
42ecbf5e
DJ
7288char (*f) () = $ac_func;
7289#endif
7290#ifdef __cplusplus
7291}
252b5132
RH
7292#endif
7293
42ecbf5e
DJ
7294int
7295main ()
7296{
7297return f != $ac_func;
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext conftest$ac_exeext
7303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
b7d4af3a
JW
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
42ecbf5e
DJ
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 eval "$as_ac_var=yes"
7325else
7326 echo "$as_me: failed program was:" >&5
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
7329eval "$as_ac_var=no"
7330fi
7331rm -f conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7333fi
7334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7336if test `eval echo '${'$as_ac_var'}'` = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7339_ACEOF
252b5132 7340
252b5132
RH
7341fi
7342done
7343
7344 fi
7345 if test "${ac_cv_func_stpcpy}" = "yes"; then
42ecbf5e
DJ
7346
7347cat >>confdefs.h <<\_ACEOF
252b5132 7348#define HAVE_STPCPY 1
42ecbf5e 7349_ACEOF
252b5132
RH
7350
7351 fi
7352
7353 if test $ac_cv_header_locale_h = yes; then
42ecbf5e
DJ
7354 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7355echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7356if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 cat >conftest.$ac_ext <<_ACEOF
7360/* confdefs.h. */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h. */
252b5132 7365#include <locale.h>
42ecbf5e
DJ
7366int
7367main ()
7368{
252b5132 7369return LC_MESSAGES
42ecbf5e
DJ
7370 ;
7371 return 0;
7372}
7373_ACEOF
7374rm -f conftest.$ac_objext conftest$ac_exeext
7375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
b7d4af3a
JW
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
42ecbf5e
DJ
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
252b5132
RH
7396 am_cv_val_LC_MESSAGES=yes
7397else
42ecbf5e
DJ
7398 echo "$as_me: failed program was:" >&5
7399sed 's/^/| /' conftest.$ac_ext >&5
7400
7401am_cv_val_LC_MESSAGES=no
252b5132 7402fi
42ecbf5e
DJ
7403rm -f conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
252b5132 7405fi
42ecbf5e
DJ
7406echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7407echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
d15b04bd 7408 if test $am_cv_val_LC_MESSAGES = yes; then
42ecbf5e
DJ
7409
7410cat >>confdefs.h <<\_ACEOF
252b5132 7411#define HAVE_LC_MESSAGES 1
42ecbf5e 7412_ACEOF
252b5132
RH
7413
7414 fi
7415 fi
42ecbf5e
DJ
7416 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7417echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7418 # Check whether --enable-nls or --disable-nls was given.
7419if test "${enable_nls+set}" = set; then
7420 enableval="$enable_nls"
7421 USE_NLS=$enableval
7422else
7423 USE_NLS=yes
42ecbf5e
DJ
7424fi;
7425 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7426echo "${ECHO_T}$USE_NLS" >&6
252b5132 7427
252b5132
RH
7428
7429 USE_INCLUDED_LIBINTL=no
7430
7431 if test "$USE_NLS" = "yes"; then
42ecbf5e
DJ
7432 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7433echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7434
7435# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7436if test "${with_included_gettext+set}" = set; then
7437 withval="$with_included_gettext"
7438 nls_cv_force_use_gnu_gettext=$withval
7439else
7440 nls_cv_force_use_gnu_gettext=no
42ecbf5e
DJ
7441fi;
7442 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7443echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7444
7445 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7446 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7447 nls_cv_header_intl=
d15b04bd 7448 nls_cv_header_libgt=
c46f8c51 7449 CATOBJEXT=
e5a52504 7450
42ecbf5e
DJ
7451 if test "${ac_cv_header_libintl_h+set}" = set; then
7452 echo "$as_me:$LINENO: checking for libintl.h" >&5
7453echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7454if test "${ac_cv_header_libintl_h+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456fi
7457echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7458echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7459else
7460 # Is the header compilable?
7461echo "$as_me:$LINENO: checking libintl.h usability" >&5
7462echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7463cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h. */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h. */
7469$ac_includes_default
d15b04bd 7470#include <libintl.h>
42ecbf5e
DJ
7471_ACEOF
7472rm -f conftest.$ac_objext
7473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
b7d4af3a
JW
7481 { ac_try='test -z "$ac_c_werror_flag"
7482 || test ! -s conftest.err'
42ecbf5e
DJ
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try='test -s conftest.$ac_objext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_header_compiler=yes
7495else
7496 echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499ac_header_compiler=no
7500fi
7501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503echo "${ECHO_T}$ac_header_compiler" >&6
7504
7505# Is the header present?
7506echo "$as_me:$LINENO: checking libintl.h presence" >&5
7507echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7514#include <libintl.h>
7515_ACEOF
7516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } >/dev/null; then
7524 if test -s conftest.err; then
7525 ac_cpp_err=$ac_c_preproc_warn_flag
7526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7527 else
7528 ac_cpp_err=
7529 fi
252b5132 7530else
42ecbf5e 7531 ac_cpp_err=yes
252b5132 7532fi
42ecbf5e
DJ
7533if test -z "$ac_cpp_err"; then
7534 ac_header_preproc=yes
7535else
7536 echo "$as_me: failed program was:" >&5
7537sed 's/^/| /' conftest.$ac_ext >&5
7538
7539 ac_header_preproc=no
252b5132 7540fi
42ecbf5e
DJ
7541rm -f conftest.err conftest.$ac_ext
7542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543echo "${ECHO_T}$ac_header_preproc" >&6
7544
7545# So? What about this header?
7546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7547 yes:no: )
7548 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7549echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7551echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7552 ac_header_preproc=yes
7553 ;;
7554 no:yes:* )
7555 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7556echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7558echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7560echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7562echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7564echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7566echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7567 (
7568 cat <<\_ASBOX
7569## ------------------------------------------ ##
7570## Report this to the AC_PACKAGE_NAME lists. ##
7571## ------------------------------------------ ##
7572_ASBOX
7573 ) |
7574 sed "s/^/$as_me: WARNING: /" >&2
7575 ;;
7576esac
7577echo "$as_me:$LINENO: checking for libintl.h" >&5
7578echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7579if test "${ac_cv_header_libintl_h+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 ac_cv_header_libintl_h=$ac_header_preproc
7583fi
7584echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7585echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7586
7587fi
7588if test $ac_cv_header_libintl_h = yes; then
7589 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7590echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7591if test "${gt_cv_func_gettext_libc+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7593else
42ecbf5e
DJ
7594 cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
252b5132 7600#include <libintl.h>
42ecbf5e
DJ
7601int
7602main ()
7603{
252b5132 7604return (int) gettext ("")
42ecbf5e
DJ
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
252b5132
RH
7631 gt_cv_func_gettext_libc=yes
7632else
42ecbf5e
DJ
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636gt_cv_func_gettext_libc=no
252b5132 7637fi
42ecbf5e
DJ
7638rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
252b5132 7640fi
42ecbf5e
DJ
7641echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7642echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7643
7644 if test "$gt_cv_func_gettext_libc" != "yes"; then
42ecbf5e
DJ
7645 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7646echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7647if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7649else
42ecbf5e 7650 ac_check_lib_save_LIBS=$LIBS
252b5132 7651LIBS="-lintl $LIBS"
42ecbf5e
DJ
7652cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658
252b5132 7659/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7660#ifdef __cplusplus
7661extern "C"
7662#endif
252b5132 7663/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7664 builtin and then its argument prototype would still apply. */
7665char bindtextdomain ();
7666int
7667main ()
7668{
7669bindtextdomain ();
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext conftest$ac_exeext
7675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
b7d4af3a
JW
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
42ecbf5e
DJ
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_lib_intl_bindtextdomain=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701ac_cv_lib_intl_bindtextdomain=no
7702fi
7703rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705LIBS=$ac_check_lib_save_LIBS
7706fi
7707echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7708echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7709if test $ac_cv_lib_intl_bindtextdomain = yes; then
7710 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7711echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7712if test "${gt_cv_func_gettext_libintl+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715 cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h. */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h. */
d15b04bd 7721
42ecbf5e
DJ
7722int
7723main ()
7724{
252b5132 7725return (int) gettext ("")
42ecbf5e
DJ
7726 ;
7727 return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext conftest$ac_exeext
7731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
b7d4af3a
JW
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
42ecbf5e
DJ
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
252b5132
RH
7752 gt_cv_func_gettext_libintl=yes
7753else
42ecbf5e
DJ
7754 echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7757gt_cv_func_gettext_libintl=no
252b5132 7758fi
42ecbf5e
DJ
7759rm -f conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
252b5132 7761fi
42ecbf5e
DJ
7762echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7763echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7764fi
7765
7766 fi
7767
7768 if test "$gt_cv_func_gettext_libc" = "yes" \
7769 || test "$gt_cv_func_gettext_libintl" = "yes"; then
42ecbf5e
DJ
7770
7771cat >>confdefs.h <<\_ACEOF
252b5132 7772#define HAVE_GETTEXT 1
42ecbf5e 7773_ACEOF
252b5132
RH
7774
7775 # Extract the first word of "msgfmt", so it can be a program name with args.
7776set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
7777echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779if test "${ac_cv_path_MSGFMT+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7781else
7782 case "$MSGFMT" in
7783 /*)
7784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7785 ;;
7786 *)
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7788 for ac_dir in $PATH; do
7789 test -z "$ac_dir" && ac_dir=.
7790 if test -f $ac_dir/$ac_word; then
7791 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7792 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7793 break
7794 fi
7795 fi
7796 done
7797 IFS="$ac_save_ifs"
7798 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7799 ;;
7800esac
7801fi
7802MSGFMT="$ac_cv_path_MSGFMT"
7803if test -n "$MSGFMT"; then
42ecbf5e
DJ
7804 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7805echo "${ECHO_T}$MSGFMT" >&6
252b5132 7806else
42ecbf5e
DJ
7807 echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6
252b5132
RH
7809fi
7810 if test "$MSGFMT" != "no"; then
42ecbf5e
DJ
7811
7812for ac_func in dcgettext
252b5132 7813do
42ecbf5e
DJ
7814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7815echo "$as_me:$LINENO: checking for $ac_func" >&5
7816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7817if eval "test \"\${$as_ac_var+set}\" = set"; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820 cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
7826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7828#define $ac_func innocuous_$ac_func
7829
252b5132 7830/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7831 which can conflict with char $ac_func (); below.
7832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833 <limits.h> exists even on freestanding compilers. */
d15b04bd 7834
42ecbf5e
DJ
7835#ifdef __STDC__
7836# include <limits.h>
7837#else
7838# include <assert.h>
7839#endif
d15b04bd 7840
42ecbf5e
DJ
7841#undef $ac_func
7842
7843/* Override any gcc2 internal prototype to avoid an error. */
7844#ifdef __cplusplus
7845extern "C"
7846{
7847#endif
7848/* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7850char $ac_func ();
252b5132
RH
7851/* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7855choke me
7856#else
42ecbf5e
DJ
7857char (*f) () = $ac_func;
7858#endif
7859#ifdef __cplusplus
7860}
252b5132
RH
7861#endif
7862
42ecbf5e
DJ
7863int
7864main ()
7865{
7866return f != $ac_func;
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
b7d4af3a
JW
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
42ecbf5e
DJ
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 eval "$as_ac_var=yes"
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898eval "$as_ac_var=no"
7899fi
7900rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902fi
7903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7905if test `eval echo '${'$as_ac_var'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908_ACEOF
252b5132 7909
252b5132
RH
7910fi
7911done
7912
7913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7914set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
7915echo "$as_me:$LINENO: checking for $ac_word" >&5
7916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917if test "${ac_cv_path_GMSGFMT+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7919else
42ecbf5e
DJ
7920 case $GMSGFMT in
7921 [\\/]* | ?:[\\/]*)
252b5132
RH
7922 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7923 ;;
252b5132 7924 *)
42ecbf5e
DJ
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936done
7937done
7938
252b5132
RH
7939 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7940 ;;
7941esac
7942fi
42ecbf5e
DJ
7943GMSGFMT=$ac_cv_path_GMSGFMT
7944
252b5132 7945if test -n "$GMSGFMT"; then
42ecbf5e
DJ
7946 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7947echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7948else
42ecbf5e
DJ
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
252b5132
RH
7951fi
7952
7953 # Extract the first word of "xgettext", so it can be a program name with args.
7954set dummy xgettext; ac_word=$2
42ecbf5e
DJ
7955echo "$as_me:$LINENO: checking for $ac_word" >&5
7956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7957if test "${ac_cv_path_XGETTEXT+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7959else
7960 case "$XGETTEXT" in
7961 /*)
7962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7963 ;;
7964 *)
7965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7966 for ac_dir in $PATH; do
7967 test -z "$ac_dir" && ac_dir=.
7968 if test -f $ac_dir/$ac_word; then
7969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7971 break
7972 fi
7973 fi
7974 done
7975 IFS="$ac_save_ifs"
7976 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7977 ;;
7978esac
7979fi
7980XGETTEXT="$ac_cv_path_XGETTEXT"
7981if test -n "$XGETTEXT"; then
42ecbf5e
DJ
7982 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7983echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7984else
42ecbf5e
DJ
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
252b5132
RH
7987fi
7988
42ecbf5e
DJ
7989 cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h. */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h. */
252b5132 7995
42ecbf5e
DJ
7996int
7997main ()
7998{
252b5132
RH
7999extern int _nl_msg_cat_cntr;
8000 return _nl_msg_cat_cntr
42ecbf5e
DJ
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext conftest$ac_exeext
8006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
b7d4af3a
JW
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
42ecbf5e
DJ
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
252b5132
RH
8027 CATOBJEXT=.gmo
8028 DATADIRNAME=share
8029else
42ecbf5e
DJ
8030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033CATOBJEXT=.mo
252b5132
RH
8034 DATADIRNAME=lib
8035fi
42ecbf5e
DJ
8036rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8038 INSTOBJEXT=.mo
8039 fi
8040 fi
42ecbf5e 8041
252b5132
RH
8042fi
8043
8044
42ecbf5e
DJ
8045
8046
c46f8c51
AC
8047 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8048 # Neither gettext nor catgets in included in the C library.
8049 # Fall back on GNU gettext library (assuming it is present).
8050 nls_cv_use_gnu_gettext=yes
252b5132
RH
8051 fi
8052 fi
8053
8054 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8055 INTLOBJS="\$(GETTOBJS)"
8056 # Extract the first word of "msgfmt", so it can be a program name with args.
8057set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
8058echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060if test "${ac_cv_path_MSGFMT+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8062else
8063 case "$MSGFMT" in
8064 /*)
8065 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8066 ;;
8067 *)
8068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8069 for ac_dir in $PATH; do
8070 test -z "$ac_dir" && ac_dir=.
8071 if test -f $ac_dir/$ac_word; then
8072 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8073 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8074 break
8075 fi
8076 fi
8077 done
8078 IFS="$ac_save_ifs"
8079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8080 ;;
8081esac
8082fi
8083MSGFMT="$ac_cv_path_MSGFMT"
8084if test -n "$MSGFMT"; then
42ecbf5e
DJ
8085 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8086echo "${ECHO_T}$MSGFMT" >&6
252b5132 8087else
42ecbf5e
DJ
8088 echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6
252b5132
RH
8090fi
8091
8092 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8093set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
8094echo "$as_me:$LINENO: checking for $ac_word" >&5
8095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8096if test "${ac_cv_path_GMSGFMT+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8098else
42ecbf5e
DJ
8099 case $GMSGFMT in
8100 [\\/]* | ?:[\\/]*)
252b5132
RH
8101 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8102 ;;
252b5132 8103 *)
42ecbf5e
DJ
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116done
8117
252b5132
RH
8118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8119 ;;
8120esac
8121fi
42ecbf5e
DJ
8122GMSGFMT=$ac_cv_path_GMSGFMT
8123
252b5132 8124if test -n "$GMSGFMT"; then
42ecbf5e
DJ
8125 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8126echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8127else
42ecbf5e
DJ
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
252b5132
RH
8130fi
8131
8132 # Extract the first word of "xgettext", so it can be a program name with args.
8133set dummy xgettext; ac_word=$2
42ecbf5e
DJ
8134echo "$as_me:$LINENO: checking for $ac_word" >&5
8135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8136if test "${ac_cv_path_XGETTEXT+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8138else
8139 case "$XGETTEXT" in
8140 /*)
8141 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8142 ;;
8143 *)
8144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8145 for ac_dir in $PATH; do
8146 test -z "$ac_dir" && ac_dir=.
8147 if test -f $ac_dir/$ac_word; then
8148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8149 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8150 break
8151 fi
8152 fi
8153 done
8154 IFS="$ac_save_ifs"
8155 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8156 ;;
8157esac
8158fi
8159XGETTEXT="$ac_cv_path_XGETTEXT"
8160if test -n "$XGETTEXT"; then
42ecbf5e
DJ
8161 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8162echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8163else
42ecbf5e
DJ
8164 echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
252b5132
RH
8166fi
8167
42ecbf5e 8168
252b5132
RH
8169 USE_INCLUDED_LIBINTL=yes
8170 CATOBJEXT=.gmo
8171 INSTOBJEXT=.mo
8172 DATADIRNAME=share
8173 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8174 INTLLIBS=$INTLDEPS
8175 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8176 nls_cv_header_intl=libintl.h
8177 nls_cv_header_libgt=libgettext.h
8178 fi
8179
8180 if test "$XGETTEXT" != ":"; then
8181 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8182 : ;
8183 else
42ecbf5e
DJ
8184 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8185echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8186 XGETTEXT=":"
8187 fi
8188 fi
8189
8190 # We need to process the po/ directory.
8191 POSUB=po
8192 else
8193 DATADIRNAME=share
8194 nls_cv_header_intl=libintl.h
8195 nls_cv_header_libgt=libgettext.h
8196 fi
8197
8198 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8199 # because some of the sources are only built for this goal.
8200 if test "$PACKAGE" = gettext; then
8201 USE_NLS=yes
8202 USE_INCLUDED_LIBINTL=yes
8203 fi
8204
42ecbf5e
DJ
8205 for lang in $ALL_LINGUAS; do
8206 GMOFILES="$GMOFILES $lang.gmo"
8207 POFILES="$POFILES $lang.po"
8208 done
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
252b5132 8220
c46f8c51 8221 if test "x$CATOBJEXT" != "x"; then
42ecbf5e
DJ
8222
8223cat >>confdefs.h <<\_ACEOF
c46f8c51 8224#define ENABLE_NLS 1
42ecbf5e 8225_ACEOF
c46f8c51
AC
8226
8227 fi
42ecbf5e 8228
252b5132
RH
8229
8230 if test "x$CATOBJEXT" != "x"; then
8231 if test "x$ALL_LINGUAS" = "x"; then
8232 LINGUAS=
8233 else
42ecbf5e
DJ
8234 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8235echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8236 NEW_LINGUAS=
8237 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8238 case "$ALL_LINGUAS" in
8239 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8240 esac
8241 done
8242 LINGUAS=$NEW_LINGUAS
42ecbf5e
DJ
8243 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8244echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8245 fi
8246
8247 if test -n "$LINGUAS"; then
8248 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8249 fi
8250 fi
8251
8252 if test $ac_cv_header_locale_h = yes; then
8253 INCLUDE_LOCALE_H="#include <locale.h>"
8254 else
8255 INCLUDE_LOCALE_H="\
8256/* The system does not provide the header <locale.h>. Take care yourself. */"
8257 fi
42ecbf5e 8258
252b5132
RH
8259
8260 if test -f $srcdir/po2tbl.sed.in; then
8261 if test "$CATOBJEXT" = ".cat"; then
42ecbf5e
DJ
8262 if test "${ac_cv_header_linux_version_h+set}" = set; then
8263 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8264echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8265if test "${ac_cv_header_linux_version_h+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267fi
8268echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8269echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8270else
8271 # Is the header compilable?
8272echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8273echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8274cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280$ac_includes_default
e5a52504 8281#include <linux/version.h>
42ecbf5e
DJ
8282_ACEOF
8283rm -f conftest.$ac_objext
8284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
b7d4af3a
JW
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
42ecbf5e
DJ
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_header_compiler=yes
8306else
8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
8310ac_header_compiler=no
8311fi
8312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8314echo "${ECHO_T}$ac_header_compiler" >&6
8315
8316# Is the header present?
8317echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8318echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8319cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325#include <linux/version.h>
8326_ACEOF
8327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } >/dev/null; then
8335 if test -s conftest.err; then
8336 ac_cpp_err=$ac_c_preproc_warn_flag
8337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8338 else
8339 ac_cpp_err=
8340 fi
e5a52504 8341else
42ecbf5e 8342 ac_cpp_err=yes
e5a52504 8343fi
42ecbf5e
DJ
8344if test -z "$ac_cpp_err"; then
8345 ac_header_preproc=yes
8346else
8347 echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 ac_header_preproc=no
8351fi
8352rm -f conftest.err conftest.$ac_ext
8353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8354echo "${ECHO_T}$ac_header_preproc" >&6
8355
8356# So? What about this header?
8357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8358 yes:no: )
8359 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8360echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8362echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8363 ac_header_preproc=yes
8364 ;;
8365 no:yes:* )
8366 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8367echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8369echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8371echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8373echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8375echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8377echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8378 (
8379 cat <<\_ASBOX
8380## ------------------------------------------ ##
8381## Report this to the AC_PACKAGE_NAME lists. ##
8382## ------------------------------------------ ##
8383_ASBOX
8384 ) |
8385 sed "s/^/$as_me: WARNING: /" >&2
8386 ;;
8387esac
8388echo "$as_me:$LINENO: checking for linux/version.h" >&5
8389echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8390if test "${ac_cv_header_linux_version_h+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392else
8393 ac_cv_header_linux_version_h=$ac_header_preproc
e5a52504 8394fi
42ecbf5e
DJ
8395echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8396echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8397
8398fi
8399if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8400 msgformat=linux
8401else
42ecbf5e 8402 msgformat=xopen
252b5132
RH
8403fi
8404
8405
42ecbf5e 8406
252b5132
RH
8407 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8408 fi
8409 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8410 $srcdir/po2tbl.sed.in > po2tbl.sed
8411 fi
8412
8413 if test "$PACKAGE" = "gettext"; then
8414 GT_NO="#NO#"
8415 GT_YES=
8416 else
8417 GT_NO=
8418 GT_YES="#YES#"
8419 fi
42ecbf5e
DJ
8420
8421
252b5132
RH
8422
8423 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
42ecbf5e 8424
252b5132
RH
8425
8426 l=
42ecbf5e 8427
252b5132 8428
fcd8210c 8429 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8430 test -d po || mkdir po
8431 if test "x$srcdir" != "x."; then
8432 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8433 posrcprefix="$srcdir/"
8434 else
8435 posrcprefix="../$srcdir/"
8436 fi
8437 else
8438 posrcprefix="../"
8439 fi
8440 rm -f po/POTFILES
8441 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8442 < $srcdir/po/POTFILES.in > po/POTFILES
8443 fi
252b5132 8444
42ecbf5e
DJ
8445
8446echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8447echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8448 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8449if test "${enable_maintainer_mode+set}" = set; then
8450 enableval="$enable_maintainer_mode"
8451 USE_MAINTAINER_MODE=$enableval
8452else
8453 USE_MAINTAINER_MODE=no
42ecbf5e
DJ
8454fi;
8455 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8456echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 8457
252b5132
RH
8458
8459if test $USE_MAINTAINER_MODE = yes; then
8460 MAINTAINER_MODE_TRUE=
8461 MAINTAINER_MODE_FALSE='#'
8462else
8463 MAINTAINER_MODE_TRUE='#'
8464 MAINTAINER_MODE_FALSE=
8465fi
252b5132 8466
42ecbf5e 8467 MAINT=$MAINTAINER_MODE_TRUE
252b5132 8468
d15b04bd 8469
e5a52504 8470
d15b04bd 8471if test -n "$EXEEXT"; then
42ecbf5e
DJ
8472
8473cat >>confdefs.h <<\_ACEOF
2481e6a2 8474#define HAVE_EXECUTABLE_SUFFIX 1
42ecbf5e 8475_ACEOF
2481e6a2
ILT
8476
8477fi
42ecbf5e
DJ
8478
8479cat >>confdefs.h <<_ACEOF
bb0cb4db 8480#define EXECUTABLE_SUFFIX "${EXEEXT}"
42ecbf5e 8481_ACEOF
bb0cb4db 8482
252b5132
RH
8483
8484# host-specific stuff:
8485
8486HDEFINES=
8487
8488. ${srcdir}/../bfd/configure.host
8489
8490
8491AR=${AR-ar}
8492
42ecbf5e
DJ
8493if test -n "$ac_tool_prefix"; then
8494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8495set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8496echo "$as_me:$LINENO: checking for $ac_word" >&5
8497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8498if test "${ac_cv_prog_RANLIB+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8500else
8501 if test -n "$RANLIB"; then
8502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8503else
42ecbf5e
DJ
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515done
8516done
8517
252b5132
RH
8518fi
8519fi
42ecbf5e 8520RANLIB=$ac_cv_prog_RANLIB
252b5132 8521if test -n "$RANLIB"; then
42ecbf5e
DJ
8522 echo "$as_me:$LINENO: result: $RANLIB" >&5
8523echo "${ECHO_T}$RANLIB" >&6
8524else
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
8527fi
8528
8529fi
8530if test -z "$ac_cv_prog_RANLIB"; then
8531 ac_ct_RANLIB=$RANLIB
8532 # Extract the first word of "ranlib", so it can be a program name with args.
8533set dummy ranlib; ac_word=$2
8534echo "$as_me:$LINENO: checking for $ac_word" >&5
8535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539 if test -n "$ac_ct_RANLIB"; then
8540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8541else
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_ac_ct_RANLIB="ranlib"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553done
8554done
8555
8556 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8557fi
8558fi
8559ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8560if test -n "$ac_ct_RANLIB"; then
8561 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8562echo "${ECHO_T}$ac_ct_RANLIB" >&6
8563else
8564 echo "$as_me:$LINENO: result: no" >&5
8565echo "${ECHO_T}no" >&6
8566fi
8567
8568 RANLIB=$ac_ct_RANLIB
252b5132 8569else
42ecbf5e 8570 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
8571fi
8572
8573# Find a good install program. We prefer a C program (faster),
8574# so one script is as good as another. But avoid the broken or
8575# incompatible versions:
8576# SysV /etc/install, /usr/sbin/install
8577# SunOS /usr/etc/install
8578# IRIX /sbin/install
8579# AIX /bin/install
42ecbf5e 8580# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8582# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 8584# OS/2's system install, which has a completely different semantic
252b5132 8585# ./install, which can be erroneously created by make from ./install.sh.
42ecbf5e
DJ
8586echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8587echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8588if test -z "$INSTALL"; then
42ecbf5e
DJ
8589if test "${ac_cv_path_install+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8591else
42ecbf5e
DJ
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 # Account for people who put trailing slashes in PATH elements.
8598case $as_dir/ in
8599 ./ | .// | /cC/* | \
8600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8601 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8602 /usr/ucb/* ) ;;
8603 *)
8604 # OSF1 and SCO ODT 3.0 have their own names for install.
8605 # Don't use installbsd from OSF since it installs stuff as root
8606 # by default.
8607 for ac_prog in ginstall scoinst install; do
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8610 if test $ac_prog = install &&
42ecbf5e 8611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8612 # AIX install. It has an incompatible calling convention.
8613 :
42ecbf5e
DJ
8614 elif test $ac_prog = install &&
8615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8616 # program-specific install script used by HP pwplus--don't use.
8617 :
252b5132 8618 else
42ecbf5e
DJ
8619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8620 break 3
252b5132
RH
8621 fi
8622 fi
8623 done
42ecbf5e
DJ
8624 done
8625 ;;
8626esac
8627done
8628
252b5132
RH
8629
8630fi
8631 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 8632 INSTALL=$ac_cv_path_install
252b5132
RH
8633 else
8634 # As a last resort, use the slow shell script. We don't cache a
8635 # path for INSTALL within a source directory, because that will
8636 # break other packages using the cache if that directory is
8637 # removed, or if the path is relative.
42ecbf5e 8638 INSTALL=$ac_install_sh
252b5132
RH
8639 fi
8640fi
42ecbf5e
DJ
8641echo "$as_me:$LINENO: result: $INSTALL" >&5
8642echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8643
8644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8645# It thinks the first close brace ends the variable substitution.
8646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8647
42ecbf5e 8648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8649
8650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8651
8652
8653# Put a plausible default for CC_FOR_BUILD in Makefile.
8654if test -z "$CC_FOR_BUILD"; then
8655 if test "x$cross_compiling" = "xno"; then
8656 CC_FOR_BUILD='$(CC)'
8657 else
8658 CC_FOR_BUILD=gcc
8659 fi
8660fi
8661
8662# Also set EXEEXT_FOR_BUILD.
8663if test "x$cross_compiling" = "xno"; then
8664 EXEEXT_FOR_BUILD='$(EXEEXT)'
8665else
42ecbf5e
DJ
8666 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8667echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8668if test "${bfd_cv_build_exeext+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8670else
7a7b06ef
ILT
8671 rm -f conftest*
8672 echo 'int main () { return 0; }' > conftest.c
8673 bfd_cv_build_exeext=
8674 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8675 for file in conftest.*; do
8676 case $file in
8677 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8678 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8679 esac
8680 done
8681 rm -f conftest*
8682 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8683fi
42ecbf5e
DJ
8684echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8685echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8686 EXEEXT_FOR_BUILD=""
8687 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8688fi
8689
8690
8a965946
ILT
8691DEMANGLER_NAME=c++filt
8692case "${host}" in
8693 *-*-go32* | *-*-msdos*)
8694 DEMANGLER_NAME=cxxfilt
8695esac
8696
8697
42ecbf5e
DJ
8698
8699
8700
8701
8702
8703
8704for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
252b5132 8705do
42ecbf5e
DJ
8706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8707if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708 echo "$as_me:$LINENO: checking for $ac_header" >&5
8709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712fi
8713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8715else
8716 # Is the header compilable?
8717echo "$as_me:$LINENO: checking $ac_header usability" >&5
8718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8719cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725$ac_includes_default
8726#include <$ac_header>
8727_ACEOF
8728rm -f conftest.$ac_objext
8729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
b7d4af3a
JW
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
42ecbf5e
DJ
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_header_compiler=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755ac_header_compiler=no
8756fi
8757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8759echo "${ECHO_T}$ac_header_compiler" >&6
8760
8761# Is the header present?
8762echo "$as_me:$LINENO: checking $ac_header presence" >&5
8763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8764cat >conftest.$ac_ext <<_ACEOF
8765/* confdefs.h. */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h. */
8770#include <$ac_header>
8771_ACEOF
8772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } >/dev/null; then
8780 if test -s conftest.err; then
8781 ac_cpp_err=$ac_c_preproc_warn_flag
8782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8783 else
8784 ac_cpp_err=
8785 fi
252b5132 8786else
42ecbf5e 8787 ac_cpp_err=yes
252b5132 8788fi
42ecbf5e
DJ
8789if test -z "$ac_cpp_err"; then
8790 ac_header_preproc=yes
8791else
8792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_header_preproc=no
252b5132 8796fi
42ecbf5e
DJ
8797rm -f conftest.err conftest.$ac_ext
8798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8799echo "${ECHO_T}$ac_header_preproc" >&6
8800
8801# So? What about this header?
8802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8803 yes:no: )
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8808 ac_header_preproc=yes
8809 ;;
8810 no:yes:* )
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8818echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8823 (
8824 cat <<\_ASBOX
8825## ------------------------------------------ ##
8826## Report this to the AC_PACKAGE_NAME lists. ##
8827## ------------------------------------------ ##
8828_ASBOX
8829 ) |
8830 sed "s/^/$as_me: WARNING: /" >&2
8831 ;;
8832esac
8833echo "$as_me:$LINENO: checking for $ac_header" >&5
8834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8835if eval "test \"\${$as_ac_Header+set}\" = set"; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8837else
42ecbf5e
DJ
8838 eval "$as_ac_Header=\$ac_header_preproc"
8839fi
8840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8842
252b5132 8843fi
42ecbf5e
DJ
8844if test `eval echo '${'$as_ac_Header'}'` = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847_ACEOF
8848
8849fi
8850
252b5132
RH
8851done
8852
42ecbf5e
DJ
8853echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8854echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8855if test "${ac_cv_header_sys_wait_h+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
252b5132
RH
8864#include <sys/types.h>
8865#include <sys/wait.h>
8866#ifndef WEXITSTATUS
42ecbf5e 8867# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
8868#endif
8869#ifndef WIFEXITED
42ecbf5e 8870# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 8871#endif
42ecbf5e
DJ
8872
8873int
8874main ()
8875{
8876 int s;
8877 wait (&s);
8878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8879 ;
8880 return 0;
8881}
8882_ACEOF
8883rm -f conftest.$ac_objext
8884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
b7d4af3a
JW
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
42ecbf5e
DJ
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
252b5132
RH
8905 ac_cv_header_sys_wait_h=yes
8906else
42ecbf5e
DJ
8907 echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910ac_cv_header_sys_wait_h=no
252b5132 8911fi
42ecbf5e 8912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8913fi
42ecbf5e
DJ
8914echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8915echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 8916if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
8917
8918cat >>confdefs.h <<\_ACEOF
252b5132 8919#define HAVE_SYS_WAIT_H 1
42ecbf5e 8920_ACEOF
252b5132
RH
8921
8922fi
8923
8924# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8925# for constant arguments. Useless!
42ecbf5e
DJ
8926echo "$as_me:$LINENO: checking for working alloca.h" >&5
8927echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8928if test "${ac_cv_working_alloca_h+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930else
8931 cat >conftest.$ac_ext <<_ACEOF
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
252b5132 8937#include <alloca.h>
42ecbf5e
DJ
8938int
8939main ()
8940{
8941char *p = (char *) alloca (2 * sizeof (int));
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
b7d4af3a
JW
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
42ecbf5e
DJ
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_working_alloca_h=yes
8969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_cv_working_alloca_h=no
8974fi
8975rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977fi
8978echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8979echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8980if test $ac_cv_working_alloca_h = yes; then
8981
8982cat >>confdefs.h <<\_ACEOF
252b5132 8983#define HAVE_ALLOCA_H 1
42ecbf5e 8984_ACEOF
252b5132
RH
8985
8986fi
8987
42ecbf5e
DJ
8988echo "$as_me:$LINENO: checking for alloca" >&5
8989echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8990if test "${ac_cv_func_alloca_works+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8992else
42ecbf5e
DJ
8993 cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
252b5132
RH
8999#ifdef __GNUC__
9000# define alloca __builtin_alloca
9001#else
9002# ifdef _MSC_VER
9003# include <malloc.h>
9004# define alloca _alloca
9005# else
9006# if HAVE_ALLOCA_H
9007# include <alloca.h>
9008# else
9009# ifdef _AIX
9010 #pragma alloca
9011# else
9012# ifndef alloca /* predefined by HP cc +Olibcalls */
9013char *alloca ();
9014# endif
9015# endif
9016# endif
9017# endif
9018#endif
9019
42ecbf5e
DJ
9020int
9021main ()
9022{
9023char *p = (char *) alloca (1);
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028rm -f conftest.$ac_objext conftest$ac_exeext
9029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
b7d4af3a
JW
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
42ecbf5e
DJ
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
252b5132
RH
9050 ac_cv_func_alloca_works=yes
9051else
42ecbf5e
DJ
9052 echo "$as_me: failed program was:" >&5
9053sed 's/^/| /' conftest.$ac_ext >&5
9054
9055ac_cv_func_alloca_works=no
252b5132 9056fi
42ecbf5e
DJ
9057rm -f conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
252b5132 9059fi
42ecbf5e
DJ
9060echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9061echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9062
252b5132 9063if test $ac_cv_func_alloca_works = yes; then
e5a52504 9064
42ecbf5e
DJ
9065cat >>confdefs.h <<\_ACEOF
9066#define HAVE_ALLOCA 1
9067_ACEOF
e5a52504 9068
42ecbf5e 9069else
d15b04bd 9070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
9071# that cause trouble. Some versions do not even contain alloca or
9072# contain a buggy version. If you still want to use their alloca,
9073# use ar to extract alloca.o from them instead of compiling alloca.c.
9074
9075ALLOCA=alloca.$ac_objext
9076
9077cat >>confdefs.h <<\_ACEOF
252b5132 9078#define C_ALLOCA 1
42ecbf5e 9079_ACEOF
252b5132
RH
9080
9081
42ecbf5e
DJ
9082echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9083echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9084if test "${ac_cv_os_cray+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9086else
42ecbf5e
DJ
9087 cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
252b5132
RH
9093#if defined(CRAY) && ! defined(CRAY2)
9094webecray
9095#else
9096wenotbecray
9097#endif
9098
42ecbf5e 9099_ACEOF
252b5132 9100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 9101 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9102 ac_cv_os_cray=yes
9103else
252b5132
RH
9104 ac_cv_os_cray=no
9105fi
9106rm -f conftest*
9107
9108fi
42ecbf5e
DJ
9109echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9110echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 9111if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
9112 for ac_func in _getb67 GETB67 getb67; do
9113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114echo "$as_me:$LINENO: checking for $ac_func" >&5
9115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
9125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127#define $ac_func innocuous_$ac_func
9128
252b5132 9129/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
9133
9134#ifdef __STDC__
9135# include <limits.h>
9136#else
9137# include <assert.h>
9138#endif
d15b04bd 9139
42ecbf5e 9140#undef $ac_func
d15b04bd 9141
42ecbf5e
DJ
9142/* Override any gcc2 internal prototype to avoid an error. */
9143#ifdef __cplusplus
9144extern "C"
9145{
9146#endif
9147/* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9149char $ac_func ();
252b5132
RH
9150/* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154choke me
9155#else
42ecbf5e
DJ
9156char (*f) () = $ac_func;
9157#endif
9158#ifdef __cplusplus
9159}
252b5132
RH
9160#endif
9161
42ecbf5e
DJ
9162int
9163main ()
9164{
9165return f != $ac_func;
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext conftest$ac_exeext
9171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
b7d4af3a
JW
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
42ecbf5e
DJ
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 eval "$as_ac_var=yes"
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197eval "$as_ac_var=no"
9198fi
9199rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204if test `eval echo '${'$as_ac_var'}'` = yes; then
9205
9206cat >>confdefs.h <<_ACEOF
252b5132 9207#define CRAY_STACKSEG_END $ac_func
42ecbf5e 9208_ACEOF
252b5132 9209
42ecbf5e 9210 break
252b5132
RH
9211fi
9212
42ecbf5e 9213 done
252b5132
RH
9214fi
9215
42ecbf5e
DJ
9216echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9217echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9218if test "${ac_cv_c_stack_direction+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9220else
9221 if test "$cross_compiling" = yes; then
9222 ac_cv_c_stack_direction=0
9223else
42ecbf5e
DJ
9224 cat >conftest.$ac_ext <<_ACEOF
9225/* confdefs.h. */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h. */
9230int
252b5132
RH
9231find_stack_direction ()
9232{
9233 static char *addr = 0;
9234 auto char dummy;
9235 if (addr == 0)
9236 {
9237 addr = &dummy;
9238 return find_stack_direction ();
9239 }
9240 else
9241 return (&dummy > addr) ? 1 : -1;
9242}
42ecbf5e
DJ
9243
9244int
252b5132
RH
9245main ()
9246{
42ecbf5e 9247 exit (find_stack_direction () < 0);
252b5132 9248}
42ecbf5e
DJ
9249_ACEOF
9250rm -f conftest$ac_exeext
9251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
252b5132
RH
9261 ac_cv_c_stack_direction=1
9262else
42ecbf5e
DJ
9263 echo "$as_me: program exited with status $ac_status" >&5
9264echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267( exit $ac_status )
9268ac_cv_c_stack_direction=-1
252b5132 9269fi
42ecbf5e 9270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9271fi
252b5132 9272fi
42ecbf5e
DJ
9273echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9274echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9275
42ecbf5e 9276cat >>confdefs.h <<_ACEOF
252b5132 9277#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
9278_ACEOF
9279
252b5132
RH
9280
9281fi
9282
42ecbf5e
DJ
9283
9284
9285
9286
9287
9710509e 9288for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 9289do
42ecbf5e
DJ
9290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291echo "$as_me:$LINENO: checking for $ac_func" >&5
9292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293if eval "test \"\${$as_ac_var+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295else
9296 cat >conftest.$ac_ext <<_ACEOF
9297/* confdefs.h. */
9298_ACEOF
9299cat confdefs.h >>conftest.$ac_ext
9300cat >>conftest.$ac_ext <<_ACEOF
9301/* end confdefs.h. */
9302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304#define $ac_func innocuous_$ac_func
9305
252b5132 9306/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
9307 which can conflict with char $ac_func (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9310
9311#ifdef __STDC__
9312# include <limits.h>
9313#else
9314# include <assert.h>
9315#endif
d15b04bd 9316
42ecbf5e 9317#undef $ac_func
d15b04bd 9318
42ecbf5e
DJ
9319/* Override any gcc2 internal prototype to avoid an error. */
9320#ifdef __cplusplus
9321extern "C"
9322{
9323#endif
9324/* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326char $ac_func ();
252b5132
RH
9327/* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331choke me
9332#else
42ecbf5e
DJ
9333char (*f) () = $ac_func;
9334#endif
9335#ifdef __cplusplus
9336}
252b5132
RH
9337#endif
9338
42ecbf5e
DJ
9339int
9340main ()
9341{
9342return f != $ac_func;
9343 ;
9344 return 0;
9345}
9346_ACEOF
9347rm -f conftest.$ac_objext conftest$ac_exeext
9348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
b7d4af3a
JW
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
42ecbf5e
DJ
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 eval "$as_ac_var=yes"
9370else
9371 echo "$as_me: failed program was:" >&5
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
9374eval "$as_ac_var=no"
9375fi
9376rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378fi
9379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381if test `eval echo '${'$as_ac_var'}'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9384_ACEOF
252b5132 9385
252b5132
RH
9386fi
9387done
9388
9389
cedd9a58
JJ
9390# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9391# needs to be defined for it
42ecbf5e
DJ
9392echo "$as_me:$LINENO: checking for fopen64" >&5
9393echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9394if test "${bu_cv_have_fopen64+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397 cat >conftest.$ac_ext <<_ACEOF
9398/* confdefs.h. */
9399_ACEOF
9400cat confdefs.h >>conftest.$ac_ext
9401cat >>conftest.$ac_ext <<_ACEOF
9402/* end confdefs.h. */
cedd9a58 9403#include <stdio.h>
42ecbf5e
DJ
9404int
9405main ()
9406{
cedd9a58 9407FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
9408 ;
9409 return 0;
9410}
9411_ACEOF
9412rm -f conftest.$ac_objext conftest$ac_exeext
9413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
b7d4af3a
JW
9421 { ac_try='test -z "$ac_c_werror_flag"
9422 || test ! -s conftest.err'
42ecbf5e
DJ
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest$ac_exeext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
cedd9a58
JJ
9434 bu_cv_have_fopen64=yes
9435else
42ecbf5e
DJ
9436 echo "$as_me: failed program was:" >&5
9437sed 's/^/| /' conftest.$ac_ext >&5
9438
9439saved_CPPFLAGS=$CPPFLAGS
cedd9a58 9440 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
9441 cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h. */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h. */
cedd9a58 9447#include <stdio.h>
42ecbf5e
DJ
9448int
9449main ()
9450{
cedd9a58 9451FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
9452 ;
9453 return 0;
9454}
9455_ACEOF
9456rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
b7d4af3a
JW
9465 { ac_try='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
42ecbf5e
DJ
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
cedd9a58
JJ
9478 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9479else
42ecbf5e
DJ
9480 echo "$as_me: failed program was:" >&5
9481sed 's/^/| /' conftest.$ac_ext >&5
9482
9483bu_cv_have_fopen64=no
cedd9a58 9484fi
42ecbf5e
DJ
9485rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 9487 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 9488fi
42ecbf5e
DJ
9489rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
cedd9a58 9491fi
cedd9a58 9492
42ecbf5e
DJ
9493echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9494echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 9495if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
9496
9497cat >>confdefs.h <<\_ACEOF
cedd9a58 9498#define HAVE_FOPEN64 1
42ecbf5e 9499_ACEOF
cedd9a58 9500
fb5b5478 9501fi
42ecbf5e
DJ
9502echo "$as_me:$LINENO: checking for stat64" >&5
9503echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9504if test "${bu_cv_have_stat64+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 9506else
42ecbf5e
DJ
9507 cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
fb5b5478 9513#include <sys/stat.h>
42ecbf5e
DJ
9514int
9515main ()
9516{
fb5b5478 9517struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
9518 ;
9519 return 0;
9520}
9521_ACEOF
9522rm -f conftest.$ac_objext conftest$ac_exeext
9523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
b7d4af3a
JW
9531 { ac_try='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
42ecbf5e
DJ
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest$ac_exeext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
fb5b5478
JJ
9544 bu_cv_have_stat64=yes
9545else
42ecbf5e
DJ
9546 echo "$as_me: failed program was:" >&5
9547sed 's/^/| /' conftest.$ac_ext >&5
9548
9549saved_CPPFLAGS=$CPPFLAGS
fb5b5478 9550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
9551 cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
fb5b5478 9557#include <sys/stat.h>
42ecbf5e
DJ
9558int
9559main ()
9560{
fb5b5478 9561struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
9567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
b7d4af3a
JW
9575 { ac_try='test -z "$ac_c_werror_flag"
9576 || test ! -s conftest.err'
42ecbf5e
DJ
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
fb5b5478
JJ
9588 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9589else
42ecbf5e
DJ
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
9593bu_cv_have_stat64=no
fb5b5478 9594fi
42ecbf5e
DJ
9595rm -f conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
9597 CPPFLAGS=$saved_CPPFLAGS
9598fi
42ecbf5e
DJ
9599rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
9601fi
9602
42ecbf5e
DJ
9603echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9604echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 9605if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
9606
9607cat >>confdefs.h <<\_ACEOF
fb5b5478 9608#define HAVE_STAT64 1
42ecbf5e 9609_ACEOF
fb5b5478
JJ
9610
9611fi
9612if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9613 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
9614
9615cat >>confdefs.h <<\_ACEOF
cedd9a58 9616#define _LARGEFILE64_SOURCE 1
42ecbf5e 9617_ACEOF
cedd9a58 9618
fb5b5478 9619 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
9620fi
9621
f353eb8a 9622# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
9623echo "$as_me:$LINENO: checking for library containing frexp" >&5
9624echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9625if test "${ac_cv_search_frexp+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628 ac_func_search_save_LIBS=$LIBS
9629ac_cv_search_frexp=no
9630cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
f353eb8a 9636
f353eb8a 9637/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
9638#ifdef __cplusplus
9639extern "C"
9640#endif
f353eb8a 9641/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
9642 builtin and then its argument prototype would still apply. */
9643char frexp ();
9644int
9645main ()
9646{
9647frexp ();
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
b7d4af3a
JW
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
42ecbf5e
DJ
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
f353eb8a
ILT
9674 ac_cv_search_frexp="none required"
9675else
42ecbf5e
DJ
9676 echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
f353eb8a 9679fi
42ecbf5e
DJ
9680rm -f conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682if test "$ac_cv_search_frexp" = no; then
9683 for ac_lib in m; do
9684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691
f353eb8a 9692/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
9693#ifdef __cplusplus
9694extern "C"
9695#endif
f353eb8a 9696/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
9697 builtin and then its argument prototype would still apply. */
9698char frexp ();
9699int
9700main ()
9701{
9702frexp ();
9703 ;
9704 return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext conftest$ac_exeext
9708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
b7d4af3a
JW
9716 { ac_try='test -z "$ac_c_werror_flag"
9717 || test ! -s conftest.err'
42ecbf5e
DJ
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
9730break
9731else
42ecbf5e
DJ
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
f353eb8a 9735fi
42ecbf5e
DJ
9736rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 done
e5a52504 9739fi
42ecbf5e
DJ
9740LIBS=$ac_func_search_save_LIBS
9741fi
9742echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9743echo "${ECHO_T}$ac_cv_search_frexp" >&6
9744if test "$ac_cv_search_frexp" != no; then
d15b04bd 9745 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 9746
f353eb8a
ILT
9747fi
9748
42ecbf5e
DJ
9749
9750echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9751echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9752if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9754else
42ecbf5e
DJ
9755 cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
252b5132 9761#include <time.h>
42ecbf5e
DJ
9762int
9763main ()
9764{
252b5132 9765time_t i;
42ecbf5e
DJ
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770rm -f conftest.$ac_objext
9771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
b7d4af3a
JW
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
42ecbf5e
DJ
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
252b5132
RH
9792 bu_cv_decl_time_t_time_h=yes
9793else
42ecbf5e
DJ
9794 echo "$as_me: failed program was:" >&5
9795sed 's/^/| /' conftest.$ac_ext >&5
9796
9797bu_cv_decl_time_t_time_h=no
252b5132 9798fi
42ecbf5e 9799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9800fi
9801
42ecbf5e
DJ
9802echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9803echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 9804if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
9805
9806cat >>confdefs.h <<\_ACEOF
252b5132 9807#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 9808_ACEOF
252b5132
RH
9809
9810fi
9811
42ecbf5e
DJ
9812echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9813echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9814if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9816else
42ecbf5e
DJ
9817 cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
252b5132 9823#include <sys/types.h>
42ecbf5e
DJ
9824int
9825main ()
9826{
252b5132 9827time_t i;
42ecbf5e
DJ
9828 ;
9829 return 0;
9830}
9831_ACEOF
9832rm -f conftest.$ac_objext
9833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
b7d4af3a
JW
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
42ecbf5e
DJ
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
252b5132
RH
9854 bu_cv_decl_time_t_types_h=yes
9855else
42ecbf5e
DJ
9856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859bu_cv_decl_time_t_types_h=no
252b5132 9860fi
42ecbf5e 9861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9862fi
9863
42ecbf5e
DJ
9864echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9865echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 9866if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
9867
9868cat >>confdefs.h <<\_ACEOF
252b5132 9869#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 9870_ACEOF
252b5132
RH
9871
9872fi
9873
42ecbf5e
DJ
9874echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9875echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9876if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 9878else
42ecbf5e
DJ
9879 cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */
e46eba98 9885#include <unistd.h>
42ecbf5e
DJ
9886int
9887main ()
9888{
e46eba98 9889extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
9890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext
9895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
b7d4af3a
JW
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
42ecbf5e
DJ
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
e46eba98
NC
9916 bu_cv_decl_getopt_unistd_h=yes
9917else
42ecbf5e
DJ
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921bu_cv_decl_getopt_unistd_h=no
e46eba98 9922fi
42ecbf5e 9923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
9924fi
9925
42ecbf5e
DJ
9926echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9927echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 9928if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
9929
9930cat >>confdefs.h <<\_ACEOF
e46eba98 9931#define HAVE_DECL_GETOPT 1
42ecbf5e 9932_ACEOF
e46eba98
NC
9933
9934fi
9935
252b5132
RH
9936# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9937# by default.
42ecbf5e
DJ
9938echo "$as_me:$LINENO: checking for utime.h" >&5
9939echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9940if test "${bu_cv_header_utime_h+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
252b5132
RH
9949#include <sys/types.h>
9950#ifdef HAVE_TIME_H
9951#include <time.h>
9952#endif
9953#include <utime.h>
42ecbf5e
DJ
9954int
9955main ()
9956{
252b5132 9957struct utimbuf s;
42ecbf5e
DJ
9958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext
9963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
b7d4af3a
JW
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
42ecbf5e
DJ
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
252b5132
RH
9984 bu_cv_header_utime_h=yes
9985else
42ecbf5e
DJ
9986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989bu_cv_header_utime_h=no
252b5132 9990fi
42ecbf5e 9991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9992fi
9993
42ecbf5e
DJ
9994echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9995echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 9996if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
9997
9998cat >>confdefs.h <<\_ACEOF
252b5132 9999#define HAVE_GOOD_UTIME_H 1
42ecbf5e 10000_ACEOF
252b5132
RH
10001
10002fi
10003
398ee8f1
SE
10004echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
10005echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
10006if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 10007 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10008else
42ecbf5e
DJ
10009 cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
398ee8f1 10015$ac_includes_default
42ecbf5e
DJ
10016int
10017main ()
10018{
398ee8f1
SE
10019#ifndef fprintf
10020 char *p = (char *) fprintf;
10021#endif
10022
42ecbf5e
DJ
10023 ;
10024 return 0;
10025}
10026_ACEOF
10027rm -f conftest.$ac_objext
10028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029 (eval $ac_compile) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
b7d4af3a
JW
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
42ecbf5e
DJ
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
398ee8f1 10049 ac_cv_have_decl_fprintf=yes
252b5132 10050else
42ecbf5e
DJ
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
398ee8f1 10054ac_cv_have_decl_fprintf=no
252b5132 10055fi
42ecbf5e 10056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10057fi
398ee8f1
SE
10058echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
10059echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
10060if test $ac_cv_have_decl_fprintf = yes; then
252b5132 10061
398ee8f1
SE
10062cat >>confdefs.h <<_ACEOF
10063#define HAVE_DECL_FPRINTF 1
10064_ACEOF
42ecbf5e 10065
398ee8f1
SE
10066
10067else
10068 cat >>confdefs.h <<_ACEOF
10069#define HAVE_DECL_FPRINTF 0
42ecbf5e 10070_ACEOF
252b5132 10071
252b5132 10072
3e321448
L
10073fi
10074echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10075echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10076if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078else
10079 cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085$ac_includes_default
10086int
10087main ()
10088{
10089#ifndef stpcpy
10090 char *p = (char *) stpcpy;
10091#endif
10092
10093 ;
10094 return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext
10098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_have_decl_stpcpy=yes
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124ac_cv_have_decl_stpcpy=no
10125fi
10126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10127fi
10128echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10129echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10130if test $ac_cv_have_decl_stpcpy = yes; then
10131
10132cat >>confdefs.h <<_ACEOF
10133#define HAVE_DECL_STPCPY 1
10134_ACEOF
10135
10136
10137else
10138 cat >>confdefs.h <<_ACEOF
10139#define HAVE_DECL_STPCPY 0
10140_ACEOF
10141
10142
398ee8f1
SE
10143fi
10144echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10145echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10146if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 10147 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10148else
42ecbf5e
DJ
10149 cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h. */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h. */
398ee8f1 10155$ac_includes_default
42ecbf5e
DJ
10156int
10157main ()
10158{
398ee8f1
SE
10159#ifndef strstr
10160 char *p = (char *) strstr;
10161#endif
10162
42ecbf5e
DJ
10163 ;
10164 return 0;
10165}
10166_ACEOF
10167rm -f conftest.$ac_objext
10168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
b7d4af3a
JW
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
42ecbf5e
DJ
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
398ee8f1 10189 ac_cv_have_decl_strstr=yes
252b5132 10190else
42ecbf5e
DJ
10191 echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
398ee8f1 10194ac_cv_have_decl_strstr=no
252b5132 10195fi
42ecbf5e 10196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10197fi
398ee8f1
SE
10198echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10199echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10200if test $ac_cv_have_decl_strstr = yes; then
252b5132 10201
398ee8f1
SE
10202cat >>confdefs.h <<_ACEOF
10203#define HAVE_DECL_STRSTR 1
10204_ACEOF
42ecbf5e 10205
398ee8f1
SE
10206
10207else
10208 cat >>confdefs.h <<_ACEOF
10209#define HAVE_DECL_STRSTR 0
42ecbf5e 10210_ACEOF
252b5132 10211
252b5132 10212
398ee8f1
SE
10213fi
10214echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10215echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10216if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 10217 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10218else
42ecbf5e
DJ
10219 cat >conftest.$ac_ext <<_ACEOF
10220/* confdefs.h. */
10221_ACEOF
10222cat confdefs.h >>conftest.$ac_ext
10223cat >>conftest.$ac_ext <<_ACEOF
10224/* end confdefs.h. */
398ee8f1 10225$ac_includes_default
42ecbf5e
DJ
10226int
10227main ()
10228{
398ee8f1
SE
10229#ifndef sbrk
10230 char *p = (char *) sbrk;
10231#endif
10232
42ecbf5e
DJ
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext
10238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
b7d4af3a
JW
10246 { ac_try='test -z "$ac_c_werror_flag"
10247 || test ! -s conftest.err'
42ecbf5e
DJ
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest.$ac_objext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
398ee8f1 10259 ac_cv_have_decl_sbrk=yes
252b5132 10260else
42ecbf5e
DJ
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
398ee8f1 10264ac_cv_have_decl_sbrk=no
252b5132 10265fi
42ecbf5e 10266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10267fi
398ee8f1
SE
10268echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10269echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10270if test $ac_cv_have_decl_sbrk = yes; then
252b5132 10271
398ee8f1
SE
10272cat >>confdefs.h <<_ACEOF
10273#define HAVE_DECL_SBRK 1
10274_ACEOF
42ecbf5e 10275
398ee8f1
SE
10276
10277else
10278 cat >>confdefs.h <<_ACEOF
10279#define HAVE_DECL_SBRK 0
42ecbf5e 10280_ACEOF
252b5132 10281
252b5132 10282
398ee8f1
SE
10283fi
10284echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10285echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10286if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 10287 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10288else
42ecbf5e
DJ
10289 cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
398ee8f1 10295$ac_includes_default
42ecbf5e
DJ
10296int
10297main ()
10298{
398ee8f1
SE
10299#ifndef getenv
10300 char *p = (char *) getenv;
10301#endif
10302
42ecbf5e
DJ
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext
10308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
b7d4af3a
JW
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
42ecbf5e
DJ
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
398ee8f1 10329 ac_cv_have_decl_getenv=yes
252b5132 10330else
42ecbf5e
DJ
10331 echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
398ee8f1 10334ac_cv_have_decl_getenv=no
252b5132 10335fi
42ecbf5e 10336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10337fi
398ee8f1
SE
10338echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10339echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10340if test $ac_cv_have_decl_getenv = yes; then
252b5132 10341
398ee8f1
SE
10342cat >>confdefs.h <<_ACEOF
10343#define HAVE_DECL_GETENV 1
10344_ACEOF
42ecbf5e 10345
398ee8f1
SE
10346
10347else
10348 cat >>confdefs.h <<_ACEOF
10349#define HAVE_DECL_GETENV 0
42ecbf5e 10350_ACEOF
252b5132 10351
252b5132 10352
398ee8f1
SE
10353fi
10354echo "$as_me:$LINENO: checking whether environ is declared" >&5
10355echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10356if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 10357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10358else
42ecbf5e
DJ
10359 cat >conftest.$ac_ext <<_ACEOF
10360/* confdefs.h. */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h. */
398ee8f1 10365$ac_includes_default
42ecbf5e
DJ
10366int
10367main ()
10368{
398ee8f1
SE
10369#ifndef environ
10370 char *p = (char *) environ;
10371#endif
10372
42ecbf5e
DJ
10373 ;
10374 return 0;
10375}
10376_ACEOF
10377rm -f conftest.$ac_objext
10378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
b7d4af3a
JW
10386 { ac_try='test -z "$ac_c_werror_flag"
10387 || test ! -s conftest.err'
42ecbf5e
DJ
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
398ee8f1 10399 ac_cv_have_decl_environ=yes
252b5132 10400else
42ecbf5e
DJ
10401 echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
398ee8f1 10404ac_cv_have_decl_environ=no
252b5132 10405fi
42ecbf5e 10406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10407fi
398ee8f1
SE
10408echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10409echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10410if test $ac_cv_have_decl_environ = yes; then
252b5132 10411
398ee8f1
SE
10412cat >>confdefs.h <<_ACEOF
10413#define HAVE_DECL_ENVIRON 1
10414_ACEOF
42ecbf5e 10415
398ee8f1
SE
10416
10417else
10418 cat >>confdefs.h <<_ACEOF
10419#define HAVE_DECL_ENVIRON 0
42ecbf5e 10420_ACEOF
252b5132 10421
252b5132 10422
398ee8f1 10423fi
b7d4af3a
JW
10424echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10425echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10426if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429 cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h. */
10435$ac_includes_default
10436int
10437main ()
10438{
10439#ifndef getc_unlocked
10440 char *p = (char *) getc_unlocked;
10441#endif
10442
10443 ;
10444 return 0;
10445}
10446_ACEOF
10447rm -f conftest.$ac_objext
10448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_have_decl_getc_unlocked=yes
10470else
10471 echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474ac_cv_have_decl_getc_unlocked=no
10475fi
10476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477fi
10478echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10479echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10480if test $ac_cv_have_decl_getc_unlocked = yes; then
10481
10482cat >>confdefs.h <<_ACEOF
10483#define HAVE_DECL_GETC_UNLOCKED 1
10484_ACEOF
10485
10486
10487else
10488 cat >>confdefs.h <<_ACEOF
10489#define HAVE_DECL_GETC_UNLOCKED 0
10490_ACEOF
10491
10492
db50c840
EB
10493fi
10494echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10495echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10496if test "${ac_cv_have_decl_snprintf+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505$ac_includes_default
10506int
10507main ()
10508{
10509#ifndef snprintf
10510 char *p = (char *) snprintf;
10511#endif
10512
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
10518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_have_decl_snprintf=yes
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544ac_cv_have_decl_snprintf=no
10545fi
10546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547fi
10548echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10549echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10550if test $ac_cv_have_decl_snprintf = yes; then
10551
10552cat >>confdefs.h <<_ACEOF
10553#define HAVE_DECL_SNPRINTF 1
10554_ACEOF
10555
10556
10557else
10558 cat >>confdefs.h <<_ACEOF
10559#define HAVE_DECL_SNPRINTF 0
10560_ACEOF
10561
10562
10563fi
10564echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10565echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10566if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h. */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h. */
10575$ac_includes_default
10576int
10577main ()
10578{
10579#ifndef vsnprintf
10580 char *p = (char *) vsnprintf;
10581#endif
10582
10583 ;
10584 return 0;
10585}
10586_ACEOF
10587rm -f conftest.$ac_objext
10588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag"
10597 || test ! -s conftest.err'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_have_decl_vsnprintf=yes
10610else
10611 echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614ac_cv_have_decl_vsnprintf=no
10615fi
10616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10617fi
10618echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10619echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10620if test $ac_cv_have_decl_vsnprintf = yes; then
10621
10622cat >>confdefs.h <<_ACEOF
10623#define HAVE_DECL_VSNPRINTF 1
10624_ACEOF
10625
10626
10627else
10628 cat >>confdefs.h <<_ACEOF
10629#define HAVE_DECL_VSNPRINTF 0
10630_ACEOF
10631
10632
b7d4af3a
JW
10633fi
10634
10635
252b5132
RH
10636
10637
10638case "${host}" in
8a965946 10639*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
10640
10641cat >>confdefs.h <<\_ACEOF
252b5132 10642#define USE_BINARY_FOPEN 1
42ecbf5e 10643_ACEOF
252b5132
RH
10644 ;;
10645esac
10646
10647# target-specific stuff:
10648
10649# Canonicalize the secondary target names.
10650if test -n "$enable_targets"; then
10651 for targ in `echo $enable_targets | sed 's/,/ /g'`
10652 do
6d83c84b 10653 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10654 if test -n "$result"; then
10655 canon_targets="$canon_targets $result"
10656 else
10657 # Allow targets that config.sub doesn't recognize, like "all".
10658 canon_targets="$canon_targets $targ"
10659 fi
10660 done
10661fi
10662
10663all_targets=false
10664BUILD_NLMCONV=
10665NLMCONV_DEFS=
10666BUILD_SRCONV=
10667BUILD_DLLTOOL=
10668DLLTOOL_DEFS=
10669BUILD_WINDRES=
10670BUILD_DLLWRAP=
10671BUILD_MISC=
8b1e6df3 10672OBJDUMP_DEFS=
252b5132
RH
10673
10674for targ in $target $canon_targets
10675do
10676 if test "x$targ" = "xall"; then
10677 all_targets=true
10678 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10679 BUILD_SRCONV='$(SRCONV_PROG)'
10680 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10681 else
10682 case $targ in
42ecbf5e 10683 i[3-7]86*-*-netware*)
252b5132
RH
10684 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10685 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10686 ;;
10687 alpha*-*-netware*)
10688 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10689 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10690 ;;
10691 powerpc*-*-netware*)
10692 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10693 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10694 ;;
10695 sparc*-*-netware*)
10696 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10697 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10698 ;;
10699 esac
10700 case $targ in
10701 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10702 esac
10703 case $targ in
a8c548cb
NC
10704 arm-epoc-pe*)
10705 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10706 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10707 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10708 ;;
27a710e5 10709 arm-*-pe* | arm-*-wince)
252b5132
RH
10710 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10711 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10712 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10713 ;;
27a710e5 10714 thumb-*-pe*)
252b5132
RH
10715 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10716 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10717 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10718 ;;
80c7c40a 10719 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
10720 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10721 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10722 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10723 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 10724 ;;
80c7c40a 10725 i[3-7]86-*-interix)
7a7b06ef
ILT
10726 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10727 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10728 ;;
f0660b73
NC
10729 powerpc*-aix5.[01])
10730 ;;
10731 powerpc*-aix5.*)
10732 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10733 ;;
e1d5b1e7 10734 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132
RH
10735 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10736 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10737 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 10738 ;;
e1d5b1e7 10739 sh*-*-pe)
8a0e0f38
NC
10740 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10741 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10742 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10743 ;;
e1d5b1e7 10744 mips*-*-pe)
8a0e0f38
NC
10745 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10746 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10747 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10748 ;;
27a710e5 10749 mcore-*-pe)
661016bb
NC
10750 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10751 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10752 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10753 ;;
27a710e5 10754 mcore-*-elf)
661016bb
NC
10755 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10756 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 10757 ;;
252b5132
RH
10758 esac
10759 fi
10760done
10761
42ecbf5e
DJ
10762if test "${with_windres+set}" = set; then
10763 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10764fi
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777cat >>confdefs.h <<_ACEOF
10778#define TARGET "${target}"
10779_ACEOF
10780
10781
10782targ=$target
10783. $srcdir/../bfd/config.bfd
10784if test "x$targ_underscore" = "xyes"; then
10785 UNDERSCORE=1
10786else
10787 UNDERSCORE=0
10788fi
10789
10790cat >>confdefs.h <<_ACEOF
10791#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10792_ACEOF
10793
10794
10795# Emulation
10796for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10797do
10798 # Canonicalize the secondary target names.
10799 result=`$ac_config_sub $targ_alias 2>/dev/null`
10800 if test -n "$result"; then
10801 targ=$result
10802 else
10803 targ=$targ_alias
10804 fi
10805
10806 . ${srcdir}/configure.tgt
10807
10808 EMULATION=$targ_emul
10809 EMULATION_VECTOR=$targ_emul_vector
10810done
10811
10812
10813
10814
10815 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10816 ac_config_commands="$ac_config_commands default"
10817cat >confcache <<\_ACEOF
10818# This file is a shell script that caches the results of configure
10819# tests run on this system so they can be shared between configure
10820# scripts and configure runs, see configure's option --config-cache.
10821# It is not useful on other systems. If it contains results you don't
10822# want to keep, you may remove or edit it.
10823#
10824# config.status only pays attention to the cache file if you give it
10825# the --recheck option to rerun configure.
10826#
10827# `ac_cv_env_foo' variables (set or unset) will be overridden when
10828# loading this file, other *unset* `ac_cv_foo' will be assigned the
10829# following values.
10830
10831_ACEOF
10832
10833# The following way of writing the cache mishandles newlines in values,
10834# but we know of no workaround that is simple, portable, and efficient.
10835# So, don't put newlines in cache variables' values.
10836# Ultrix sh set writes to stderr and can't be redirected directly,
10837# and sets the high bit in the cache file unless we assign to the vars.
10838{
10839 (set) 2>&1 |
10840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10841 *ac_space=\ *)
10842 # `set' does not quote correctly, so add quotes (double-quote
10843 # substitution turns \\\\ into \\, and sed turns \\ into \).
10844 sed -n \
10845 "s/'/'\\\\''/g;
10846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10847 ;;
10848 *)
10849 # `set' quotes correctly as required by POSIX, so do not add quotes.
10850 sed -n \
10851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10852 ;;
10853 esac;
10854} |
10855 sed '
10856 t clear
10857 : clear
10858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10859 t end
10860 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10861 : end' >>confcache
10862if diff $cache_file confcache >/dev/null 2>&1; then :; else
10863 if test -w $cache_file; then
10864 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10865 cat confcache >$cache_file
10866 else
10867 echo "not updating unwritable cache $cache_file"
10868 fi
10869fi
10870rm -f confcache
10871
10872test "x$prefix" = xNONE && prefix=$ac_default_prefix
10873# Let make expand exec_prefix.
10874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10875
10876# VPATH may cause trouble with some makes, so we remove $(srcdir),
10877# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10878# trailing colons and then remove the whole line if VPATH becomes empty
10879# (actually we leave an empty line to preserve line numbers).
10880if test "x$srcdir" = x.; then
10881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10882s/:*\$(srcdir):*/:/;
10883s/:*\${srcdir}:*/:/;
10884s/:*@srcdir@:*/:/;
10885s/^\([^=]*=[ ]*\):*/\1/;
10886s/:*$//;
10887s/^[^=]*=[ ]*$//;
10888}'
10889fi
10890
10891DEFS=-DHAVE_CONFIG_H
10892
10893ac_libobjs=
10894ac_ltlibobjs=
10895for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10896 # 1. Remove the extension, and $U if already installed.
10897 ac_i=`echo "$ac_i" |
10898 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10899 # 2. Add them.
10900 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10901 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10902done
10903LIBOBJS=$ac_libobjs
10904
10905LTLIBOBJS=$ac_ltlibobjs
10906
10907
10908if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10909 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10910Usually this means the macro was only invoked conditionally." >&5
10911echo "$as_me: error: conditional \"AMDEP\" was never defined.
10912Usually this means the macro was only invoked conditionally." >&2;}
10913 { (exit 1); exit 1; }; }
10914fi
10915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10916 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10917Usually this means the macro was only invoked conditionally." >&5
10918echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10919Usually this means the macro was only invoked conditionally." >&2;}
10920 { (exit 1); exit 1; }; }
10921fi
10922if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10923 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10924Usually this means the macro was only invoked conditionally." >&5
10925echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10926Usually this means the macro was only invoked conditionally." >&2;}
10927 { (exit 1); exit 1; }; }
10928fi
10929
10930: ${CONFIG_STATUS=./config.status}
10931ac_clean_files_save=$ac_clean_files
10932ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10933{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10934echo "$as_me: creating $CONFIG_STATUS" >&6;}
10935cat >$CONFIG_STATUS <<_ACEOF
10936#! $SHELL
10937# Generated by $as_me.
10938# Run this file to recreate the current configuration.
10939# Compiler output produced by configure, useful for debugging
10940# configure, is in config.log if it exists.
10941
10942debug=false
10943ac_cs_recheck=false
10944ac_cs_silent=false
10945SHELL=\${CONFIG_SHELL-$SHELL}
10946_ACEOF
252b5132 10947
42ecbf5e
DJ
10948cat >>$CONFIG_STATUS <<\_ACEOF
10949## --------------------- ##
10950## M4sh Initialization. ##
10951## --------------------- ##
252b5132 10952
42ecbf5e
DJ
10953# Be Bourne compatible
10954if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10955 emulate sh
10956 NULLCMD=:
10957 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10958 # is contrary to our usage. Disable this feature.
10959 alias -g '${1+"$@"}'='"$@"'
10960elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10961 set -o posix
10962fi
10963DUALCASE=1; export DUALCASE # for MKS sh
252b5132 10964
42ecbf5e
DJ
10965# Support unset when possible.
10966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10967 as_unset=unset
10968else
10969 as_unset=false
10970fi
252b5132
RH
10971
10972
42ecbf5e
DJ
10973# Work around bugs in pre-3.0 UWIN ksh.
10974$as_unset ENV MAIL MAILPATH
10975PS1='$ '
10976PS2='> '
10977PS4='+ '
252b5132 10978
42ecbf5e
DJ
10979# NLS nuisances.
10980for as_var in \
10981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10983 LC_TELEPHONE LC_TIME
10984do
10985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10986 eval $as_var=C; export $as_var
10987 else
10988 $as_unset $as_var
10989 fi
10990done
252b5132 10991
42ecbf5e
DJ
10992# Required to use basename.
10993if expr a : '\(a\)' >/dev/null 2>&1; then
10994 as_expr=expr
10995else
10996 as_expr=false
10997fi
252b5132 10998
42ecbf5e
DJ
10999if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11000 as_basename=basename
11001else
11002 as_basename=false
11003fi
252b5132 11004
8b1e6df3 11005
42ecbf5e
DJ
11006# Name of the executable.
11007as_me=`$as_basename "$0" ||
11008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11009 X"$0" : 'X\(//\)$' \| \
11010 X"$0" : 'X\(/\)$' \| \
11011 . : '\(.\)' 2>/dev/null ||
11012echo X/"$0" |
11013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11014 /^X\/\(\/\/\)$/{ s//\1/; q; }
11015 /^X\/\(\/\).*/{ s//\1/; q; }
11016 s/.*/./; q'`
0218d1e4 11017
252b5132 11018
42ecbf5e
DJ
11019# PATH needs CR, and LINENO needs CR and PATH.
11020# Avoid depending upon Character Ranges.
11021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11024as_cr_digits='0123456789'
11025as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 11026
42ecbf5e
DJ
11027# The user is always right.
11028if test "${PATH_SEPARATOR+set}" != set; then
11029 echo "#! /bin/sh" >conf$$.sh
11030 echo "exit 0" >>conf$$.sh
11031 chmod +x conf$$.sh
11032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11033 PATH_SEPARATOR=';'
11034 else
11035 PATH_SEPARATOR=:
11036 fi
11037 rm -f conf$$.sh
252b5132
RH
11038fi
11039
11040
42ecbf5e
DJ
11041 as_lineno_1=$LINENO
11042 as_lineno_2=$LINENO
11043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11044 test "x$as_lineno_1" != "x$as_lineno_2" &&
11045 test "x$as_lineno_3" = "x$as_lineno_2" || {
11046 # Find who we are. Look in the path if we contain no path at all
11047 # relative or not.
11048 case $0 in
11049 *[\\/]* ) as_myself=$0 ;;
11050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051for as_dir in $PATH
eb1e0e80 11052do
42ecbf5e
DJ
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11056done
eb1e0e80 11057
42ecbf5e
DJ
11058 ;;
11059 esac
11060 # We did not find ourselves, most probably we were run as `sh COMMAND'
11061 # in which case we are not to be found in the path.
11062 if test "x$as_myself" = x; then
11063 as_myself=$0
11064 fi
11065 if test ! -f "$as_myself"; then
11066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11067echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11068 { (exit 1); exit 1; }; }
11069 fi
11070 case $CONFIG_SHELL in
11071 '')
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for as_base in sh bash ksh sh5; do
11078 case $as_dir in
11079 /*)
11080 if ("$as_dir/$as_base" -c '
11081 as_lineno_1=$LINENO
11082 as_lineno_2=$LINENO
11083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11084 test "x$as_lineno_1" != "x$as_lineno_2" &&
11085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11088 CONFIG_SHELL=$as_dir/$as_base
11089 export CONFIG_SHELL
11090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11091 fi;;
11092 esac
11093 done
eb1e0e80 11094done
42ecbf5e
DJ
11095;;
11096 esac
eb1e0e80 11097
42ecbf5e
DJ
11098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11099 # uniformly replaced by the line number. The first 'sed' inserts a
11100 # line-number line before each line; the second 'sed' does the real
11101 # work. The second script uses 'N' to pair each line-number line
11102 # with the numbered line, and appends trailing '-' during
11103 # substitution so that $LINENO is not a special case at line end.
11104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11106 sed '=' <$as_myself |
11107 sed '
11108 N
11109 s,$,-,
11110 : loop
11111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11112 t loop
11113 s,-$,,
11114 s,^['$as_cr_digits']*\n,,
11115 ' >$as_me.lineno &&
11116 chmod +x $as_me.lineno ||
11117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11118echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11119 { (exit 1); exit 1; }; }
11120
11121 # Don't try to exec as it changes $[0], causing all sort of problems
11122 # (the dirname of $[0] is not the place where we might find the
11123 # original and so on. Autoconf is especially sensible to this).
11124 . ./$as_me.lineno
11125 # Exit status is that of the last command.
11126 exit
11127}
eb1e0e80
NC
11128
11129
42ecbf5e
DJ
11130case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11131 *c*,-n*) ECHO_N= ECHO_C='
11132' ECHO_T=' ' ;;
11133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11135esac
eb1e0e80 11136
42ecbf5e
DJ
11137if expr a : '\(a\)' >/dev/null 2>&1; then
11138 as_expr=expr
d15b04bd 11139else
42ecbf5e
DJ
11140 as_expr=false
11141fi
11142
11143rm -f conf$$ conf$$.exe conf$$.file
11144echo >conf$$.file
11145if ln -s conf$$.file conf$$ 2>/dev/null; then
11146 # We could just check for DJGPP; but this test a) works b) is more generic
11147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11148 if test -f conf$$.exe; then
11149 # Don't use ln at all; we don't have any links
11150 as_ln_s='cp -p'
252b5132 11151 else
42ecbf5e 11152 as_ln_s='ln -s'
252b5132 11153 fi
42ecbf5e
DJ
11154elif ln conf$$.file conf$$ 2>/dev/null; then
11155 as_ln_s=ln
11156else
11157 as_ln_s='cp -p'
252b5132 11158fi
42ecbf5e 11159rm -f conf$$ conf$$.exe conf$$.file
252b5132 11160
42ecbf5e
DJ
11161if mkdir -p . 2>/dev/null; then
11162 as_mkdir_p=:
11163else
11164 test -d ./-p && rmdir ./-p
11165 as_mkdir_p=false
11166fi
d15b04bd 11167
42ecbf5e 11168as_executable_p="test -f"
252b5132 11169
42ecbf5e
DJ
11170# Sed expression to map a string onto a valid CPP name.
11171as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11172
11173# Sed expression to map a string onto a valid variable name.
11174as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11175
11176
11177# IFS
11178# We need space, tab and new line, in precisely that order.
11179as_nl='
11180'
11181IFS=" $as_nl"
11182
11183# CDPATH.
11184$as_unset CDPATH
11185
11186exec 6>&1
11187
11188# Open the log real soon, to keep \$[0] and so on meaningful, and to
11189# report actual input values of CONFIG_FILES etc. instead of their
11190# values after options handling. Logging --version etc. is OK.
11191exec 5>>config.log
11192{
11193 echo
11194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11195## Running $as_me. ##
11196_ASBOX
11197} >&5
11198cat >&5 <<_CSEOF
11199
11200This file was extended by $as_me, which was
11201generated by GNU Autoconf 2.59. Invocation command line was
11202
11203 CONFIG_FILES = $CONFIG_FILES
11204 CONFIG_HEADERS = $CONFIG_HEADERS
11205 CONFIG_LINKS = $CONFIG_LINKS
11206 CONFIG_COMMANDS = $CONFIG_COMMANDS
11207 $ $0 $@
11208
11209_CSEOF
11210echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11211echo >&5
11212_ACEOF
11213
11214# Files that config.status was made for.
11215if test -n "$ac_config_files"; then
11216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
11217fi
11218
42ecbf5e
DJ
11219if test -n "$ac_config_headers"; then
11220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11221fi
e5a52504 11222
42ecbf5e
DJ
11223if test -n "$ac_config_links"; then
11224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11225fi
e5a52504 11226
42ecbf5e
DJ
11227if test -n "$ac_config_commands"; then
11228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11229fi
d15b04bd 11230
42ecbf5e
DJ
11231cat >>$CONFIG_STATUS <<\_ACEOF
11232
11233ac_cs_usage="\
11234\`$as_me' instantiates files from templates according to the
11235current configuration.
11236
11237Usage: $0 [OPTIONS] [FILE]...
11238
11239 -h, --help print this help, then exit
11240 -V, --version print version number, then exit
11241 -q, --quiet do not print progress messages
11242 -d, --debug don't remove temporary files
11243 --recheck update $as_me by reconfiguring in the same conditions
11244 --file=FILE[:TEMPLATE]
11245 instantiate the configuration file FILE
11246 --header=FILE[:TEMPLATE]
11247 instantiate the configuration header FILE
11248
11249Configuration files:
11250$config_files
11251
11252Configuration headers:
11253$config_headers
11254
11255Configuration commands:
11256$config_commands
11257
11258Report bugs to <bug-autoconf@gnu.org>."
11259_ACEOF
11260
11261cat >>$CONFIG_STATUS <<_ACEOF
11262ac_cs_version="\\
11263config.status
11264configured by $0, generated by GNU Autoconf 2.59,
11265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11266
11267Copyright (C) 2003 Free Software Foundation, Inc.
11268This config.status script is free software; the Free Software Foundation
11269gives unlimited permission to copy, distribute and modify it."
11270srcdir=$srcdir
11271INSTALL="$INSTALL"
11272_ACEOF
11273
11274cat >>$CONFIG_STATUS <<\_ACEOF
11275# If no file are specified by the user, then we need to provide default
11276# value. By we need to know if files were specified by the user.
11277ac_need_defaults=:
11278while test $# != 0
11279do
11280 case $1 in
11281 --*=*)
11282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11284 ac_shift=:
11285 ;;
11286 -*)
11287 ac_option=$1
11288 ac_optarg=$2
11289 ac_shift=shift
11290 ;;
11291 *) # This is not an option, so the user has probably given explicit
11292 # arguments.
11293 ac_option=$1
11294 ac_need_defaults=false;;
11295 esac
11296
11297 case $ac_option in
11298 # Handling of the options.
11299_ACEOF
11300cat >>$CONFIG_STATUS <<\_ACEOF
11301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11302 ac_cs_recheck=: ;;
11303 --version | --vers* | -V )
11304 echo "$ac_cs_version"; exit 0 ;;
11305 --he | --h)
11306 # Conflict between --help and --header
11307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11308Try \`$0 --help' for more information." >&5
11309echo "$as_me: error: ambiguous option: $1
11310Try \`$0 --help' for more information." >&2;}
11311 { (exit 1); exit 1; }; };;
11312 --help | --hel | -h )
11313 echo "$ac_cs_usage"; exit 0 ;;
11314 --debug | --d* | -d )
11315 debug=: ;;
11316 --file | --fil | --fi | --f )
11317 $ac_shift
11318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11319 ac_need_defaults=false;;
11320 --header | --heade | --head | --hea )
11321 $ac_shift
11322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11323 ac_need_defaults=false;;
11324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11326 ac_cs_silent=: ;;
11327
11328 # This is an error.
11329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11330Try \`$0 --help' for more information." >&5
11331echo "$as_me: error: unrecognized option: $1
11332Try \`$0 --help' for more information." >&2;}
11333 { (exit 1); exit 1; }; } ;;
11334
11335 *) ac_config_targets="$ac_config_targets $1" ;;
11336
11337 esac
11338 shift
11339done
11340
11341ac_configure_extra_args=
11342
11343if $ac_cs_silent; then
11344 exec 6>/dev/null
11345 ac_configure_extra_args="$ac_configure_extra_args --silent"
11346fi
11347
11348_ACEOF
11349cat >>$CONFIG_STATUS <<_ACEOF
11350if \$ac_cs_recheck; then
11351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11353fi
11354
11355_ACEOF
11356
11357cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 11358#
42ecbf5e 11359# INIT-COMMANDS section.
d15b04bd 11360#
e5a52504 11361
42ecbf5e
DJ
11362AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11363
11364_ACEOF
11365
11366
11367
11368cat >>$CONFIG_STATUS <<\_ACEOF
11369for ac_config_target in $ac_config_targets
252b5132 11370do
42ecbf5e
DJ
11371 case "$ac_config_target" in
11372 # Handling of arguments.
11373 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11374 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11375 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11376 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11377 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11378 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11379 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11380echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11381 { (exit 1); exit 1; }; };;
d15b04bd 11382 esac
252b5132
RH
11383done
11384
42ecbf5e
DJ
11385# If the user did not use the arguments to specify the items to instantiate,
11386# then the envvar interface is used. Set only those that are not.
11387# We use the long form for the default assignment because of an extremely
11388# bizarre bug on SunOS 4.1.3.
11389if $ac_need_defaults; then
11390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11393fi
11394
11395# Have a temporary directory for convenience. Make it in the build tree
11396# simply because there is no reason to put it here, and in addition,
11397# creating and moving files from /tmp can sometimes cause problems.
11398# Create a temporary directory, and hook for its removal unless debugging.
11399$debug ||
11400{
11401 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11402 trap '{ (exit 1); exit 1; }' 1 2 13 15
11403}
252b5132 11404
42ecbf5e 11405# Create a (secure) tmp directory for tmp files.
e5a52504 11406
42ecbf5e
DJ
11407{
11408 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11409 test -n "$tmp" && test -d "$tmp"
11410} ||
11411{
11412 tmp=./confstat$$-$RANDOM
11413 (umask 077 && mkdir $tmp)
11414} ||
11415{
11416 echo "$me: cannot create a temporary directory in ." >&2
11417 { (exit 1); exit 1; }
11418}
11419
11420_ACEOF
11421
11422cat >>$CONFIG_STATUS <<_ACEOF
11423
11424#
11425# CONFIG_FILES section.
11426#
e5a52504 11427
42ecbf5e
DJ
11428# No need to generate the scripts if there are no CONFIG_FILES.
11429# This happens for instance when ./config.status config.h
11430if test -n "\$CONFIG_FILES"; then
11431 # Protect against being on the right side of a sed subst in config.status.
11432 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11433 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11434s,@SHELL@,$SHELL,;t t
11435s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11436s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11437s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11438s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11439s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11440s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11441s,@exec_prefix@,$exec_prefix,;t t
11442s,@prefix@,$prefix,;t t
11443s,@program_transform_name@,$program_transform_name,;t t
11444s,@bindir@,$bindir,;t t
11445s,@sbindir@,$sbindir,;t t
11446s,@libexecdir@,$libexecdir,;t t
11447s,@datadir@,$datadir,;t t
11448s,@sysconfdir@,$sysconfdir,;t t
11449s,@sharedstatedir@,$sharedstatedir,;t t
11450s,@localstatedir@,$localstatedir,;t t
11451s,@libdir@,$libdir,;t t
11452s,@includedir@,$includedir,;t t
11453s,@oldincludedir@,$oldincludedir,;t t
11454s,@infodir@,$infodir,;t t
11455s,@mandir@,$mandir,;t t
11456s,@build_alias@,$build_alias,;t t
11457s,@host_alias@,$host_alias,;t t
11458s,@target_alias@,$target_alias,;t t
11459s,@DEFS@,$DEFS,;t t
11460s,@ECHO_C@,$ECHO_C,;t t
11461s,@ECHO_N@,$ECHO_N,;t t
11462s,@ECHO_T@,$ECHO_T,;t t
11463s,@LIBS@,$LIBS,;t t
11464s,@build@,$build,;t t
11465s,@build_cpu@,$build_cpu,;t t
11466s,@build_vendor@,$build_vendor,;t t
11467s,@build_os@,$build_os,;t t
11468s,@host@,$host,;t t
11469s,@host_cpu@,$host_cpu,;t t
11470s,@host_vendor@,$host_vendor,;t t
11471s,@host_os@,$host_os,;t t
11472s,@target@,$target,;t t
11473s,@target_cpu@,$target_cpu,;t t
11474s,@target_vendor@,$target_vendor,;t t
11475s,@target_os@,$target_os,;t t
11476s,@CC@,$CC,;t t
11477s,@CFLAGS@,$CFLAGS,;t t
11478s,@LDFLAGS@,$LDFLAGS,;t t
11479s,@CPPFLAGS@,$CPPFLAGS,;t t
11480s,@ac_ct_CC@,$ac_ct_CC,;t t
11481s,@EXEEXT@,$EXEEXT,;t t
11482s,@OBJEXT@,$OBJEXT,;t t
11483s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11484s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11485s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11486s,@CYGPATH_W@,$CYGPATH_W,;t t
11487s,@PACKAGE@,$PACKAGE,;t t
11488s,@VERSION@,$VERSION,;t t
11489s,@ACLOCAL@,$ACLOCAL,;t t
11490s,@AUTOCONF@,$AUTOCONF,;t t
11491s,@AUTOMAKE@,$AUTOMAKE,;t t
11492s,@AUTOHEADER@,$AUTOHEADER,;t t
11493s,@MAKEINFO@,$MAKEINFO,;t t
11494s,@install_sh@,$install_sh,;t t
11495s,@STRIP@,$STRIP,;t t
11496s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11497s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11498s,@mkdir_p@,$mkdir_p,;t t
11499s,@AWK@,$AWK,;t t
11500s,@SET_MAKE@,$SET_MAKE,;t t
11501s,@am__leading_dot@,$am__leading_dot,;t t
11502s,@AMTAR@,$AMTAR,;t t
11503s,@am__tar@,$am__tar,;t t
11504s,@am__untar@,$am__untar,;t t
11505s,@DEPDIR@,$DEPDIR,;t t
11506s,@am__include@,$am__include,;t t
11507s,@am__quote@,$am__quote,;t t
11508s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11509s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11510s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11511s,@CCDEPMODE@,$CCDEPMODE,;t t
11512s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11513s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11514s,@LN_S@,$LN_S,;t t
11515s,@RANLIB@,$RANLIB,;t t
11516s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11517s,@LIBTOOL@,$LIBTOOL,;t t
11518s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11519s,@NO_WERROR@,$NO_WERROR,;t t
11520s,@YACC@,$YACC,;t t
11521s,@LEX@,$LEX,;t t
11522s,@LEXLIB@,$LEXLIB,;t t
11523s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11524s,@CPP@,$CPP,;t t
11525s,@EGREP@,$EGREP,;t t
11526s,@ALLOCA@,$ALLOCA,;t t
11527s,@USE_NLS@,$USE_NLS,;t t
11528s,@MSGFMT@,$MSGFMT,;t t
11529s,@GMSGFMT@,$GMSGFMT,;t t
11530s,@XGETTEXT@,$XGETTEXT,;t t
11531s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11532s,@CATALOGS@,$CATALOGS,;t t
11533s,@CATOBJEXT@,$CATOBJEXT,;t t
11534s,@DATADIRNAME@,$DATADIRNAME,;t t
11535s,@GMOFILES@,$GMOFILES,;t t
11536s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11537s,@INTLDEPS@,$INTLDEPS,;t t
11538s,@INTLLIBS@,$INTLLIBS,;t t
11539s,@INTLOBJS@,$INTLOBJS,;t t
11540s,@POFILES@,$POFILES,;t t
11541s,@POSUB@,$POSUB,;t t
11542s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11543s,@GT_NO@,$GT_NO,;t t
11544s,@GT_YES@,$GT_YES,;t t
11545s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11546s,@l@,$l,;t t
11547s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11548s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11549s,@MAINT@,$MAINT,;t t
11550s,@HDEFINES@,$HDEFINES,;t t
11551s,@AR@,$AR,;t t
11552s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11553s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11554s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11555s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11556s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11557s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11558s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11559s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11560s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11561s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11562s,@BUILD_MISC@,$BUILD_MISC,;t t
11563s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11564s,@EMULATION@,$EMULATION,;t t
11565s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11566s,@LIBOBJS@,$LIBOBJS,;t t
11567s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 11568CEOF
252b5132 11569
42ecbf5e
DJ
11570_ACEOF
11571
11572 cat >>$CONFIG_STATUS <<\_ACEOF
11573 # Split the substitutions into bite-sized pieces for seds with
11574 # small command number limits, like on Digital OSF/1 and HP-UX.
11575 ac_max_sed_lines=48
11576 ac_sed_frag=1 # Number of current file.
11577 ac_beg=1 # First line for current file.
11578 ac_end=$ac_max_sed_lines # Line after last line for current file.
11579 ac_more_lines=:
11580 ac_sed_cmds=
11581 while $ac_more_lines; do
11582 if test $ac_beg -gt 1; then
11583 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11584 else
11585 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11586 fi
11587 if test ! -s $tmp/subs.frag; then
11588 ac_more_lines=false
d15b04bd 11589 else
42ecbf5e
DJ
11590 # The purpose of the label and of the branching condition is to
11591 # speed up the sed processing (if there are no `@' at all, there
11592 # is no need to browse any of the substitutions).
11593 # These are the two extra sed commands mentioned above.
11594 (echo ':t
11595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11596 if test -z "$ac_sed_cmds"; then
11597 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11598 else
11599 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11600 fi
11601 ac_sed_frag=`expr $ac_sed_frag + 1`
11602 ac_beg=$ac_end
11603 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 11604 fi
42ecbf5e
DJ
11605 done
11606 if test -z "$ac_sed_cmds"; then
11607 ac_sed_cmds=cat
252b5132 11608 fi
42ecbf5e 11609fi # test -n "$CONFIG_FILES"
252b5132 11610
42ecbf5e
DJ
11611_ACEOF
11612cat >>$CONFIG_STATUS <<\_ACEOF
11613for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 11614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
11615 case $ac_file in
11616 - | *:- | *:-:* ) # input from stdin
11617 cat >$tmp/stdin
11618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11622 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11623 esac
11624
42ecbf5e
DJ
11625 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11626 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11628 X"$ac_file" : 'X\(//\)[^/]' \| \
11629 X"$ac_file" : 'X\(//\)$' \| \
11630 X"$ac_file" : 'X\(/\)' \| \
11631 . : '\(.\)' 2>/dev/null ||
11632echo X"$ac_file" |
11633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11635 /^X\(\/\/\)$/{ s//\1/; q; }
11636 /^X\(\/\).*/{ s//\1/; q; }
11637 s/.*/./; q'`
11638 { if $as_mkdir_p; then
11639 mkdir -p "$ac_dir"
d15b04bd 11640 else
42ecbf5e
DJ
11641 as_dir="$ac_dir"
11642 as_dirs=
11643 while test ! -d "$as_dir"; do
11644 as_dirs="$as_dir $as_dirs"
11645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11647 X"$as_dir" : 'X\(//\)[^/]' \| \
11648 X"$as_dir" : 'X\(//\)$' \| \
11649 X"$as_dir" : 'X\(/\)' \| \
11650 . : '\(.\)' 2>/dev/null ||
11651echo X"$as_dir" |
11652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11654 /^X\(\/\/\)$/{ s//\1/; q; }
11655 /^X\(\/\).*/{ s//\1/; q; }
11656 s/.*/./; q'`
11657 done
11658 test ! -n "$as_dirs" || mkdir $as_dirs
11659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11660echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11661 { (exit 1); exit 1; }; }; }
11662
11663 ac_builddir=.
e5a52504 11664
42ecbf5e
DJ
11665if test "$ac_dir" != .; then
11666 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11667 # A "../" for each directory in $ac_dir_suffix.
11668 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11669else
11670 ac_dir_suffix= ac_top_builddir=
11671fi
11672
11673case $srcdir in
11674 .) # No --srcdir option. We are building in place.
11675 ac_srcdir=.
11676 if test -z "$ac_top_builddir"; then
11677 ac_top_srcdir=.
11678 else
11679 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11680 fi ;;
11681 [\\/]* | ?:[\\/]* ) # Absolute path.
11682 ac_srcdir=$srcdir$ac_dir_suffix;
11683 ac_top_srcdir=$srcdir ;;
e5a52504 11684 *) # Relative path.
42ecbf5e
DJ
11685 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11686 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11687esac
252b5132 11688
42ecbf5e
DJ
11689# Do not use `cd foo && pwd` to compute absolute paths, because
11690# the directories may not exist.
11691case `pwd` in
11692.) ac_abs_builddir="$ac_dir";;
11693*)
11694 case "$ac_dir" in
11695 .) ac_abs_builddir=`pwd`;;
11696 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11697 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11698 esac;;
11699esac
11700case $ac_abs_builddir in
11701.) ac_abs_top_builddir=${ac_top_builddir}.;;
11702*)
11703 case ${ac_top_builddir}. in
11704 .) ac_abs_top_builddir=$ac_abs_builddir;;
11705 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11706 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11707 esac;;
11708esac
11709case $ac_abs_builddir in
11710.) ac_abs_srcdir=$ac_srcdir;;
11711*)
11712 case $ac_srcdir in
11713 .) ac_abs_srcdir=$ac_abs_builddir;;
11714 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11715 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11716 esac;;
11717esac
11718case $ac_abs_builddir in
11719.) ac_abs_top_srcdir=$ac_top_srcdir;;
11720*)
11721 case $ac_top_srcdir in
11722 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11723 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11724 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11725 esac;;
11726esac
e5a52504 11727
42ecbf5e
DJ
11728
11729 case $INSTALL in
11730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11731 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 11732 esac
e5a52504 11733
b7d4af3a
JW
11734 if test x"$ac_file" != x-; then
11735 { echo "$as_me:$LINENO: creating $ac_file" >&5
11736echo "$as_me: creating $ac_file" >&6;}
11737 rm -f "$ac_file"
11738 fi
42ecbf5e
DJ
11739 # Let's still pretend it is `configure' which instantiates (i.e., don't
11740 # use $as_me), people would be surprised to read:
11741 # /* config.h. Generated by config.status. */
11742 if test x"$ac_file" = x-; then
11743 configure_input=
11744 else
11745 configure_input="$ac_file. "
11746 fi
11747 configure_input=$configure_input"Generated from `echo $ac_file_in |
11748 sed 's,.*/,,'` by configure."
11749
11750 # First look for the input files in the build tree, otherwise in the
11751 # src tree.
11752 ac_file_inputs=`IFS=:
11753 for f in $ac_file_in; do
11754 case $f in
11755 -) echo $tmp/stdin ;;
11756 [\\/$]*)
11757 # Absolute (can't be DOS-style, as IFS=:)
11758 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11759echo "$as_me: error: cannot find input file: $f" >&2;}
11760 { (exit 1); exit 1; }; }
11761 echo "$f";;
11762 *) # Relative
11763 if test -f "$f"; then
11764 # Build tree
11765 echo "$f"
11766 elif test -f "$srcdir/$f"; then
11767 # Source tree
11768 echo "$srcdir/$f"
11769 else
11770 # /dev/null tree
11771 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11772echo "$as_me: error: cannot find input file: $f" >&2;}
11773 { (exit 1); exit 1; }; }
11774 fi;;
11775 esac
11776 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
11777_ACEOF
11778cat >>$CONFIG_STATUS <<_ACEOF
11779 sed "$ac_vpsub
11780$extrasub
11781_ACEOF
11782cat >>$CONFIG_STATUS <<\_ACEOF
11783:t
11784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11785s,@configure_input@,$configure_input,;t t
11786s,@srcdir@,$ac_srcdir,;t t
11787s,@abs_srcdir@,$ac_abs_srcdir,;t t
11788s,@top_srcdir@,$ac_top_srcdir,;t t
11789s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11790s,@builddir@,$ac_builddir,;t t
11791s,@abs_builddir@,$ac_abs_builddir,;t t
11792s,@top_builddir@,$ac_top_builddir,;t t
11793s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11794s,@INSTALL@,$ac_INSTALL,;t t
11795" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11796 rm -f $tmp/stdin
11797 if test x"$ac_file" != x-; then
11798 mv $tmp/out $ac_file
11799 else
11800 cat $tmp/out
11801 rm -f $tmp/out
11802 fi
11803
11804done
11805_ACEOF
11806cat >>$CONFIG_STATUS <<\_ACEOF
11807
11808#
11809# CONFIG_HEADER section.
11810#
252b5132
RH
11811
11812# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11813# NAME is the cpp macro being defined and VALUE is the value it is being given.
11814#
11815# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
11816ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11817ac_dB='[ ].*$,\1#\2'
11818ac_dC=' '
11819ac_dD=',;t'
11820# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11821ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11822ac_uB='$,\1#\2define\3'
252b5132 11823ac_uC=' '
42ecbf5e
DJ
11824ac_uD=',;t'
11825
11826for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
11828 case $ac_file in
11829 - | *:- | *:-:* ) # input from stdin
11830 cat >$tmp/stdin
11831 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11833 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11835 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11836 esac
11837
42ecbf5e
DJ
11838 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11839echo "$as_me: creating $ac_file" >&6;}
11840
11841 # First look for the input files in the build tree, otherwise in the
11842 # src tree.
11843 ac_file_inputs=`IFS=:
11844 for f in $ac_file_in; do
11845 case $f in
11846 -) echo $tmp/stdin ;;
11847 [\\/$]*)
11848 # Absolute (can't be DOS-style, as IFS=:)
11849 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11850echo "$as_me: error: cannot find input file: $f" >&2;}
11851 { (exit 1); exit 1; }; }
11852 # Do quote $f, to prevent DOS paths from being IFS'd.
11853 echo "$f";;
11854 *) # Relative
11855 if test -f "$f"; then
11856 # Build tree
11857 echo "$f"
11858 elif test -f "$srcdir/$f"; then
11859 # Source tree
11860 echo "$srcdir/$f"
11861 else
11862 # /dev/null tree
11863 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11864echo "$as_me: error: cannot find input file: $f" >&2;}
11865 { (exit 1); exit 1; }; }
11866 fi;;
11867 esac
11868 done` || { (exit 1); exit 1; }
11869 # Remove the trailing spaces.
11870 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11871
11872_ACEOF
11873
11874# Transform confdefs.h into two sed scripts, `conftest.defines' and
11875# `conftest.undefs', that substitutes the proper values into
11876# config.h.in to produce config.h. The first handles `#define'
11877# templates, and the second `#undef' templates.
11878# And first: Protect against being on the right side of a sed subst in
11879# config.status. Protect against being in an unquoted here document
11880# in config.status.
11881rm -f conftest.defines conftest.undefs
11882# Using a here document instead of a string reduces the quoting nightmare.
11883# Putting comments in sed scripts is not portable.
11884#
11885# `end' is used to avoid that the second main sed command (meant for
11886# 0-ary CPP macros) applies to n-ary macro definitions.
11887# See the Autoconf documentation for `clear'.
11888cat >confdef2sed.sed <<\_ACEOF
11889s/[\\&,]/\\&/g
11890s,[\\$`],\\&,g
11891t clear
11892: clear
11893s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11894t end
11895s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11896: end
11897_ACEOF
11898# If some macros were called several times there might be several times
11899# the same #defines, which is useless. Nevertheless, we may not want to
11900# sort them, since we want the *last* AC-DEFINE to be honored.
11901uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11902sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11903rm -f confdef2sed.sed
252b5132
RH
11904
11905# This sed command replaces #undef with comments. This is necessary, for
11906# example, in the case of _POSIX_SOURCE, which is predefined and required
11907# on some systems where configure will not decide to define it.
42ecbf5e
DJ
11908cat >>conftest.undefs <<\_ACEOF
11909s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11910_ACEOF
11911
11912# Break up conftest.defines because some shells have a limit on the size
11913# of here documents, and old seds have small limits too (100 cmds).
11914echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11915echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11916echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11917echo ' :' >>$CONFIG_STATUS
11918rm -f conftest.tail
11919while grep . conftest.defines >/dev/null
11920do
11921 # Write a limited-size here document to $tmp/defines.sed.
11922 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11923 # Speed up: don't consider the non `#define' lines.
11924 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11925 # Work around the forget-to-reset-the-flag bug.
11926 echo 't clr' >>$CONFIG_STATUS
11927 echo ': clr' >>$CONFIG_STATUS
11928 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11929 echo 'CEOF
11930 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11931 rm -f $tmp/in
11932 mv $tmp/out $tmp/in
11933' >>$CONFIG_STATUS
11934 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11935 rm -f conftest.defines
11936 mv conftest.tail conftest.defines
11937done
11938rm -f conftest.defines
11939echo ' fi # grep' >>$CONFIG_STATUS
11940echo >>$CONFIG_STATUS
252b5132 11941
42ecbf5e
DJ
11942# Break up conftest.undefs because some shells have a limit on the size
11943# of here documents, and old seds have small limits too (100 cmds).
11944echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11945rm -f conftest.tail
42ecbf5e 11946while grep . conftest.undefs >/dev/null
252b5132 11947do
42ecbf5e
DJ
11948 # Write a limited-size here document to $tmp/undefs.sed.
11949 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11950 # Speed up: don't consider the non `#undef'
11951 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11952 # Work around the forget-to-reset-the-flag bug.
11953 echo 't clr' >>$CONFIG_STATUS
11954 echo ': clr' >>$CONFIG_STATUS
11955 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11956 echo 'CEOF
42ecbf5e
DJ
11957 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11958 rm -f $tmp/in
11959 mv $tmp/out $tmp/in
11960' >>$CONFIG_STATUS
11961 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11962 rm -f conftest.undefs
11963 mv conftest.tail conftest.undefs
252b5132 11964done
42ecbf5e
DJ
11965rm -f conftest.undefs
11966
11967cat >>$CONFIG_STATUS <<\_ACEOF
11968 # Let's still pretend it is `configure' which instantiates (i.e., don't
11969 # use $as_me), people would be surprised to read:
11970 # /* config.h. Generated by config.status. */
11971 if test x"$ac_file" = x-; then
11972 echo "/* Generated by configure. */" >$tmp/config.h
11973 else
11974 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11975 fi
11976 cat $tmp/in >>$tmp/config.h
11977 rm -f $tmp/in
11978 if test x"$ac_file" != x-; then
11979 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11980 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11981echo "$as_me: $ac_file is unchanged" >&6;}
11982 else
11983 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11984$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985 X"$ac_file" : 'X\(//\)[^/]' \| \
11986 X"$ac_file" : 'X\(//\)$' \| \
11987 X"$ac_file" : 'X\(/\)' \| \
11988 . : '\(.\)' 2>/dev/null ||
11989echo X"$ac_file" |
11990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11992 /^X\(\/\/\)$/{ s//\1/; q; }
11993 /^X\(\/\).*/{ s//\1/; q; }
11994 s/.*/./; q'`
11995 { if $as_mkdir_p; then
11996 mkdir -p "$ac_dir"
252b5132 11997 else
42ecbf5e
DJ
11998 as_dir="$ac_dir"
11999 as_dirs=
12000 while test ! -d "$as_dir"; do
12001 as_dirs="$as_dir $as_dirs"
12002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12004 X"$as_dir" : 'X\(//\)[^/]' \| \
12005 X"$as_dir" : 'X\(//\)$' \| \
12006 X"$as_dir" : 'X\(/\)' \| \
12007 . : '\(.\)' 2>/dev/null ||
12008echo X"$as_dir" |
12009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12011 /^X\(\/\/\)$/{ s//\1/; q; }
12012 /^X\(\/\).*/{ s//\1/; q; }
12013 s/.*/./; q'`
12014 done
12015 test ! -n "$as_dirs" || mkdir $as_dirs
12016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12017echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12018 { (exit 1); exit 1; }; }; }
12019
12020 rm -f $ac_file
12021 mv $tmp/config.h $ac_file
252b5132 12022 fi
42ecbf5e
DJ
12023 else
12024 cat $tmp/config.h
12025 rm -f $tmp/config.h
252b5132 12026 fi
42ecbf5e
DJ
12027# Compute $ac_file's index in $config_headers.
12028_am_stamp_count=1
12029for _am_header in $config_headers :; do
12030 case $_am_header in
12031 $ac_file | $ac_file:* )
12032 break ;;
12033 * )
12034 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12035 esac
12036done
12037echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12038$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039 X$ac_file : 'X\(//\)[^/]' \| \
12040 X$ac_file : 'X\(//\)$' \| \
12041 X$ac_file : 'X\(/\)' \| \
12042 . : '\(.\)' 2>/dev/null ||
12043echo X$ac_file |
12044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12046 /^X\(\/\/\)$/{ s//\1/; q; }
12047 /^X\(\/\).*/{ s//\1/; q; }
12048 s/.*/./; q'`/stamp-h$_am_stamp_count
12049done
12050_ACEOF
12051cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 12052
42ecbf5e
DJ
12053#
12054# CONFIG_COMMANDS section.
12055#
12056for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12057 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12058 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12059 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12060$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X"$ac_dest" : 'X\(//\)[^/]' \| \
12062 X"$ac_dest" : 'X\(//\)$' \| \
12063 X"$ac_dest" : 'X\(/\)' \| \
12064 . : '\(.\)' 2>/dev/null ||
12065echo X"$ac_dest" |
12066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068 /^X\(\/\/\)$/{ s//\1/; q; }
12069 /^X\(\/\).*/{ s//\1/; q; }
12070 s/.*/./; q'`
12071 { if $as_mkdir_p; then
12072 mkdir -p "$ac_dir"
12073 else
12074 as_dir="$ac_dir"
12075 as_dirs=
12076 while test ! -d "$as_dir"; do
12077 as_dirs="$as_dir $as_dirs"
12078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12080 X"$as_dir" : 'X\(//\)[^/]' \| \
12081 X"$as_dir" : 'X\(//\)$' \| \
12082 X"$as_dir" : 'X\(/\)' \| \
12083 . : '\(.\)' 2>/dev/null ||
12084echo X"$as_dir" |
12085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12087 /^X\(\/\/\)$/{ s//\1/; q; }
12088 /^X\(\/\).*/{ s//\1/; q; }
12089 s/.*/./; q'`
12090 done
12091 test ! -n "$as_dirs" || mkdir $as_dirs
12092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12094 { (exit 1); exit 1; }; }; }
252b5132 12095
42ecbf5e 12096 ac_builddir=.
e5a52504 12097
42ecbf5e
DJ
12098if test "$ac_dir" != .; then
12099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12100 # A "../" for each directory in $ac_dir_suffix.
12101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12102else
12103 ac_dir_suffix= ac_top_builddir=
12104fi
12105
12106case $srcdir in
12107 .) # No --srcdir option. We are building in place.
12108 ac_srcdir=.
12109 if test -z "$ac_top_builddir"; then
12110 ac_top_srcdir=.
12111 else
12112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12113 fi ;;
12114 [\\/]* | ?:[\\/]* ) # Absolute path.
12115 ac_srcdir=$srcdir$ac_dir_suffix;
12116 ac_top_srcdir=$srcdir ;;
12117 *) # Relative path.
12118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12120esac
12121
12122# Do not use `cd foo && pwd` to compute absolute paths, because
12123# the directories may not exist.
12124case `pwd` in
12125.) ac_abs_builddir="$ac_dir";;
12126*)
12127 case "$ac_dir" in
12128 .) ac_abs_builddir=`pwd`;;
12129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12131 esac;;
12132esac
12133case $ac_abs_builddir in
12134.) ac_abs_top_builddir=${ac_top_builddir}.;;
12135*)
12136 case ${ac_top_builddir}. in
12137 .) ac_abs_top_builddir=$ac_abs_builddir;;
12138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12140 esac;;
12141esac
12142case $ac_abs_builddir in
12143.) ac_abs_srcdir=$ac_srcdir;;
12144*)
12145 case $ac_srcdir in
12146 .) ac_abs_srcdir=$ac_abs_builddir;;
12147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12149 esac;;
12150esac
12151case $ac_abs_builddir in
12152.) ac_abs_top_srcdir=$ac_top_srcdir;;
12153*)
12154 case $ac_top_srcdir in
12155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12158 esac;;
12159esac
e5a52504 12160
42ecbf5e
DJ
12161
12162 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12163echo "$as_me: executing $ac_dest commands" >&6;}
12164 case $ac_dest in
12165 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12166 # Strip MF so we end up with the name of the file.
12167 mf=`echo "$mf" | sed -e 's/:.*$//'`
12168 # Check whether this is an Automake generated Makefile or not.
12169 # We used to match only the files named `Makefile.in', but
12170 # some people rename them; so instead we look at the file content.
12171 # Grep'ing the first line is not enough: some people post-process
12172 # each Makefile.in and add a new line on top of each file to say so.
12173 # So let's grep whole file.
12174 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12175 dirpart=`(dirname "$mf") 2>/dev/null ||
12176$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12177 X"$mf" : 'X\(//\)[^/]' \| \
12178 X"$mf" : 'X\(//\)$' \| \
12179 X"$mf" : 'X\(/\)' \| \
12180 . : '\(.\)' 2>/dev/null ||
12181echo X"$mf" |
12182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12184 /^X\(\/\/\)$/{ s//\1/; q; }
12185 /^X\(\/\).*/{ s//\1/; q; }
12186 s/.*/./; q'`
12187 else
12188 continue
12189 fi
12190 # Extract the definition of DEPDIR, am__include, and am__quote
12191 # from the Makefile without running `make'.
12192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12193 test -z "$DEPDIR" && continue
12194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12195 test -z "am__include" && continue
12196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12197 # When using ansi2knr, U may be empty or an underscore; expand it
12198 U=`sed -n 's/^U = //p' < "$mf"`
12199 # Find all dependency output files, they are included files with
12200 # $(DEPDIR) in their names. We invoke sed twice because it is the
12201 # simplest approach to changing $(DEPDIR) to its actual value in the
12202 # expansion.
12203 for file in `sed -n "
12204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12206 # Make sure the directory exists.
12207 test -f "$dirpart/$file" && continue
12208 fdir=`(dirname "$file") 2>/dev/null ||
12209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12210 X"$file" : 'X\(//\)[^/]' \| \
12211 X"$file" : 'X\(//\)$' \| \
12212 X"$file" : 'X\(/\)' \| \
12213 . : '\(.\)' 2>/dev/null ||
12214echo X"$file" |
12215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12217 /^X\(\/\/\)$/{ s//\1/; q; }
12218 /^X\(\/\).*/{ s//\1/; q; }
12219 s/.*/./; q'`
12220 { if $as_mkdir_p; then
12221 mkdir -p $dirpart/$fdir
12222 else
12223 as_dir=$dirpart/$fdir
12224 as_dirs=
12225 while test ! -d "$as_dir"; do
12226 as_dirs="$as_dir $as_dirs"
12227 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12229 X"$as_dir" : 'X\(//\)[^/]' \| \
12230 X"$as_dir" : 'X\(//\)$' \| \
12231 X"$as_dir" : 'X\(/\)' \| \
12232 . : '\(.\)' 2>/dev/null ||
12233echo X"$as_dir" |
12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12236 /^X\(\/\/\)$/{ s//\1/; q; }
12237 /^X\(\/\).*/{ s//\1/; q; }
12238 s/.*/./; q'`
12239 done
12240 test ! -n "$as_dirs" || mkdir $as_dirs
12241 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12242echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12243 { (exit 1); exit 1; }; }; }
12244
12245 # echo "creating $dirpart/$file"
12246 echo '# dummy' > "$dirpart/$file"
12247 done
12248done
12249 ;;
12250 default )
252b5132
RH
12251case "x$CONFIG_FILES" in
12252*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12253esac
42ecbf5e
DJ
12254 ;;
12255 esac
12256done
12257_ACEOF
e5a52504 12258
42ecbf5e
DJ
12259cat >>$CONFIG_STATUS <<\_ACEOF
12260
12261{ (exit 0); exit 0; }
12262_ACEOF
252b5132 12263chmod +x $CONFIG_STATUS
42ecbf5e
DJ
12264ac_clean_files=$ac_clean_files_save
12265
12266
12267# configure is writing to config.log, and then calls config.status.
12268# config.status does its own redirection, appending to config.log.
12269# Unfortunately, on DOS this fails, as config.log is still kept open
12270# by configure, so config.status won't be able to write to it; its
12271# output is simply discarded. So we exec the FD to /dev/null,
12272# effectively closing config.log, so it can be properly (re)opened and
12273# appended to by config.status. When coming back to configure, we
12274# need to make the FD available again.
12275if test "$no_create" != yes; then
12276 ac_cs_success=:
12277 ac_config_status_args=
12278 test "$silent" = yes &&
12279 ac_config_status_args="$ac_config_status_args --quiet"
12280 exec 5>/dev/null
12281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12282 exec 5>>config.log
12283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12284 # would make configure fail if this is the last instruction.
12285 $ac_cs_success || { (exit 1); exit 1; }
12286fi
252b5132 12287
This page took 0.918047 seconds and 4 git commands to generate.