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