Commit new Spanish translation.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 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.
13b2be9c
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
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
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
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
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
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
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.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
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
13b2be9c
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
13b2be9c
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="as.h"
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
8ea2b00f 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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS 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 LIBM LIBOBJS LTLIBOBJS'
13b2be9c 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
13b2be9c
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.
13b2be9c 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
13b2be9c
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
13b2be9c 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
13b2be9c 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=*)
13b2be9c 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
13b2be9c 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 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=*)
13b2be9c
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=*)
13b2be9c 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
13b2be9c 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
13b2be9c
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-*)
13b2be9c 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
13b2be9c
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
13b2be9c 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=*)
13b2be9c 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
13b2be9c
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)
13b2be9c 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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 \
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
13b2be9c 561 site=$ac_optarg ;;
76bff705 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 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=*)
13b2be9c 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
13b2be9c
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
13b2be9c 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
13b2be9c
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'`
13b2be9c
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
13b2be9c 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
13b2be9c 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
13b2be9c
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=*)
13b2be9c 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=*)
13b2be9c 624 x_libraries=$ac_optarg ;;
252b5132 625
13b2be9c
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
13b2be9c
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 *)
13b2be9c
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
13b2be9c
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; }; }
c8615825 656fi
c8615825 657
13b2be9c
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
13b2be9c
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
13b2be9c
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
13b2be9c
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
9b2b7d69 698
13b2be9c
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.
13b2be9c
DJ
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
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
13b2be9c
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
13b2be9c
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
13b2be9c
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
d6d788bd 773
13b2be9c
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.
9b2b7d69 782
13b2be9c 783Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 784
13b2be9c
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 787
13b2be9c 788Defaults for the options are specified in brackets.
9b2b7d69 789
13b2be9c
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
ab509236 806 [$ac_default_prefix]
13b2be9c 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 808 [PREFIX]
9b2b7d69 809
13b2be9c
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'.
9b2b7d69 814
13b2be9c 815For better control, use the options below.
9b2b7d69 816
13b2be9c
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
9b2b7d69 831
13b2be9c 832 cat <<\_ACEOF
9b2b7d69 833
13b2be9c
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
9b2b7d69 838
13b2be9c
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
9b2b7d69 844fi
9b2b7d69 845
13b2be9c 846if test -n "$ac_init_help"; then
9b2b7d69 847
13b2be9c 848 cat <<\_ACEOF
9b2b7d69 849
13b2be9c
DJ
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
13b2be9c
DJ
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-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
863 --disable-nls do not use Native Language Support
ab509236
L
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
9b2b7d69 866
13b2be9c
DJ
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
9b2b7d69 873
13b2be9c
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
882
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
9b2b7d69 887fi
9b2b7d69 888
13b2be9c
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
9b2b7d69 903
13b2be9c
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,/$,,'`
c8615825 911 fi ;;
13b2be9c
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 ;;
c8615825 918esac
ab509236
L
919
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;;
930esac
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;;
957esac
13b2be9c
DJ
958
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 ||
ab509236 968 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
e330299e 974 cd "$ac_popdir"
13b2be9c
DJ
975 done
976fi
6840198f 977
13b2be9c
DJ
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
c8615825 981
ab509236 982Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
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.
c8615825 992
13b2be9c 993It was created by $as_me, which was
ab509236 994generated by GNU Autoconf 2.59. Invocation command line was
c8615825 995
13b2be9c 996 $ $0 $@
c8615825 997
13b2be9c
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
9b2b7d69 1031
13b2be9c 1032} >&5
6840198f 1033
13b2be9c 1034cat >&5 <<_ACEOF
c8615825 1035
9b2b7d69 1036
13b2be9c
DJ
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
87ccc1b0 1040
13b2be9c 1041_ACEOF
9b2b7d69 1042
13b2be9c
DJ
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
ab509236 1071 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1072 else
ab509236
L
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
13b2be9c
DJ
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
c8615825
AM
1088 ;;
1089 esac
1090 done
13b2be9c
DJ
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 \
ab509236
L
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1119 ;;
1120 *)
1121 sed -n \
ab509236 1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
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`
ab509236 1151 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
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
ab509236 1170 rm -f core *.core &&
13b2be9c
DJ
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 |
ab509236 1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
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
ab509236 1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1270echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1272echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1273 ac_cache_corrupted=:
13b2be9c
DJ
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/..; 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/.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in .. $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
13b2be9c
DJ
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.
ab509236
L
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
13b2be9c
DJ
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 )
ab509236 1805 ;;
13b2be9c 1806 conftest.$ac_ext )
ab509236
L
1807 # This is the source file.
1808 ;;
13b2be9c 1809 [ab].out )
ab509236
L
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
13b2be9c 1813 *.* )
ab509236
L
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;;
13b2be9c 1820 * )
ab509236 1821 break;;
13b2be9c
DJ
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" : '[^.]*\(\..*\)'`
ab509236
L
1895 export ac_cv_exeext
1896 break;;
13b2be9c
DJ
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
13b2be9c
DJ
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
13b2be9c
DJ
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
ab509236 1990 (eval $ac_compile) 2>conftest.er1
13b2be9c 1991 ac_status=$?
ab509236
L
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
13b2be9c
DJ
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
e330299e 1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010else
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014ac_compiler_gnu=no
2015fi
ab509236 2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2017ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019fi
2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022GCC=`test $ac_compiler_gnu = yes && echo yes`
2023ac_test_CFLAGS=${CFLAGS+set}
2024ac_save_CFLAGS=$CFLAGS
2025CFLAGS="-g"
2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2032/* confdefs.h. */
2033_ACEOF
2034cat confdefs.h >>conftest.$ac_ext
2035cat >>conftest.$ac_ext <<_ACEOF
2036/* end confdefs.h. */
2037
2038int
2039main ()
2040{
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2048 (eval $ac_compile) 2>conftest.er1
13b2be9c 2049 ac_status=$?
ab509236
L
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
13b2be9c
DJ
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
e330299e 2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_g=yes
2068else
2069 echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072ac_cv_prog_cc_g=no
2073fi
ab509236 2074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2075fi
2076echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2085 fi
2086else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2091 fi
2092fi
2093echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 ac_cv_prog_cc_stdc=no
2099ac_save_CC=$CC
2100cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106#include <stdarg.h>
2107#include <stdio.h>
2108#include <sys/types.h>
2109#include <sys/stat.h>
2110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111struct buf { int x; };
2112FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113static char *e (p, i)
2114 char **p;
2115 int i;
2116{
2117 return p[i];
2118}
2119static char *f (char * (*g) (char **, int), char **p, ...)
2120{
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2127}
ab509236
L
2128
2129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
13b2be9c
DJ
2138int test (int i, double x);
2139struct s1 {int (*f) (int a);};
2140struct s2 {int (*f) (double a);};
2141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142int argc;
2143char **argv;
2144int
2145main ()
2146{
2147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152# Don't try gcc -ansi; that turns off useful extensions and
2153# breaks some systems' header files.
2154# AIX -qlanglvl=ansi
2155# Ultrix and OSF/1 -std1
2156# HP-UX 10.20 and later -Ae
2157# HP-UX older versions -Aa -D_HPUX_SOURCE
2158# SVR4 -Xc -D__EXTENSIONS__
2159for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160do
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2164 (eval $ac_compile) 2>conftest.er1
13b2be9c 2165 ac_status=$?
ab509236
L
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
13b2be9c
DJ
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
e330299e 2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2184break
2185else
2186 echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189fi
ab509236 2190rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2191done
2192rm -f conftest.$ac_ext conftest.$ac_objext
2193CC=$ac_save_CC
2194
2195fi
2196
2197case "x$ac_cv_prog_cc_stdc" in
2198 x|xno)
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200echo "${ECHO_T}none needed" >&6 ;;
2201 *)
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2205esac
2206
2207# Some people use a C++ compiler to compile C. Since we use `exit',
2208# in C++ we need to declare it. In case someone uses the same compiler
2209# for both compiling C and C++ we need to have the C++ compiler decide
2210# the declaration of exit, since it's the most demanding environment.
2211cat >conftest.$ac_ext <<_ACEOF
2212#ifndef __cplusplus
2213 choke me
2214#endif
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2218 (eval $ac_compile) 2>conftest.er1
13b2be9c 2219 ac_status=$?
ab509236
L
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
13b2be9c
DJ
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
e330299e 2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
ab509236 2238 '' \
13b2be9c
DJ
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2243 'void exit (int);'
2244do
2245 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2246/* confdefs.h. */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h. */
13dfd2d0 2251$ac_declaration
ab509236 2252#include <stdlib.h>
13b2be9c
DJ
2253int
2254main ()
2255{
2256exit (42);
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2263 (eval $ac_compile) 2>conftest.er1
13b2be9c 2264 ac_status=$?
ab509236
L
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
13b2be9c
DJ
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
e330299e 2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 :
2283else
2284 echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287continue
2288fi
ab509236 2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2290 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h. */
2296$ac_declaration
2297int
2298main ()
2299{
2300exit (42);
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2307 (eval $ac_compile) 2>conftest.er1
13b2be9c 2308 ac_status=$?
ab509236
L
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
13b2be9c
DJ
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
e330299e 2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
13b2be9c
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); }; }; then
2326 break
2327else
2328 echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331fi
ab509236 2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2333done
2334rm -f conftest*
2335if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2339fi
2340
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
ab509236 2346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2347ac_ext=c
2348ac_cpp='$CPP $CPPFLAGS'
2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
ab509236
L
2354echo "$as_me:$LINENO: checking for library containing strerror" >&5
2355echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2356if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
ab509236
L
2359 ac_func_search_save_LIBS=$LIBS
2360ac_cv_search_strerror=no
13b2be9c 2361cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367
2368/* Override any gcc2 internal prototype to avoid an error. */
2369#ifdef __cplusplus
2370extern "C"
2371#endif
2372/* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2374char strerror ();
2375int
2376main ()
2377{
2378strerror ();
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383rm -f conftest.$ac_objext conftest$ac_exeext
2384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2385 (eval $ac_link) 2>conftest.er1
13b2be9c 2386 ac_status=$?
ab509236
L
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
13b2be9c
DJ
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
e330299e 2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
ab509236 2404 ac_cv_search_strerror="none required"
13b2be9c
DJ
2405else
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
13b2be9c 2409fi
ab509236
L
2410rm -f conftest.err conftest.$ac_objext \
2411 conftest$ac_exeext conftest.$ac_ext
2412if test "$ac_cv_search_strerror" = no; then
2413 for ac_lib in cposix; do
2414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2415 cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h. */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h. */
2421
2422/* Override any gcc2 internal prototype to avoid an error. */
2423#ifdef __cplusplus
2424extern "C"
2425#endif
2426/* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428char strerror ();
2429int
2430main ()
2431{
2432strerror ();
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext conftest$ac_exeext
2438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439 (eval $ac_link) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
e330299e 2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_search_strerror="-l$ac_lib"
2459break
2460else
2461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
13b2be9c 2464fi
ab509236
L
2465rm -f conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2467 done
13b2be9c 2468fi
ab509236
L
2469LIBS=$ac_func_search_save_LIBS
2470fi
2471echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2472echo "${ECHO_T}$ac_cv_search_strerror" >&6
2473if test "$ac_cv_search_strerror" != no; then
2474 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2475
ab509236 2476fi
13b2be9c
DJ
2477
2478
2479BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2480am__api_version="1.9"
13b2be9c
DJ
2481# Find a good install program. We prefer a C program (faster),
2482# so one script is as good as another. But avoid the broken or
2483# incompatible versions:
2484# SysV /etc/install, /usr/sbin/install
2485# SunOS /usr/etc/install
2486# IRIX /sbin/install
2487# AIX /bin/install
2488# AmigaOS /C/install, which installs bootblocks on floppy discs
2489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2492# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2493# ./install, which can be erroneously created by make from ./install.sh.
2494echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2496if test -z "$INSTALL"; then
2497if test "${ac_cv_path_install+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506case $as_dir/ in
2507 ./ | .// | /cC/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2510 /usr/ucb/* ) ;;
2511 *)
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2517 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2521 :
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2525 :
2526 else
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2529 fi
2530 fi
13b2be9c
DJ
2531 done
2532 done
2533 ;;
2534esac
2535done
2536
252b5132
RH
2537
2538fi
2539 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2540 INSTALL=$ac_cv_path_install
252b5132
RH
2541 else
2542 # As a last resort, use the slow shell script. We don't cache a
2543 # path for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the path is relative.
13b2be9c 2546 INSTALL=$ac_install_sh
252b5132
RH
2547 fi
2548fi
13b2be9c
DJ
2549echo "$as_me:$LINENO: result: $INSTALL" >&5
2550echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
13b2be9c 2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
13b2be9c
DJ
2560echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2562# Just in case
2563sleep 1
13b2be9c 2564echo timestamp > conftest.file
252b5132
RH
2565# Do `set' in a subshell so we don't clobber the current shell's
2566# arguments. Must try -L first in case configure is actually a
2567# symlink; some systems play weird games with the mod time of symlinks
2568# (eg FreeBSD returns the mod time of the symlink's containing
2569# directory).
2570if (
13b2be9c 2571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2572 if test "$*" = "X"; then
2573 # -L didn't work.
13b2be9c 2574 set X `ls -t $srcdir/configure conftest.file`
252b5132 2575 fi
13b2be9c
DJ
2576 rm -f conftest.file
2577 if test "$*" != "X $srcdir/configure conftest.file" \
2578 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2579
2580 # If neither matched, then we have a broken ls. This can happen
2581 # if, for instance, CONFIG_SHELL is bash and it inherits a
2582 # broken ls alias from the environment. This has actually
2583 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2585alias in your environment" >&5
2586echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2587alias in your environment" >&2;}
2588 { (exit 1); exit 1; }; }
252b5132
RH
2589 fi
2590
13b2be9c
DJ
2591 test "$2" = conftest.file
2592 )
2593then
2594 # Ok.
2595 :
2596else
2597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2598Check your system clock" >&5
2599echo "$as_me: error: newly created file is older than distributed files!
2600Check your system clock" >&2;}
2601 { (exit 1); exit 1; }; }
2602fi
2603echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
2605test "$program_prefix" != NONE &&
2606 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2607# Use a double $ so make ignores it.
2608test "$program_suffix" != NONE &&
2609 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2610# Double any \ or $. echo might interpret backslashes.
2611# By default was `s,x,x', remove it if useless.
2612cat <<\_ACEOF >conftest.sed
2613s/[\\$]/&&/g;s/;s,x,x,$//
2614_ACEOF
2615program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2616rm conftest.sed
2617
13b2be9c
DJ
2618# expand $ac_aux_dir to an absolute path
2619am_aux_dir=`cd $ac_aux_dir && pwd`
2620
2621test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2622# Use eval to expand $SHELL
2623if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2625else
2626 am_missing_run=
2627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2628echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629fi
2630
4b363073 2631if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2632 # We used to keeping the `.' as first argument, in order to
2633 # allow $(mkdir_p) to be used without argument. As in
ab509236 2634 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2635 # where $(somedir) is conditionally defined. However this is wrong
2636 # for two reasons:
2637 # 1. if the package is installed by a user who cannot write `.'
2638 # make install will fail,
2639 # 2. the above comment should most certainly read
2640 # $(mkdir_p) $(DESTDIR)$(somedir)
2641 # so it does not work when $(somedir) is undefined and
2642 # $(DESTDIR) is not.
2643 # To support the latter case, we have to write
2644 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2645 # so the `.' trick is pointless.
2646 mkdir_p='mkdir -p --'
ab509236
L
2647else
2648 # On NextStep and OpenStep, the `mkdir' command does not
2649 # recognize any option. It will interpret all options as
2650 # directories to create, and then abort because `.' already
2651 # exists.
4b363073 2652 for d in ./-p ./--version;
ab509236
L
2653 do
2654 test -d $d && rmdir $d
2655 done
2656 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2657 if test -f "$ac_aux_dir/mkinstalldirs"; then
2658 mkdir_p='$(mkinstalldirs)'
2659 else
2660 mkdir_p='$(install_sh) -d'
2661 fi
2662fi
2663
13b2be9c
DJ
2664for ac_prog in gawk mawk nawk awk
2665do
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667set dummy $ac_prog; ac_word=$2
2668echo "$as_me:$LINENO: checking for $ac_word" >&5
2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670if test "${ac_cv_prog_AWK+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 if test -n "$AWK"; then
2674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_AWK="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688done
2689
2690fi
2691fi
2692AWK=$ac_cv_prog_AWK
2693if test -n "$AWK"; then
2694 echo "$as_me:$LINENO: result: $AWK" >&5
2695echo "${ECHO_T}$AWK" >&6
2696else
2697 echo "$as_me:$LINENO: result: no" >&5
2698echo "${ECHO_T}no" >&6
2699fi
2700
2701 test -n "$AWK" && break
2702done
2703
2704echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2707if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710 cat >conftest.make <<\_ACEOF
2711all:
2712 @echo 'ac_maketemp="$(MAKE)"'
2713_ACEOF
2714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2715eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2716if test -n "$ac_maketemp"; then
2717 eval ac_cv_prog_make_${ac_make}_set=yes
2718else
2719 eval ac_cv_prog_make_${ac_make}_set=no
2720fi
2721rm -f conftest.make
2722fi
2723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725echo "${ECHO_T}yes" >&6
2726 SET_MAKE=
2727else
2728 echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6
2730 SET_MAKE="MAKE=${MAKE-make}"
2731fi
2732
2733rm -rf .tst 2>/dev/null
2734mkdir .tst 2>/dev/null
2735if test -d .tst; then
2736 am__leading_dot=.
2737else
2738 am__leading_dot=_
2739fi
2740rmdir .tst 2>/dev/null
2741
2742DEPDIR="${am__leading_dot}deps"
2743
2744 ac_config_commands="$ac_config_commands depfiles"
2745
2746
2747am_make=${MAKE-make}
2748cat > confinc << 'END'
2749am__doit:
2750 @echo done
2751.PHONY: am__doit
2752END
2753# If we don't find an include directive, just comment out the code.
2754echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2756am__include="#"
2757am__quote=
2758_am_result=none
2759# First try GNU make style include.
2760echo "include confinc" > confmf
2761# We grep out `Entering directory' and `Leaving directory'
2762# messages which can occur if `w' ends up in MAKEFLAGS.
2763# In particular we don't look at `^make:' because GNU make might
2764# be invoked under some other name (usually "gmake"), in which
2765# case it prints its new name instead of `make'.
2766if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767 am__include=include
2768 am__quote=
2769 _am_result=GNU
2770fi
2771# Now try BSD make style include.
2772if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2776 am__quote="\""
2777 _am_result=BSD
2778 fi
2779fi
2780
2781
2782echo "$as_me:$LINENO: result: $_am_result" >&5
2783echo "${ECHO_T}$_am_result" >&6
2784rm -f confinc confmf
2785
2786# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787if test "${enable_dependency_tracking+set}" = set; then
2788 enableval="$enable_dependency_tracking"
2789
2790fi;
2791if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2793 AMDEPBACKSLASH='\'
2794fi
2795
2796
2797if test "x$enable_dependency_tracking" != xno; then
2798 AMDEP_TRUE=
2799 AMDEP_FALSE='#'
2800else
2801 AMDEP_TRUE='#'
2802 AMDEP_FALSE=
2803fi
2804
2805
2806
ab509236 2807# test to see if srcdir already configured
13b2be9c
DJ
2808if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809 test -f $srcdir/config.status; then
2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812 { (exit 1); exit 1; }; }
2813fi
2814
2815# test whether we have cygpath
2816if test -z "$CYGPATH_W"; then
2817 if (cygpath --version) >/dev/null 2>/dev/null; then
2818 CYGPATH_W='cygpath -w'
2819 else
2820 CYGPATH_W=echo
2821 fi
2822fi
2823
2824
2825# Define the identity of the package.
2826 PACKAGE=gas
2827 VERSION=${BFD_VERSION}
2828
2829
2830cat >>confdefs.h <<_ACEOF
2831#define PACKAGE "$PACKAGE"
2832_ACEOF
2833
2834
2835cat >>confdefs.h <<_ACEOF
2836#define VERSION "$VERSION"
2837_ACEOF
2838
2839# Some tools Automake needs.
2840
2841ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2842
2843
2844AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2845
2846
2847AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2848
2849
2850AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2851
2852
2853MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2854
13b2be9c
DJ
2855install_sh=${install_sh-"$am_aux_dir/install-sh"}
2856
2857# Installed binaries are usually stripped using `strip' when the user
2858# run `make install-strip'. However `strip' might not be the right
2859# tool to use in cross-compilation environments, therefore Automake
2860# will honor the `STRIP' environment variable to overrule this program.
2861if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864set dummy ${ac_tool_prefix}strip; ac_word=$2
2865echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867if test "${ac_cv_prog_STRIP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2872else
13b2be9c
DJ
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886
252b5132 2887fi
13b2be9c
DJ
2888fi
2889STRIP=$ac_cv_prog_STRIP
2890if test -n "$STRIP"; then
2891 echo "$as_me:$LINENO: result: $STRIP" >&5
2892echo "${ECHO_T}$STRIP" >&6
c8615825 2893else
13b2be9c
DJ
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
c8615825 2896fi
c8615825 2897
13b2be9c
DJ
2898fi
2899if test -z "$ac_cv_prog_STRIP"; then
2900 ac_ct_STRIP=$STRIP
2901 # Extract the first word of "strip", so it can be a program name with args.
2902set dummy strip; ac_word=$2
2903echo "$as_me:$LINENO: checking for $ac_word" >&5
2904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2907else
13b2be9c
DJ
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2910else
13b2be9c
DJ
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923done
2924
2925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2926fi
252b5132 2927fi
13b2be9c
DJ
2928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929if test -n "$ac_ct_STRIP"; then
2930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2932else
13b2be9c
DJ
2933 echo "$as_me:$LINENO: result: no" >&5
2934echo "${ECHO_T}no" >&6
252b5132
RH
2935fi
2936
13b2be9c
DJ
2937 STRIP=$ac_ct_STRIP
2938else
2939 STRIP="$ac_cv_prog_STRIP"
2940fi
d6d788bd 2941
252b5132 2942fi
13b2be9c 2943INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2944
13b2be9c
DJ
2945# We need awk for the "check" target. The system "awk" is bad on
2946# some platforms.
8ea2b00f
AM
2947# Always define AMTAR for backward compatibility.
2948
2949AMTAR=${AMTAR-"${am_missing_run}tar"}
2950
2951am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2952
2953
252b5132 2954
d6d788bd 2955
13b2be9c 2956depcc="$CC" am_compiler_list=
d6d788bd 2957
13b2be9c
DJ
2958echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2962else
13b2be9c
DJ
2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964 # We make a subdir and do the tests there. Otherwise we can end up
2965 # making bogus files that we don't know about and never remove. For
2966 # instance it was reported that on HP-UX the gcc test will end up
2967 # making a dummy file named `D' -- because `-MD' means `put the output
2968 # in D'.
2969 mkdir conftest.dir
2970 # Copy depcomp to subdir because otherwise we won't find it if we're
2971 # using a relative directory.
2972 cp "$am_depcomp" conftest.dir
2973 cd conftest.dir
2974 # We will build objects and dependencies in a subdirectory because
2975 # it helps to detect inapplicable dependency modes. For instance
2976 # both Tru64's cc and ICC support -MD to output dependencies as a
2977 # side effect of compilation, but ICC will put the dependencies in
2978 # the current directory while Tru64 will put them in the object
2979 # directory.
2980 mkdir sub
252b5132 2981
13b2be9c
DJ
2982 am_cv_CC_dependencies_compiler_type=none
2983 if test "$am_compiler_list" = ""; then
2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2985 fi
2986 for depmode in $am_compiler_list; do
2987 # Setup a source with many dependencies, because some compilers
2988 # like to wrap large dependency lists on column 80 (with \), and
2989 # we should not choose a depcomp mode which is confused by this.
2990 #
2991 # We need to recreate these files for each test, as the compiler may
2992 # overwrite some of them when testing with obscure command lines.
2993 # This happens at least with the AIX C compiler.
2994 : > sub/conftest.c
2995 for i in 1 2 3 4 5 6; do
2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
2997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2998 # Solaris 8's {/usr,}/bin/sh.
2999 touch sub/conftst$i.h
13b2be9c
DJ
3000 done
3001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3002
3003 case $depmode in
3004 nosideeffect)
3005 # after this tag, mechanisms are not by side-effect, so they'll
3006 # only be used when explicitly requested
3007 if test "x$enable_dependency_tracking" = xyes; then
3008 continue
3009 else
3010 break
3011 fi
3012 ;;
3013 none) break ;;
3014 esac
3015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016 # mode. It turns out that the SunPro C++ compiler does not properly
3017 # handle `-M -o', and we need to detect this.
3018 if depmode=$depmode \
3019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3022 >/dev/null 2>conftest.err &&
3023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3026 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3027 # or remarks (even with -Werror). So we grep stderr for any message
3028 # that says an option was ignored or not supported.
3029 # When given -MP, icc 7.0 and 7.1 complain thusly:
3030 # icc: Command line warning: ignoring option '-M'; no argument required
3031 # The diagnosis changed in icc 8.0:
3032 # icc: Command line remark: option '-MP' not supported
3033 if (grep 'ignoring option' conftest.err ||
3034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3035 am_cv_CC_dependencies_compiler_type=$depmode
3036 break
3037 fi
3038 fi
3039 done
252b5132 3040
13b2be9c
DJ
3041 cd ..
3042 rm -rf conftest.dir
252b5132 3043else
13b2be9c 3044 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3045fi
3046
252b5132 3047fi
13b2be9c
DJ
3048echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3051
13b2be9c
DJ
3052
3053
3054if
3055 test "x$enable_dependency_tracking" != xno \
3056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3057 am__fastdepCC_TRUE=
3058 am__fastdepCC_FALSE='#'
252b5132 3059else
13b2be9c
DJ
3060 am__fastdepCC_TRUE='#'
3061 am__fastdepCC_FALSE=
252b5132
RH
3062fi
3063
d6d788bd
L
3064
3065
13b2be9c 3066
252b5132
RH
3067# Check whether --enable-shared or --disable-shared was given.
3068if test "${enable_shared+set}" = set; then
3069 enableval="$enable_shared"
3070 p=${PACKAGE-default}
f9c19112 3071case $enableval in
252b5132
RH
3072yes) enable_shared=yes ;;
3073no) enable_shared=no ;;
3074*)
3075 enable_shared=no
3076 # Look at the argument we got. We use all the common list separators.
3077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078 for pkg in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3080 enable_shared=yes
3081 fi
3082 done
3083 IFS="$ac_save_ifs"
3084 ;;
3085esac
3086else
3087 enable_shared=yes
13b2be9c 3088fi;
252b5132
RH
3089# Check whether --enable-static or --disable-static was given.
3090if test "${enable_static+set}" = set; then
3091 enableval="$enable_static"
3092 p=${PACKAGE-default}
f9c19112 3093case $enableval in
252b5132
RH
3094yes) enable_static=yes ;;
3095no) enable_static=no ;;
3096*)
3097 enable_static=no
3098 # Look at the argument we got. We use all the common list separators.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100 for pkg in $enableval; do
3101 if test "X$pkg" = "X$p"; then
3102 enable_static=yes
3103 fi
3104 done
3105 IFS="$ac_save_ifs"
3106 ;;
3107esac
3108else
3109 enable_static=yes
13b2be9c 3110fi;
bedf545c
ILT
3111# Check whether --enable-fast-install or --disable-fast-install was given.
3112if test "${enable_fast_install+set}" = set; then
3113 enableval="$enable_fast_install"
3114 p=${PACKAGE-default}
f9c19112 3115case $enableval in
bedf545c
ILT
3116yes) enable_fast_install=yes ;;
3117no) enable_fast_install=no ;;
3118*)
3119 enable_fast_install=no
3120 # Look at the argument we got. We use all the common list separators.
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3122 for pkg in $enableval; do
3123 if test "X$pkg" = "X$p"; then
3124 enable_fast_install=yes
3125 fi
3126 done
3127 IFS="$ac_save_ifs"
3128 ;;
3129esac
3130else
3131 enable_fast_install=yes
13b2be9c 3132fi;
87ccc1b0 3133
6840198f
NC
3134# Check whether --with-gnu-ld or --without-gnu-ld was given.
3135if test "${with_gnu_ld+set}" = set; then
3136 withval="$with_gnu_ld"
3137 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3138else
6840198f 3139 with_gnu_ld=no
13b2be9c 3140fi;
6840198f
NC
3141ac_prog=ld
3142if test "$GCC" = yes; then
3143 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
3144 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3145echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
3146 case $host in
3147 *-*-mingw*)
3148 # gcc leaves a trailing carriage return which upsets mingw
3149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3150 *)
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3152 esac
3153 case $ac_prog in
3154 # Accept absolute paths.
3155 [\\/]* | [A-Za-z]:[\\/]*)
3156 re_direlt='/[^/][^/]*/\.\./'
3157 # Canonicalize the path of ld
3158 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3159 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3160 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161 done
3162 test -z "$LD" && LD="$ac_prog"
3163 ;;
3164 "")
3165 # If it fails, then pretend we aren't using GCC.
3166 ac_prog=ld
3167 ;;
3168 *)
3169 # If it is relative, then search for the first ld in PATH.
3170 with_gnu_ld=unknown
3171 ;;
3172 esac
3173elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3174 echo "$as_me:$LINENO: checking for GNU ld" >&5
3175echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3176else
13b2be9c
DJ
3177 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3178echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3179fi
13b2be9c
DJ
3180if test "${lt_cv_path_LD+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3182else
3183 if test -z "$LD"; then
a74801ba 3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3185 for ac_dir in $PATH; do
3186 test -z "$ac_dir" && ac_dir=.
a74801ba 3187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3188 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3189 # Check to see if the program is GNU ld. I'd rather use --version,
3190 # but apparently some GNU ld's only accept -v.
3191 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 3192 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3193 test "$with_gnu_ld" != no && break
3194 else
bedf545c 3195 test "$with_gnu_ld" != yes && break
252b5132
RH
3196 fi
3197 fi
3198 done
3199 IFS="$ac_save_ifs"
3200else
f9c19112 3201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3202fi
3203fi
3204
f9c19112 3205LD="$lt_cv_path_LD"
252b5132 3206if test -n "$LD"; then
13b2be9c
DJ
3207 echo "$as_me:$LINENO: result: $LD" >&5
3208echo "${ECHO_T}$LD" >&6
252b5132 3209else
13b2be9c
DJ
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
252b5132 3212fi
13b2be9c
DJ
3213test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3214echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3215 { (exit 1); exit 1; }; }
3216echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3217echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3218if test "${lt_cv_prog_gnu_ld+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3220else
3221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3223 lt_cv_prog_gnu_ld=yes
252b5132 3224else
f9c19112 3225 lt_cv_prog_gnu_ld=no
252b5132
RH
3226fi
3227fi
13b2be9c
DJ
3228echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3229echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3230with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3231
d6d788bd 3232
13b2be9c
DJ
3233echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3234echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3235if test "${lt_cv_ld_reload_flag+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3237else
3238 lt_cv_ld_reload_flag='-r'
3239fi
13b2be9c
DJ
3240echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3241echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3242reload_flag=$lt_cv_ld_reload_flag
3243test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3244
13b2be9c
DJ
3245echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3246echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3247if test "${lt_cv_path_NM+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3249else
3250 if test -n "$NM"; then
3251 # Let the user override the test.
f9c19112 3252 lt_cv_path_NM="$NM"
252b5132 3253else
a74801ba 3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3255 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3256 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3257 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3258 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3259 # Check to see if the nm accepts a BSD-compat flag.
3260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3261 # nm: unknown option "B" ignored
58cccadb
AO
3262 # Tru64's nm complains that /dev/null is an invalid object file
3263 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3264 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3265 break
ac48eca1 3266 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3267 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3268 break
252b5132 3269 else
f9c19112 3270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3271 continue # so that we can try to find one that supports BSD flags
252b5132 3272 fi
252b5132
RH
3273 fi
3274 done
3275 IFS="$ac_save_ifs"
f9c19112 3276 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3277fi
3278fi
3279
f9c19112 3280NM="$lt_cv_path_NM"
13b2be9c
DJ
3281echo "$as_me:$LINENO: result: $NM" >&5
3282echo "${ECHO_T}$NM" >&6
252b5132 3283
13b2be9c
DJ
3284echo "$as_me:$LINENO: checking whether ln -s works" >&5
3285echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3286LN_S=$as_ln_s
3287if test "$LN_S" = "ln -s"; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289echo "${ECHO_T}yes" >&6
252b5132 3290else
13b2be9c
DJ
3291 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3292echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3293fi
3294
13b2be9c
DJ
3295echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3296echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3297if test "${lt_cv_deplibs_check_method+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3299else
d64552c5 3300 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3301lt_cv_file_magic_test_file=
3302lt_cv_deplibs_check_method='unknown'
3303# Need to set the preceding variable on all platforms that support
3304# interlibrary dependencies.
3305# 'none' -- dependencies not supported.
3306# `unknown' -- same as none, but documents that we really don't know.
3307# 'pass_all' -- all dependencies passed with no checks.
3308# 'test_compile' -- check by making test program.
3309# 'file_magic [regex]' -- check by looking for files in library path
3310# which responds to the $file_magic_cmd with a given egrep regex.
3311# If you have `file' or equivalent on your system and you're not sure
3312# whether `pass_all' will *always* work, you probably want this one.
3313
f9c19112
HPN
3314case $host_os in
3315aix*)
ac48eca1
AO
3316 lt_cv_deplibs_check_method=pass_all
3317 ;;
3318
3319beos*)
3320 lt_cv_deplibs_check_method=pass_all
3321 ;;
3322
3323bsdi4*)
f9c19112
HPN
3324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3326 lt_cv_file_magic_test_file=/shlib/libc.so
3327 ;;
3328
d64552c5 3329cygwin* | mingw* |pw32*)
ac48eca1 3330 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3331 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3332 ;;
3333
f9c19112
HPN
3334darwin* | rhapsody*)
3335 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3337 case "$host_os" in
3338 rhapsody* | darwin1.012)
3339 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3340 ;;
3341 *) # Darwin 1.3 on
3342 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3343 ;;
3344 esac
f9c19112
HPN
3345 ;;
3346
4101eec8 3347freebsd* | kfreebsd*-gnu)
ac48eca1 3348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3349 case $host_cpu in
ac48eca1 3350 i*86 )
58cccadb
AO
3351 # Not sure whether the presence of OpenBSD here was a mistake.
3352 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3354 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3356 ;;
3357 esac
3358 else
3359 lt_cv_deplibs_check_method=pass_all
3360 fi
3361 ;;
3362
3363gnu*)
3364 lt_cv_deplibs_check_method=pass_all
3365 ;;
3366
f9c19112 3367hpux10.20*|hpux11*)
4867be41
DJ
3368 case $host_cpu in
3369 hppa*)
3370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3371 lt_cv_file_magic_cmd=/usr/bin/file
3372 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3373 ;;
3374 ia64*)
3375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3376 lt_cv_file_magic_cmd=/usr/bin/file
3377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3378 ;;
3379 esac
ac48eca1
AO
3380 ;;
3381
3382irix5* | irix6*)
f9c19112 3383 case $host_os in
ac48eca1
AO
3384 irix5*)
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3387 ;;
3388 *)
f9c19112 3389 case $LD in
ac48eca1
AO
3390 *-32|*"-32 ") libmagic=32-bit;;
3391 *-n32|*"-n32 ") libmagic=N32;;
3392 *-64|*"-64 ") libmagic=64-bit;;
3393 *) libmagic=never-match;;
3394 esac
3395 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3396 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3397 ;;
ac48eca1
AO
3398 esac
3399 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3400 lt_cv_deplibs_check_method=pass_all
3401 ;;
3402
3403# This must be Linux ELF.
58cccadb 3404linux-gnu*)
f9c19112 3405 case $host_cpu in
dbeba5e5 3406 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3407 lt_cv_deplibs_check_method=pass_all ;;
3408 *)
3409 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
3410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411 esac
ac48eca1
AO
3412 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3413 ;;
3414
4101eec8 3415netbsd* | knetbsd*-gnu)
f9c19112 3416 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3417 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3418 else
6840198f 3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3420 fi
f9c19112
HPN
3421 ;;
3422
3423newsos6)
3424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3425 lt_cv_file_magic_cmd=/usr/bin/file
3426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3427 ;;
3428
3429osf3* | osf4* | osf5*)
3430 # this will be overridden with pass_all, but let us keep it just in case
3431 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3432 lt_cv_file_magic_test_file=/shlib/libc.so
3433 lt_cv_deplibs_check_method=pass_all
3434 ;;
3435
3436sco3.2v5*)
3437 lt_cv_deplibs_check_method=pass_all
3438 ;;
3439
3440solaris*)
3441 lt_cv_deplibs_check_method=pass_all
3442 lt_cv_file_magic_test_file=/lib/libc.so
3443 ;;
3444
6be7c12c
AO
3445sysv5uw[78]* | sysv4*uw2*)
3446 lt_cv_deplibs_check_method=pass_all
3447 ;;
3448
ac48eca1 3449sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3450 case $host_vendor in
ac48eca1
AO
3451 ncr)
3452 lt_cv_deplibs_check_method=pass_all
3453 ;;
3454 motorola)
f9c19112
HPN
3455 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]'
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3457 ;;
3458 esac
3459 ;;
3460esac
3461
3462fi
13b2be9c
DJ
3463echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3465file_magic_cmd=$lt_cv_file_magic_cmd
3466deplibs_check_method=$lt_cv_deplibs_check_method
3467
c8615825 3468
c8615825 3469
c8615825 3470
ac48eca1
AO
3471# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3472
3473# Only perform the check for file, if the check method requires it
f9c19112 3474case $deplibs_check_method in
ac48eca1 3475file_magic*)
d64552c5 3476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3477 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3478echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3479if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3481else
f9c19112 3482 case $MAGIC_CMD in
ac48eca1 3483 /*)
d64552c5 3484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3485 ;;
3486 ?:/*)
d64552c5 3487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3488 ;;
3489 *)
d64552c5 3490 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="/usr/bin:$PATH"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3497 if test -n "$file_magic_test_file"; then
f9c19112 3498 case $deplibs_check_method in
ac48eca1
AO
3499 "file_magic "*)
3500 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3503 egrep "$file_magic_regex" > /dev/null; then
3504 :
3505 else
3506 cat <<EOF 1>&2
3507
3508*** Warning: the command libtool uses to detect shared libraries,
3509*** $file_magic_cmd, produces output that libtool cannot recognize.
3510*** The result is that libtool may fail to recognize shared libraries
3511*** as such. This will affect the creation of libtool libraries that
3512*** depend on shared libraries, but programs linked with such libtool
3513*** libraries will work regardless of this problem. Nevertheless, you
3514*** may want to report the problem to your system manager and/or to
3515*** bug-libtool@gnu.org
3516
3517EOF
3518 fi ;;
3519 esac
3520 fi
3521 break
3522 fi
3523 done
3524 IFS="$ac_save_ifs"
d64552c5 3525 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3526 ;;
3527esac
3528fi
3529
d64552c5
AO
3530MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3533echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3534else
13b2be9c
DJ
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
ac48eca1
AO
3537fi
3538
d64552c5 3539if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3540 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3541 echo "$as_me:$LINENO: checking for file" >&5
3542echo $ECHO_N "checking for file... $ECHO_C" >&6
3543if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3545else
f9c19112 3546 case $MAGIC_CMD in
ac48eca1 3547 /*)
d64552c5 3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3549 ;;
3550 ?:/*)
d64552c5 3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3552 ;;
3553 *)
d64552c5 3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/file; then
d64552c5 3560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3561 if test -n "$file_magic_test_file"; then
f9c19112 3562 case $deplibs_check_method in
ac48eca1
AO
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3568 :
3569 else
3570 cat <<EOF 1>&2
3571
3572*** Warning: the command libtool uses to detect shared libraries,
3573*** $file_magic_cmd, produces output that libtool cannot recognize.
3574*** The result is that libtool may fail to recognize shared libraries
3575*** as such. This will affect the creation of libtool libraries that
3576*** depend on shared libraries, but programs linked with such libtool
3577*** libraries will work regardless of this problem. Nevertheless, you
3578*** may want to report the problem to your system manager and/or to
3579*** bug-libtool@gnu.org
3580
3581EOF
3582 fi ;;
3583 esac
3584 fi
3585 break
3586 fi
3587 done
3588 IFS="$ac_save_ifs"
d64552c5 3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3590 ;;
3591esac
3592fi
3593
d64552c5
AO
3594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3598else
13b2be9c
DJ
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
ac48eca1
AO
3601fi
3602
3603 else
d64552c5 3604 MAGIC_CMD=:
ac48eca1
AO
3605 fi
3606fi
3607
3608 fi
3609 ;;
3610esac
3611
13b2be9c
DJ
3612if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3614set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3615echo "$as_me:$LINENO: checking for $ac_word" >&5
3616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617if test "${ac_cv_prog_RANLIB+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3619else
3620 if test -n "$RANLIB"; then
3621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3622else
13b2be9c
DJ
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634done
3635done
3636
ac48eca1
AO
3637fi
3638fi
13b2be9c 3639RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3640if test -n "$RANLIB"; then
13b2be9c
DJ
3641 echo "$as_me:$LINENO: result: $RANLIB" >&5
3642echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3643else
13b2be9c
DJ
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
ac48eca1
AO
3646fi
3647
13b2be9c 3648fi
ac48eca1 3649if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3650 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3651 # Extract the first word of "ranlib", so it can be a program name with args.
3652set dummy ranlib; ac_word=$2
13b2be9c
DJ
3653echo "$as_me:$LINENO: checking for $ac_word" >&5
3654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3657else
13b2be9c
DJ
3658 if test -n "$ac_ct_RANLIB"; then
3659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3660else
13b2be9c
DJ
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_RANLIB="ranlib"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672done
3673done
3674
3675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3676fi
3677fi
13b2be9c
DJ
3678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3679if test -n "$ac_ct_RANLIB"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3681echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3682else
13b2be9c
DJ
3683 echo "$as_me:$LINENO: result: no" >&5
3684echo "${ECHO_T}no" >&6
ac48eca1
AO
3685fi
3686
13b2be9c 3687 RANLIB=$ac_ct_RANLIB
ac48eca1 3688else
13b2be9c 3689 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3690fi
3691
13b2be9c
DJ
3692if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3694set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3695echo "$as_me:$LINENO: checking for $ac_word" >&5
3696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697if test "${ac_cv_prog_STRIP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3699else
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702else
13b2be9c
DJ
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714done
3715done
3716
ac48eca1
AO
3717fi
3718fi
13b2be9c 3719STRIP=$ac_cv_prog_STRIP
ac48eca1 3720if test -n "$STRIP"; then
13b2be9c
DJ
3721 echo "$as_me:$LINENO: result: $STRIP" >&5
3722echo "${ECHO_T}$STRIP" >&6
ac48eca1 3723else
13b2be9c
DJ
3724 echo "$as_me:$LINENO: result: no" >&5
3725echo "${ECHO_T}no" >&6
ac48eca1
AO
3726fi
3727
13b2be9c 3728fi
ac48eca1 3729if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3730 ac_ct_STRIP=$STRIP
ac48eca1
AO
3731 # Extract the first word of "strip", so it can be a program name with args.
3732set dummy strip; ac_word=$2
13b2be9c
DJ
3733echo "$as_me:$LINENO: checking for $ac_word" >&5
3734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3737else
13b2be9c
DJ
3738 if test -n "$ac_ct_STRIP"; then
3739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3740else
13b2be9c
DJ
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_STRIP="strip"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752done
3753done
3754
3755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3756fi
3757fi
13b2be9c
DJ
3758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3759if test -n "$ac_ct_STRIP"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3761echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3762else
13b2be9c
DJ
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
d6d788bd
L
3765fi
3766
13b2be9c 3767 STRIP=$ac_ct_STRIP
d6d788bd 3768else
13b2be9c 3769 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3770fi
3771
252b5132 3772
252b5132 3773# Check for any special flags to pass to ltconfig.
bedf545c 3774libtool_flags="--cache-file=$cache_file"
252b5132
RH
3775test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3776test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3777test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3778test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3779test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3780
d6d788bd 3781
a74801ba
ILT
3782# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3783if test "${enable_libtool_lock+set}" = set; then
3784 enableval="$enable_libtool_lock"
a74801ba 3785
13b2be9c 3786fi;
a74801ba
ILT
3787test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3788test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3789
13b2be9c 3790
ac48eca1
AO
3791# Check whether --with-pic or --without-pic was given.
3792if test "${with_pic+set}" = set; then
3793 withval="$with_pic"
3794 pic_mode="$withval"
3795else
3796 pic_mode=default
13b2be9c 3797fi;
ac48eca1
AO
3798test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3799test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3800
252b5132
RH
3801# Some flags need to be propagated to the compiler or linker for good
3802# libtool support.
f9c19112 3803case $host in
252b5132
RH
3804*-*-irix6*)
3805 # Find out which ABI we are using.
e330299e 3806 echo '#line 3806 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
e0001a05
NC
3812 if test "$lt_cv_prog_gnu_ld" = yes; then
3813 case `/usr/bin/file conftest.$ac_objext` in
3814 *32-bit*)
3815 LD="${LD-ld} -melf32bsmip"
3816 ;;
3817 *N32*)
3818 LD="${LD-ld} -melf32bmipn32"
3819 ;;
3820 *64-bit*)
3821 LD="${LD-ld} -melf64bmip"
3822 ;;
3823 esac
3824 else
f9c19112 3825 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3826 *32-bit*)
3827 LD="${LD-ld} -32"
3828 ;;
3829 *N32*)
3830 LD="${LD-ld} -n32"
3831 ;;
3832 *64-bit*)
3833 LD="${LD-ld} -64"
3834 ;;
3835 esac
e0001a05 3836 fi
252b5132
RH
3837 fi
3838 rm -rf conftest*
3839 ;;
3840
4867be41
DJ
3841ia64-*-hpux*)
3842 # Find out which ABI we are using.
3843 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; then
4867be41
DJ
3849 case "`/usr/bin/file conftest.o`" in
3850 *ELF-32*)
3851 HPUX_IA64_MODE="32"
3852 ;;
3853 *ELF-64*)
3854 HPUX_IA64_MODE="64"
3855 ;;
3856 esac
3857 fi
3858 rm -rf conftest*
3859 ;;
3860
252b5132
RH
3861*-*-sco3.2v5*)
3862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3863 SAVE_CFLAGS="$CFLAGS"
252b5132 3864 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3865 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3866echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3867if test "${lt_cv_cc_needs_belf+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3869else
13b2be9c
DJ
3870
3871
ac48eca1 3872 ac_ext=c
ac48eca1 3873ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
bedf545c 3884
13b2be9c
DJ
3885int
3886main ()
3887{
6840198f 3888
13b2be9c
DJ
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893rm -f conftest.$ac_objext conftest$ac_exeext
3894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 3895 (eval $ac_link) 2>conftest.er1
13b2be9c 3896 ac_status=$?
ab509236
L
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
13b2be9c
DJ
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
e330299e 3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
bedf545c
ILT
3914 lt_cv_cc_needs_belf=yes
3915else
13b2be9c
DJ
3916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919lt_cv_cc_needs_belf=no
bedf545c 3920fi
ab509236
L
3921rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3923 ac_ext=c
ac48eca1 3924ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3928
bedf545c 3929fi
13b2be9c
DJ
3930echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934 CFLAGS="$SAVE_CFLAGS"
3935 fi
252b5132
RH
3936 ;;
3937
d6d788bd 3938
252b5132
RH
3939esac
3940
d6d788bd 3941
bedf545c 3942# Save cache, so that ltconfig can load it
13b2be9c 3943cat >confcache <<\_ACEOF
bedf545c
ILT
3944# This file is a shell script that caches the results of configure
3945# tests run on this system so they can be shared between configure
13b2be9c
DJ
3946# scripts and configure runs, see configure's option --config-cache.
3947# It is not useful on other systems. If it contains results you don't
3948# want to keep, you may remove or edit it.
bedf545c 3949#
13b2be9c
DJ
3950# config.status only pays attention to the cache file if you give it
3951# the --recheck option to rerun configure.
bedf545c 3952#
13b2be9c
DJ
3953# `ac_cv_env_foo' variables (set or unset) will be overridden when
3954# loading this file, other *unset* `ac_cv_foo' will be assigned the
3955# following values.
3956
3957_ACEOF
3958
bedf545c 3959# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3960# but we know of no workaround that is simple, portable, and efficient.
3961# So, don't put newlines in cache variables' values.
3962# Ultrix sh set writes to stderr and can't be redirected directly,
3963# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
3964{
3965 (set) 2>&1 |
3966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3967 *ac_space=\ *)
3968 # `set' does not quote correctly, so add quotes (double-quote
3969 # substitution turns \\\\ into \\, and sed turns \\ into \).
3970 sed -n \
ab509236
L
3971 "s/'/'\\\\''/g;
3972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
3973 ;;
3974 *)
3975 # `set' quotes correctly as required by POSIX, so do not add quotes.
3976 sed -n \
ab509236 3977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
3978 ;;
3979 esac;
3980} |
3981 sed '
3982 t clear
3983 : clear
3984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3985 t end
3986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3987 : end' >>confcache
3988if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 3989 if test -w $cache_file; then
13b2be9c
DJ
3990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3991 cat confcache >$cache_file
bedf545c
ILT
3992 else
3993 echo "not updating unwritable cache $cache_file"
3994 fi
3995fi
3996rm -f confcache
3997
252b5132 3998# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3999AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4000MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4001LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4002AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4003objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4004deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4005${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4006$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
4007|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4008echo "$as_me: error: libtool configure failed" >&2;}
4009 { (exit 1); exit 1; }; }
252b5132 4010
bedf545c
ILT
4011# Reload cache, that may have been modified by ltconfig
4012if test -r "$cache_file"; then
13b2be9c
DJ
4013 # Some versions of bash will fail to source /dev/null (special
4014 # files actually), so we avoid doing that.
4015 if test -f "$cache_file"; then
4016 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4017echo "$as_me: loading cache $cache_file" >&6;}
4018 case $cache_file in
4019 [\\/]* | ?:[\\/]* ) . $cache_file;;
4020 *) . ./$cache_file;;
4021 esac
4022 fi
bedf545c 4023else
13b2be9c
DJ
4024 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4025echo "$as_me: creating cache $cache_file" >&6;}
4026 >$cache_file
bedf545c
ILT
4027fi
4028
d6d788bd 4029
bedf545c 4030# This can be used to rebuild libtool when needed
ac48eca1 4031LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
4032
4033# Always use our own libtool.
4034LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4035
252b5132
RH
4036# Redirect the config.log output again, so that the ltconfig log is not
4037# clobbered by the next message.
4038exec 5>>./config.log
4039
d6d788bd 4040
13b2be9c
DJ
4041
4042
4043
4044
d6d788bd 4045
252b5132
RH
4046user_bfd_gas=
4047# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4048if test "${enable_bfd_assembler+set}" = set; then
4049 enableval="$enable_bfd_assembler"
4050 case "${enableval}" in
4051 yes) need_bfd=yes user_bfd_gas=yes ;;
4052 no) user_bfd_gas=no ;;
13b2be9c
DJ
4053 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4054echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4055 { (exit 1); exit 1; }; } ;;
252b5132 4056esac
13b2be9c 4057fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4058if test "${enable_targets+set}" = set; then
4059 enableval="$enable_targets"
4060 case "${enableval}" in
13b2be9c
DJ
4061 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4062echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4063 { (exit 1); exit 1; }; }
252b5132
RH
4064 ;;
4065 no) enable_targets= ;;
4066 *) enable_targets=$enableval ;;
4067esac
13b2be9c 4068fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4069if test "${enable_commonbfdlib+set}" = set; then
4070 enableval="$enable_commonbfdlib"
4071 case "${enableval}" in
4072 yes) commonbfdlib=true ;;
4073 no) commonbfdlib=false ;;
13b2be9c
DJ
4074 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4075echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4076 { (exit 1); exit 1; }; } ;;
252b5132 4077esac
13b2be9c 4078fi;
252b5132
RH
4079using_cgen=no
4080
0218d1e4 4081build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
4082# Check whether --enable-build-warnings or --disable-build-warnings was given.
4083if test "${enable_build_warnings+set}" = set; then
4084 enableval="$enable_build_warnings"
4085 case "${enableval}" in
4086 yes) ;;
4087 no) build_warnings="-w";;
4088 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4089 build_warnings="${build_warnings} ${t}";;
4090 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4091 build_warnings="${t} ${build_warnings}";;
4092 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4093esac
4094if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4095 echo "Setting warning flags = $build_warnings" 6>&1
4096fi
13b2be9c 4097fi; WARN_CFLAGS=""
a2d91340
AC
4098if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4099 WARN_CFLAGS="${build_warnings}"
4100fi
4101
d6d788bd 4102
252b5132 4103# Generate a header file
13b2be9c 4104 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 4105
252b5132 4106
76a27922
ILT
4107# If we are on a DOS filesystem, we must use gdb.ini rather than
4108# .gdbinit.
76a27922 4109case "${host}" in
591d4689 4110 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 4111 GDBINIT="gdb.ini"
13b2be9c
DJ
4112 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4113
4114 ;;
4115 *)
4116 GDBINIT=".gdbinit"
4117 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4118
76a27922
ILT
4119 ;;
4120esac
4121
d6d788bd 4122
44f2f9d2
AM
4123#We need this for the host. BOUT header is in host order.
4124echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4126if test "${ac_cv_c_bigendian+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 # See if sys/param.h defines the BYTE_ORDER macro.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <sys/types.h>
4137#include <sys/param.h>
4138
4139int
4140main ()
4141{
4142#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4143 bogus endian macros
4144#endif
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
e330299e 4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44f2f9d2
AM
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 # It does; now see whether it defined to BIG_ENDIAN or not.
4172cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178#include <sys/types.h>
4179#include <sys/param.h>
4180
4181int
4182main ()
4183{
4184#if BYTE_ORDER != BIG_ENDIAN
4185 not big endian
4186#endif
4187
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext
4193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
e330299e 4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44f2f9d2
AM
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_c_bigendian=yes
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218ac_cv_c_bigendian=no
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225# It does not; compile a test program.
4226if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241int
4242main ()
4243{
4244 _ascii (); _ebcdic ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
e330299e 4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44f2f9d2
AM
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4272fi
4273if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4279 fi
4280fi
4281else
4282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285fi
4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287else
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
4294int
4295main ()
4296{
4297 /* Are we little or big endian? From Harbison&Steele. */
4298 union
4299 {
4300 long l;
4301 char c[sizeof (long)];
4302 } u;
4303 u.l = 1;
4304 exit (u.c[sizeof (long) - 1] == 1);
4305}
4306_ACEOF
4307rm -f conftest$ac_exeext
4308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309 (eval $ac_link) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_c_bigendian=no
4319else
4320 echo "$as_me: program exited with status $ac_status" >&5
4321echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324( exit $ac_status )
4325ac_cv_c_bigendian=yes
4326fi
4327rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328fi
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4333echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4334case $ac_cv_c_bigendian in
4335 yes)
4336
4337cat >>confdefs.h <<\_ACEOF
4338#define WORDS_BIGENDIAN 1
4339_ACEOF
4340 ;;
4341 no)
4342 ;;
4343 *)
4344 { { echo "$as_me:$LINENO: error: unknown endianness
4345presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4346echo "$as_me: error: unknown endianness
4347presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4348 { (exit 1); exit 1; }; } ;;
4349esac
4350
4351
252b5132
RH
4352te_file=generic
4353
4354# Makefile target for installing gas in $(tooldir)/bin.
4355install_tooldir=install-exec-tooldir
4356
4357canon_targets=""
15886821 4358all_targets=no
252b5132
RH
4359if test -n "$enable_targets" ; then
4360 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
4361 if test $t = "all"; then
4362 all_targets=yes
4363 continue
4364 fi
6d83c84b 4365 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
4366 if test -n "$result" ; then
4367 canon_targets="$canon_targets $result"
4368# else
4369# # Permit "all", etc. We don't support it yet though.
4370# canon_targets="$canon_targets $t"
4371 fi
4372 done
4373 _gas_uniq_list="$canon_targets"
4374_gas_uniq_newlist=""
4375for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4376 case $_gas_uniq_i in
4377 _gas_uniq_dummy) ;;
4378 *) case " $_gas_uniq_newlist " in
4379 *" $_gas_uniq_i "*) ;;
4380 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4381 esac ;;
4382 esac
4383done
4384canon_targets=$_gas_uniq_newlist
4385
4386fi
4387
4388emulations=""
4389
4390for this_target in $target $canon_targets ; do
4391
14ee9f48
ILT
4392 targ=${this_target}
4393 . ${srcdir}/configure.tgt
4394
4395 case ${target_cpu} in
4396 crisv32)
ae57792d
HPN
4397
4398cat >>confdefs.h <<_ACEOF
4399#define DEFAULT_CRIS_ARCH $arch
4400_ACEOF
4401
14ee9f48 4402 ;;
252b5132
RH
4403 esac
4404
4405 if test ${this_target} = $target ; then
4406 target_cpu_type=${cpu_type}
4407 elif test ${target_cpu_type} != ${cpu_type} ; then
4408 continue
4409 fi
4410
14ee9f48 4411 generic_target=${cpu_type}-${target_vendor}-${target_os}
252b5132 4412 case ${generic_target} in
14ee9f48
ILT
4413 i386-*-sco3.2v5*)
4414 if test ${this_target} = $target; then
13b2be9c
DJ
4415
4416cat >>confdefs.h <<\_ACEOF
252b5132 4417#define SCO_ELF 1
13b2be9c 4418_ACEOF
252b5132 4419
14ee9f48
ILT
4420 fi
4421 ;;
4422
79500683
AM
4423 i386-*-msdosdjgpp* \
4424 | i386-*-go32* \
14ee9f48 4425 | i386-go32-rtems*)
13b2be9c
DJ
4426
4427cat >>confdefs.h <<\_ACEOF
56385375 4428#define STRICTCOFF 1
13b2be9c 4429_ACEOF
14ee9f48
ILT
4430
4431 ;;
4432
4433 i860-*-*)
4434 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4435echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4436 ;;
4437
4438 mips-sony-bsd*)
4439 ;;
79500683 4440 mips-*-bsd*)
14ee9f48 4441 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
13b2be9c 4442echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
14ee9f48
ILT
4443 { (exit 1); exit 1; }; }
4444 ;;
4445
4446 ppc-*-aix5.*)
f8fc3443
NC
4447
4448cat >>confdefs.h <<\_ACEOF
4449#define AIX_WEAK_SUPPORT 1
4450_ACEOF
4451
14ee9f48
ILT
4452 ;;
4453 ppc-*-linux-gnu*)
4454 case "$endian" in
4455 big) ;;
4456 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
13b2be9c
DJ
4457echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4458 { (exit 1); exit 1; }; } ;;
14ee9f48
ILT
4459 esac
4460 ;;
4461 ppc-*-solaris*)
4462 if test ${this_target} = $target; then
13b2be9c
DJ
4463
4464cat >>confdefs.h <<\_ACEOF
252b5132 4465#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4466_ACEOF
252b5132 4467
14ee9f48
ILT
4468 fi
4469 if test x${endian} = xbig; then
4470 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
13b2be9c
DJ
4471echo "$as_me: error: Solaris must be configured little endian" >&2;}
4472 { (exit 1); exit 1; }; }
14ee9f48
ILT
4473 fi
4474 ;;
4475
4476 sh*-*-symbianelf*)
85fbca6a
NC
4477
4478cat >>confdefs.h <<\_ACEOF
4479#define TARGET_SYMBIAN 1
4480_ACEOF
4481
14ee9f48 4482 ;;
252b5132
RH
4483 esac
4484
4485 if test ${this_target} = $target ; then
4486 endian_def=
4487 if test x${endian} = xbig; then
4488 endian_def=1
4489 elif test x${endian} = xlittle; then
4490 endian_def=0
4491 fi
4492 if test x${endian_def} != x; then
13b2be9c
DJ
4493
4494cat >>confdefs.h <<_ACEOF
252b5132 4495#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4496_ACEOF
252b5132
RH
4497
4498 fi
4499 fi
4500
252b5132
RH
4501# Other random stuff.
4502
316f5878
RS
4503 case ${cpu_type} in
4504 mips)
4505 # Set mips_cpu to the name of the default CPU.
4506 case ${target_cpu} in
4507 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4508 mips_cpu=from-abi
4509 ;;
4510 mipsisa32 | mipsisa32el)
4511 mips_cpu=mips32
4512 ;;
af7ee8bf
CD
4513 mipsisa32r2 | mipsisa32r2el)
4514 mips_cpu=mips32r2
4515 ;;
316f5878
RS
4516 mipsisa64 | mipsisa64el)
4517 mips_cpu=mips64
4518 ;;
5f74bc13
CD
4519 mipsisa64r2 | mipsisa64r2el)
4520 mips_cpu=mips64r2
4521 ;;
316f5878
RS
4522 mipstx39 | mipstx39el)
4523 mips_cpu=r3900
4524 ;;
8f6847cb
RS
4525 mips64vr | mips64vrel)
4526 mips_cpu=vr4100
4527 ;;
5f74bc13 4528 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4529 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4530 ;;
316f5878
RS
4531 mips64* | mipsisa64* | mipsisa32*)
4532 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4533 ;;
4534 *)
13b2be9c
DJ
4535 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4536echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4537 { (exit 1); exit 1; }; }
316f5878
RS
4538 ;;
4539 esac
4540 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4541 # binaries. It's a GNU extension that some OSes don't understand.
4542 # The value only matters on ELF targets.
4543 case ${target} in
4544 *-*-irix*)
4545 use_e_mips_abi_o32=0
4546 ;;
4547 *)
4548 use_e_mips_abi_o32=1
4549 ;;
4550 esac
4551 # Decide whether to generate 32-bit or 64-bit code by default.
4552 # Used to resolve -march=from-abi when an embedded ABI is selected.
4553 case ${target} in
4554 mips64*-*-* | mipsisa64*-*-*)
4555 mips_default_64bit=1
4556 ;;
4557 *)
4558 mips_default_64bit=0
4559 ;;
4560 esac
cac012d6
AO
4561 # Decide which ABI to target by default.
4562 case ${target} in
4563 mips64*-linux* | mips-sgi-irix6*)
4564 mips_default_abi=N32_ABI
4565 ;;
4566 mips*-linux*)
4567 mips_default_abi=O32_ABI
4568 ;;
4569 *)
4570 mips_default_abi=NO_ABI
4571 ;;
4572 esac
13b2be9c
DJ
4573
4574cat >>confdefs.h <<_ACEOF
316f5878 4575#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4576_ACEOF
316f5878 4577
13b2be9c
DJ
4578
4579cat >>confdefs.h <<_ACEOF
316f5878 4580#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4581_ACEOF
316f5878 4582
13b2be9c
DJ
4583
4584cat >>confdefs.h <<_ACEOF
316f5878 4585#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4586_ACEOF
cac012d6 4587
13b2be9c
DJ
4588
4589cat >>confdefs.h <<_ACEOF
cac012d6 4590#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4591_ACEOF
316f5878
RS
4592
4593 ;;
4594 esac
4595
252b5132
RH
4596 # Do we need the opcodes library?
4597 case ${cpu_type} in
4598 vax | i386 | tic30)
4599 ;;
4600
4601 *)
4602 need_opcodes=yes
4603
4604 case "${enable_shared}" in
4605 yes) shared_opcodes=true ;;
4606 *opcodes*) shared_opcodes=true ;;
4607 *) shared_opcodes=false ;;
4608 esac
4609 if test "${shared_opcodes}" = "true"; then
4610 # A shared libopcodes must be linked against libbfd.
4611 need_bfd=yes
4612 fi
4613 ;;
4614 esac
4615
4616 # Any other special object files needed ?
4617 case ${cpu_type} in
1c53c80d 4618 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4619 using_cgen=yes
4620 ;;
4621
0ebb9a87
DB
4622 frv)
4623 using_cgen=yes
4624 ;;
252b5132
RH
4625 m68k)
4626 case ${extra_objects} in
4627 *m68k-parse.o*) ;;
4628 *) extra_objects="$extra_objects m68k-parse.o" ;;
4629 esac
4630 ;;
4631
4632 mips)
13b2be9c 4633 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4634 if test $? -ne 0 ; then
4635 extra_objects="$extra_objects itbl-parse.o"
4636 fi
4637
13b2be9c 4638 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4639 if test $? -ne 0 ; then
4640 extra_objects="$extra_objects itbl-lex.o"
4641 fi
4642
13b2be9c 4643 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4644 if test $? -ne 0 ; then
4645 extra_objects="$extra_objects itbl-ops.o"
4646 fi
4647 ;;
4648
c1e4eef7 4649 i386 | s390 | sparc)
252b5132 4650 if test $this_target = $target ; then
13b2be9c
DJ
4651
4652cat >>confdefs.h <<_ACEOF
252b5132 4653#define DEFAULT_ARCH "${arch}"
13b2be9c 4654_ACEOF
252b5132
RH
4655
4656 fi
4657 ;;
93fbbb04
GK
4658
4659 xstormy16)
4660 using_cgen=yes
4661 ;;
4662
e0001a05
NC
4663 xtensa)
4664 echo ${extra_objects} | grep -s "xtensa-relax.o"
4665 if test $? -ne 0 ; then
4666 extra_objects="$extra_objects xtensa-relax.o"
4667 fi
4668 ;;
4669
252b5132
RH
4670 *)
4671 ;;
4672 esac
4673
4674 if test $using_cgen = yes ; then
4675 case "x${extra_objects}" in
4676 *cgen.o*) ;;
4677 *) extra_objects="$extra_objects cgen.o" ;;
4678 esac
4679 fi
4680
4681# See if we really can support this configuration with the emulation code.
4682
4683 if test $this_target = $target ; then
4684 primary_bfd_gas=$bfd_gas
4685 obj_format=$fmt
4686 te_file=$em
4687
4688 if test $bfd_gas = no ; then
4689 # Can't support other configurations this way.
4690 break
4691 fi
4692 elif test $bfd_gas = no ; then
4693 # Can't support this configuration.
4694 break
4695 fi
4696
4697# From target name and format, produce a list of supported emulations.
4698
4699 case ${generic_target}-${fmt} in
4700 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4701 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4702 big) emulation="mipsbelf mipslelf mipself" ;;
4703 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4704 esac ;;
4705 mips-*-lnews*-ecoff) ;;
4706 mips-*-*-ecoff) case "$endian" in
4707 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4708 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4709 esac ;;
4710 mips-*-*-elf) case "$endian" in
4711 big) emulation="mipsbelf mipslelf mipself" ;;
4712 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4713 esac ;;
906fac54 4714 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4715 # i386-pc-pe-coff != i386-pc-coff.
4716 i386-*-pe-coff) ;;
4c63da97
AM
4717 # Uncommenting the next line will turn on support for i386 AOUT
4718 # for the default linux configuration
4719 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4720 #
4721 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4722 i386-*-coff) emulation="i386coff" ;;
4c63da97 4723 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4724
f9c19112
HPN
4725 # Always all formats. The first stated emulation becomes the default.
4726 cris-*-*aout*) emulation="crisaout criself" ;;
4727 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4728 esac
4729
4730 emulations="$emulations $emulation"
4731
4732done
4733
15886821
L
4734# Turn on all targets if possible
4735if test ${all_targets} = "yes"; then
4736 case ${target_cpu_type} in
4737 i386)
4738 case ${obj_format} in
4739 aout)
4740 emulations="$emulations i386coff i386elf"
4741 ;;
4742 coff)
4743 emulations="$emulations i386aout i386elf"
4744 ;;
4745 elf)
4746 emulations="$emulations i386aout i386coff"
4747 ;;
4748 esac
4749 ;;
4750 esac
4751fi
4752
252b5132
RH
4753# Assign floating point type. Most processors with FP support
4754# IEEE FP. On those that don't support FP at all, usually IEEE
4755# is emulated.
4756case ${target_cpu} in
4757 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4758 pdp11) atof=vax ;;
252b5132
RH
4759 *) atof=ieee ;;
4760esac
4761
4762case "${obj_format}" in
13b2be9c
DJ
4763 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4764echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4765 { (exit 1); exit 1; }; } ;;
252b5132
RH
4766esac
4767
4768# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4769cgen_cpu_prefix=""
4770if test $using_cgen = yes ; then
4771 case ${target_cpu} in
4772 *) cgen_cpu_prefix=${target_cpu} ;;
4773 esac
13b2be9c
DJ
4774
4775
4776cat >>confdefs.h <<\_ACEOF
252b5132 4777#define USING_CGEN 1
13b2be9c 4778_ACEOF
252b5132
RH
4779
4780fi
4781
d6d788bd 4782
252b5132 4783if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4784 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4785echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4786 { (exit 1); exit 1; }; }
252b5132
RH
4787fi
4788
4789if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4790 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4791echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4792 { (exit 1); exit 1; }; }
252b5132
RH
4793fi
4794
4795case ${user_bfd_gas}-${primary_bfd_gas} in
4796 yes-yes | no-no)
4797 # We didn't override user's choice.
4798 ;;
4799 no-yes)
13b2be9c
DJ
4800 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4801echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4802 ;;
4803 no-preferred)
4804 primary_bfd_gas=no
4805 ;;
4806 *-preferred)
4807 primary_bfd_gas=yes
4808 ;;
4809 yes-*)
4810 primary_bfd_gas=yes
4811 ;;
4812 -*)
4813 # User specified nothing.
4814 ;;
4815esac
4816
4817# Some COFF configurations want these random other flags set.
4818case ${obj_format} in
4819 coff)
4820 case ${target_cpu_type} in
13b2be9c
DJ
4821 i386)
4822cat >>confdefs.h <<\_ACEOF
252b5132 4823#define I386COFF 1
13b2be9c 4824_ACEOF
252b5132 4825 ;;
13b2be9c
DJ
4826 m68k)
4827cat >>confdefs.h <<\_ACEOF
252b5132 4828#define M68KCOFF 1
13b2be9c 4829_ACEOF
252b5132 4830 ;;
13b2be9c
DJ
4831 m88k)
4832cat >>confdefs.h <<\_ACEOF
252b5132 4833#define M88KCOFF 1
13b2be9c 4834_ACEOF
252b5132
RH
4835 ;;
4836 esac
4837 ;;
4838esac
4839
4840# Getting this done right is going to be a bitch. Each configuration specified
4841# with --enable-targets=... should be checked for environment, format, cpu, and
4842# bfd_gas setting.
4843#
4844# For each configuration, the necessary object file support code must be linked
4845# in. This might be only one, it might be up to four. The necessary emulation
4846# code needs to be provided, too.
4847#
4848# And then there's "--enable-targets=all"....
4849#
4850# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4851
4852formats="${obj_format}"
4853emfiles=""
4854EMULATIONS=""
4855_gas_uniq_list="$emulations"
4856_gas_uniq_newlist=""
4857for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4858 case $_gas_uniq_i in
4859 _gas_uniq_dummy) ;;
4860 *) case " $_gas_uniq_newlist " in
4861 *" $_gas_uniq_i "*) ;;
4862 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4863 esac ;;
4864 esac
4865done
4866emulations=$_gas_uniq_newlist
4867
4868for em in . $emulations ; do
4869 case $em in
4870 .) continue ;;
97238fbd 4871 mipsbelf | mipslelf | mipself)
252b5132 4872 fmt=elf file=mipself ;;
97238fbd 4873 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4874 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4875 *coff)
4876 fmt=coff file=$em ;;
4877 *aout)
4878 fmt=aout file=$em ;;
4879 *elf)
4880 fmt=elf file=$em ;;
252b5132
RH
4881 esac
4882 formats="$formats $fmt"
4883 emfiles="$emfiles e-$file.o"
4884 EMULATIONS="$EMULATIONS &$em,"
4885done
4886_gas_uniq_list="$formats"
4887_gas_uniq_newlist=""
4888for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4889 case $_gas_uniq_i in
4890 _gas_uniq_dummy) ;;
4891 *) case " $_gas_uniq_newlist " in
4892 *" $_gas_uniq_i "*) ;;
4893 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4894 esac ;;
4895 esac
4896done
4897formats=$_gas_uniq_newlist
4898
4899_gas_uniq_list="$emfiles"
4900_gas_uniq_newlist=""
4901for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4902 case $_gas_uniq_i in
4903 _gas_uniq_dummy) ;;
4904 *) case " $_gas_uniq_newlist " in
4905 *" $_gas_uniq_i "*) ;;
4906 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4907 esac ;;
4908 esac
4909done
4910emfiles=$_gas_uniq_newlist
4911
4912if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4913 for fmt in $formats ; do
4914 case $fmt in
13b2be9c
DJ
4915 aout)
4916cat >>confdefs.h <<\_ACEOF
252b5132 4917#define OBJ_MAYBE_AOUT 1
13b2be9c 4918_ACEOF
252b5132 4919 ;;
13b2be9c
DJ
4920 bout)
4921cat >>confdefs.h <<\_ACEOF
252b5132 4922#define OBJ_MAYBE_BOUT 1
13b2be9c 4923_ACEOF
252b5132 4924 ;;
13b2be9c
DJ
4925 coff)
4926cat >>confdefs.h <<\_ACEOF
252b5132 4927#define OBJ_MAYBE_COFF 1
13b2be9c 4928_ACEOF
252b5132 4929 ;;
13b2be9c
DJ
4930 ecoff)
4931cat >>confdefs.h <<\_ACEOF
252b5132 4932#define OBJ_MAYBE_ECOFF 1
13b2be9c 4933_ACEOF
252b5132 4934 ;;
13b2be9c
DJ
4935 elf)
4936cat >>confdefs.h <<\_ACEOF
252b5132 4937#define OBJ_MAYBE_ELF 1
13b2be9c 4938_ACEOF
252b5132 4939 ;;
13b2be9c
DJ
4940 generic)
4941cat >>confdefs.h <<\_ACEOF
252b5132 4942#define OBJ_MAYBE_GENERIC 1
13b2be9c 4943_ACEOF
252b5132 4944 ;;
13b2be9c
DJ
4945 hp300)
4946cat >>confdefs.h <<\_ACEOF
252b5132 4947#define OBJ_MAYBE_HP300 1
13b2be9c 4948_ACEOF
252b5132 4949 ;;
13b2be9c
DJ
4950 ieee)
4951cat >>confdefs.h <<\_ACEOF
252b5132 4952#define OBJ_MAYBE_IEEE 1
13b2be9c 4953_ACEOF
252b5132 4954 ;;
13b2be9c
DJ
4955 som)
4956cat >>confdefs.h <<\_ACEOF
252b5132 4957#define OBJ_MAYBE_SOM 1
13b2be9c 4958_ACEOF
252b5132
RH
4959 ;;
4960 esac
4961 extra_objects="$extra_objects obj-$fmt.o"
4962 done
4963 obj_format=multi
4964fi
4965if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 4966 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
4967 # e-mips* has more than one emulation per file, e-i386* has just one at the
4968 # moment. If only one emulation is specified, then don't define
4969 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4970 case "${obj_format}${emfiles}" in
4971 multi* | *mips*)
4ca72d38 4972 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
4973
4974cat >>confdefs.h <<\_ACEOF
252b5132 4975#define USE_EMULATIONS 1
13b2be9c 4976_ACEOF
4ca72d38
AM
4977 ;;
4978 esac
252b5132
RH
4979fi
4980
13b2be9c
DJ
4981
4982cat >>confdefs.h <<_ACEOF
252b5132 4983#define EMULATIONS $EMULATIONS
13b2be9c
DJ
4984_ACEOF
4985
252b5132 4986
13b2be9c 4987cat >>confdefs.h <<_ACEOF
252b5132 4988#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 4989_ACEOF
252b5132 4990
d6d788bd 4991
252b5132
RH
4992case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4993 yes-*-coff) need_bfd=yes ;;
4994 no-*-coff) need_bfd=yes
13b2be9c
DJ
4995
4996cat >>confdefs.h <<\_ACEOF
252b5132 4997#define MANY_SEGMENTS 1
13b2be9c 4998_ACEOF
252b5132
RH
4999 ;;
5000esac
5001
5002reject_dev_configs=yes
5003
5004case ${reject_dev_configs}-${dev} in
5005 yes-yes) # Oops.
13b2be9c
DJ
5006 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5007echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5008 { (exit 1); exit 1; }; }
252b5132
RH
5009 ;;
5010esac
5011
d6d788bd
L
5012
5013
5014
5015
5016
5017
252b5132 5018case "${primary_bfd_gas}" in
13b2be9c
DJ
5019 yes)
5020cat >>confdefs.h <<\_ACEOF
252b5132 5021#define BFD_ASSEMBLER 1
13b2be9c 5022_ACEOF
252b5132
RH
5023
5024 need_bfd=yes ;;
5025esac
5026
5027# do we need the opcodes library?
5028case "${need_opcodes}" in
5029yes)
5030 OPCODES_LIB=../opcodes/libopcodes.la
5031 ;;
5032esac
5033
5034case "${need_bfd}" in
5035yes)
5036 BFDLIB=../bfd/libbfd.la
4001ad8c 5037 BFDVER_H=../bfd/bfdver.h
29589b0c 5038 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
252b5132
RH
5039 ;;
5040esac
5041
d6d788bd
L
5042
5043
5044
5045
5046
4001ad8c 5047
13b2be9c
DJ
5048
5049cat >>confdefs.h <<_ACEOF
252b5132 5050#define TARGET_ALIAS "${target_alias}"
13b2be9c 5051_ACEOF
9b2b7d69 5052
13b2be9c
DJ
5053
5054cat >>confdefs.h <<_ACEOF
252b5132 5055#define TARGET_CANONICAL "${target}"
13b2be9c 5056_ACEOF
9b2b7d69 5057
13b2be9c
DJ
5058
5059cat >>confdefs.h <<_ACEOF
252b5132 5060#define TARGET_CPU "${target_cpu}"
13b2be9c 5061_ACEOF
9b2b7d69 5062
13b2be9c
DJ
5063
5064cat >>confdefs.h <<_ACEOF
252b5132 5065#define TARGET_VENDOR "${target_vendor}"
13b2be9c 5066_ACEOF
9b2b7d69 5067
13b2be9c
DJ
5068
5069cat >>confdefs.h <<_ACEOF
252b5132 5070#define TARGET_OS "${target_os}"
13b2be9c
DJ
5071_ACEOF
5072
5073
5074ac_ext=c
5075ac_cpp='$CPP $CPPFLAGS'
5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5081set dummy ${ac_tool_prefix}gcc; ac_word=$2
5082echo "$as_me:$LINENO: checking for $ac_word" >&5
5083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084if test "${ac_cv_prog_CC+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101done
5102done
252b5132 5103
13b2be9c
DJ
5104fi
5105fi
5106CC=$ac_cv_prog_CC
5107if test -n "$CC"; then
5108 echo "$as_me:$LINENO: result: $CC" >&5
5109echo "${ECHO_T}$CC" >&6
5110else
5111 echo "$as_me:$LINENO: result: no" >&5
5112echo "${ECHO_T}no" >&6
5113fi
252b5132 5114
13b2be9c
DJ
5115fi
5116if test -z "$ac_cv_prog_CC"; then
5117 ac_ct_CC=$CC
5118 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5119set dummy gcc; ac_word=$2
13b2be9c
DJ
5120echo "$as_me:$LINENO: checking for $ac_word" >&5
5121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125 if test -n "$ac_ct_CC"; then
5126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5127else
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_ac_ct_CC="gcc"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139done
5140done
5141
5142fi
5143fi
5144ac_ct_CC=$ac_cv_prog_ac_ct_CC
5145if test -n "$ac_ct_CC"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5147echo "${ECHO_T}$ac_ct_CC" >&6
5148else
5149 echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151fi
5152
5153 CC=$ac_ct_CC
5154else
5155 CC="$ac_cv_prog_CC"
5156fi
5157
5158if test -z "$CC"; then
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5161set dummy ${ac_tool_prefix}cc; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164if test "${ac_cv_prog_CC+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5166else
5167 if test -n "$CC"; then
5168 ac_cv_prog_CC="$CC" # Let the user override the test.
5169else
13b2be9c
DJ
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_CC="${ac_tool_prefix}cc"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182done
5183
252b5132
RH
5184fi
5185fi
13b2be9c 5186CC=$ac_cv_prog_CC
252b5132 5187if test -n "$CC"; then
13b2be9c
DJ
5188 echo "$as_me:$LINENO: result: $CC" >&5
5189echo "${ECHO_T}$CC" >&6
5190else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193fi
5194
5195fi
5196if test -z "$ac_cv_prog_CC"; then
5197 ac_ct_CC=$CC
5198 # Extract the first word of "cc", so it can be a program name with args.
5199set dummy cc; ac_word=$2
5200echo "$as_me:$LINENO: checking for $ac_word" >&5
5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5204else
13b2be9c
DJ
5205 if test -n "$ac_ct_CC"; then
5206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_CC="cc"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220done
5221
5222fi
5223fi
5224ac_ct_CC=$ac_cv_prog_ac_ct_CC
5225if test -n "$ac_ct_CC"; then
5226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5227echo "${ECHO_T}$ac_ct_CC" >&6
5228else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231fi
5232
5233 CC=$ac_ct_CC
5234else
5235 CC="$ac_cv_prog_CC"
6840198f
NC
5236fi
5237
13b2be9c 5238fi
252b5132
RH
5239if test -z "$CC"; then
5240 # Extract the first word of "cc", so it can be a program name with args.
5241set dummy cc; ac_word=$2
13b2be9c
DJ
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_prog_CC+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5246else
5247 if test -n "$CC"; then
5248 ac_cv_prog_CC="$CC" # Let the user override the test.
5249else
252b5132 5250 ac_prog_rejected=no
13b2be9c
DJ
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259 ac_prog_rejected=yes
5260 continue
5261 fi
5262 ac_cv_prog_CC="cc"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266done
5267done
5268
252b5132
RH
5269if test $ac_prog_rejected = yes; then
5270 # We found a bogon in the path, so make sure we never use it.
5271 set dummy $ac_cv_prog_CC
5272 shift
13b2be9c 5273 if test $# != 0; then
252b5132
RH
5274 # We chose a different compiler from the bogus one.
5275 # However, it has the same basename, so the bogon will be chosen
5276 # first if we set CC to just the basename; use the full file name.
5277 shift
13b2be9c 5278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5279 fi
5280fi
5281fi
5282fi
13b2be9c 5283CC=$ac_cv_prog_CC
252b5132 5284if test -n "$CC"; then
13b2be9c
DJ
5285 echo "$as_me:$LINENO: result: $CC" >&5
5286echo "${ECHO_T}$CC" >&6
252b5132 5287else
13b2be9c
DJ
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
252b5132
RH
5290fi
5291
13b2be9c
DJ
5292fi
5293if test -z "$CC"; then
5294 if test -n "$ac_tool_prefix"; then
5295 for ac_prog in cl
5296 do
5297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299echo "$as_me:$LINENO: checking for $ac_word" >&5
5300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301if test "${ac_cv_prog_CC+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5303else
5304 if test -n "$CC"; then
5305 ac_cv_prog_CC="$CC" # Let the user override the test.
5306else
13b2be9c
DJ
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319done
5320
252b5132
RH
5321fi
5322fi
13b2be9c 5323CC=$ac_cv_prog_CC
252b5132 5324if test -n "$CC"; then
13b2be9c
DJ
5325 echo "$as_me:$LINENO: result: $CC" >&5
5326echo "${ECHO_T}$CC" >&6
c8615825 5327else
13b2be9c
DJ
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
c8615825 5330fi
6840198f 5331
13b2be9c
DJ
5332 test -n "$CC" && break
5333 done
5334fi
5335if test -z "$CC"; then
5336 ac_ct_CC=$CC
5337 for ac_prog in cl
5338do
5339 # Extract the first word of "$ac_prog", so it can be a program name with args.
5340set dummy $ac_prog; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5345else
13b2be9c
DJ
5346 if test -n "$ac_ct_CC"; then
5347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5348else
13b2be9c
DJ
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_CC="$ac_prog"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360done
5361done
5362
c8615825
AM
5363fi
5364fi
13b2be9c
DJ
5365ac_ct_CC=$ac_cv_prog_ac_ct_CC
5366if test -n "$ac_ct_CC"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5368echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5369else
13b2be9c
DJ
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
c8615825 5372fi
252b5132 5373
13b2be9c
DJ
5374 test -n "$ac_ct_CC" && break
5375done
5376
5377 CC=$ac_ct_CC
5378fi
5379
5380fi
5381
5382
5383test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5384See \`config.log' for more details." >&5
5385echo "$as_me: error: no acceptable C compiler found in \$PATH
5386See \`config.log' for more details." >&2;}
5387 { (exit 1); exit 1; }; }
5388
5389# Provide some information about the compiler.
5390echo "$as_me:$LINENO:" \
5391 "checking for C compiler version" >&5
5392ac_compiler=`set X $ac_compile; echo $2`
5393{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5394 (eval $ac_compiler --version </dev/null >&5) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }
5398{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5399 (eval $ac_compiler -v </dev/null >&5) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5403{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5404 (eval $ac_compiler -V </dev/null >&5) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }
5408
5409echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5410echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5411if test "${ac_cv_c_compiler_gnu+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420
5421int
5422main ()
5423{
5424#ifndef __GNUC__
5425 choke me
5426#endif
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5434 (eval $ac_compile) 2>conftest.er1
13b2be9c 5435 ac_status=$?
ab509236
L
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
13b2be9c
DJ
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
e330299e 5441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_compiler_gnu=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458ac_compiler_gnu=no
5459fi
ab509236 5460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5461ac_cv_c_compiler_gnu=$ac_compiler_gnu
5462
5463fi
5464echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5465echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5466GCC=`test $ac_compiler_gnu = yes && echo yes`
5467ac_test_CFLAGS=${CFLAGS+set}
5468ac_save_CFLAGS=$CFLAGS
5469CFLAGS="-g"
5470echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5471echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5472if test "${ac_cv_prog_cc_g+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
5481
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5492 (eval $ac_compile) 2>conftest.er1
13b2be9c 5493 ac_status=$?
ab509236
L
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
13b2be9c
DJ
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
e330299e 5499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
252b5132
RH
5511 ac_cv_prog_cc_g=yes
5512else
13b2be9c
DJ
5513 echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5515
13b2be9c 5516ac_cv_prog_cc_g=no
252b5132 5517fi
ab509236 5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5519fi
5520echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5521echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5522if test "$ac_test_CFLAGS" = set; then
13b2be9c 5523 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5524elif test $ac_cv_prog_cc_g = yes; then
5525 if test "$GCC" = yes; then
5526 CFLAGS="-g -O2"
5527 else
5528 CFLAGS="-g"
5529 fi
5530else
9b2b7d69
MM
5531 if test "$GCC" = yes; then
5532 CFLAGS="-O2"
5533 else
5534 CFLAGS=
5535 fi
5536fi
13b2be9c
DJ
5537echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5538echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5539if test "${ac_cv_prog_cc_stdc+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542 ac_cv_prog_cc_stdc=no
5543ac_save_CC=$CC
5544cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5545/* confdefs.h. */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h. */
5550#include <stdarg.h>
5551#include <stdio.h>
5552#include <sys/types.h>
5553#include <sys/stat.h>
5554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5555struct buf { int x; };
5556FILE * (*rcsopen) (struct buf *, struct stat *, int);
5557static char *e (p, i)
5558 char **p;
5559 int i;
5560{
5561 return p[i];
5562}
5563static char *f (char * (*g) (char **, int), char **p, ...)
5564{
5565 char *s;
5566 va_list v;
5567 va_start (v,p);
5568 s = g (p, va_arg (v,int));
5569 va_end (v);
5570 return s;
5571}
ab509236
L
5572
5573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5574 function prototypes and stuff, but not '\xHH' hex character constants.
5575 These don't provoke an error unfortunately, instead are silently treated
5576 as 'x'. The following induces an error, until -std1 is added to get
5577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5578 array size at least. It's necessary to write '\x00'==0 to get something
5579 that's true only with -std1. */
5580int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5581
13b2be9c
DJ
5582int test (int i, double x);
5583struct s1 {int (*f) (int a);};
5584struct s2 {int (*f) (double a);};
5585int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5586int argc;
5587char **argv;
5588int
5589main ()
5590{
5591return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5592 ;
5593 return 0;
5594}
5595_ACEOF
5596# Don't try gcc -ansi; that turns off useful extensions and
5597# breaks some systems' header files.
5598# AIX -qlanglvl=ansi
5599# Ultrix and OSF/1 -std1
5600# HP-UX 10.20 and later -Ae
5601# HP-UX older versions -Aa -D_HPUX_SOURCE
5602# SVR4 -Xc -D__EXTENSIONS__
5603for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5604do
5605 CC="$ac_save_CC $ac_arg"
5606 rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5608 (eval $ac_compile) 2>conftest.er1
13b2be9c 5609 ac_status=$?
ab509236
L
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
13b2be9c
DJ
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
e330299e 5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_prog_cc_stdc=$ac_arg
5628break
5629else
5630 echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633fi
ab509236 5634rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
5635done
5636rm -f conftest.$ac_ext conftest.$ac_objext
5637CC=$ac_save_CC
5638
5639fi
5640
5641case "x$ac_cv_prog_cc_stdc" in
5642 x|xno)
5643 echo "$as_me:$LINENO: result: none needed" >&5
5644echo "${ECHO_T}none needed" >&6 ;;
5645 *)
5646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5647echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5648 CC="$CC $ac_cv_prog_cc_stdc" ;;
5649esac
5650
5651# Some people use a C++ compiler to compile C. Since we use `exit',
5652# in C++ we need to declare it. In case someone uses the same compiler
5653# for both compiling C and C++ we need to have the C++ compiler decide
5654# the declaration of exit, since it's the most demanding environment.
5655cat >conftest.$ac_ext <<_ACEOF
5656#ifndef __cplusplus
5657 choke me
5658#endif
5659_ACEOF
5660rm -f conftest.$ac_objext
5661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5662 (eval $ac_compile) 2>conftest.er1
13b2be9c 5663 ac_status=$?
ab509236
L
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
13b2be9c
DJ
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
e330299e 5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 for ac_declaration in \
ab509236 5682 '' \
13b2be9c
DJ
5683 'extern "C" void std::exit (int) throw (); using std::exit;' \
5684 'extern "C" void std::exit (int); using std::exit;' \
5685 'extern "C" void exit (int) throw ();' \
5686 'extern "C" void exit (int);' \
5687 'void exit (int);'
5688do
5689 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5690/* confdefs.h. */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h. */
13dfd2d0 5695$ac_declaration
ab509236 5696#include <stdlib.h>
13b2be9c
DJ
5697int
5698main ()
5699{
5700exit (42);
5701 ;
5702 return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext
5706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5707 (eval $ac_compile) 2>conftest.er1
13b2be9c 5708 ac_status=$?
ab509236
L
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
13b2be9c
DJ
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
e330299e 5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 :
5727else
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731continue
5732fi
ab509236 5733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5734 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740$ac_declaration
5741int
5742main ()
5743{
5744exit (42);
5745 ;
5746 return 0;
5747}
5748_ACEOF
5749rm -f conftest.$ac_objext
5750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5751 (eval $ac_compile) 2>conftest.er1
13b2be9c 5752 ac_status=$?
ab509236
L
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
13b2be9c
DJ
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
e330299e 5758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 break
5771else
5772 echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775fi
ab509236 5776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5777done
5778rm -f conftest*
5779if test -n "$ac_declaration"; then
5780 echo '#ifdef __cplusplus' >>confdefs.h
5781 echo $ac_declaration >>confdefs.h
5782 echo '#endif' >>confdefs.h
5783fi
5784
5785else
5786 echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789fi
ab509236 5790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5791ac_ext=c
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5796
5797
5798for ac_prog in 'bison -y' byacc
9b2b7d69 5799do
13b2be9c 5800 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5801set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5802echo "$as_me:$LINENO: checking for $ac_word" >&5
5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804if test "${ac_cv_prog_YACC+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5806else
5807 if test -n "$YACC"; then
5808 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5809else
13b2be9c
DJ
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_YACC="$ac_prog"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821done
5822done
5823
c8615825
AM
5824fi
5825fi
13b2be9c 5826YACC=$ac_cv_prog_YACC
c8615825 5827if test -n "$YACC"; then
13b2be9c
DJ
5828 echo "$as_me:$LINENO: result: $YACC" >&5
5829echo "${ECHO_T}$YACC" >&6
c8615825 5830else
13b2be9c
DJ
5831 echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
c8615825
AM
5833fi
5834
13b2be9c 5835 test -n "$YACC" && break
c8615825
AM
5836done
5837test -n "$YACC" || YACC="yacc"
5838
13b2be9c
DJ
5839for ac_prog in flex lex
5840do
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842set dummy $ac_prog; ac_word=$2
5843echo "$as_me:$LINENO: checking for $ac_word" >&5
5844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845if test "${ac_cv_prog_LEX+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5847else
13b2be9c
DJ
5848 if test -n "$LEX"; then
5849 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5850else
13b2be9c
DJ
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_LEX="$ac_prog"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863done
5864
5865fi
5866fi
5867LEX=$ac_cv_prog_LEX
5868if test -n "$LEX"; then
5869 echo "$as_me:$LINENO: result: $LEX" >&5
5870echo "${ECHO_T}$LEX" >&6
c8615825 5871else
13b2be9c
DJ
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874fi
5875
5876 test -n "$LEX" && break
5877done
5878test -n "$LEX" || LEX=":"
5879
5880if test -z "$LEXLIB"
5881then
5882 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5883echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5884if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 ac_check_lib_save_LIBS=$LIBS
5888LIBS="-lfl $LIBS"
5889cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
5895
5896/* Override any gcc2 internal prototype to avoid an error. */
5897#ifdef __cplusplus
5898extern "C"
5899#endif
5900/* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5902char yywrap ();
5903int
5904main ()
5905{
5906yywrap ();
5907 ;
5908 return 0;
5909}
5910_ACEOF
5911rm -f conftest.$ac_objext conftest$ac_exeext
5912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 5913 (eval $ac_link) 2>conftest.er1
13b2be9c 5914 ac_status=$?
ab509236
L
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
13b2be9c
DJ
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
e330299e 5920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
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); }; } &&
5926 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_lib_fl_yywrap=yes
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937ac_cv_lib_fl_yywrap=no
5938fi
ab509236
L
5939rm -f conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
5941LIBS=$ac_check_lib_save_LIBS
5942fi
5943echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5944echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5945if test $ac_cv_lib_fl_yywrap = yes; then
5946 LEXLIB="-lfl"
5947else
5948 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5949echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5950if test "${ac_cv_lib_l_yywrap+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953 ac_check_lib_save_LIBS=$LIBS
5954LIBS="-ll $LIBS"
5955cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961
5962/* Override any gcc2 internal prototype to avoid an error. */
5963#ifdef __cplusplus
5964extern "C"
5965#endif
5966/* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968char yywrap ();
5969int
5970main ()
5971{
5972yywrap ();
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext conftest$ac_exeext
5978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 5979 (eval $ac_link) 2>conftest.er1
13b2be9c 5980 ac_status=$?
ab509236
L
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
13b2be9c
DJ
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
e330299e 5986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
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); }; } &&
5992 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_lib_l_yywrap=yes
9b2b7d69 5999else
13b2be9c
DJ
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003ac_cv_lib_l_yywrap=no
9b2b7d69 6004fi
ab509236
L
6005rm -f conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
13b2be9c 6007LIBS=$ac_check_lib_save_LIBS
9b2b7d69 6008fi
13b2be9c
DJ
6009echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6010echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6011if test $ac_cv_lib_l_yywrap = yes; then
6012 LEXLIB="-ll"
252b5132 6013fi
13b2be9c
DJ
6014
6015fi
6016
252b5132 6017fi
13b2be9c
DJ
6018
6019if test "x$LEX" != "x:"; then
6020 echo "$as_me:$LINENO: checking lex output file root" >&5
6021echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6022if test "${ac_cv_prog_lex_root+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025 # The minimal lex program is just a single line: %%. But some broken lexes
6026# (Solaris, I think it was) want two %% lines, so accommodate them.
6027cat >conftest.l <<_ACEOF
6028%%
6029%%
6030_ACEOF
6031{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6032 (eval $LEX conftest.l) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }
6036if test -f lex.yy.c; then
6037 ac_cv_prog_lex_root=lex.yy
6038elif test -f lexyy.c; then
6039 ac_cv_prog_lex_root=lexyy
252b5132 6040else
13b2be9c
DJ
6041 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6042echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6043 { (exit 1); exit 1; }; }
252b5132 6044fi
13b2be9c
DJ
6045fi
6046echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6047echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6048rm -f conftest.l
6049LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 6050
13b2be9c
DJ
6051echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6052echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6053if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6055else
13b2be9c
DJ
6056 # POSIX says lex can declare yytext either as a pointer or an array; the
6057# default is implementation-dependent. Figure out which it is, since
6058# not all implementations provide the %pointer and %array declarations.
6059ac_cv_prog_lex_yytext_pointer=no
6060echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6061ac_save_LIBS=$LIBS
6062LIBS="$LIBS $LEXLIB"
6063cat >conftest.$ac_ext <<_ACEOF
6064`cat $LEX_OUTPUT_ROOT.c`
6065_ACEOF
6066rm -f conftest.$ac_objext conftest$ac_exeext
6067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6068 (eval $ac_link) 2>conftest.er1
13b2be9c 6069 ac_status=$?
ab509236
L
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
13b2be9c
DJ
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
e330299e 6075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_prog_lex_yytext_pointer=yes
252b5132 6088else
13b2be9c
DJ
6089 echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
252b5132 6092fi
ab509236
L
6093rm -f conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6095LIBS=$ac_save_LIBS
6096rm -f "${LEX_OUTPUT_ROOT}.c"
6097
252b5132 6098fi
13b2be9c
DJ
6099echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6100echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6101if test $ac_cv_prog_lex_yytext_pointer = yes; then
6102
6103cat >>confdefs.h <<\_ACEOF
6104#define YYTEXT_POINTER 1
6105_ACEOF
6106
6107fi
6108
6109fi
6110if test "$LEX" = :; then
6111 LEX=${am_missing_run}flex
6112fi
6113
6114ALL_LINGUAS="fr tr es"
6115if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118echo "$as_me:$LINENO: checking for $ac_word" >&5
6119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120if test "${ac_cv_prog_RANLIB+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 if test -n "$RANLIB"; then
6124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138done
6139
6140fi
6141fi
6142RANLIB=$ac_cv_prog_RANLIB
6143if test -n "$RANLIB"; then
6144 echo "$as_me:$LINENO: result: $RANLIB" >&5
6145echo "${ECHO_T}$RANLIB" >&6
252b5132 6146else
13b2be9c
DJ
6147 echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6
252b5132
RH
6149fi
6150
13b2be9c
DJ
6151fi
6152if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155set dummy ranlib; ac_word=$2
6156echo "$as_me:$LINENO: checking for $ac_word" >&5
6157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175done
6840198f 6176done
d6d788bd 6177
13b2be9c
DJ
6178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6179fi
6180fi
6181ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182if test -n "$ac_ct_RANLIB"; then
6183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184echo "${ECHO_T}$ac_ct_RANLIB" >&6
d6d788bd 6185else
13b2be9c
DJ
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
6188fi
6189
6190 RANLIB=$ac_ct_RANLIB
d6d788bd 6191else
13b2be9c
DJ
6192 RANLIB="$ac_cv_prog_RANLIB"
6193fi
6194
6195ac_ext=c
6196ac_cpp='$CPP $CPPFLAGS'
6197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6202# On Suns, sometimes $CPP names a directory.
6203if test -n "$CPP" && test -d "$CPP"; then
6204 CPP=
d6d788bd 6205fi
13b2be9c
DJ
6206if test -z "$CPP"; then
6207 if test "${ac_cv_prog_CPP+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 # Double quotes because CPP needs to be expanded
6211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6212 do
6213 ac_preproc_ok=false
6214for ac_c_preproc_warn_flag in '' yes
6215do
6216 # Use a header file that comes with gcc, so configuring glibc
6217 # with a fresh cross-compiler works.
6218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219 # <limits.h> exists even on freestanding compilers.
6220 # On the NeXT, cc -E runs the code through the compiler's parser,
6221 # not just through cpp. "Syntax error" is here to catch this case.
6222 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228#ifdef __STDC__
6229# include <limits.h>
6230#else
6231# include <assert.h>
6232#endif
ab509236 6233 Syntax error
13b2be9c
DJ
6234_ACEOF
6235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null; then
6243 if test -s conftest.err; then
6244 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6246 else
6247 ac_cpp_err=
6248 fi
6249else
6250 ac_cpp_err=yes
d6d788bd 6251fi
13b2be9c
DJ
6252if test -z "$ac_cpp_err"; then
6253 :
6254else
6255 echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 # Broken: fails on valid input.
6259continue
6260fi
6261rm -f conftest.err conftest.$ac_ext
6262
6263 # OK, works on sane cases. Now check whether non-existent headers
6264 # can be detected and how.
6265 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271#include <ac_nonexistent.h>
6272_ACEOF
6273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } >/dev/null; then
6281 if test -s conftest.err; then
6282 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6284 else
6285 ac_cpp_err=
6286 fi
d6d788bd 6287else
13b2be9c 6288 ac_cpp_err=yes
d6d788bd 6289fi
13b2be9c
DJ
6290if test -z "$ac_cpp_err"; then
6291 # Broken: success on invalid input.
6292continue
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6296
13b2be9c
DJ
6297 # Passes both tests.
6298ac_preproc_ok=:
6299break
6300fi
6301rm -f conftest.err conftest.$ac_ext
252b5132 6302
13b2be9c
DJ
6303done
6304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305rm -f conftest.err conftest.$ac_ext
6306if $ac_preproc_ok; then
6307 break
9b2b7d69 6308fi
13b2be9c
DJ
6309
6310 done
6311 ac_cv_prog_CPP=$CPP
9b2b7d69 6312
d6d788bd 6313fi
13b2be9c 6314 CPP=$ac_cv_prog_CPP
c8615825 6315else
13b2be9c 6316 ac_cv_prog_CPP=$CPP
c8615825 6317fi
13b2be9c
DJ
6318echo "$as_me:$LINENO: result: $CPP" >&5
6319echo "${ECHO_T}$CPP" >&6
6320ac_preproc_ok=false
6321for ac_c_preproc_warn_flag in '' yes
6322do
6323 # Use a header file that comes with gcc, so configuring glibc
6324 # with a fresh cross-compiler works.
6325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6326 # <limits.h> exists even on freestanding compilers.
6327 # On the NeXT, cc -E runs the code through the compiler's parser,
6328 # not just through cpp. "Syntax error" is here to catch this case.
6329 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335#ifdef __STDC__
6336# include <limits.h>
6337#else
6338# include <assert.h>
6339#endif
ab509236 6340 Syntax error
13b2be9c
DJ
6341_ACEOF
6342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6353 else
6354 ac_cpp_err=
6355 fi
6356else
6357 ac_cpp_err=yes
252b5132 6358fi
13b2be9c
DJ
6359if test -z "$ac_cpp_err"; then
6360 :
252b5132 6361else
13b2be9c
DJ
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 # Broken: fails on valid input.
6366continue
6367fi
6368rm -f conftest.err conftest.$ac_ext
6369
6370 # OK, works on sane cases. Now check whether non-existent headers
6371 # can be detected and how.
6372 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378#include <ac_nonexistent.h>
6379_ACEOF
6380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } >/dev/null; then
6388 if test -s conftest.err; then
6389 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6391 else
6392 ac_cpp_err=
6393 fi
252b5132 6394else
13b2be9c 6395 ac_cpp_err=yes
252b5132 6396fi
13b2be9c
DJ
6397if test -z "$ac_cpp_err"; then
6398 # Broken: success on invalid input.
6399continue
252b5132 6400else
13b2be9c
DJ
6401 echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6403
13b2be9c
DJ
6404 # Passes both tests.
6405ac_preproc_ok=:
6406break
252b5132 6407fi
13b2be9c 6408rm -f conftest.err conftest.$ac_ext
252b5132 6409
13b2be9c
DJ
6410done
6411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412rm -f conftest.err conftest.$ac_ext
6413if $ac_preproc_ok; then
6414 :
6415else
6416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6417See \`config.log' for more details." >&5
6418echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6419See \`config.log' for more details." >&2;}
6420 { (exit 1); exit 1; }; }
252b5132 6421fi
9b2b7d69 6422
13b2be9c
DJ
6423ac_ext=c
6424ac_cpp='$CPP $CPPFLAGS'
6425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6428
6429
13b2be9c
DJ
6430echo "$as_me:$LINENO: checking for egrep" >&5
6431echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6432if test "${ac_cv_prog_egrep+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6434else
13b2be9c
DJ
6435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6436 then ac_cv_prog_egrep='grep -E'
6437 else ac_cv_prog_egrep='egrep'
c8615825 6438 fi
6840198f 6439fi
13b2be9c
DJ
6440echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6441echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6442 EGREP=$ac_cv_prog_egrep
6840198f 6443
13b2be9c
DJ
6444
6445echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6446echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6447if test "${ac_cv_header_stdc+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6449else
13b2be9c 6450 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
252b5132
RH
6456#include <stdlib.h>
6457#include <stdarg.h>
6458#include <string.h>
6459#include <float.h>
13b2be9c
DJ
6460
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6471 (eval $ac_compile) 2>conftest.er1
13b2be9c 6472 ac_status=$?
ab509236
L
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
13b2be9c
DJ
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
e330299e 6478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
252b5132
RH
6490 ac_cv_header_stdc=yes
6491else
13b2be9c
DJ
6492 echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495ac_cv_header_stdc=no
252b5132 6496fi
ab509236 6497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6498
6499if test $ac_cv_header_stdc = yes; then
6500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13b2be9c 6501 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
252b5132 6507#include <string.h>
13b2be9c
DJ
6508
6509_ACEOF
252b5132 6510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6511 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
6512 :
6513else
252b5132
RH
6514 ac_cv_header_stdc=no
6515fi
6516rm -f conftest*
6517
6518fi
6519
6520if test $ac_cv_header_stdc = yes; then
6521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13b2be9c 6522 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6523/* confdefs.h. */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h. */
252b5132 6528#include <stdlib.h>
13b2be9c
DJ
6529
6530_ACEOF
252b5132 6531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6532 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
6533 :
6534else
252b5132
RH
6535 ac_cv_header_stdc=no
6536fi
6537rm -f conftest*
6538
6539fi
6540
6541if test $ac_cv_header_stdc = yes; then
6542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13b2be9c 6543 if test "$cross_compiling" = yes; then
252b5132
RH
6544 :
6545else
13b2be9c 6546 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6547/* confdefs.h. */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h. */
252b5132 6552#include <ctype.h>
13b2be9c
DJ
6553#if ((' ' & 0x0FF) == 0x020)
6554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6556#else
6557# define ISLOWER(c) \
ab509236
L
6558 (('a' <= (c) && (c) <= 'i') \
6559 || ('j' <= (c) && (c) <= 'r') \
6560 || ('s' <= (c) && (c) <= 'z'))
13b2be9c
DJ
6561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6562#endif
c8615825 6563
13b2be9c
DJ
6564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565int
6566main ()
6567{
6568 int i;
6569 for (i = 0; i < 256; i++)
6570 if (XOR (islower (i), ISLOWER (i))
ab509236 6571 || toupper (i) != TOUPPER (i))
13b2be9c
DJ
6572 exit(2);
6573 exit (0);
6574}
6575_ACEOF
6576rm -f conftest$ac_exeext
6577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
c8615825
AM
6587 :
6588else
13b2be9c
DJ
6589 echo "$as_me: program exited with status $ac_status" >&5
6590echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593( exit $ac_status )
6594ac_cv_header_stdc=no
c8615825 6595fi
ab509236 6596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c8615825 6597fi
c8615825 6598fi
9b2b7d69 6599fi
13b2be9c
DJ
6600echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6601echo "${ECHO_T}$ac_cv_header_stdc" >&6
c8615825 6602if test $ac_cv_header_stdc = yes; then
13b2be9c
DJ
6603
6604cat >>confdefs.h <<\_ACEOF
c8615825 6605#define STDC_HEADERS 1
13b2be9c 6606_ACEOF
9b2b7d69 6607
c8615825
AM
6608fi
6609
13b2be9c
DJ
6610echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6611echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6612if test "${ac_cv_c_const+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
c8615825 6621
13b2be9c
DJ
6622int
6623main ()
6624{
6625/* FIXME: Include the comments suggested by Paul. */
6626#ifndef __cplusplus
6627 /* Ultrix mips cc rejects this. */
6628 typedef int charset[2];
6629 const charset x;
6630 /* SunOS 4.1.1 cc rejects this. */
6631 char const *const *ccp;
6632 char **p;
6633 /* NEC SVR4.0.2 mips cc rejects this. */
6634 struct point {int x, y;};
6635 static struct point const zero = {0,0};
6636 /* AIX XL C 1.02.0.0 rejects this.
6637 It does not let you subtract one const X* pointer from another in
6638 an arm of an if-expression whose if-part is not a constant
6639 expression */
6640 const char *g = "string";
6641 ccp = &g + (g ? g-g : 0);
6642 /* HPUX 7.0 cc rejects these. */
6643 ++ccp;
6644 p = (char**) ccp;
6645 ccp = (char const *const *) p;
6646 { /* SCO 3.2v4 cc rejects this. */
6647 char *t;
6648 char const *s = 0 ? (char *) 0 : (char const *) 0;
6649
6650 *t++ = 0;
6651 }
6652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6653 int x[] = {25, 17};
6654 const int *foo = &x[0];
6655 ++foo;
6656 }
6657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6658 typedef const int *iptr;
6659 iptr p = 0;
6660 ++p;
6661 }
6662 { /* AIX XL C 1.02.0.0 rejects this saying
6663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6664 struct s { int j; const int *ap[3]; };
6665 struct s *b; b->j = 5;
6666 }
6667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6668 const int foo = 10;
6669 }
6670#endif
6671
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6678 (eval $ac_compile) 2>conftest.er1
13b2be9c 6679 ac_status=$?
ab509236
L
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
13b2be9c
DJ
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
e330299e 6685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
252b5132
RH
6697 ac_cv_c_const=yes
6698else
13b2be9c
DJ
6699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702ac_cv_c_const=no
252b5132 6703fi
ab509236 6704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6705fi
13b2be9c
DJ
6706echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6707echo "${ECHO_T}$ac_cv_c_const" >&6
c8615825 6708if test $ac_cv_c_const = no; then
13b2be9c
DJ
6709
6710cat >>confdefs.h <<\_ACEOF
6711#define const
6712_ACEOF
252b5132
RH
6713
6714fi
6715
13b2be9c
DJ
6716echo "$as_me:$LINENO: checking for inline" >&5
6717echo $ECHO_N "checking for inline... $ECHO_C" >&6
6718if test "${ac_cv_c_inline+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6720else
6721 ac_cv_c_inline=no
6722for ac_kw in inline __inline__ __inline; do
13b2be9c 6723 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729#ifndef __cplusplus
6730typedef int foo_t;
6731static $ac_kw foo_t static_foo () {return 0; }
6732$ac_kw foo_t foo () {return 0; }
6733#endif
252b5132 6734
13b2be9c
DJ
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6738 (eval $ac_compile) 2>conftest.er1
13b2be9c 6739 ac_status=$?
ab509236
L
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
13b2be9c
DJ
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
e330299e 6745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
d6d788bd 6757 ac_cv_c_inline=$ac_kw; break
6840198f 6758else
13b2be9c
DJ
6759 echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6840198f 6762fi
ab509236 6763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d6d788bd 6764done
6840198f
NC
6765
6766fi
13b2be9c
DJ
6767echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6768echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
6769
6770
13b2be9c 6771case $ac_cv_c_inline in
d6d788bd 6772 inline | yes) ;;
ab509236
L
6773 *)
6774 case $ac_cv_c_inline in
6775 no) ac_val=;;
6776 *) ac_val=$ac_cv_c_inline;;
6777 esac
6778 cat >>confdefs.h <<_ACEOF
6779#ifndef __cplusplus
6780#define inline $ac_val
6781#endif
13b2be9c 6782_ACEOF
ab509236 6783 ;;
d6d788bd
L
6784esac
6785
13b2be9c
DJ
6786# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ab509236 6797 inttypes.h stdint.h unistd.h
13b2be9c
DJ
6798do
6799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6800echo "$as_me:$LINENO: checking for $ac_header" >&5
6801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6802if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811$ac_includes_default
6812
6813#include <$ac_header>
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6817 (eval $ac_compile) 2>conftest.er1
13b2be9c 6818 ac_status=$?
ab509236
L
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
13b2be9c
DJ
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
e330299e 6824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 eval "$as_ac_Header=yes"
6837else
6838 echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841eval "$as_ac_Header=no"
6842fi
ab509236 6843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6844fi
6845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6850_ACEOF
6851
6852fi
6853
6854done
6855
6856
6857echo "$as_me:$LINENO: checking for off_t" >&5
6858echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6859if test "${ac_cv_type_off_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6861else
13b2be9c 6862 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6863/* confdefs.h. */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h. */
6868$ac_includes_default
6869int
6870main ()
6871{
6872if ((off_t *) 0)
6873 return 0;
6874if (sizeof (off_t))
6875 return 0;
6876 ;
6877 return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext
6881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6882 (eval $ac_compile) 2>conftest.er1
13b2be9c 6883 ac_status=$?
ab509236
L
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
13b2be9c
DJ
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
e330299e 6889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
a2d91340 6901 ac_cv_type_off_t=yes
252b5132 6902else
13b2be9c
DJ
6903 echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6905
13b2be9c 6906ac_cv_type_off_t=no
c8615825 6907fi
ab509236 6908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6909fi
6910echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6911echo "${ECHO_T}$ac_cv_type_off_t" >&6
6912if test $ac_cv_type_off_t = yes; then
6913 :
6914else
6915
6916cat >>confdefs.h <<_ACEOF
252b5132 6917#define off_t long
13b2be9c 6918_ACEOF
252b5132
RH
6919
6920fi
6921
13b2be9c
DJ
6922echo "$as_me:$LINENO: checking for size_t" >&5
6923echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6924if test "${ac_cv_type_size_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6926else
13b2be9c 6927 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6928/* confdefs.h. */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h. */
6933$ac_includes_default
6934int
6935main ()
6936{
6937if ((size_t *) 0)
6938 return 0;
6939if (sizeof (size_t))
6940 return 0;
6941 ;
6942 return 0;
6943}
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6947 (eval $ac_compile) 2>conftest.er1
13b2be9c 6948 ac_status=$?
ab509236
L
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
13b2be9c
DJ
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
e330299e 6954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
a2d91340 6966 ac_cv_type_size_t=yes
252b5132 6967else
13b2be9c
DJ
6968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6970
13b2be9c
DJ
6971ac_cv_type_size_t=no
6972fi
ab509236 6973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8615825 6974fi
13b2be9c
DJ
6975echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6976echo "${ECHO_T}$ac_cv_type_size_t" >&6
6977if test $ac_cv_type_size_t = yes; then
6978 :
6979else
6980
6981cat >>confdefs.h <<_ACEOF
252b5132 6982#define size_t unsigned
13b2be9c 6983_ACEOF
252b5132
RH
6984
6985fi
6986
6987# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6988# for constant arguments. Useless!
13b2be9c
DJ
6989echo "$as_me:$LINENO: checking for working alloca.h" >&5
6990echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6991if test "${ac_cv_working_alloca_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
252b5132 7000#include <alloca.h>
13b2be9c
DJ
7001int
7002main ()
7003{
7004char *p = (char *) alloca (2 * sizeof (int));
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext conftest$ac_exeext
7010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7011 (eval $ac_link) 2>conftest.er1
13b2be9c 7012 ac_status=$?
ab509236
L
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
13b2be9c
DJ
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
e330299e 7018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_working_alloca_h=yes
7031else
7032 echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035ac_cv_working_alloca_h=no
7036fi
ab509236
L
7037rm -f conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7039fi
7040echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7041echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7042if test $ac_cv_working_alloca_h = yes; then
7043
7044cat >>confdefs.h <<\_ACEOF
252b5132 7045#define HAVE_ALLOCA_H 1
13b2be9c 7046_ACEOF
252b5132
RH
7047
7048fi
7049
13b2be9c
DJ
7050echo "$as_me:$LINENO: checking for alloca" >&5
7051echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7052if test "${ac_cv_func_alloca_works+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7054else
13b2be9c 7055 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
252b5132
RH
7061#ifdef __GNUC__
7062# define alloca __builtin_alloca
7063#else
7064# ifdef _MSC_VER
7065# include <malloc.h>
7066# define alloca _alloca
7067# else
7068# if HAVE_ALLOCA_H
7069# include <alloca.h>
7070# else
7071# ifdef _AIX
7072 #pragma alloca
7073# else
7074# ifndef alloca /* predefined by HP cc +Olibcalls */
7075char *alloca ();
7076# endif
7077# endif
7078# endif
7079# endif
7080#endif
7081
13b2be9c
DJ
7082int
7083main ()
7084{
7085char *p = (char *) alloca (1);
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext conftest$ac_exeext
7091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7092 (eval $ac_link) 2>conftest.er1
13b2be9c 7093 ac_status=$?
ab509236
L
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
13b2be9c
DJ
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
e330299e 7099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
252b5132
RH
7111 ac_cv_func_alloca_works=yes
7112else
13b2be9c
DJ
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
7116ac_cv_func_alloca_works=no
252b5132 7117fi
ab509236
L
7118rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
252b5132 7120fi
13b2be9c
DJ
7121echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7122echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 7123
252b5132 7124if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 7125
13b2be9c
DJ
7126cat >>confdefs.h <<\_ACEOF
7127#define HAVE_ALLOCA 1
7128_ACEOF
9b2b7d69 7129
13b2be9c 7130else
c8615825 7131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
7132# that cause trouble. Some versions do not even contain alloca or
7133# contain a buggy version. If you still want to use their alloca,
7134# use ar to extract alloca.o from them instead of compiling alloca.c.
7135
7136ALLOCA=alloca.$ac_objext
7137
7138cat >>confdefs.h <<\_ACEOF
252b5132 7139#define C_ALLOCA 1
13b2be9c 7140_ACEOF
252b5132 7141
d6d788bd 7142
13b2be9c
DJ
7143echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7144echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7145if test "${ac_cv_os_cray+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7147else
13b2be9c 7148 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
252b5132
RH
7154#if defined(CRAY) && ! defined(CRAY2)
7155webecray
7156#else
7157wenotbecray
7158#endif
7159
13b2be9c 7160_ACEOF
252b5132 7161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 7162 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
7163 ac_cv_os_cray=yes
7164else
252b5132
RH
7165 ac_cv_os_cray=no
7166fi
7167rm -f conftest*
7168
7169fi
13b2be9c
DJ
7170echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7171echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 7172if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
7173 for ac_func in _getb67 GETB67 getb67; do
7174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7175echo "$as_me:$LINENO: checking for $ac_func" >&5
7176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7177if eval "test \"\${$as_ac_var+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
ab509236
L
7186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7188#define $ac_func innocuous_$ac_func
7189
252b5132 7190/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7191 which can conflict with char $ac_func (); below.
7192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7193 <limits.h> exists even on freestanding compilers. */
ab509236 7194
13b2be9c
DJ
7195#ifdef __STDC__
7196# include <limits.h>
7197#else
7198# include <assert.h>
7199#endif
ab509236
L
7200
7201#undef $ac_func
7202
252b5132 7203/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7204#ifdef __cplusplus
7205extern "C"
7206{
7207#endif
252b5132 7208/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7209 builtin and then its argument prototype would still apply. */
7210char $ac_func ();
252b5132
RH
7211/* The GNU C library defines this for functions which it implements
7212 to always fail with ENOSYS. Some functions are actually named
7213 something starting with __ and the normal name is an alias. */
7214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7215choke me
7216#else
13b2be9c
DJ
7217char (*f) () = $ac_func;
7218#endif
7219#ifdef __cplusplus
7220}
252b5132
RH
7221#endif
7222
13b2be9c
DJ
7223int
7224main ()
7225{
7226return f != $ac_func;
7227 ;
7228 return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext conftest$ac_exeext
7232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7233 (eval $ac_link) 2>conftest.er1
13b2be9c 7234 ac_status=$?
ab509236
L
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
13b2be9c
DJ
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
e330299e 7240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 eval "$as_ac_var=yes"
7253else
7254 echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257eval "$as_ac_var=no"
7258fi
ab509236
L
7259rm -f conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7261fi
7262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7264if test `eval echo '${'$as_ac_var'}'` = yes; then
7265
7266cat >>confdefs.h <<_ACEOF
252b5132 7267#define CRAY_STACKSEG_END $ac_func
13b2be9c 7268_ACEOF
252b5132 7269
13b2be9c 7270 break
252b5132
RH
7271fi
7272
13b2be9c 7273 done
252b5132
RH
7274fi
7275
13b2be9c
DJ
7276echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7277echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7278if test "${ac_cv_c_stack_direction+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7280else
7281 if test "$cross_compiling" = yes; then
7282 ac_cv_c_stack_direction=0
7283else
13b2be9c 7284 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7285/* confdefs.h. */
7286_ACEOF
7287cat confdefs.h >>conftest.$ac_ext
7288cat >>conftest.$ac_ext <<_ACEOF
7289/* end confdefs.h. */
7290int
252b5132
RH
7291find_stack_direction ()
7292{
7293 static char *addr = 0;
7294 auto char dummy;
7295 if (addr == 0)
7296 {
7297 addr = &dummy;
7298 return find_stack_direction ();
7299 }
7300 else
7301 return (&dummy > addr) ? 1 : -1;
7302}
13b2be9c
DJ
7303
7304int
252b5132
RH
7305main ()
7306{
13b2be9c 7307 exit (find_stack_direction () < 0);
252b5132 7308}
13b2be9c
DJ
7309_ACEOF
7310rm -f conftest$ac_exeext
7311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
252b5132
RH
7321 ac_cv_c_stack_direction=1
7322else
13b2be9c
DJ
7323 echo "$as_me: program exited with status $ac_status" >&5
7324echo "$as_me: failed program was:" >&5
7325sed 's/^/| /' conftest.$ac_ext >&5
7326
7327( exit $ac_status )
7328ac_cv_c_stack_direction=-1
252b5132 7329fi
ab509236 7330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7331fi
252b5132 7332fi
13b2be9c
DJ
7333echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7334echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7335
13b2be9c 7336cat >>confdefs.h <<_ACEOF
252b5132 7337#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7338_ACEOF
7339
252b5132
RH
7340
7341fi
7342
13b2be9c
DJ
7343
7344
7345for ac_header in stdlib.h unistd.h
252b5132 7346do
13b2be9c
DJ
7347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349 echo "$as_me:$LINENO: checking for $ac_header" >&5
7350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7351if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353fi
7354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356else
7357 # Is the header compilable?
7358echo "$as_me:$LINENO: checking $ac_header usability" >&5
7359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7360cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7361/* confdefs.h. */
7362_ACEOF
7363cat confdefs.h >>conftest.$ac_ext
7364cat >>conftest.$ac_ext <<_ACEOF
7365/* end confdefs.h. */
7366$ac_includes_default
7367#include <$ac_header>
7368_ACEOF
7369rm -f conftest.$ac_objext
7370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7371 (eval $ac_compile) 2>conftest.er1
13b2be9c 7372 ac_status=$?
ab509236
L
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
13b2be9c
DJ
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
e330299e 7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_header_compiler=yes
7391else
7392 echo "$as_me: failed program was:" >&5
7393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395ac_header_compiler=no
7396fi
ab509236 7397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399echo "${ECHO_T}$ac_header_compiler" >&6
7400
7401# Is the header present?
7402echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7405/* confdefs.h. */
7406_ACEOF
7407cat confdefs.h >>conftest.$ac_ext
7408cat >>conftest.$ac_ext <<_ACEOF
7409/* end confdefs.h. */
7410#include <$ac_header>
7411_ACEOF
7412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7423 else
7424 ac_cpp_err=
7425 fi
252b5132 7426else
13b2be9c
DJ
7427 ac_cpp_err=yes
7428fi
7429if test -z "$ac_cpp_err"; then
7430 ac_header_preproc=yes
7431else
7432 echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_header_preproc=no
7436fi
7437rm -f conftest.err conftest.$ac_ext
7438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439echo "${ECHO_T}$ac_header_preproc" >&6
7440
7441# So? What about this header?
ab509236
L
7442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7443 yes:no: )
13b2be9c
DJ
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7448 ac_header_preproc=yes
13b2be9c 7449 ;;
ab509236 7450 no:yes:* )
13b2be9c
DJ
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7463 (
7464 cat <<\_ASBOX
ab509236
L
7465## ------------------------------------------ ##
7466## Report this to the AC_PACKAGE_NAME lists. ##
7467## ------------------------------------------ ##
13b2be9c
DJ
7468_ASBOX
7469 ) |
7470 sed "s/^/$as_me: WARNING: /" >&2
7471 ;;
7472esac
7473echo "$as_me:$LINENO: checking for $ac_header" >&5
7474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
ab509236 7478 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7479fi
13b2be9c
DJ
7480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7482
252b5132 7483fi
13b2be9c
DJ
7484if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487_ACEOF
7488
252b5132 7489fi
13b2be9c 7490
252b5132
RH
7491done
7492
13b2be9c 7493
252b5132
RH
7494for ac_func in getpagesize
7495do
13b2be9c
DJ
7496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497echo "$as_me:$LINENO: checking for $ac_func" >&5
7498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7499if eval "test \"\${$as_ac_var+set}\" = set"; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7503/* confdefs.h. */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h. */
ab509236
L
7508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7510#define $ac_func innocuous_$ac_func
7511
252b5132 7512/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7513 which can conflict with char $ac_func (); below.
7514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515 <limits.h> exists even on freestanding compilers. */
ab509236 7516
13b2be9c
DJ
7517#ifdef __STDC__
7518# include <limits.h>
7519#else
7520# include <assert.h>
7521#endif
ab509236
L
7522
7523#undef $ac_func
7524
252b5132 7525/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7526#ifdef __cplusplus
7527extern "C"
7528{
7529#endif
252b5132 7530/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7531 builtin and then its argument prototype would still apply. */
7532char $ac_func ();
252b5132
RH
7533/* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537choke me
7538#else
13b2be9c
DJ
7539char (*f) () = $ac_func;
7540#endif
7541#ifdef __cplusplus
7542}
252b5132
RH
7543#endif
7544
13b2be9c
DJ
7545int
7546main ()
7547{
7548return f != $ac_func;
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7555 (eval $ac_link) 2>conftest.er1
13b2be9c 7556 ac_status=$?
ab509236
L
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
13b2be9c
DJ
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
e330299e 7562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 eval "$as_ac_var=yes"
7575else
7576 echo "$as_me: failed program was:" >&5
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
7579eval "$as_ac_var=no"
7580fi
ab509236
L
7581rm -f conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7583fi
7584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7586if test `eval echo '${'$as_ac_var'}'` = yes; then
7587 cat >>confdefs.h <<_ACEOF
7588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7589_ACEOF
252b5132 7590
252b5132
RH
7591fi
7592done
7593
13b2be9c
DJ
7594echo "$as_me:$LINENO: checking for working mmap" >&5
7595echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7596if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7598else
7599 if test "$cross_compiling" = yes; then
7600 ac_cv_func_mmap_fixed_mapped=no
7601else
13b2be9c 7602 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7603/* confdefs.h. */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h. */
7608$ac_includes_default
7609/* malloc might have been renamed as rpl_malloc. */
7610#undef malloc
d6d788bd 7611
252b5132
RH
7612/* Thanks to Mike Haertel and Jim Avera for this test.
7613 Here is a matrix of mmap possibilities:
7614 mmap private not fixed
7615 mmap private fixed at somewhere currently unmapped
7616 mmap private fixed at somewhere already mapped
7617 mmap shared not fixed
7618 mmap shared fixed at somewhere currently unmapped
7619 mmap shared fixed at somewhere already mapped
7620 For private mappings, we should verify that changes cannot be read()
7621 back from the file, nor mmap's back from the file at a different
7622 address. (There have been systems where private was not correctly
7623 implemented like the infamous i386 svr4.0, and systems where the
13b2be9c 7624 VM page cache was not coherent with the file system buffer cache
252b5132
RH
7625 like early versions of FreeBSD and possibly contemporary NetBSD.)
7626 For shared mappings, we should conversely verify that changes get
13b2be9c 7627 propagated back to all the places they're supposed to be.
252b5132
RH
7628
7629 Grep wants private fixed already mapped.
7630 The main things grep needs to know about mmap are:
7631 * does it exist and is it safe to write into the mmap'd area
7632 * how to use it (BSD variants) */
13b2be9c 7633
252b5132
RH
7634#include <fcntl.h>
7635#include <sys/mman.h>
7636
13b2be9c
DJ
7637#if !STDC_HEADERS && !HAVE_STDLIB_H
7638char *malloc ();
7639#endif
c8615825 7640
13b2be9c
DJ
7641/* This mess was copied from the GNU getpagesize.h. */
7642#if !HAVE_GETPAGESIZE
252b5132 7643/* Assume that all systems that can run configure have sys/param.h. */
13b2be9c 7644# if !HAVE_SYS_PARAM_H
252b5132
RH
7645# define HAVE_SYS_PARAM_H 1
7646# endif
7647
7648# ifdef _SC_PAGESIZE
7649# define getpagesize() sysconf(_SC_PAGESIZE)
7650# else /* no _SC_PAGESIZE */
13b2be9c 7651# if HAVE_SYS_PARAM_H
252b5132
RH
7652# include <sys/param.h>
7653# ifdef EXEC_PAGESIZE
7654# define getpagesize() EXEC_PAGESIZE
7655# else /* no EXEC_PAGESIZE */
7656# ifdef NBPG
7657# define getpagesize() NBPG * CLSIZE
7658# ifndef CLSIZE
7659# define CLSIZE 1
7660# endif /* no CLSIZE */
7661# else /* no NBPG */
7662# ifdef NBPC
7663# define getpagesize() NBPC
7664# else /* no NBPC */
7665# ifdef PAGESIZE
7666# define getpagesize() PAGESIZE
7667# endif /* PAGESIZE */
7668# endif /* no NBPC */
7669# endif /* no NBPG */
7670# endif /* no EXEC_PAGESIZE */
7671# else /* no HAVE_SYS_PARAM_H */
7672# define getpagesize() 8192 /* punt totally */
7673# endif /* no HAVE_SYS_PARAM_H */
7674# endif /* no _SC_PAGESIZE */
7675
7676#endif /* no HAVE_GETPAGESIZE */
7677
252b5132 7678int
13b2be9c 7679main ()
252b5132 7680{
13b2be9c
DJ
7681 char *data, *data2, *data3;
7682 int i, pagesize;
7683 int fd;
7684
7685 pagesize = getpagesize ();
7686
7687 /* First, make a file with some known garbage in it. */
7688 data = (char *) malloc (pagesize);
7689 if (!data)
7690 exit (1);
7691 for (i = 0; i < pagesize; ++i)
7692 *(data + i) = rand ();
7693 umask (0);
7694 fd = creat ("conftest.mmap", 0600);
7695 if (fd < 0)
7696 exit (1);
7697 if (write (fd, data, pagesize) != pagesize)
7698 exit (1);
7699 close (fd);
7700
7701 /* Next, try to mmap the file at a fixed address which already has
7702 something else allocated at it. If we can, also make sure that
7703 we see the same garbage. */
7704 fd = open ("conftest.mmap", O_RDWR);
7705 if (fd < 0)
7706 exit (1);
7707 data2 = (char *) malloc (2 * pagesize);
7708 if (!data2)
7709 exit (1);
ab509236 7710 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
13b2be9c 7711 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
ab509236 7712 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13b2be9c
DJ
7713 exit (1);
7714 for (i = 0; i < pagesize; ++i)
7715 if (*(data + i) != *(data2 + i))
7716 exit (1);
7717
7718 /* Finally, make sure that changes to the mapped area do not
7719 percolate back to the file as seen by read(). (This is a bug on
7720 some variants of i386 svr4.0.) */
7721 for (i = 0; i < pagesize; ++i)
7722 *(data2 + i) = *(data2 + i) + 1;
7723 data3 = (char *) malloc (pagesize);
7724 if (!data3)
7725 exit (1);
7726 if (read (fd, data3, pagesize) != pagesize)
7727 exit (1);
7728 for (i = 0; i < pagesize; ++i)
7729 if (*(data + i) != *(data3 + i))
7730 exit (1);
7731 close (fd);
7732 exit (0);
252b5132 7733}
13b2be9c
DJ
7734_ACEOF
7735rm -f conftest$ac_exeext
7736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
252b5132
RH
7746 ac_cv_func_mmap_fixed_mapped=yes
7747else
13b2be9c
DJ
7748 echo "$as_me: program exited with status $ac_status" >&5
7749echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752( exit $ac_status )
7753ac_cv_func_mmap_fixed_mapped=no
9b2b7d69 7754fi
ab509236 7755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7756fi
252b5132 7757fi
13b2be9c
DJ
7758echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7759echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c8615825 7760if test $ac_cv_func_mmap_fixed_mapped = yes; then
13b2be9c
DJ
7761
7762cat >>confdefs.h <<\_ACEOF
9b2b7d69 7763#define HAVE_MMAP 1
13b2be9c 7764_ACEOF
9b2b7d69
MM
7765
7766fi
13b2be9c
DJ
7767rm -f conftest.mmap
7768
7769
7770
7771
7772
7773
7774
6840198f 7775
13b2be9c
DJ
7776
7777
7778
7779for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
7780unistd.h values.h sys/param.h
7781do
13b2be9c
DJ
7782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784 echo "$as_me:$LINENO: checking for $ac_header" >&5
7785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788fi
7789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791else
7792 # Is the header compilable?
7793echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7795cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801$ac_includes_default
7802#include <$ac_header>
7803_ACEOF
7804rm -f conftest.$ac_objext
7805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7806 (eval $ac_compile) 2>conftest.er1
13b2be9c 7807 ac_status=$?
ab509236
L
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
13b2be9c
DJ
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
e330299e 7813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7826else
7827 echo "$as_me: failed program was:" >&5
7828sed 's/^/| /' conftest.$ac_ext >&5
7829
7830ac_header_compiler=no
7831fi
ab509236 7832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834echo "${ECHO_T}$ac_header_compiler" >&6
7835
7836# Is the header present?
7837echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845#include <$ac_header>
7846_ACEOF
7847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7858 else
7859 ac_cpp_err=
7860 fi
9b2b7d69 7861else
13b2be9c
DJ
7862 ac_cpp_err=yes
7863fi
7864if test -z "$ac_cpp_err"; then
7865 ac_header_preproc=yes
7866else
7867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_header_preproc=no
7871fi
7872rm -f conftest.err conftest.$ac_ext
7873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874echo "${ECHO_T}$ac_header_preproc" >&6
7875
7876# So? What about this header?
ab509236
L
7877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
13b2be9c
DJ
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
13b2be9c 7884 ;;
ab509236 7885 no:yes:* )
13b2be9c
DJ
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7898 (
7899 cat <<\_ASBOX
ab509236
L
7900## ------------------------------------------ ##
7901## Report this to the AC_PACKAGE_NAME lists. ##
7902## ------------------------------------------ ##
13b2be9c
DJ
7903_ASBOX
7904 ) |
7905 sed "s/^/$as_me: WARNING: /" >&2
7906 ;;
7907esac
7908echo "$as_me:$LINENO: checking for $ac_header" >&5
7909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
ab509236 7913 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7914fi
13b2be9c
DJ
7915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917
252b5132 7918fi
13b2be9c
DJ
7919if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922_ACEOF
7923
252b5132 7924fi
13b2be9c 7925
252b5132
RH
7926done
7927
13b2be9c
DJ
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7939__argz_count __argz_stringify __argz_next
7940do
13b2be9c
DJ
7941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942echo "$as_me:$LINENO: checking for $ac_func" >&5
7943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944if eval "test \"\${$as_ac_var+set}\" = set"; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
ab509236
L
7953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7955#define $ac_func innocuous_$ac_func
7956
252b5132 7957/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7958 which can conflict with char $ac_func (); below.
7959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960 <limits.h> exists even on freestanding compilers. */
ab509236 7961
13b2be9c
DJ
7962#ifdef __STDC__
7963# include <limits.h>
7964#else
7965# include <assert.h>
7966#endif
ab509236
L
7967
7968#undef $ac_func
7969
252b5132 7970/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7971#ifdef __cplusplus
7972extern "C"
7973{
7974#endif
252b5132 7975/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7976 builtin and then its argument prototype would still apply. */
7977char $ac_func ();
252b5132
RH
7978/* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982choke me
7983#else
13b2be9c
DJ
7984char (*f) () = $ac_func;
7985#endif
7986#ifdef __cplusplus
7987}
252b5132
RH
7988#endif
7989
13b2be9c
DJ
7990int
7991main ()
7992{
7993return f != $ac_func;
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8000 (eval $ac_link) 2>conftest.er1
13b2be9c 8001 ac_status=$?
ab509236
L
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
13b2be9c
DJ
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
e330299e 8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 eval "$as_ac_var=yes"
8020else
8021 echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024eval "$as_ac_var=no"
8025fi
ab509236
L
8026rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8028fi
8029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034_ACEOF
252b5132 8035
252b5132
RH
8036fi
8037done
8038
6840198f 8039
d6d788bd 8040 if test "${ac_cv_func_stpcpy+set}" != "set"; then
13b2be9c
DJ
8041
8042for ac_func in stpcpy
252b5132 8043do
13b2be9c
DJ
8044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045echo "$as_me:$LINENO: checking for $ac_func" >&5
8046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8047if eval "test \"\${$as_ac_var+set}\" = set"; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
ab509236
L
8056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8058#define $ac_func innocuous_$ac_func
8059
252b5132 8060/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8061 which can conflict with char $ac_func (); below.
8062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063 <limits.h> exists even on freestanding compilers. */
ab509236 8064
13b2be9c
DJ
8065#ifdef __STDC__
8066# include <limits.h>
8067#else
8068# include <assert.h>
8069#endif
ab509236
L
8070
8071#undef $ac_func
8072
252b5132 8073/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8074#ifdef __cplusplus
8075extern "C"
8076{
8077#endif
252b5132 8078/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8079 builtin and then its argument prototype would still apply. */
8080char $ac_func ();
252b5132
RH
8081/* The GNU C library defines this for functions which it implements
8082 to always fail with ENOSYS. Some functions are actually named
8083 something starting with __ and the normal name is an alias. */
8084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085choke me
8086#else
13b2be9c
DJ
8087char (*f) () = $ac_func;
8088#endif
8089#ifdef __cplusplus
8090}
252b5132
RH
8091#endif
8092
13b2be9c
DJ
8093int
8094main ()
8095{
8096return f != $ac_func;
8097 ;
8098 return 0;
8099}
8100_ACEOF
8101rm -f conftest.$ac_objext conftest$ac_exeext
8102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8103 (eval $ac_link) 2>conftest.er1
13b2be9c 8104 ac_status=$?
ab509236
L
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
13b2be9c
DJ
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
e330299e 8110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_var=yes"
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127eval "$as_ac_var=no"
8128fi
ab509236
L
8129rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8131fi
8132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8134if test `eval echo '${'$as_ac_var'}'` = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8137_ACEOF
252b5132 8138
252b5132
RH
8139fi
8140done
8141
8142 fi
8143 if test "${ac_cv_func_stpcpy}" = "yes"; then
13b2be9c
DJ
8144
8145cat >>confdefs.h <<\_ACEOF
252b5132 8146#define HAVE_STPCPY 1
13b2be9c 8147_ACEOF
252b5132
RH
8148
8149 fi
8150
8151 if test $ac_cv_header_locale_h = yes; then
13b2be9c
DJ
8152 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8153echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8154if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
252b5132 8163#include <locale.h>
13b2be9c
DJ
8164int
8165main ()
8166{
252b5132 8167return LC_MESSAGES
13b2be9c
DJ
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
8173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8174 (eval $ac_link) 2>conftest.er1
13b2be9c 8175 ac_status=$?
ab509236
L
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
13b2be9c
DJ
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
e330299e 8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
252b5132
RH
8193 am_cv_val_LC_MESSAGES=yes
8194else
13b2be9c
DJ
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198am_cv_val_LC_MESSAGES=no
252b5132 8199fi
ab509236
L
8200rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
252b5132 8202fi
13b2be9c
DJ
8203echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8204echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c8615825 8205 if test $am_cv_val_LC_MESSAGES = yes; then
13b2be9c
DJ
8206
8207cat >>confdefs.h <<\_ACEOF
252b5132 8208#define HAVE_LC_MESSAGES 1
13b2be9c 8209_ACEOF
252b5132
RH
8210
8211 fi
8212 fi
13b2be9c
DJ
8213 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8214echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
8215 # Check whether --enable-nls or --disable-nls was given.
8216if test "${enable_nls+set}" = set; then
8217 enableval="$enable_nls"
8218 USE_NLS=$enableval
8219else
8220 USE_NLS=yes
13b2be9c
DJ
8221fi;
8222 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8223echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 8224
252b5132
RH
8225
8226 USE_INCLUDED_LIBINTL=no
8227
8228 if test "$USE_NLS" = "yes"; then
13b2be9c
DJ
8229 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8230echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8231
8232# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
8233if test "${with_included_gettext+set}" = set; then
8234 withval="$with_included_gettext"
8235 nls_cv_force_use_gnu_gettext=$withval
8236else
8237 nls_cv_force_use_gnu_gettext=no
13b2be9c
DJ
8238fi;
8239 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8240echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
8241
8242 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8243 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8244 nls_cv_header_intl=
8245 nls_cv_header_libgt=
e8093792 8246 CATOBJEXT=
252b5132 8247
13b2be9c
DJ
8248 if test "${ac_cv_header_libintl_h+set}" = set; then
8249 echo "$as_me:$LINENO: checking for libintl.h" >&5
8250echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8251if test "${ac_cv_header_libintl_h+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253fi
8254echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8255echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8256else
8257 # Is the header compilable?
8258echo "$as_me:$LINENO: checking libintl.h usability" >&5
8259echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8260cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
8266$ac_includes_default
9b2b7d69 8267#include <libintl.h>
13b2be9c
DJ
8268_ACEOF
8269rm -f conftest.$ac_objext
8270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 8271 (eval $ac_compile) 2>conftest.er1
13b2be9c 8272 ac_status=$?
ab509236
L
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
13b2be9c
DJ
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
e330299e 8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8291else
8292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295ac_header_compiler=no
8296fi
ab509236 8297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
8298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299echo "${ECHO_T}$ac_header_compiler" >&6
8300
8301# Is the header present?
8302echo "$as_me:$LINENO: checking libintl.h presence" >&5
8303echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8304cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#include <libintl.h>
8311_ACEOF
8312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
8323 else
8324 ac_cpp_err=
8325 fi
252b5132 8326else
13b2be9c
DJ
8327 ac_cpp_err=yes
8328fi
8329if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8331else
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_header_preproc=no
8336fi
8337rm -f conftest.err conftest.$ac_ext
8338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341# So? What about this header?
ab509236
L
8342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343 yes:no: )
13b2be9c
DJ
8344 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8345echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
8346 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8347echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
13b2be9c 8349 ;;
ab509236 8350 no:yes:* )
13b2be9c
DJ
8351 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8352echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
ab509236
L
8353 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8354echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8356echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8358echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
8359 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8360echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
8361 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8362echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
8363 (
8364 cat <<\_ASBOX
ab509236
L
8365## ------------------------------------------ ##
8366## Report this to the AC_PACKAGE_NAME lists. ##
8367## ------------------------------------------ ##
13b2be9c
DJ
8368_ASBOX
8369 ) |
8370 sed "s/^/$as_me: WARNING: /" >&2
8371 ;;
8372esac
8373echo "$as_me:$LINENO: checking for libintl.h" >&5
8374echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8375if test "${ac_cv_header_libintl_h+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 ac_cv_header_libintl_h=$ac_header_preproc
8379fi
8380echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8381echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8382
8383fi
8384if test $ac_cv_header_libintl_h = yes; then
8385 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8386echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8387if test "${gt_cv_func_gettext_libc+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389else
8390 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
252b5132 8396#include <libintl.h>
13b2be9c
DJ
8397int
8398main ()
8399{
252b5132 8400return (int) gettext ("")
13b2be9c
DJ
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8407 (eval $ac_link) 2>conftest.er1
13b2be9c 8408 ac_status=$?
ab509236
L
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
13b2be9c
DJ
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
e330299e 8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
252b5132
RH
8426 gt_cv_func_gettext_libc=yes
8427else
13b2be9c
DJ
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431gt_cv_func_gettext_libc=no
252b5132 8432fi
ab509236
L
8433rm -f conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
252b5132 8435fi
13b2be9c
DJ
8436echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8437echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
8438
8439 if test "$gt_cv_func_gettext_libc" != "yes"; then
13b2be9c
DJ
8440 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8441echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8442if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8444else
13b2be9c 8445 ac_check_lib_save_LIBS=$LIBS
252b5132 8446LIBS="-lintl $LIBS"
13b2be9c 8447cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453
252b5132 8454/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8455#ifdef __cplusplus
8456extern "C"
8457#endif
252b5132 8458/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8459 builtin and then its argument prototype would still apply. */
8460char bindtextdomain ();
8461int
8462main ()
8463{
8464bindtextdomain ();
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext conftest$ac_exeext
8470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8471 (eval $ac_link) 2>conftest.er1
13b2be9c 8472 ac_status=$?
ab509236
L
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
13b2be9c
DJ
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
e330299e 8478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_lib_intl_bindtextdomain=yes
8491else
8492 echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5
8494
8495ac_cv_lib_intl_bindtextdomain=no
8496fi
ab509236
L
8497rm -f conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8499LIBS=$ac_check_lib_save_LIBS
8500fi
8501echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8502echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8503if test $ac_cv_lib_intl_bindtextdomain = yes; then
8504 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8505echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8506if test "${gt_cv_func_gettext_libintl+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8510/* confdefs.h. */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h. */
d6d788bd 8515
13b2be9c
DJ
8516int
8517main ()
8518{
252b5132 8519return (int) gettext ("")
13b2be9c
DJ
8520 ;
8521 return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8526 (eval $ac_link) 2>conftest.er1
13b2be9c 8527 ac_status=$?
ab509236
L
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
13b2be9c
DJ
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
e330299e 8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
252b5132
RH
8545 gt_cv_func_gettext_libintl=yes
8546else
13b2be9c
DJ
8547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550gt_cv_func_gettext_libintl=no
252b5132 8551fi
ab509236
L
8552rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
252b5132 8554fi
13b2be9c
DJ
8555echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8556echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
8557fi
8558
8559 fi
8560
8561 if test "$gt_cv_func_gettext_libc" = "yes" \
8562 || test "$gt_cv_func_gettext_libintl" = "yes"; then
13b2be9c
DJ
8563
8564cat >>confdefs.h <<\_ACEOF
252b5132 8565#define HAVE_GETTEXT 1
13b2be9c 8566_ACEOF
252b5132
RH
8567
8568 # Extract the first word of "msgfmt", so it can be a program name with args.
8569set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8570echo "$as_me:$LINENO: checking for $ac_word" >&5
8571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8572if test "${ac_cv_path_MSGFMT+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8574else
8575 case "$MSGFMT" in
8576 /*)
8577 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8578 ;;
8579 *)
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8581 for ac_dir in $PATH; do
8582 test -z "$ac_dir" && ac_dir=.
8583 if test -f $ac_dir/$ac_word; then
8584 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8585 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8586 break
8587 fi
8588 fi
8589 done
8590 IFS="$ac_save_ifs"
8591 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8592 ;;
8593esac
8594fi
8595MSGFMT="$ac_cv_path_MSGFMT"
8596if test -n "$MSGFMT"; then
13b2be9c
DJ
8597 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8598echo "${ECHO_T}$MSGFMT" >&6
252b5132 8599else
13b2be9c
DJ
8600 echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
252b5132
RH
8602fi
8603 if test "$MSGFMT" != "no"; then
13b2be9c
DJ
8604
8605for ac_func in dcgettext
252b5132 8606do
13b2be9c
DJ
8607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608echo "$as_me:$LINENO: checking for $ac_func" >&5
8609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610if eval "test \"\${$as_ac_var+set}\" = set"; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
ab509236
L
8619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621#define $ac_func innocuous_$ac_func
8622
252b5132 8623/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
ab509236 8627
13b2be9c
DJ
8628#ifdef __STDC__
8629# include <limits.h>
8630#else
8631# include <assert.h>
8632#endif
ab509236
L
8633
8634#undef $ac_func
8635
252b5132 8636/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8637#ifdef __cplusplus
8638extern "C"
8639{
8640#endif
252b5132 8641/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8642 builtin and then its argument prototype would still apply. */
8643char $ac_func ();
252b5132
RH
8644/* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648choke me
8649#else
13b2be9c
DJ
8650char (*f) () = $ac_func;
8651#endif
8652#ifdef __cplusplus
8653}
252b5132
RH
8654#endif
8655
13b2be9c
DJ
8656int
8657main ()
8658{
8659return f != $ac_func;
8660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext conftest$ac_exeext
8665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8666 (eval $ac_link) 2>conftest.er1
13b2be9c 8667 ac_status=$?
ab509236
L
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
13b2be9c
DJ
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
e330299e 8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 eval "$as_ac_var=yes"
8686else
8687 echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690eval "$as_ac_var=no"
8691fi
ab509236
L
8692rm -f conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8694fi
8695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8697if test `eval echo '${'$as_ac_var'}'` = yes; then
8698 cat >>confdefs.h <<_ACEOF
8699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8700_ACEOF
252b5132 8701
252b5132
RH
8702fi
8703done
8704
8705 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8706set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8707echo "$as_me:$LINENO: checking for $ac_word" >&5
8708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8709if test "${ac_cv_path_GMSGFMT+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8711else
13b2be9c
DJ
8712 case $GMSGFMT in
8713 [\\/]* | ?:[\\/]*)
252b5132
RH
8714 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8715 ;;
252b5132 8716 *)
13b2be9c
DJ
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8727 fi
8728done
8729done
8730
252b5132
RH
8731 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8732 ;;
8733esac
8734fi
13b2be9c
DJ
8735GMSGFMT=$ac_cv_path_GMSGFMT
8736
252b5132 8737if test -n "$GMSGFMT"; then
13b2be9c
DJ
8738 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8739echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8740else
13b2be9c
DJ
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
252b5132
RH
8743fi
8744
8745 # Extract the first word of "xgettext", so it can be a program name with args.
8746set dummy xgettext; ac_word=$2
13b2be9c
DJ
8747echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8749if test "${ac_cv_path_XGETTEXT+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8751else
8752 case "$XGETTEXT" in
8753 /*)
8754 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8755 ;;
8756 *)
8757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8758 for ac_dir in $PATH; do
8759 test -z "$ac_dir" && ac_dir=.
8760 if test -f $ac_dir/$ac_word; then
8761 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8762 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8763 break
8764 fi
8765 fi
8766 done
8767 IFS="$ac_save_ifs"
8768 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8769 ;;
8770esac
8771fi
8772XGETTEXT="$ac_cv_path_XGETTEXT"
8773if test -n "$XGETTEXT"; then
13b2be9c
DJ
8774 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8775echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8776else
13b2be9c
DJ
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
252b5132
RH
8779fi
8780
13b2be9c 8781 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8782/* confdefs.h. */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h. */
252b5132 8787
13b2be9c
DJ
8788int
8789main ()
8790{
252b5132
RH
8791extern int _nl_msg_cat_cntr;
8792 return _nl_msg_cat_cntr
13b2be9c
DJ
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext conftest$ac_exeext
8798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8799 (eval $ac_link) 2>conftest.er1
13b2be9c 8800 ac_status=$?
ab509236
L
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
13b2be9c
DJ
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
e330299e 8806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
252b5132
RH
8818 CATOBJEXT=.gmo
8819 DATADIRNAME=share
8820else
13b2be9c
DJ
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824CATOBJEXT=.mo
252b5132
RH
8825 DATADIRNAME=lib
8826fi
ab509236
L
8827rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8829 INSTOBJEXT=.mo
8830 fi
8831 fi
13b2be9c 8832
6840198f 8833fi
252b5132 8834
d6d788bd 8835
13b2be9c
DJ
8836
8837
e8093792
AC
8838 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8839 # Neither gettext nor catgets in included in the C library.
8840 # Fall back on GNU gettext library (assuming it is present).
8841 nls_cv_use_gnu_gettext=yes
252b5132
RH
8842 fi
8843 fi
8844
8845 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8846 INTLOBJS="\$(GETTOBJS)"
8847 # Extract the first word of "msgfmt", so it can be a program name with args.
8848set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8849echo "$as_me:$LINENO: checking for $ac_word" >&5
8850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851if test "${ac_cv_path_MSGFMT+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8853else
8854 case "$MSGFMT" in
8855 /*)
8856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8857 ;;
8858 *)
8859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8860 for ac_dir in $PATH; do
8861 test -z "$ac_dir" && ac_dir=.
8862 if test -f $ac_dir/$ac_word; then
8863 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8864 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8865 break
8866 fi
8867 fi
8868 done
8869 IFS="$ac_save_ifs"
8870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8871 ;;
8872esac
8873fi
8874MSGFMT="$ac_cv_path_MSGFMT"
8875if test -n "$MSGFMT"; then
13b2be9c
DJ
8876 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8877echo "${ECHO_T}$MSGFMT" >&6
252b5132 8878else
13b2be9c
DJ
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
252b5132
RH
8881fi
8882
8883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8884set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8885echo "$as_me:$LINENO: checking for $ac_word" >&5
8886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8887if test "${ac_cv_path_GMSGFMT+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8889else
13b2be9c
DJ
8890 case $GMSGFMT in
8891 [\\/]* | ?:[\\/]*)
252b5132
RH
8892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8893 ;;
252b5132 8894 *)
13b2be9c
DJ
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
252b5132
RH
8909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8910 ;;
8911esac
8912fi
13b2be9c
DJ
8913GMSGFMT=$ac_cv_path_GMSGFMT
8914
252b5132 8915if test -n "$GMSGFMT"; then
13b2be9c
DJ
8916 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8917echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8918else
13b2be9c
DJ
8919 echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
252b5132
RH
8921fi
8922
8923 # Extract the first word of "xgettext", so it can be a program name with args.
8924set dummy xgettext; ac_word=$2
13b2be9c
DJ
8925echo "$as_me:$LINENO: checking for $ac_word" >&5
8926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927if test "${ac_cv_path_XGETTEXT+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8929else
8930 case "$XGETTEXT" in
8931 /*)
8932 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8933 ;;
8934 *)
8935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8936 for ac_dir in $PATH; do
8937 test -z "$ac_dir" && ac_dir=.
8938 if test -f $ac_dir/$ac_word; then
8939 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8940 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8941 break
8942 fi
8943 fi
8944 done
8945 IFS="$ac_save_ifs"
8946 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8947 ;;
8948esac
8949fi
8950XGETTEXT="$ac_cv_path_XGETTEXT"
8951if test -n "$XGETTEXT"; then
13b2be9c
DJ
8952 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8953echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8954else
13b2be9c
DJ
8955 echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
252b5132
RH
8957fi
8958
13b2be9c 8959
252b5132
RH
8960 USE_INCLUDED_LIBINTL=yes
8961 CATOBJEXT=.gmo
8962 INSTOBJEXT=.mo
8963 DATADIRNAME=share
8964 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8965 INTLLIBS=$INTLDEPS
8966 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8967 nls_cv_header_intl=libintl.h
8968 nls_cv_header_libgt=libgettext.h
8969 fi
8970
8971 if test "$XGETTEXT" != ":"; then
8972 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8973 : ;
8974 else
13b2be9c
DJ
8975 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8976echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8977 XGETTEXT=":"
8978 fi
8979 fi
8980
8981 # We need to process the po/ directory.
8982 POSUB=po
8983 else
8984 DATADIRNAME=share
8985 nls_cv_header_intl=libintl.h
8986 nls_cv_header_libgt=libgettext.h
8987 fi
8988
8989 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8990 # because some of the sources are only built for this goal.
8991 if test "$PACKAGE" = gettext; then
8992 USE_NLS=yes
8993 USE_INCLUDED_LIBINTL=yes
8994 fi
8995
8996 for lang in $ALL_LINGUAS; do
8997 GMOFILES="$GMOFILES $lang.gmo"
8998 POFILES="$POFILES $lang.po"
8999 done
9000
13b2be9c
DJ
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
b16b813f
AM
9012 if test "x$CATOBJEXT" != "x"; then
9013
9014cat >>confdefs.h <<\_ACEOF
9015#define ENABLE_NLS 1
9016_ACEOF
9017
9018 fi
13b2be9c 9019
d6d788bd 9020
252b5132
RH
9021 if test "x$CATOBJEXT" != "x"; then
9022 if test "x$ALL_LINGUAS" = "x"; then
9023 LINGUAS=
9024 else
13b2be9c
DJ
9025 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9026echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
9027 NEW_LINGUAS=
9028 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9029 case "$ALL_LINGUAS" in
9030 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9031 esac
9032 done
9033 LINGUAS=$NEW_LINGUAS
13b2be9c
DJ
9034 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9035echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
9036 fi
9037
9038 if test -n "$LINGUAS"; then
9039 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9040 fi
9041 fi
9042
9043 if test $ac_cv_header_locale_h = yes; then
9044 INCLUDE_LOCALE_H="#include <locale.h>"
9045 else
9046 INCLUDE_LOCALE_H="\
9047/* The system does not provide the header <locale.h>. Take care yourself. */"
9048 fi
13b2be9c 9049
252b5132
RH
9050
9051 if test -f $srcdir/po2tbl.sed.in; then
9052 if test "$CATOBJEXT" = ".cat"; then
13b2be9c
DJ
9053 if test "${ac_cv_header_linux_version_h+set}" = set; then
9054 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9055echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9056if test "${ac_cv_header_linux_version_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058fi
9059echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9060echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9061else
9062 # Is the header compilable?
9063echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9064echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9065cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071$ac_includes_default
9b2b7d69 9072#include <linux/version.h>
13b2be9c
DJ
9073_ACEOF
9074rm -f conftest.$ac_objext
9075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9076 (eval $ac_compile) 2>conftest.er1
13b2be9c 9077 ac_status=$?
ab509236
L
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
13b2be9c
DJ
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
e330299e 9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_header_compiler=yes
9096else
9097 echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
9100ac_header_compiler=no
9101fi
ab509236 9102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104echo "${ECHO_T}$ac_header_compiler" >&6
9105
9106# Is the header present?
9107echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9108echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9109cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
9115#include <linux/version.h>
9116_ACEOF
9117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } >/dev/null; then
9125 if test -s conftest.err; then
9126 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9128 else
9129 ac_cpp_err=
9130 fi
252b5132 9131else
13b2be9c
DJ
9132 ac_cpp_err=yes
9133fi
9134if test -z "$ac_cpp_err"; then
9135 ac_header_preproc=yes
9136else
9137 echo "$as_me: failed program was:" >&5
9138sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 ac_header_preproc=no
9141fi
9142rm -f conftest.err conftest.$ac_ext
9143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9144echo "${ECHO_T}$ac_header_preproc" >&6
9145
9146# So? What about this header?
ab509236
L
9147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148 yes:no: )
13b2be9c
DJ
9149 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9150echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9151 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9152echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9153 ac_header_preproc=yes
13b2be9c 9154 ;;
ab509236 9155 no:yes:* )
13b2be9c
DJ
9156 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9157echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
ab509236
L
9158 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9159echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9161echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9163echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9164 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9165echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
9166 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9167echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9168 (
9169 cat <<\_ASBOX
ab509236
L
9170## ------------------------------------------ ##
9171## Report this to the AC_PACKAGE_NAME lists. ##
9172## ------------------------------------------ ##
13b2be9c
DJ
9173_ASBOX
9174 ) |
9175 sed "s/^/$as_me: WARNING: /" >&2
9176 ;;
9177esac
9178echo "$as_me:$LINENO: checking for linux/version.h" >&5
9179echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9180if test "${ac_cv_header_linux_version_h+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 9184fi
13b2be9c
DJ
9185echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9186echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9187
252b5132 9188fi
13b2be9c 9189if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
9190 msgformat=linux
9191else
13b2be9c 9192 msgformat=xopen
252b5132
RH
9193fi
9194
d6d788bd 9195
13b2be9c 9196
252b5132
RH
9197 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9198 fi
9199 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9200 $srcdir/po2tbl.sed.in > po2tbl.sed
9201 fi
9202
9203 if test "$PACKAGE" = "gettext"; then
9204 GT_NO="#NO#"
9205 GT_YES=
9206 else
9207 GT_NO=
9208 GT_YES="#YES#"
9209 fi
13b2be9c
DJ
9210
9211
252b5132
RH
9212
9213 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
13b2be9c 9214
252b5132
RH
9215
9216 l=
13b2be9c 9217
252b5132 9218
fcd8210c 9219 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
9220 test -d po || mkdir po
9221 if test "x$srcdir" != "x."; then
9222 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9223 posrcprefix="$srcdir/"
9224 else
9225 posrcprefix="../$srcdir/"
9226 fi
9227 else
9228 posrcprefix="../"
9229 fi
9230 rm -f po/POTFILES
9231 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9232 < $srcdir/po/POTFILES.in > po/POTFILES
9233 fi
252b5132 9234
13b2be9c
DJ
9235
9236echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9237echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
9238 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9239if test "${enable_maintainer_mode+set}" = set; then
9240 enableval="$enable_maintainer_mode"
9241 USE_MAINTAINER_MODE=$enableval
9242else
9243 USE_MAINTAINER_MODE=no
13b2be9c
DJ
9244fi;
9245 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9246echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 9247
252b5132
RH
9248
9249if test $USE_MAINTAINER_MODE = yes; then
9250 MAINTAINER_MODE_TRUE=
c8615825
AM
9251 MAINTAINER_MODE_FALSE='#'
9252else
9253 MAINTAINER_MODE_TRUE='#'
9254 MAINTAINER_MODE_FALSE=
9255fi
13b2be9c 9256
c8615825 9257 MAINT=$MAINTAINER_MODE_TRUE
9b2b7d69
MM
9258
9259
9260
9261
9262
9263
13b2be9c
DJ
9264
9265
9266
9267
9268
9269
9270
9271for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 9272do
13b2be9c
DJ
9273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9274if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275 echo "$as_me:$LINENO: checking for $ac_header" >&5
9276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9277if eval "test \"\${$as_ac_Header+set}\" = set"; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279fi
9280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282else
9283 # Is the header compilable?
9284echo "$as_me:$LINENO: checking $ac_header usability" >&5
9285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9286cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292$ac_includes_default
9293#include <$ac_header>
9294_ACEOF
9295rm -f conftest.$ac_objext
9296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9297 (eval $ac_compile) 2>conftest.er1
13b2be9c 9298 ac_status=$?
ab509236
L
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
13b2be9c
DJ
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
e330299e 9304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_header_compiler=yes
9317else
9318 echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321ac_header_compiler=no
9322fi
ab509236 9323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9325echo "${ECHO_T}$ac_header_compiler" >&6
9326
9327# Is the header present?
9328echo "$as_me:$LINENO: checking $ac_header presence" >&5
9329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9330cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
9336#include <$ac_header>
9337_ACEOF
9338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev/null; then
9346 if test -s conftest.err; then
9347 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9349 else
9350 ac_cpp_err=
9351 fi
9b2b7d69 9352else
13b2be9c
DJ
9353 ac_cpp_err=yes
9354fi
9355if test -z "$ac_cpp_err"; then
9356 ac_header_preproc=yes
9357else
9358 echo "$as_me: failed program was:" >&5
9359sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_header_preproc=no
9362fi
9363rm -f conftest.err conftest.$ac_ext
9364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365echo "${ECHO_T}$ac_header_preproc" >&6
9366
9367# So? What about this header?
ab509236
L
9368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369 yes:no: )
13b2be9c
DJ
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9374 ac_header_preproc=yes
13b2be9c 9375 ;;
ab509236 9376 no:yes:* )
13b2be9c
DJ
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9380echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9384echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9389 (
9390 cat <<\_ASBOX
ab509236
L
9391## ------------------------------------------ ##
9392## Report this to the AC_PACKAGE_NAME lists. ##
9393## ------------------------------------------ ##
13b2be9c
DJ
9394_ASBOX
9395 ) |
9396 sed "s/^/$as_me: WARNING: /" >&2
9397 ;;
9398esac
9399echo "$as_me:$LINENO: checking for $ac_header" >&5
9400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9401if eval "test \"\${$as_ac_Header+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
ab509236 9404 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 9405fi
13b2be9c
DJ
9406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9408
252b5132 9409fi
13b2be9c
DJ
9410if test `eval echo '${'$as_ac_Header'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9413_ACEOF
9414
252b5132 9415fi
13b2be9c 9416
252b5132
RH
9417done
9418
d6d788bd 9419
252b5132
RH
9420# Put this here so that autoconf's "cross-compiling" message doesn't confuse
9421# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
9422echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9423echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
9424if test "${host}" = "${target}"; then
9425 cross_gas=no
9426else
9427 cross_gas=yes
13b2be9c
DJ
9428
9429cat >>confdefs.h <<\_ACEOF
252b5132 9430#define CROSS_COMPILE 1
13b2be9c 9431_ACEOF
252b5132
RH
9432
9433fi
13b2be9c
DJ
9434echo "$as_me:$LINENO: result: $cross_gas" >&5
9435echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
9436
9437# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9438# for constant arguments. Useless!
13b2be9c
DJ
9439echo "$as_me:$LINENO: checking for working alloca.h" >&5
9440echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9441if test "${ac_cv_working_alloca_h+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
252b5132 9450#include <alloca.h>
13b2be9c
DJ
9451int
9452main ()
9453{
9454char *p = (char *) alloca (2 * sizeof (int));
9455 ;
9456 return 0;
9457}
9458_ACEOF
9459rm -f conftest.$ac_objext conftest$ac_exeext
9460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9461 (eval $ac_link) 2>conftest.er1
13b2be9c 9462 ac_status=$?
ab509236
L
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
13b2be9c
DJ
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
e330299e 9468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
13b2be9c
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); }; }; then
9480 ac_cv_working_alloca_h=yes
9481else
9482 echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485ac_cv_working_alloca_h=no
9486fi
ab509236
L
9487rm -f conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9489fi
9490echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9491echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9492if test $ac_cv_working_alloca_h = yes; then
9493
9494cat >>confdefs.h <<\_ACEOF
252b5132 9495#define HAVE_ALLOCA_H 1
13b2be9c 9496_ACEOF
252b5132
RH
9497
9498fi
9499
13b2be9c
DJ
9500echo "$as_me:$LINENO: checking for alloca" >&5
9501echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9502if test "${ac_cv_func_alloca_works+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9504else
13b2be9c 9505 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
252b5132
RH
9511#ifdef __GNUC__
9512# define alloca __builtin_alloca
9513#else
9514# ifdef _MSC_VER
9515# include <malloc.h>
9516# define alloca _alloca
9517# else
9518# if HAVE_ALLOCA_H
9519# include <alloca.h>
9520# else
9521# ifdef _AIX
9522 #pragma alloca
9523# else
9524# ifndef alloca /* predefined by HP cc +Olibcalls */
9525char *alloca ();
9526# endif
9527# endif
9528# endif
9529# endif
9530#endif
9531
13b2be9c
DJ
9532int
9533main ()
9534{
9535char *p = (char *) alloca (1);
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9542 (eval $ac_link) 2>conftest.er1
13b2be9c 9543 ac_status=$?
ab509236
L
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
13b2be9c
DJ
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
e330299e 9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
252b5132
RH
9561 ac_cv_func_alloca_works=yes
9562else
13b2be9c
DJ
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566ac_cv_func_alloca_works=no
252b5132 9567fi
ab509236
L
9568rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
252b5132 9570fi
13b2be9c
DJ
9571echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9572echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9573
252b5132 9574if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 9575
13b2be9c
DJ
9576cat >>confdefs.h <<\_ACEOF
9577#define HAVE_ALLOCA 1
9578_ACEOF
9b2b7d69 9579
13b2be9c 9580else
c8615825 9581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
9582# that cause trouble. Some versions do not even contain alloca or
9583# contain a buggy version. If you still want to use their alloca,
9584# use ar to extract alloca.o from them instead of compiling alloca.c.
9585
9586ALLOCA=alloca.$ac_objext
9587
9588cat >>confdefs.h <<\_ACEOF
252b5132 9589#define C_ALLOCA 1
13b2be9c 9590_ACEOF
252b5132 9591
d6d788bd 9592
13b2be9c
DJ
9593echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9594echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9595if test "${ac_cv_os_cray+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9597else
13b2be9c 9598 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
252b5132
RH
9604#if defined(CRAY) && ! defined(CRAY2)
9605webecray
9606#else
9607wenotbecray
9608#endif
9609
13b2be9c 9610_ACEOF
252b5132 9611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 9612 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9613 ac_cv_os_cray=yes
9614else
252b5132
RH
9615 ac_cv_os_cray=no
9616fi
9617rm -f conftest*
9618
9619fi
13b2be9c
DJ
9620echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9621echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 9622if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
9623 for ac_func in _getb67 GETB67 getb67; do
9624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9625echo "$as_me:$LINENO: checking for $ac_func" >&5
9626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9627if eval "test \"\${$as_ac_var+set}\" = set"; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
ab509236
L
9636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9638#define $ac_func innocuous_$ac_func
9639
252b5132 9640/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9641 which can conflict with char $ac_func (); below.
9642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643 <limits.h> exists even on freestanding compilers. */
ab509236 9644
13b2be9c
DJ
9645#ifdef __STDC__
9646# include <limits.h>
9647#else
9648# include <assert.h>
9649#endif
ab509236
L
9650
9651#undef $ac_func
9652
252b5132 9653/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9654#ifdef __cplusplus
9655extern "C"
9656{
9657#endif
252b5132 9658/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9659 builtin and then its argument prototype would still apply. */
9660char $ac_func ();
252b5132
RH
9661/* The GNU C library defines this for functions which it implements
9662 to always fail with ENOSYS. Some functions are actually named
9663 something starting with __ and the normal name is an alias. */
9664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9665choke me
9666#else
13b2be9c
DJ
9667char (*f) () = $ac_func;
9668#endif
9669#ifdef __cplusplus
9670}
252b5132
RH
9671#endif
9672
13b2be9c
DJ
9673int
9674main ()
9675{
9676return f != $ac_func;
9677 ;
9678 return 0;
9679}
9680_ACEOF
9681rm -f conftest.$ac_objext conftest$ac_exeext
9682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9683 (eval $ac_link) 2>conftest.er1
13b2be9c 9684 ac_status=$?
ab509236
L
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
13b2be9c
DJ
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
e330299e 9690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 eval "$as_ac_var=yes"
9703else
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707eval "$as_ac_var=no"
9708fi
ab509236
L
9709rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9711fi
9712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9714if test `eval echo '${'$as_ac_var'}'` = yes; then
9715
9716cat >>confdefs.h <<_ACEOF
252b5132 9717#define CRAY_STACKSEG_END $ac_func
13b2be9c 9718_ACEOF
252b5132 9719
13b2be9c 9720 break
252b5132
RH
9721fi
9722
13b2be9c 9723 done
252b5132
RH
9724fi
9725
13b2be9c
DJ
9726echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9727echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9728if test "${ac_cv_c_stack_direction+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9730else
9731 if test "$cross_compiling" = yes; then
9732 ac_cv_c_stack_direction=0
9733else
13b2be9c 9734 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740int
252b5132
RH
9741find_stack_direction ()
9742{
9743 static char *addr = 0;
9744 auto char dummy;
9745 if (addr == 0)
9746 {
9747 addr = &dummy;
9748 return find_stack_direction ();
9749 }
9750 else
9751 return (&dummy > addr) ? 1 : -1;
9752}
13b2be9c
DJ
9753
9754int
252b5132
RH
9755main ()
9756{
13b2be9c 9757 exit (find_stack_direction () < 0);
252b5132 9758}
13b2be9c
DJ
9759_ACEOF
9760rm -f conftest$ac_exeext
9761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
252b5132
RH
9771 ac_cv_c_stack_direction=1
9772else
13b2be9c
DJ
9773 echo "$as_me: program exited with status $ac_status" >&5
9774echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
9777( exit $ac_status )
9778ac_cv_c_stack_direction=-1
252b5132 9779fi
ab509236 9780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9781fi
252b5132 9782fi
13b2be9c
DJ
9783echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9784echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9785
13b2be9c 9786cat >>confdefs.h <<_ACEOF
252b5132 9787#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
9788_ACEOF
9789
252b5132
RH
9790
9791fi
9792
13b2be9c
DJ
9793echo "$as_me:$LINENO: checking for inline" >&5
9794echo $ECHO_N "checking for inline... $ECHO_C" >&6
9795if test "${ac_cv_c_inline+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9797else
9798 ac_cv_c_inline=no
9799for ac_kw in inline __inline__ __inline; do
13b2be9c 9800 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
9806#ifndef __cplusplus
9807typedef int foo_t;
9808static $ac_kw foo_t static_foo () {return 0; }
9809$ac_kw foo_t foo () {return 0; }
9810#endif
252b5132 9811
13b2be9c
DJ
9812_ACEOF
9813rm -f conftest.$ac_objext
9814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9815 (eval $ac_compile) 2>conftest.er1
13b2be9c 9816 ac_status=$?
ab509236
L
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
13b2be9c
DJ
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
e330299e 9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
252b5132
RH
9834 ac_cv_c_inline=$ac_kw; break
9835else
13b2be9c
DJ
9836 echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
252b5132 9839fi
ab509236 9840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9841done
9842
9843fi
13b2be9c
DJ
9844echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9845echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
9846
9847
13b2be9c 9848case $ac_cv_c_inline in
252b5132 9849 inline | yes) ;;
ab509236
L
9850 *)
9851 case $ac_cv_c_inline in
9852 no) ac_val=;;
9853 *) ac_val=$ac_cv_c_inline;;
9854 esac
9855 cat >>confdefs.h <<_ACEOF
9856#ifndef __cplusplus
9857#define inline $ac_val
9858#endif
13b2be9c 9859_ACEOF
ab509236 9860 ;;
252b5132
RH
9861esac
9862
6840198f 9863
d6d788bd 9864# VMS doesn't have unlink.
13b2be9c
DJ
9865
9866
252b5132
RH
9867for ac_func in unlink remove
9868do
13b2be9c
DJ
9869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9870echo "$as_me:$LINENO: checking for $ac_func" >&5
9871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9872if eval "test \"\${$as_ac_var+set}\" = set"; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
ab509236
L
9881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9883#define $ac_func innocuous_$ac_func
9884
252b5132 9885/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9886 which can conflict with char $ac_func (); below.
9887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888 <limits.h> exists even on freestanding compilers. */
ab509236 9889
13b2be9c
DJ
9890#ifdef __STDC__
9891# include <limits.h>
9892#else
9893# include <assert.h>
9894#endif
ab509236
L
9895
9896#undef $ac_func
9897
252b5132 9898/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9899#ifdef __cplusplus
9900extern "C"
9901{
9902#endif
252b5132 9903/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9904 builtin and then its argument prototype would still apply. */
9905char $ac_func ();
252b5132
RH
9906/* The GNU C library defines this for functions which it implements
9907 to always fail with ENOSYS. Some functions are actually named
9908 something starting with __ and the normal name is an alias. */
9909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9910choke me
9911#else
13b2be9c
DJ
9912char (*f) () = $ac_func;
9913#endif
9914#ifdef __cplusplus
9915}
252b5132
RH
9916#endif
9917
13b2be9c
DJ
9918int
9919main ()
9920{
9921return f != $ac_func;
9922 ;
9923 return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9928 (eval $ac_link) 2>conftest.er1
13b2be9c 9929 ac_status=$?
ab509236
L
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
13b2be9c
DJ
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
e330299e 9935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
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_exeext'
13b2be9c
DJ
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
9947 eval "$as_ac_var=yes"
9948else
9949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
9952eval "$as_ac_var=no"
9953fi
ab509236
L
9954rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9956fi
9957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9959if test `eval echo '${'$as_ac_var'}'` = yes; then
9960 cat >>confdefs.h <<_ACEOF
9961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9962_ACEOF
252b5132 9963 break
252b5132
RH
9964fi
9965done
9966
6840198f 9967
d6d788bd 9968# Some systems don't have sbrk().
13b2be9c 9969
252b5132
RH
9970for ac_func in sbrk
9971do
13b2be9c
DJ
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9975if eval "test \"\${$as_ac_var+set}\" = set"; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
ab509236
L
9984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986#define $ac_func innocuous_$ac_func
9987
252b5132 9988/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
ab509236 9992
13b2be9c
DJ
9993#ifdef __STDC__
9994# include <limits.h>
9995#else
9996# include <assert.h>
9997#endif
ab509236
L
9998
9999#undef $ac_func
10000
252b5132 10001/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10002#ifdef __cplusplus
10003extern "C"
10004{
10005#endif
252b5132 10006/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10007 builtin and then its argument prototype would still apply. */
10008char $ac_func ();
252b5132
RH
10009/* The GNU C library defines this for functions which it implements
10010 to always fail with ENOSYS. Some functions are actually named
10011 something starting with __ and the normal name is an alias. */
10012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10013choke me
10014#else
13b2be9c
DJ
10015char (*f) () = $ac_func;
10016#endif
10017#ifdef __cplusplus
10018}
252b5132
RH
10019#endif
10020
13b2be9c
DJ
10021int
10022main ()
10023{
10024return f != $ac_func;
10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10031 (eval $ac_link) 2>conftest.er1
13b2be9c 10032 ac_status=$?
ab509236
L
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
13b2be9c
DJ
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
e330299e 10038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 eval "$as_ac_var=yes"
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055eval "$as_ac_var=no"
10056fi
ab509236
L
10057rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10059fi
10060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065_ACEOF
252b5132 10066
252b5132
RH
10067fi
10068done
10069
d6d788bd 10070
39bec121
TW
10071# do we need the math library?
10072case "${need_libm}" in
13b2be9c 10073yes)
39bec121 10074 LIBM=
f9c19112 10075case $host in
4b363073 10076*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
10077 # These system don't have libm
10078 ;;
10079*-ncr-sysv4.3*)
13b2be9c
DJ
10080 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10081echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10082if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10084else
13b2be9c 10085 ac_check_lib_save_LIBS=$LIBS
39bec121 10086LIBS="-lmw $LIBS"
13b2be9c 10087cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093
39bec121 10094/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10095#ifdef __cplusplus
10096extern "C"
10097#endif
39bec121 10098/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10099 builtin and then its argument prototype would still apply. */
10100char _mwvalidcheckl ();
10101int
10102main ()
10103{
10104_mwvalidcheckl ();
10105 ;
10106 return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
10110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10111 (eval $ac_link) 2>conftest.er1
13b2be9c 10112 ac_status=$?
ab509236
L
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
13b2be9c
DJ
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
e330299e 10118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_lib_mw__mwvalidcheckl=yes
10131else
10132 echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135ac_cv_lib_mw__mwvalidcheckl=no
10136fi
ab509236
L
10137rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10139LIBS=$ac_check_lib_save_LIBS
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10142echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10143if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 10144 LIBM="-lmw"
39bec121
TW
10145fi
10146
13b2be9c
DJ
10147 echo "$as_me:$LINENO: checking for main in -lm" >&5
10148echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10149if test "${ac_cv_lib_m_main+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10151else
13b2be9c 10152 ac_check_lib_save_LIBS=$LIBS
39bec121 10153LIBS="-lm $LIBS"
13b2be9c 10154cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h. */
39bec121 10160
d6d788bd 10161
13b2be9c
DJ
10162int
10163main ()
10164{
10165main ();
10166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10172 (eval $ac_link) 2>conftest.er1
13b2be9c 10173 ac_status=$?
ab509236
L
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
13b2be9c
DJ
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
e330299e 10179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_m_main=yes
10192else
10193 echo "$as_me: failed program was:" >&5
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196ac_cv_lib_m_main=no
10197fi
ab509236
L
10198rm -f conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10200LIBS=$ac_check_lib_save_LIBS
10201fi
10202echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10203echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10204if test $ac_cv_lib_m_main = yes; then
39bec121 10205 LIBM="$LIBM -lm"
39bec121
TW
10206fi
10207
10208 ;;
10209*)
13b2be9c
DJ
10210 echo "$as_me:$LINENO: checking for main in -lm" >&5
10211echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10212if test "${ac_cv_lib_m_main+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10214else
13b2be9c 10215 ac_check_lib_save_LIBS=$LIBS
39bec121 10216LIBS="-lm $LIBS"
13b2be9c 10217cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10218/* confdefs.h. */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h. */
39bec121 10223
d6d788bd 10224
13b2be9c
DJ
10225int
10226main ()
10227{
10228main ();
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10235 (eval $ac_link) 2>conftest.er1
13b2be9c 10236 ac_status=$?
ab509236
L
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
13b2be9c
DJ
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
e330299e 10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_m_main=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259ac_cv_lib_m_main=no
10260fi
ab509236
L
10261rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10263LIBS=$ac_check_lib_save_LIBS
10264fi
10265echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10266echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10267if test $ac_cv_lib_m_main = yes; then
39bec121 10268 LIBM="-lm"
39bec121
TW
10269fi
10270
10271 ;;
10272esac
10273
13b2be9c 10274
39bec121
TW
10275 ;;
10276esac
10277
252b5132
RH
10278# Some non-ANSI preprocessors botch requoting inside strings. That's bad
10279# enough, but on some of those systems, the assert macro relies on requoting
10280# working properly!
13b2be9c
DJ
10281echo "$as_me:$LINENO: checking for working assert macro" >&5
10282echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10283if test "${gas_cv_assert_ok+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285else
10286 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
252b5132
RH
10292#include <assert.h>
10293#include <stdio.h>
13b2be9c
DJ
10294int
10295main ()
10296{
252b5132
RH
10297
10298/* check for requoting problems */
10299static int a, b, c, d;
10300static char *s;
10301assert (!strcmp(s, "foo bar baz quux"));
10302/* check for newline handling */
10303assert (a == b
10304 || c == d);
10305
13b2be9c
DJ
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
10311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10312 (eval $ac_link) 2>conftest.er1
13b2be9c 10313 ac_status=$?
ab509236
L
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
13b2be9c
DJ
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
e330299e 10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
252b5132
RH
10331 gas_cv_assert_ok=yes
10332else
13b2be9c
DJ
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336gas_cv_assert_ok=no
252b5132 10337fi
ab509236
L
10338rm -f conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
252b5132 10340fi
13b2be9c
DJ
10341echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10342echo "${ECHO_T}$gas_cv_assert_ok" >&6
10343test $gas_cv_assert_ok = yes ||
10344cat >>confdefs.h <<\_ACEOF
252b5132 10345#define BROKEN_ASSERT 1
13b2be9c 10346_ACEOF
252b5132 10347
d6d788bd
L
10348
10349
252b5132
RH
10350# On some systems, the system header files may not declare malloc, realloc,
10351# and free. There are places where gas needs these functions to have been
10352# declared -- such as when taking their addresses.
10353gas_test_headers="
10354#ifdef HAVE_MEMORY_H
10355#include <memory.h>
10356#endif
10357#ifdef HAVE_STRING_H
10358#include <string.h>
10359#else
10360#ifdef HAVE_STRINGS_H
10361#include <strings.h>
10362#endif
10363#endif
10364#ifdef HAVE_STDLIB_H
10365#include <stdlib.h>
10366#endif
10367#ifdef HAVE_UNISTD_H
10368#include <unistd.h>
10369#endif
10370"
10371
13b2be9c
DJ
10372echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10373echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10374if test "${gas_cv_decl_needed_strstr+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10378/* confdefs.h. */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h. */
252b5132 10383$gas_test_headers
13b2be9c
DJ
10384int
10385main ()
10386{
252b5132
RH
10387
10388typedef char *(*f)();
10389f x;
10390x = (f) strstr;
10391
13b2be9c
DJ
10392 ;
10393 return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10398 (eval $ac_link) 2>conftest.er1
13b2be9c 10399 ac_status=$?
ab509236
L
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
13b2be9c
DJ
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
e330299e 10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
252b5132
RH
10417 gas_cv_decl_needed_strstr=no
10418else
13b2be9c
DJ
10419 echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422gas_cv_decl_needed_strstr=yes
252b5132 10423fi
ab509236
L
10424rm -f conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
252b5132 10426fi
13b2be9c
DJ
10427echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10428echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
252b5132 10429if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
10430
10431cat >>confdefs.h <<\_ACEOF
252b5132 10432#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
10433_ACEOF
10434
10435fi
10436
10437
10438echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10439echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10440if test "${gas_cv_decl_needed_malloc+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442else
10443 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
10449$gas_test_headers
10450int
10451main ()
10452{
10453
10454typedef char *(*f)();
10455f x;
10456x = (f) malloc;
10457
10458 ;
10459 return 0;
10460}
10461_ACEOF
10462rm -f conftest.$ac_objext conftest$ac_exeext
10463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10464 (eval $ac_link) 2>conftest.er1
13b2be9c 10465 ac_status=$?
ab509236
L
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
13b2be9c
DJ
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
e330299e 10471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 gas_cv_decl_needed_malloc=no
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488gas_cv_decl_needed_malloc=yes
10489fi
ab509236
L
10490rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10492fi
10493echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10494echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10495if test $gas_cv_decl_needed_malloc = yes; then
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define NEED_DECLARATION_MALLOC 1
10499_ACEOF
10500
10501fi
10502
10503
10504echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10505echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10506if test "${gas_cv_decl_needed_free+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508else
10509 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515$gas_test_headers
10516int
10517main ()
10518{
10519
10520typedef void (*f)();
10521f x;
10522x = (f) free;
10523
10524 ;
10525 return 0;
10526}
10527_ACEOF
10528rm -f conftest.$ac_objext conftest$ac_exeext
10529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10530 (eval $ac_link) 2>conftest.er1
13b2be9c 10531 ac_status=$?
ab509236
L
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
13b2be9c
DJ
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
e330299e 10537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 gas_cv_decl_needed_free=no
10550else
10551 echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554gas_cv_decl_needed_free=yes
10555fi
ab509236
L
10556rm -f conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10558fi
10559echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10560echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10561if test $gas_cv_decl_needed_free = yes; then
10562
10563cat >>confdefs.h <<\_ACEOF
10564#define NEED_DECLARATION_FREE 1
10565_ACEOF
10566
10567fi
10568
10569
10570echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10571echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10572if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10576/* confdefs.h. */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */
10581$gas_test_headers
10582int
10583main ()
10584{
10585
10586typedef char *(*f)();
10587f x;
10588x = (f) sbrk;
10589
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594rm -f conftest.$ac_objext conftest$ac_exeext
10595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10596 (eval $ac_link) 2>conftest.er1
13b2be9c 10597 ac_status=$?
ab509236
L
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
13b2be9c
DJ
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
e330299e 10603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 gas_cv_decl_needed_sbrk=no
10616else
10617 echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620gas_cv_decl_needed_sbrk=yes
10621fi
ab509236
L
10622rm -f conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10624fi
10625echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10626echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10627if test $gas_cv_decl_needed_sbrk = yes; then
10628
10629cat >>confdefs.h <<\_ACEOF
10630#define NEED_DECLARATION_SBRK 1
10631_ACEOF
10632
10633fi
10634
10635
10636echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10637echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10638if test "${gas_cv_decl_needed_environ+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647$gas_test_headers
10648int
10649main ()
10650{
10651
10652typedef char **f;
10653f x;
10654x = (f) environ;
10655
10656 ;
10657 return 0;
10658}
10659_ACEOF
10660rm -f conftest.$ac_objext conftest$ac_exeext
10661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10662 (eval $ac_link) 2>conftest.er1
13b2be9c 10663 ac_status=$?
ab509236
L
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
13b2be9c
DJ
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
e330299e 10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 gas_cv_decl_needed_environ=no
10682else
10683 echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686gas_cv_decl_needed_environ=yes
10687fi
ab509236
L
10688rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10690fi
10691echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10692echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10693if test $gas_cv_decl_needed_environ = yes; then
10694
10695cat >>confdefs.h <<\_ACEOF
10696#define NEED_DECLARATION_ENVIRON 1
10697_ACEOF
10698
10699fi
10700
10701
10702# Does errno.h declare errno, or do we have to add a separate declaration
10703# for it?
10704
10705echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10706echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10707if test "${gas_cv_decl_needed_errno+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716
10717#ifdef HAVE_ERRNO_H
10718#include <errno.h>
10719#endif
10720
10721int
10722main ()
10723{
10724
10725typedef int f;
10726f x;
10727x = (f) errno;
10728
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext conftest$ac_exeext
10734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10735 (eval $ac_link) 2>conftest.er1
13b2be9c 10736 ac_status=$?
ab509236
L
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
13b2be9c
DJ
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
e330299e 10742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab509236
L
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 gas_cv_decl_needed_errno=no
10755else
10756 echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759gas_cv_decl_needed_errno=yes
10760fi
ab509236
L
10761rm -f conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10763fi
10764echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10765echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10766if test $gas_cv_decl_needed_errno = yes; then
10767
10768cat >>confdefs.h <<\_ACEOF
10769#define NEED_DECLARATION_ERRNO 1
10770_ACEOF
10771
10772fi
10773
10774
10775
10776
10777 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10778
10779 ac_config_commands="$ac_config_commands default"
10780
10781
10782cat >confcache <<\_ACEOF
10783# This file is a shell script that caches the results of configure
10784# tests run on this system so they can be shared between configure
10785# scripts and configure runs, see configure's option --config-cache.
10786# It is not useful on other systems. If it contains results you don't
10787# want to keep, you may remove or edit it.
10788#
10789# config.status only pays attention to the cache file if you give it
10790# the --recheck option to rerun configure.
10791#
10792# `ac_cv_env_foo' variables (set or unset) will be overridden when
10793# loading this file, other *unset* `ac_cv_foo' will be assigned the
10794# following values.
10795
10796_ACEOF
10797
10798# The following way of writing the cache mishandles newlines in values,
10799# but we know of no workaround that is simple, portable, and efficient.
10800# So, don't put newlines in cache variables' values.
10801# Ultrix sh set writes to stderr and can't be redirected directly,
10802# and sets the high bit in the cache file unless we assign to the vars.
10803{
10804 (set) 2>&1 |
10805 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10806 *ac_space=\ *)
10807 # `set' does not quote correctly, so add quotes (double-quote
10808 # substitution turns \\\\ into \\, and sed turns \\ into \).
10809 sed -n \
ab509236
L
10810 "s/'/'\\\\''/g;
10811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
10812 ;;
10813 *)
10814 # `set' quotes correctly as required by POSIX, so do not add quotes.
10815 sed -n \
ab509236 10816 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
10817 ;;
10818 esac;
10819} |
10820 sed '
10821 t clear
10822 : clear
10823 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10824 t end
10825 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10826 : end' >>confcache
10827if diff $cache_file confcache >/dev/null 2>&1; then :; else
10828 if test -w $cache_file; then
10829 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10830 cat confcache >$cache_file
10831 else
10832 echo "not updating unwritable cache $cache_file"
10833 fi
10834fi
10835rm -f confcache
10836
10837test "x$prefix" = xNONE && prefix=$ac_default_prefix
10838# Let make expand exec_prefix.
10839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10840
10841# VPATH may cause trouble with some makes, so we remove $(srcdir),
10842# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10843# trailing colons and then remove the whole line if VPATH becomes empty
10844# (actually we leave an empty line to preserve line numbers).
10845if test "x$srcdir" = x.; then
ab509236 10846 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
10847s/:*\$(srcdir):*/:/;
10848s/:*\${srcdir}:*/:/;
10849s/:*@srcdir@:*/:/;
ab509236 10850s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 10851s/:*$//;
ab509236 10852s/^[^=]*=[ ]*$//;
13b2be9c
DJ
10853}'
10854fi
10855
10856DEFS=-DHAVE_CONFIG_H
10857
10858ac_libobjs=
10859ac_ltlibobjs=
10860for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10861 # 1. Remove the extension, and $U if already installed.
10862 ac_i=`echo "$ac_i" |
ab509236 10863 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
10864 # 2. Add them.
10865 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10866 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10867done
10868LIBOBJS=$ac_libobjs
10869
10870LTLIBOBJS=$ac_ltlibobjs
10871
10872
10873if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10874 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10875Usually this means the macro was only invoked conditionally." >&5
10876echo "$as_me: error: conditional \"AMDEP\" was never defined.
10877Usually this means the macro was only invoked conditionally." >&2;}
10878 { (exit 1); exit 1; }; }
10879fi
10880if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10881 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10882Usually this means the macro was only invoked conditionally." >&5
10883echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10884Usually this means the macro was only invoked conditionally." >&2;}
10885 { (exit 1); exit 1; }; }
10886fi
10887if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10888 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10889Usually this means the macro was only invoked conditionally." >&5
10890echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10891Usually this means the macro was only invoked conditionally." >&2;}
10892 { (exit 1); exit 1; }; }
10893fi
10894
10895: ${CONFIG_STATUS=./config.status}
10896ac_clean_files_save=$ac_clean_files
10897ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10898{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10899echo "$as_me: creating $CONFIG_STATUS" >&6;}
10900cat >$CONFIG_STATUS <<_ACEOF
10901#! $SHELL
10902# Generated by $as_me.
10903# Run this file to recreate the current configuration.
10904# Compiler output produced by configure, useful for debugging
10905# configure, is in config.log if it exists.
10906
10907debug=false
10908ac_cs_recheck=false
10909ac_cs_silent=false
10910SHELL=\${CONFIG_SHELL-$SHELL}
10911_ACEOF
10912
10913cat >>$CONFIG_STATUS <<\_ACEOF
10914## --------------------- ##
10915## M4sh Initialization. ##
10916## --------------------- ##
10917
10918# Be Bourne compatible
10919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10920 emulate sh
10921 NULLCMD=:
10922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10923 # is contrary to our usage. Disable this feature.
10924 alias -g '${1+"$@"}'='"$@"'
10925elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10926 set -o posix
10927fi
ab509236 10928DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
10929
10930# Support unset when possible.
ab509236 10931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
10932 as_unset=unset
10933else
10934 as_unset=false
10935fi
10936
10937
10938# Work around bugs in pre-3.0 UWIN ksh.
10939$as_unset ENV MAIL MAILPATH
10940PS1='$ '
10941PS2='> '
10942PS4='+ '
10943
10944# NLS nuisances.
10945for as_var in \
10946 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10947 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10948 LC_TELEPHONE LC_TIME
10949do
ab509236 10950 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
10951 eval $as_var=C; export $as_var
10952 else
10953 $as_unset $as_var
10954 fi
10955done
10956
10957# Required to use basename.
10958if expr a : '\(a\)' >/dev/null 2>&1; then
10959 as_expr=expr
10960else
10961 as_expr=false
10962fi
10963
10964if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10965 as_basename=basename
10966else
10967 as_basename=false
10968fi
10969
10970
10971# Name of the executable.
10972as_me=`$as_basename "$0" ||
10973$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10974 X"$0" : 'X\(//\)$' \| \
10975 X"$0" : 'X\(/\)$' \| \
10976 . : '\(.\)' 2>/dev/null ||
10977echo X/"$0" |
10978 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10979 /^X\/\(\/\/\)$/{ s//\1/; q; }
10980 /^X\/\(\/\).*/{ s//\1/; q; }
10981 s/.*/./; q'`
10982
10983
10984# PATH needs CR, and LINENO needs CR and PATH.
10985# Avoid depending upon Character Ranges.
10986as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10987as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10988as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10989as_cr_digits='0123456789'
10990as_cr_alnum=$as_cr_Letters$as_cr_digits
10991
10992# The user is always right.
10993if test "${PATH_SEPARATOR+set}" != set; then
10994 echo "#! /bin/sh" >conf$$.sh
10995 echo "exit 0" >>conf$$.sh
10996 chmod +x conf$$.sh
10997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10998 PATH_SEPARATOR=';'
10999 else
11000 PATH_SEPARATOR=:
11001 fi
11002 rm -f conf$$.sh
11003fi
11004
11005
11006 as_lineno_1=$LINENO
11007 as_lineno_2=$LINENO
11008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11009 test "x$as_lineno_1" != "x$as_lineno_2" &&
11010 test "x$as_lineno_3" = "x$as_lineno_2" || {
11011 # Find who we are. Look in the path if we contain no path at all
11012 # relative or not.
11013 case $0 in
11014 *[\\/]* ) as_myself=$0 ;;
11015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $PATH
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11021done
252b5132 11022
13b2be9c
DJ
11023 ;;
11024 esac
11025 # We did not find ourselves, most probably we were run as `sh COMMAND'
11026 # in which case we are not to be found in the path.
11027 if test "x$as_myself" = x; then
11028 as_myself=$0
11029 fi
11030 if test ! -f "$as_myself"; then
11031 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11032echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11033 { (exit 1); exit 1; }; }
11034 fi
11035 case $CONFIG_SHELL in
11036 '')
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for as_base in sh bash ksh sh5; do
11043 case $as_dir in
11044 /*)
11045 if ("$as_dir/$as_base" -c '
11046 as_lineno_1=$LINENO
11047 as_lineno_2=$LINENO
11048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11049 test "x$as_lineno_1" != "x$as_lineno_2" &&
11050 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11051 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11052 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11053 CONFIG_SHELL=$as_dir/$as_base
11054 export CONFIG_SHELL
11055 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11056 fi;;
11057 esac
11058 done
11059done
11060;;
11061 esac
252b5132 11062
13b2be9c
DJ
11063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11064 # uniformly replaced by the line number. The first 'sed' inserts a
11065 # line-number line before each line; the second 'sed' does the real
11066 # work. The second script uses 'N' to pair each line-number line
11067 # with the numbered line, and appends trailing '-' during
11068 # substitution so that $LINENO is not a special case at line end.
11069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11070 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11071 sed '=' <$as_myself |
11072 sed '
11073 N
11074 s,$,-,
11075 : loop
11076 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11077 t loop
11078 s,-$,,
11079 s,^['$as_cr_digits']*\n,,
11080 ' >$as_me.lineno &&
11081 chmod +x $as_me.lineno ||
11082 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11083echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11084 { (exit 1); exit 1; }; }
11085
11086 # Don't try to exec as it changes $[0], causing all sort of problems
11087 # (the dirname of $[0] is not the place where we might find the
11088 # original and so on. Autoconf is especially sensible to this).
11089 . ./$as_me.lineno
11090 # Exit status is that of the last command.
11091 exit
11092}
d6d788bd 11093
252b5132 11094
13b2be9c
DJ
11095case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11096 *c*,-n*) ECHO_N= ECHO_C='
11097' ECHO_T=' ' ;;
11098 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11099 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11100esac
252b5132 11101
13b2be9c
DJ
11102if expr a : '\(a\)' >/dev/null 2>&1; then
11103 as_expr=expr
252b5132 11104else
13b2be9c 11105 as_expr=false
252b5132 11106fi
252b5132 11107
13b2be9c
DJ
11108rm -f conf$$ conf$$.exe conf$$.file
11109echo >conf$$.file
11110if ln -s conf$$.file conf$$ 2>/dev/null; then
11111 # We could just check for DJGPP; but this test a) works b) is more generic
11112 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11113 if test -f conf$$.exe; then
11114 # Don't use ln at all; we don't have any links
11115 as_ln_s='cp -p'
11116 else
11117 as_ln_s='ln -s'
11118 fi
11119elif ln conf$$.file conf$$ 2>/dev/null; then
11120 as_ln_s=ln
11121else
11122 as_ln_s='cp -p'
252b5132 11123fi
13b2be9c 11124rm -f conf$$ conf$$.exe conf$$.file
252b5132 11125
13b2be9c
DJ
11126if mkdir -p . 2>/dev/null; then
11127 as_mkdir_p=:
252b5132 11128else
ab509236 11129 test -d ./-p && rmdir ./-p
13b2be9c
DJ
11130 as_mkdir_p=false
11131fi
252b5132 11132
13b2be9c 11133as_executable_p="test -f"
252b5132 11134
13b2be9c 11135# Sed expression to map a string onto a valid CPP name.
ab509236 11136as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11137
13b2be9c 11138# Sed expression to map a string onto a valid variable name.
ab509236 11139as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11140
d6d788bd 11141
13b2be9c
DJ
11142# IFS
11143# We need space, tab and new line, in precisely that order.
11144as_nl='
11145'
11146IFS=" $as_nl"
252b5132 11147
13b2be9c
DJ
11148# CDPATH.
11149$as_unset CDPATH
252b5132 11150
13b2be9c 11151exec 6>&1
252b5132 11152
13b2be9c
DJ
11153# Open the log real soon, to keep \$[0] and so on meaningful, and to
11154# report actual input values of CONFIG_FILES etc. instead of their
11155# values after options handling. Logging --version etc. is OK.
11156exec 5>>config.log
11157{
11158 echo
11159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11160## Running $as_me. ##
11161_ASBOX
11162} >&5
11163cat >&5 <<_CSEOF
252b5132 11164
13b2be9c 11165This file was extended by $as_me, which was
ab509236 11166generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 11167
13b2be9c
DJ
11168 CONFIG_FILES = $CONFIG_FILES
11169 CONFIG_HEADERS = $CONFIG_HEADERS
11170 CONFIG_LINKS = $CONFIG_LINKS
11171 CONFIG_COMMANDS = $CONFIG_COMMANDS
11172 $ $0 $@
252b5132 11173
13b2be9c
DJ
11174_CSEOF
11175echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11176echo >&5
11177_ACEOF
252b5132 11178
13b2be9c
DJ
11179# Files that config.status was made for.
11180if test -n "$ac_config_files"; then
11181 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 11182fi
13b2be9c
DJ
11183
11184if test -n "$ac_config_headers"; then
11185 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 11186fi
252b5132 11187
13b2be9c
DJ
11188if test -n "$ac_config_links"; then
11189 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
11190fi
11191
13b2be9c
DJ
11192if test -n "$ac_config_commands"; then
11193 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11194fi
d6d788bd 11195
13b2be9c 11196cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 11197
13b2be9c
DJ
11198ac_cs_usage="\
11199\`$as_me' instantiates files from templates according to the
11200current configuration.
252b5132 11201
13b2be9c 11202Usage: $0 [OPTIONS] [FILE]...
252b5132 11203
13b2be9c
DJ
11204 -h, --help print this help, then exit
11205 -V, --version print version number, then exit
11206 -q, --quiet do not print progress messages
11207 -d, --debug don't remove temporary files
11208 --recheck update $as_me by reconfiguring in the same conditions
11209 --file=FILE[:TEMPLATE]
ab509236 11210 instantiate the configuration file FILE
13b2be9c 11211 --header=FILE[:TEMPLATE]
ab509236 11212 instantiate the configuration header FILE
252b5132 11213
13b2be9c
DJ
11214Configuration files:
11215$config_files
252b5132 11216
13b2be9c
DJ
11217Configuration headers:
11218$config_headers
252b5132 11219
13b2be9c
DJ
11220Configuration commands:
11221$config_commands
252b5132 11222
13b2be9c
DJ
11223Report bugs to <bug-autoconf@gnu.org>."
11224_ACEOF
d6d788bd 11225
13b2be9c
DJ
11226cat >>$CONFIG_STATUS <<_ACEOF
11227ac_cs_version="\\
11228config.status
ab509236 11229configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 11230 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 11231
ab509236 11232Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
11233This config.status script is free software; the Free Software Foundation
11234gives unlimited permission to copy, distribute and modify it."
11235srcdir=$srcdir
11236INSTALL="$INSTALL"
11237_ACEOF
d6d788bd 11238
13b2be9c
DJ
11239cat >>$CONFIG_STATUS <<\_ACEOF
11240# If no file are specified by the user, then we need to provide default
11241# value. By we need to know if files were specified by the user.
11242ac_need_defaults=:
11243while test $# != 0
11244do
11245 case $1 in
11246 --*=*)
11247 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11248 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11249 ac_shift=:
c8615825 11250 ;;
13b2be9c
DJ
11251 -*)
11252 ac_option=$1
11253 ac_optarg=$2
11254 ac_shift=shift
c8615825 11255 ;;
13b2be9c
DJ
11256 *) # This is not an option, so the user has probably given explicit
11257 # arguments.
11258 ac_option=$1
11259 ac_need_defaults=false;;
11260 esac
252b5132 11261
13b2be9c
DJ
11262 case $ac_option in
11263 # Handling of the options.
11264_ACEOF
11265cat >>$CONFIG_STATUS <<\_ACEOF
11266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11267 ac_cs_recheck=: ;;
11268 --version | --vers* | -V )
11269 echo "$ac_cs_version"; exit 0 ;;
11270 --he | --h)
11271 # Conflict between --help and --header
11272 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11273Try \`$0 --help' for more information." >&5
11274echo "$as_me: error: ambiguous option: $1
11275Try \`$0 --help' for more information." >&2;}
11276 { (exit 1); exit 1; }; };;
11277 --help | --hel | -h )
11278 echo "$ac_cs_usage"; exit 0 ;;
11279 --debug | --d* | -d )
11280 debug=: ;;
11281 --file | --fil | --fi | --f )
11282 $ac_shift
11283 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11284 ac_need_defaults=false;;
11285 --header | --heade | --head | --hea )
11286 $ac_shift
11287 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11288 ac_need_defaults=false;;
11289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11291 ac_cs_silent=: ;;
c8615825 11292
13b2be9c
DJ
11293 # This is an error.
11294 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11295Try \`$0 --help' for more information." >&5
11296echo "$as_me: error: unrecognized option: $1
11297Try \`$0 --help' for more information." >&2;}
11298 { (exit 1); exit 1; }; } ;;
252b5132 11299
13b2be9c 11300 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11301
13b2be9c
DJ
11302 esac
11303 shift
11304done
252b5132 11305
13b2be9c 11306ac_configure_extra_args=
d6d788bd 11307
13b2be9c
DJ
11308if $ac_cs_silent; then
11309 exec 6>/dev/null
11310 ac_configure_extra_args="$ac_configure_extra_args --silent"
11311fi
9b2b7d69 11312
13b2be9c
DJ
11313_ACEOF
11314cat >>$CONFIG_STATUS <<_ACEOF
11315if \$ac_cs_recheck; then
11316 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11317 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11318fi
11319
11320_ACEOF
11321
11322cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 11323#
13b2be9c 11324# INIT-COMMANDS section.
9b2b7d69
MM
11325#
11326
13b2be9c
DJ
11327AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11328target_cpu_type=${target_cpu_type}
11329 cgen_cpu_prefix=${cgen_cpu_prefix}
11330 obj_format=${obj_format}
11331 te_file=${te_file}
11332
11333_ACEOF
11334
11335
11336
11337cat >>$CONFIG_STATUS <<\_ACEOF
11338for ac_config_target in $ac_config_targets
9b2b7d69 11339do
13b2be9c
DJ
11340 case "$ac_config_target" in
11341 # Handling of arguments.
11342 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11343 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11344 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11345 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11346 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11347 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11348 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11349 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11351echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11352 { (exit 1); exit 1; }; };;
9b2b7d69
MM
11353 esac
11354done
11355
13b2be9c
DJ
11356# If the user did not use the arguments to specify the items to instantiate,
11357# then the envvar interface is used. Set only those that are not.
11358# We use the long form for the default assignment because of an extremely
11359# bizarre bug on SunOS 4.1.3.
11360if $ac_need_defaults; then
11361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11364fi
11365
11366# Have a temporary directory for convenience. Make it in the build tree
11367# simply because there is no reason to put it here, and in addition,
11368# creating and moving files from /tmp can sometimes cause problems.
11369# Create a temporary directory, and hook for its removal unless debugging.
11370$debug ||
11371{
11372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11373 trap '{ (exit 1); exit 1; }' 1 2 13 15
11374}
9b2b7d69 11375
13b2be9c 11376# Create a (secure) tmp directory for tmp files.
9b2b7d69 11377
13b2be9c
DJ
11378{
11379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11380 test -n "$tmp" && test -d "$tmp"
11381} ||
11382{
11383 tmp=./confstat$$-$RANDOM
11384 (umask 077 && mkdir $tmp)
11385} ||
11386{
11387 echo "$me: cannot create a temporary directory in ." >&2
11388 { (exit 1); exit 1; }
11389}
9b2b7d69 11390
13b2be9c
DJ
11391_ACEOF
11392
11393cat >>$CONFIG_STATUS <<_ACEOF
11394
11395#
11396# CONFIG_FILES section.
11397#
11398
11399# No need to generate the scripts if there are no CONFIG_FILES.
11400# This happens for instance when ./config.status config.h
11401if test -n "\$CONFIG_FILES"; then
11402 # Protect against being on the right side of a sed subst in config.status.
11403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11405s,@SHELL@,$SHELL,;t t
11406s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11407s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11408s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11409s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11410s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11411s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11412s,@exec_prefix@,$exec_prefix,;t t
11413s,@prefix@,$prefix,;t t
11414s,@program_transform_name@,$program_transform_name,;t t
11415s,@bindir@,$bindir,;t t
11416s,@sbindir@,$sbindir,;t t
11417s,@libexecdir@,$libexecdir,;t t
11418s,@datadir@,$datadir,;t t
11419s,@sysconfdir@,$sysconfdir,;t t
11420s,@sharedstatedir@,$sharedstatedir,;t t
11421s,@localstatedir@,$localstatedir,;t t
11422s,@libdir@,$libdir,;t t
11423s,@includedir@,$includedir,;t t
11424s,@oldincludedir@,$oldincludedir,;t t
11425s,@infodir@,$infodir,;t t
11426s,@mandir@,$mandir,;t t
11427s,@build_alias@,$build_alias,;t t
11428s,@host_alias@,$host_alias,;t t
11429s,@target_alias@,$target_alias,;t t
11430s,@DEFS@,$DEFS,;t t
11431s,@ECHO_C@,$ECHO_C,;t t
11432s,@ECHO_N@,$ECHO_N,;t t
11433s,@ECHO_T@,$ECHO_T,;t t
11434s,@LIBS@,$LIBS,;t t
11435s,@build@,$build,;t t
11436s,@build_cpu@,$build_cpu,;t t
11437s,@build_vendor@,$build_vendor,;t t
11438s,@build_os@,$build_os,;t t
11439s,@host@,$host,;t t
11440s,@host_cpu@,$host_cpu,;t t
11441s,@host_vendor@,$host_vendor,;t t
11442s,@host_os@,$host_os,;t t
11443s,@target@,$target,;t t
11444s,@target_cpu@,$target_cpu,;t t
11445s,@target_vendor@,$target_vendor,;t t
11446s,@target_os@,$target_os,;t t
11447s,@CC@,$CC,;t t
11448s,@CFLAGS@,$CFLAGS,;t t
11449s,@LDFLAGS@,$LDFLAGS,;t t
11450s,@CPPFLAGS@,$CPPFLAGS,;t t
11451s,@ac_ct_CC@,$ac_ct_CC,;t t
11452s,@EXEEXT@,$EXEEXT,;t t
11453s,@OBJEXT@,$OBJEXT,;t t
11454s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11455s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11456s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11457s,@CYGPATH_W@,$CYGPATH_W,;t t
11458s,@PACKAGE@,$PACKAGE,;t t
11459s,@VERSION@,$VERSION,;t t
11460s,@ACLOCAL@,$ACLOCAL,;t t
11461s,@AUTOCONF@,$AUTOCONF,;t t
11462s,@AUTOMAKE@,$AUTOMAKE,;t t
11463s,@AUTOHEADER@,$AUTOHEADER,;t t
11464s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
11465s,@install_sh@,$install_sh,;t t
11466s,@STRIP@,$STRIP,;t t
11467s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11468s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 11469s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
11470s,@AWK@,$AWK,;t t
11471s,@SET_MAKE@,$SET_MAKE,;t t
11472s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
11473s,@AMTAR@,$AMTAR,;t t
11474s,@am__tar@,$am__tar,;t t
11475s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
11476s,@DEPDIR@,$DEPDIR,;t t
11477s,@am__include@,$am__include,;t t
11478s,@am__quote@,$am__quote,;t t
11479s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11480s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11481s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11482s,@CCDEPMODE@,$CCDEPMODE,;t t
11483s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11484s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11485s,@LN_S@,$LN_S,;t t
11486s,@RANLIB@,$RANLIB,;t t
11487s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11488s,@LIBTOOL@,$LIBTOOL,;t t
11489s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11490s,@GDBINIT@,$GDBINIT,;t t
11491s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11492s,@extra_objects@,$extra_objects,;t t
11493s,@target_cpu_type@,$target_cpu_type,;t t
11494s,@obj_format@,$obj_format,;t t
11495s,@te_file@,$te_file,;t t
11496s,@install_tooldir@,$install_tooldir,;t t
11497s,@atof@,$atof,;t t
11498s,@BFDLIB@,$BFDLIB,;t t
11499s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11500s,@BFDVER_H@,$BFDVER_H,;t t
11501s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11502s,@YACC@,$YACC,;t t
11503s,@LEX@,$LEX,;t t
11504s,@LEXLIB@,$LEXLIB,;t t
11505s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11506s,@CPP@,$CPP,;t t
11507s,@EGREP@,$EGREP,;t t
11508s,@ALLOCA@,$ALLOCA,;t t
11509s,@USE_NLS@,$USE_NLS,;t t
11510s,@MSGFMT@,$MSGFMT,;t t
11511s,@GMSGFMT@,$GMSGFMT,;t t
11512s,@XGETTEXT@,$XGETTEXT,;t t
11513s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11514s,@CATALOGS@,$CATALOGS,;t t
11515s,@CATOBJEXT@,$CATOBJEXT,;t t
11516s,@DATADIRNAME@,$DATADIRNAME,;t t
11517s,@GMOFILES@,$GMOFILES,;t t
11518s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11519s,@INTLDEPS@,$INTLDEPS,;t t
11520s,@INTLLIBS@,$INTLLIBS,;t t
11521s,@INTLOBJS@,$INTLOBJS,;t t
11522s,@POFILES@,$POFILES,;t t
11523s,@POSUB@,$POSUB,;t t
11524s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11525s,@GT_NO@,$GT_NO,;t t
11526s,@GT_YES@,$GT_YES,;t t
11527s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11528s,@l@,$l,;t t
11529s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11530s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11531s,@MAINT@,$MAINT,;t t
11532s,@LIBM@,$LIBM,;t t
11533s,@LIBOBJS@,$LIBOBJS,;t t
11534s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
11535CEOF
11536
13b2be9c
DJ
11537_ACEOF
11538
11539 cat >>$CONFIG_STATUS <<\_ACEOF
11540 # Split the substitutions into bite-sized pieces for seds with
11541 # small command number limits, like on Digital OSF/1 and HP-UX.
11542 ac_max_sed_lines=48
11543 ac_sed_frag=1 # Number of current file.
11544 ac_beg=1 # First line for current file.
11545 ac_end=$ac_max_sed_lines # Line after last line for current file.
11546 ac_more_lines=:
11547 ac_sed_cmds=
11548 while $ac_more_lines; do
11549 if test $ac_beg -gt 1; then
11550 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11551 else
11552 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11553 fi
11554 if test ! -s $tmp/subs.frag; then
11555 ac_more_lines=false
9b2b7d69 11556 else
13b2be9c
DJ
11557 # The purpose of the label and of the branching condition is to
11558 # speed up the sed processing (if there are no `@' at all, there
11559 # is no need to browse any of the substitutions).
11560 # These are the two extra sed commands mentioned above.
11561 (echo ':t
11562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11563 if test -z "$ac_sed_cmds"; then
ab509236 11564 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 11565 else
ab509236 11566 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
11567 fi
11568 ac_sed_frag=`expr $ac_sed_frag + 1`
11569 ac_beg=$ac_end
11570 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 11571 fi
13b2be9c
DJ
11572 done
11573 if test -z "$ac_sed_cmds"; then
11574 ac_sed_cmds=cat
252b5132 11575 fi
13b2be9c 11576fi # test -n "$CONFIG_FILES"
252b5132 11577
13b2be9c
DJ
11578_ACEOF
11579cat >>$CONFIG_STATUS <<\_ACEOF
11580for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 11581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11582 case $ac_file in
11583 - | *:- | *:-:* ) # input from stdin
ab509236
L
11584 cat >$tmp/stdin
11585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 11588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11589 * ) ac_file_in=$ac_file.in ;;
252b5132 11590 esac
9b2b7d69 11591
13b2be9c
DJ
11592 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11595 X"$ac_file" : 'X\(//\)[^/]' \| \
11596 X"$ac_file" : 'X\(//\)$' \| \
11597 X"$ac_file" : 'X\(/\)' \| \
11598 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11599echo X"$ac_file" |
11600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11602 /^X\(\/\/\)$/{ s//\1/; q; }
11603 /^X\(\/\).*/{ s//\1/; q; }
11604 s/.*/./; q'`
11605 { if $as_mkdir_p; then
11606 mkdir -p "$ac_dir"
c8615825 11607 else
13b2be9c
DJ
11608 as_dir="$ac_dir"
11609 as_dirs=
11610 while test ! -d "$as_dir"; do
11611 as_dirs="$as_dir $as_dirs"
11612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11614 X"$as_dir" : 'X\(//\)[^/]' \| \
11615 X"$as_dir" : 'X\(//\)$' \| \
11616 X"$as_dir" : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11618echo X"$as_dir" |
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11623 s/.*/./; q'`
11624 done
11625 test ! -n "$as_dirs" || mkdir $as_dirs
11626 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11627echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11628 { (exit 1); exit 1; }; }; }
11629
11630 ac_builddir=.
11631
11632if test "$ac_dir" != .; then
11633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634 # A "../" for each directory in $ac_dir_suffix.
11635 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11636else
11637 ac_dir_suffix= ac_top_builddir=
11638fi
9b2b7d69 11639
13b2be9c
DJ
11640case $srcdir in
11641 .) # No --srcdir option. We are building in place.
11642 ac_srcdir=.
11643 if test -z "$ac_top_builddir"; then
11644 ac_top_srcdir=.
11645 else
11646 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11647 fi ;;
11648 [\\/]* | ?:[\\/]* ) # Absolute path.
11649 ac_srcdir=$srcdir$ac_dir_suffix;
11650 ac_top_srcdir=$srcdir ;;
9b2b7d69 11651 *) # Relative path.
13b2be9c
DJ
11652 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11653 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11654esac
ab509236
L
11655
11656# Do not use `cd foo && pwd` to compute absolute paths, because
11657# the directories may not exist.
11658case `pwd` in
11659.) ac_abs_builddir="$ac_dir";;
11660*)
11661 case "$ac_dir" in
11662 .) ac_abs_builddir=`pwd`;;
11663 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11664 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11665 esac;;
11666esac
11667case $ac_abs_builddir in
11668.) ac_abs_top_builddir=${ac_top_builddir}.;;
11669*)
11670 case ${ac_top_builddir}. in
11671 .) ac_abs_top_builddir=$ac_abs_builddir;;
11672 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11673 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11674 esac;;
11675esac
11676case $ac_abs_builddir in
11677.) ac_abs_srcdir=$ac_srcdir;;
11678*)
11679 case $ac_srcdir in
11680 .) ac_abs_srcdir=$ac_abs_builddir;;
11681 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11682 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11683 esac;;
11684esac
11685case $ac_abs_builddir in
11686.) ac_abs_top_srcdir=$ac_top_srcdir;;
11687*)
11688 case $ac_top_srcdir in
11689 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11690 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11691 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11692 esac;;
11693esac
252b5132 11694
9b2b7d69 11695
13b2be9c
DJ
11696 case $INSTALL in
11697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11698 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 11699 esac
9b2b7d69 11700
13b2be9c
DJ
11701 # Let's still pretend it is `configure' which instantiates (i.e., don't
11702 # use $as_me), people would be surprised to read:
11703 # /* config.h. Generated by config.status. */
11704 if test x"$ac_file" = x-; then
11705 configure_input=
11706 else
11707 configure_input="$ac_file. "
11708 fi
11709 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 11710 sed 's,.*/,,'` by configure."
13b2be9c
DJ
11711
11712 # First look for the input files in the build tree, otherwise in the
11713 # src tree.
11714 ac_file_inputs=`IFS=:
11715 for f in $ac_file_in; do
11716 case $f in
11717 -) echo $tmp/stdin ;;
11718 [\\/$]*)
ab509236
L
11719 # Absolute (can't be DOS-style, as IFS=:)
11720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11721echo "$as_me: error: cannot find input file: $f" >&2;}
11722 { (exit 1); exit 1; }; }
ab509236 11723 echo "$f";;
13b2be9c 11724 *) # Relative
ab509236
L
11725 if test -f "$f"; then
11726 # Build tree
11727 echo "$f"
11728 elif test -f "$srcdir/$f"; then
11729 # Source tree
11730 echo "$srcdir/$f"
11731 else
11732 # /dev/null tree
11733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11734echo "$as_me: error: cannot find input file: $f" >&2;}
11735 { (exit 1); exit 1; }; }
ab509236 11736 fi;;
13b2be9c
DJ
11737 esac
11738 done` || { (exit 1); exit 1; }
e330299e
DJ
11739
11740 if test x"$ac_file" != x-; then
11741 { echo "$as_me:$LINENO: creating $ac_file" >&5
11742echo "$as_me: creating $ac_file" >&6;}
11743 rm -f "$ac_file"
11744 fi
13b2be9c
DJ
11745_ACEOF
11746cat >>$CONFIG_STATUS <<_ACEOF
11747 sed "$ac_vpsub
11748$extrasub
11749_ACEOF
11750cat >>$CONFIG_STATUS <<\_ACEOF
11751:t
11752/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11753s,@configure_input@,$configure_input,;t t
11754s,@srcdir@,$ac_srcdir,;t t
11755s,@abs_srcdir@,$ac_abs_srcdir,;t t
11756s,@top_srcdir@,$ac_top_srcdir,;t t
11757s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11758s,@builddir@,$ac_builddir,;t t
11759s,@abs_builddir@,$ac_abs_builddir,;t t
11760s,@top_builddir@,$ac_top_builddir,;t t
11761s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11762s,@INSTALL@,$ac_INSTALL,;t t
11763" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11764 rm -f $tmp/stdin
11765 if test x"$ac_file" != x-; then
11766 mv $tmp/out $ac_file
11767 else
11768 cat $tmp/out
11769 rm -f $tmp/out
11770 fi
11771
11772done
11773_ACEOF
11774cat >>$CONFIG_STATUS <<\_ACEOF
11775
11776#
11777# CONFIG_HEADER section.
11778#
252b5132
RH
11779
11780# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11781# NAME is the cpp macro being defined and VALUE is the value it is being given.
11782#
11783# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
11784ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11785ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
11786ac_dC=' '
11787ac_dD=',;t'
11788# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 11789ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 11790ac_uB='$,\1#\2define\3'
252b5132 11791ac_uC=' '
13b2be9c
DJ
11792ac_uD=',;t'
11793
11794for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11796 case $ac_file in
11797 - | *:- | *:-:* ) # input from stdin
ab509236
L
11798 cat >$tmp/stdin
11799 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11801 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 11802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11803 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11804 esac
11805
13b2be9c
DJ
11806 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11807echo "$as_me: creating $ac_file" >&6;}
11808
11809 # First look for the input files in the build tree, otherwise in the
11810 # src tree.
11811 ac_file_inputs=`IFS=:
11812 for f in $ac_file_in; do
11813 case $f in
11814 -) echo $tmp/stdin ;;
11815 [\\/$]*)
ab509236
L
11816 # Absolute (can't be DOS-style, as IFS=:)
11817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11818echo "$as_me: error: cannot find input file: $f" >&2;}
11819 { (exit 1); exit 1; }; }
ab509236
L
11820 # Do quote $f, to prevent DOS paths from being IFS'd.
11821 echo "$f";;
13b2be9c 11822 *) # Relative
ab509236
L
11823 if test -f "$f"; then
11824 # Build tree
11825 echo "$f"
11826 elif test -f "$srcdir/$f"; then
11827 # Source tree
11828 echo "$srcdir/$f"
11829 else
11830 # /dev/null tree
11831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11832echo "$as_me: error: cannot find input file: $f" >&2;}
11833 { (exit 1); exit 1; }; }
ab509236 11834 fi;;
13b2be9c
DJ
11835 esac
11836 done` || { (exit 1); exit 1; }
11837 # Remove the trailing spaces.
ab509236 11838 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
11839
11840_ACEOF
11841
11842# Transform confdefs.h into two sed scripts, `conftest.defines' and
11843# `conftest.undefs', that substitutes the proper values into
11844# config.h.in to produce config.h. The first handles `#define'
11845# templates, and the second `#undef' templates.
11846# And first: Protect against being on the right side of a sed subst in
11847# config.status. Protect against being in an unquoted here document
11848# in config.status.
11849rm -f conftest.defines conftest.undefs
11850# Using a here document instead of a string reduces the quoting nightmare.
11851# Putting comments in sed scripts is not portable.
11852#
11853# `end' is used to avoid that the second main sed command (meant for
11854# 0-ary CPP macros) applies to n-ary macro definitions.
11855# See the Autoconf documentation for `clear'.
11856cat >confdef2sed.sed <<\_ACEOF
11857s/[\\&,]/\\&/g
11858s,[\\$`],\\&,g
11859t clear
11860: clear
ab509236 11861s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 11862t end
ab509236 11863s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
11864: end
11865_ACEOF
11866# If some macros were called several times there might be several times
11867# the same #defines, which is useless. Nevertheless, we may not want to
11868# sort them, since we want the *last* AC-DEFINE to be honored.
11869uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11870sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11871rm -f confdef2sed.sed
252b5132
RH
11872
11873# This sed command replaces #undef with comments. This is necessary, for
11874# example, in the case of _POSIX_SOURCE, which is predefined and required
11875# on some systems where configure will not decide to define it.
13b2be9c 11876cat >>conftest.undefs <<\_ACEOF
ab509236 11877s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
11878_ACEOF
11879
11880# Break up conftest.defines because some shells have a limit on the size
11881# of here documents, and old seds have small limits too (100 cmds).
11882echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 11883echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
11884echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11885echo ' :' >>$CONFIG_STATUS
11886rm -f conftest.tail
11887while grep . conftest.defines >/dev/null
11888do
11889 # Write a limited-size here document to $tmp/defines.sed.
11890 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11891 # Speed up: don't consider the non `#define' lines.
ab509236 11892 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
11893 # Work around the forget-to-reset-the-flag bug.
11894 echo 't clr' >>$CONFIG_STATUS
11895 echo ': clr' >>$CONFIG_STATUS
11896 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11897 echo 'CEOF
11898 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11899 rm -f $tmp/in
11900 mv $tmp/out $tmp/in
11901' >>$CONFIG_STATUS
11902 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11903 rm -f conftest.defines
11904 mv conftest.tail conftest.defines
11905done
11906rm -f conftest.defines
11907echo ' fi # grep' >>$CONFIG_STATUS
11908echo >>$CONFIG_STATUS
252b5132 11909
13b2be9c
DJ
11910# Break up conftest.undefs because some shells have a limit on the size
11911# of here documents, and old seds have small limits too (100 cmds).
11912echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11913rm -f conftest.tail
13b2be9c 11914while grep . conftest.undefs >/dev/null
252b5132 11915do
13b2be9c
DJ
11916 # Write a limited-size here document to $tmp/undefs.sed.
11917 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11918 # Speed up: don't consider the non `#undef'
ab509236 11919 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
11920 # Work around the forget-to-reset-the-flag bug.
11921 echo 't clr' >>$CONFIG_STATUS
11922 echo ': clr' >>$CONFIG_STATUS
11923 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11924 echo 'CEOF
13b2be9c
DJ
11925 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11926 rm -f $tmp/in
11927 mv $tmp/out $tmp/in
11928' >>$CONFIG_STATUS
11929 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11930 rm -f conftest.undefs
11931 mv conftest.tail conftest.undefs
252b5132 11932done
13b2be9c
DJ
11933rm -f conftest.undefs
11934
11935cat >>$CONFIG_STATUS <<\_ACEOF
11936 # Let's still pretend it is `configure' which instantiates (i.e., don't
11937 # use $as_me), people would be surprised to read:
11938 # /* config.h. Generated by config.status. */
11939 if test x"$ac_file" = x-; then
11940 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 11941 else
13b2be9c
DJ
11942 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11943 fi
11944 cat $tmp/in >>$tmp/config.h
11945 rm -f $tmp/in
11946 if test x"$ac_file" != x-; then
11947 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11948 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11949echo "$as_me: $ac_file is unchanged" >&6;}
11950 else
11951 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11953 X"$ac_file" : 'X\(//\)[^/]' \| \
11954 X"$ac_file" : 'X\(//\)$' \| \
11955 X"$ac_file" : 'X\(/\)' \| \
11956 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11957echo X"$ac_file" |
11958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11960 /^X\(\/\/\)$/{ s//\1/; q; }
11961 /^X\(\/\).*/{ s//\1/; q; }
11962 s/.*/./; q'`
11963 { if $as_mkdir_p; then
11964 mkdir -p "$ac_dir"
11965 else
11966 as_dir="$ac_dir"
11967 as_dirs=
11968 while test ! -d "$as_dir"; do
11969 as_dirs="$as_dir $as_dirs"
11970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11972 X"$as_dir" : 'X\(//\)[^/]' \| \
11973 X"$as_dir" : 'X\(//\)$' \| \
11974 X"$as_dir" : 'X\(/\)' \| \
11975 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11976echo X"$as_dir" |
11977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11979 /^X\(\/\/\)$/{ s//\1/; q; }
11980 /^X\(\/\).*/{ s//\1/; q; }
11981 s/.*/./; q'`
11982 done
11983 test ! -n "$as_dirs" || mkdir $as_dirs
11984 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11985echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11986 { (exit 1); exit 1; }; }; }
11987
11988 rm -f $ac_file
11989 mv $tmp/config.h $ac_file
9b2b7d69 11990 fi
13b2be9c
DJ
11991 else
11992 cat $tmp/config.h
11993 rm -f $tmp/config.h
9b2b7d69 11994 fi
13b2be9c
DJ
11995# Compute $ac_file's index in $config_headers.
11996_am_stamp_count=1
11997for _am_header in $config_headers :; do
11998 case $_am_header in
11999 $ac_file | $ac_file:* )
12000 break ;;
12001 * )
12002 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12003 esac
12004done
12005echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12006$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12007 X$ac_file : 'X\(//\)[^/]' \| \
12008 X$ac_file : 'X\(//\)$' \| \
12009 X$ac_file : 'X\(/\)' \| \
12010 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12011echo X$ac_file |
12012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014 /^X\(\/\/\)$/{ s//\1/; q; }
12015 /^X\(\/\).*/{ s//\1/; q; }
12016 s/.*/./; q'`/stamp-h$_am_stamp_count
12017done
12018_ACEOF
12019cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 12020
13b2be9c
DJ
12021#
12022# CONFIG_COMMANDS section.
12023#
12024for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12025 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12026 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12028$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12029 X"$ac_dest" : 'X\(//\)[^/]' \| \
12030 X"$ac_dest" : 'X\(//\)$' \| \
12031 X"$ac_dest" : 'X\(/\)' \| \
12032 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12033echo X"$ac_dest" |
12034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12036 /^X\(\/\/\)$/{ s//\1/; q; }
12037 /^X\(\/\).*/{ s//\1/; q; }
12038 s/.*/./; q'`
ab509236
L
12039 { if $as_mkdir_p; then
12040 mkdir -p "$ac_dir"
12041 else
12042 as_dir="$ac_dir"
12043 as_dirs=
12044 while test ! -d "$as_dir"; do
12045 as_dirs="$as_dir $as_dirs"
12046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12048 X"$as_dir" : 'X\(//\)[^/]' \| \
12049 X"$as_dir" : 'X\(//\)$' \| \
12050 X"$as_dir" : 'X\(/\)' \| \
12051 . : '\(.\)' 2>/dev/null ||
12052echo X"$as_dir" |
12053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12055 /^X\(\/\/\)$/{ s//\1/; q; }
12056 /^X\(\/\).*/{ s//\1/; q; }
12057 s/.*/./; q'`
12058 done
12059 test ! -n "$as_dirs" || mkdir $as_dirs
12060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12061echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12062 { (exit 1); exit 1; }; }; }
12063
13b2be9c
DJ
12064 ac_builddir=.
12065
12066if test "$ac_dir" != .; then
12067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12068 # A "../" for each directory in $ac_dir_suffix.
12069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12070else
12071 ac_dir_suffix= ac_top_builddir=
12072fi
12073
12074case $srcdir in
12075 .) # No --srcdir option. We are building in place.
12076 ac_srcdir=.
12077 if test -z "$ac_top_builddir"; then
12078 ac_top_srcdir=.
12079 else
12080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12081 fi ;;
12082 [\\/]* | ?:[\\/]* ) # Absolute path.
12083 ac_srcdir=$srcdir$ac_dir_suffix;
12084 ac_top_srcdir=$srcdir ;;
12085 *) # Relative path.
12086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12088esac
ab509236
L
12089
12090# Do not use `cd foo && pwd` to compute absolute paths, because
12091# the directories may not exist.
12092case `pwd` in
12093.) ac_abs_builddir="$ac_dir";;
12094*)
12095 case "$ac_dir" in
12096 .) ac_abs_builddir=`pwd`;;
12097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12099 esac;;
12100esac
12101case $ac_abs_builddir in
12102.) ac_abs_top_builddir=${ac_top_builddir}.;;
12103*)
12104 case ${ac_top_builddir}. in
12105 .) ac_abs_top_builddir=$ac_abs_builddir;;
12106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12108 esac;;
12109esac
12110case $ac_abs_builddir in
12111.) ac_abs_srcdir=$ac_srcdir;;
12112*)
12113 case $ac_srcdir in
12114 .) ac_abs_srcdir=$ac_abs_builddir;;
12115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12117 esac;;
12118esac
12119case $ac_abs_builddir in
12120.) ac_abs_top_srcdir=$ac_top_srcdir;;
12121*)
12122 case $ac_top_srcdir in
12123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12126 esac;;
12127esac
13b2be9c
DJ
12128
12129
12130 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12131echo "$as_me: executing $ac_dest commands" >&6;}
12132 case $ac_dest in
12133 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12134 # Strip MF so we end up with the name of the file.
12135 mf=`echo "$mf" | sed -e 's/:.*$//'`
12136 # Check whether this is an Automake generated Makefile or not.
12137 # We used to match only the files named `Makefile.in', but
12138 # some people rename them; so instead we look at the file content.
12139 # Grep'ing the first line is not enough: some people post-process
12140 # each Makefile.in and add a new line on top of each file to say so.
12141 # So let's grep whole file.
12142 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12143 dirpart=`(dirname "$mf") 2>/dev/null ||
12144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12145 X"$mf" : 'X\(//\)[^/]' \| \
12146 X"$mf" : 'X\(//\)$' \| \
12147 X"$mf" : 'X\(/\)' \| \
12148 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12149echo X"$mf" |
12150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12152 /^X\(\/\/\)$/{ s//\1/; q; }
12153 /^X\(\/\).*/{ s//\1/; q; }
12154 s/.*/./; q'`
12155 else
12156 continue
12157 fi
8ea2b00f
AM
12158 # Extract the definition of DEPDIR, am__include, and am__quote
12159 # from the Makefile without running `make'.
4b363073 12160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 12161 test -z "$DEPDIR" && continue
8ea2b00f
AM
12162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12163 test -z "am__include" && continue
12164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 12165 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 12166 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
12167 # Find all dependency output files, they are included files with
12168 # $(DEPDIR) in their names. We invoke sed twice because it is the
12169 # simplest approach to changing $(DEPDIR) to its actual value in the
12170 # expansion.
12171 for file in `sed -n "
12172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
12173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12174 # Make sure the directory exists.
12175 test -f "$dirpart/$file" && continue
12176 fdir=`(dirname "$file") 2>/dev/null ||
12177$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12178 X"$file" : 'X\(//\)[^/]' \| \
12179 X"$file" : 'X\(//\)$' \| \
12180 X"$file" : 'X\(/\)' \| \
12181 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12182echo X"$file" |
12183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12185 /^X\(\/\/\)$/{ s//\1/; q; }
12186 /^X\(\/\).*/{ s//\1/; q; }
12187 s/.*/./; q'`
12188 { if $as_mkdir_p; then
12189 mkdir -p $dirpart/$fdir
12190 else
12191 as_dir=$dirpart/$fdir
12192 as_dirs=
12193 while test ! -d "$as_dir"; do
12194 as_dirs="$as_dir $as_dirs"
12195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12197 X"$as_dir" : 'X\(//\)[^/]' \| \
12198 X"$as_dir" : 'X\(//\)$' \| \
12199 X"$as_dir" : 'X\(/\)' \| \
12200 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12201echo X"$as_dir" |
12202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12204 /^X\(\/\/\)$/{ s//\1/; q; }
12205 /^X\(\/\).*/{ s//\1/; q; }
12206 s/.*/./; q'`
12207 done
12208 test ! -n "$as_dirs" || mkdir $as_dirs
12209 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12210echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12211 { (exit 1); exit 1; }; }; }
c8615825 12212
13b2be9c
DJ
12213 # echo "creating $dirpart/$file"
12214 echo '# dummy' > "$dirpart/$file"
12215 done
12216done
12217 ;;
12218 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
12219 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12220 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12221 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12222 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12223 if test "x$cgen_cpu_prefix" != x ; then
12224 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12225 fi
12226
13b2be9c
DJ
12227 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12228 esac
12229done
12230_ACEOF
12231
12232cat >>$CONFIG_STATUS <<\_ACEOF
12233
12234{ (exit 0); exit 0; }
12235_ACEOF
252b5132 12236chmod +x $CONFIG_STATUS
13b2be9c
DJ
12237ac_clean_files=$ac_clean_files_save
12238
12239
12240# configure is writing to config.log, and then calls config.status.
12241# config.status does its own redirection, appending to config.log.
12242# Unfortunately, on DOS this fails, as config.log is still kept open
12243# by configure, so config.status won't be able to write to it; its
12244# output is simply discarded. So we exec the FD to /dev/null,
12245# effectively closing config.log, so it can be properly (re)opened and
12246# appended to by config.status. When coming back to configure, we
12247# need to make the FD available again.
12248if test "$no_create" != yes; then
12249 ac_cs_success=:
12250 ac_config_status_args=
12251 test "$silent" = yes &&
12252 ac_config_status_args="$ac_config_status_args --quiet"
12253 exec 5>/dev/null
12254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12255 exec 5>>config.log
12256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12257 # would make configure fail if this is the last instruction.
12258 $ac_cs_success || { (exit 1); exit 1; }
12259fi
252b5132 12260
This page took 1.717881 seconds and 4 git commands to generate.