gas/
[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
569acd2c 862 --enable-werror treat compile warnings as errors
13b2be9c
DJ
863 --enable-build-warnings Enable build-time compiler warnings if gcc is used
864 --disable-nls do not use Native Language Support
ab509236
L
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
9b2b7d69 867
13b2be9c
DJ
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-included-gettext use the GNU gettext library included here
9b2b7d69 874
13b2be9c
DJ
875Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
887_ACEOF
9b2b7d69 888fi
9b2b7d69 889
13b2be9c
DJ
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
9b2b7d69 904
13b2be9c
DJ
905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 912 fi ;;
13b2be9c
DJ
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 919esac
ab509236
L
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
13b2be9c
DJ
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
ab509236 969 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
1ad12f97 975 cd $ac_popdir
13b2be9c
DJ
976 done
977fi
6840198f 978
13b2be9c
DJ
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
c8615825 982
ab509236 983Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986_ACEOF
987 exit 0
988fi
989exec 5>config.log
990cat >&5 <<_ACEOF
991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
c8615825 993
13b2be9c 994It was created by $as_me, which was
ab509236 995generated by GNU Autoconf 2.59. Invocation command line was
c8615825 996
13b2be9c 997 $ $0 $@
c8615825 998
13b2be9c
DJ
999_ACEOF
1000{
1001cat <<_ASUNAME
1002## --------- ##
1003## Platform. ##
1004## --------- ##
1005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
1024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
9b2b7d69 1032
13b2be9c 1033} >&5
6840198f 1034
13b2be9c 1035cat >&5 <<_ACEOF
c8615825 1036
9b2b7d69 1037
13b2be9c
DJ
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
87ccc1b0 1041
13b2be9c 1042_ACEOF
9b2b7d69 1043
13b2be9c
DJ
1044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
1047# Strip out --silent because we don't want to record it for future runs.
1048# Also quote any args containing shell meta-characters.
1049# Make two passes to allow for proper duplicate-argument suppression.
1050ac_configure_args=
1051ac_configure_args0=
1052ac_configure_args1=
1053ac_sep=
1054ac_must_keep_next=false
1055for ac_pass in 1 2
1056do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
ab509236 1072 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1073 else
ab509236
L
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
13b2be9c
DJ
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
c8615825
AM
1089 ;;
1090 esac
1091 done
13b2be9c
DJ
1092done
1093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
1099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
1101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
ab509236
L
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1120 ;;
1121 *)
1122 sed -n \
ab509236 1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1124 ;;
1125 esac;
1126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
ab509236 1152 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
ab509236 1171 rm -f core *.core &&
13b2be9c
DJ
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
1185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
1212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
ab509236 1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1271echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1273echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1274 ac_cache_corrupted=:
13b2be9c
DJ
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323ac_aux_dir=
1324for ac_dir in .. $srcdir/..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338done
1339if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1341echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1342 { (exit 1); exit 1; }; }
1343fi
1344ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348# Make sure we can run config.sub.
1349$ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354echo "$as_me:$LINENO: checking build system type" >&5
1355echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359 ac_cv_build_alias=$build_alias
1360test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371fi
1372echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373echo "${ECHO_T}$ac_cv_build" >&6
1374build=$ac_cv_build
1375build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380echo "$as_me:$LINENO: checking host system type" >&5
1381echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 ac_cv_host_alias=$host_alias
1386test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395echo "${ECHO_T}$ac_cv_host" >&6
1396host=$ac_cv_host
1397host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking target system type" >&5
1403echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_target_alias=$target_alias
1408test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417echo "${ECHO_T}$ac_cv_target" >&6
1418target=$ac_cv_target
1419target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424# The aliases save the names the user supplied, while $host etc.
1425# will get canonicalized.
1426test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430ac_ext=c
1431ac_cpp='$CPP $CPPFLAGS'
1432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438echo "$as_me:$LINENO: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445else
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457done
1458done
1459
1460fi
1461fi
1462CC=$ac_cv_prog_CC
1463if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465echo "${ECHO_T}$CC" >&6
1466else
1467 echo "$as_me:$LINENO: result: no" >&5
1468echo "${ECHO_T}no" >&6
1469fi
1470
1471fi
1472if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475set dummy gcc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483else
1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485for as_dir in $PATH
1486do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495done
1496done
1497
1498fi
1499fi
1500ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503echo "${ECHO_T}$ac_ct_CC" >&6
1504else
1505 echo "$as_me:$LINENO: result: no" >&5
1506echo "${ECHO_T}no" >&6
1507fi
1508
1509 CC=$ac_ct_CC
1510else
1511 CC="$ac_cv_prog_CC"
1512fi
1513
1514if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517set dummy ${ac_tool_prefix}cc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555set dummy cc; ac_word=$2
1556echo "$as_me:$LINENO: checking for $ac_word" >&5
1557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563else
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
1592fi
1593
1594fi
1595if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
1606 ac_prog_rejected=no
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636fi
1637fi
1638fi
1639CC=$ac_cv_prog_CC
1640if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642echo "${ECHO_T}$CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648fi
1649if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 test -n "$CC" && break
1689 done
1690fi
1691if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696set dummy $ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724echo "${ECHO_T}$ac_ct_CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 test -n "$ac_ct_CC" && break
1731done
1732
1733 CC=$ac_ct_CC
1734fi
1735
1736fi
1737
1738
1739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&5
1741echo "$as_me: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745# Provide some information about the compiler.
1746echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748ac_compiler=`set X $ac_compile; echo $2`
1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1766/* confdefs.h. */
1767_ACEOF
1768cat confdefs.h >>conftest.$ac_ext
1769cat >>conftest.$ac_ext <<_ACEOF
1770/* end confdefs.h. */
1771
1772int
1773main ()
1774{
1775
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
ab509236
L
1785echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
1796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
1800# b.out is created by i960 compilers.
1801for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1806 ;;
13b2be9c 1807 conftest.$ac_ext )
ab509236
L
1808 # This is the source file.
1809 ;;
13b2be9c 1810 [ab].out )
ab509236
L
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
13b2be9c 1814 *.* )
ab509236
L
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
13b2be9c 1821 * )
ab509236 1822 break;;
13b2be9c
DJ
1823 esac
1824done
1825else
1826 echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: C compiler cannot create executables
1832See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834fi
1835
1836ac_exeext=$ac_cv_exeext
1837echo "$as_me:$LINENO: result: $ac_file" >&5
1838echo "${ECHO_T}$ac_file" >&6
1839
1840# Check the compiler produces executables we can run. If not, either
1841# the compiler is broken, or we cross compile.
1842echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845# If not cross compiling, check that we can run a simple program.
1846if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859If you meant to cross compile, use \`--host'.
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: yes" >&5
1869echo "${ECHO_T}yes" >&6
1870
1871rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872ac_clean_files=$ac_clean_files_save
1873# Check the compiler produces executables we can run. If not, either
1874# the compiler is broken, or we cross compile.
1875echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878echo "${ECHO_T}$cross_compiling" >&6
1879
1880echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889# work properly (i.e., refer to `conftest.exe'), while it won't with
1890# `rm'.
1891for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
1896 export ac_cv_exeext
1897 break;;
13b2be9c
DJ
1898 * ) break;;
1899 esac
1900done
1901else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909rm -f conftest$ac_cv_exeext
1910echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913rm -f conftest.$ac_ext
1914EXEEXT=$ac_cv_exeext
1915ac_exeext=$EXEEXT
1916echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936rm -f conftest.o conftest.obj
1937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948done
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958fi
1959
1960rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961fi
1962echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963echo "${ECHO_T}$ac_cv_objext" >&6
1964OBJEXT=$ac_cv_objext
1965ac_objext=$OBJEXT
1966echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981#ifndef __GNUC__
1982 choke me
1983#endif
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 1991 (eval $ac_compile) 2>conftest.er1
13b2be9c 1992 ac_status=$?
ab509236
L
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
13b2be9c
DJ
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1ad12f97
NC
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
ab509236
L
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012else
2013 echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016ac_compiler_gnu=no
2017fi
ab509236 2018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2019ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021fi
2022echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024GCC=`test $ac_compiler_gnu = yes && echo yes`
2025ac_test_CFLAGS=${CFLAGS+set}
2026ac_save_CFLAGS=$CFLAGS
2027CFLAGS="-g"
2028echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039
2040int
2041main ()
2042{
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048rm -f conftest.$ac_objext
2049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2050 (eval $ac_compile) 2>conftest.er1
13b2be9c 2051 ac_status=$?
ab509236
L
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
13b2be9c
DJ
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
1ad12f97
NC
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
ab509236
L
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_cv_prog_cc_g=no
2076fi
ab509236 2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095fi
2096echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 ac_cv_prog_cc_stdc=no
2102ac_save_CC=$CC
2103cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2104/* confdefs.h. */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h. */
2109#include <stdarg.h>
2110#include <stdio.h>
2111#include <sys/types.h>
2112#include <sys/stat.h>
2113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114struct buf { int x; };
2115FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116static char *e (p, i)
2117 char **p;
2118 int i;
2119{
2120 return p[i];
2121}
2122static char *f (char * (*g) (char **, int), char **p, ...)
2123{
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130}
ab509236
L
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
13b2be9c
DJ
2141int test (int i, double x);
2142struct s1 {int (*f) (int a);};
2143struct s2 {int (*f) (double a);};
2144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145int argc;
2146char **argv;
2147int
2148main ()
2149{
2150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155# Don't try gcc -ansi; that turns off useful extensions and
2156# breaks some systems' header files.
2157# AIX -qlanglvl=ansi
2158# Ultrix and OSF/1 -std1
2159# HP-UX 10.20 and later -Ae
2160# HP-UX older versions -Aa -D_HPUX_SOURCE
2161# SVR4 -Xc -D__EXTENSIONS__
2162for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2167 (eval $ac_compile) 2>conftest.er1
13b2be9c 2168 ac_status=$?
ab509236
L
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
13b2be9c
DJ
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
1ad12f97
NC
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
ab509236
L
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193fi
ab509236 2194rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2222 (eval $ac_compile) 2>conftest.er1
13b2be9c 2223 ac_status=$?
ab509236
L
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
13b2be9c
DJ
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
1ad12f97
NC
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
ab509236
L
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
ab509236 2243 '' \
13b2be9c
DJ
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2251/* confdefs.h. */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h. */
13dfd2d0 2256$ac_declaration
ab509236 2257#include <stdlib.h>
13b2be9c
DJ
2258int
2259main ()
2260{
2261exit (42);
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2268 (eval $ac_compile) 2>conftest.er1
13b2be9c 2269 ac_status=$?
ab509236
L
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
13b2be9c
DJ
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
1ad12f97
NC
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
ab509236
L
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); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289else
2290 echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293continue
2294fi
ab509236 2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2296 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h. */
2302$ac_declaration
2303int
2304main ()
2305{
2306exit (42);
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2313 (eval $ac_compile) 2>conftest.er1
13b2be9c 2314 ac_status=$?
ab509236
L
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
13b2be9c
DJ
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
1ad12f97
NC
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
ab509236
L
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338fi
ab509236 2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2340done
2341rm -f conftest*
2342if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346fi
2347
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352fi
ab509236 2353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
ab509236
L
2361echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
ab509236
L
2366 ac_func_search_save_LIBS=$LIBS
2367ac_cv_search_strerror=no
13b2be9c 2368cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375/* Override any gcc2 internal prototype to avoid an error. */
2376#ifdef __cplusplus
2377extern "C"
2378#endif
2379/* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381char strerror ();
2382int
2383main ()
2384{
2385strerror ();
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext conftest$ac_exeext
2391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2392 (eval $ac_link) 2>conftest.er1
13b2be9c 2393 ac_status=$?
ab509236
L
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
13b2be9c
DJ
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
1ad12f97
NC
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
ab509236
L
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
ab509236 2412 ac_cv_search_strerror="none required"
13b2be9c
DJ
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
13b2be9c 2417fi
ab509236
L
2418rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429
2430/* Override any gcc2 internal prototype to avoid an error. */
2431#ifdef __cplusplus
2432extern "C"
2433#endif
2434/* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436char strerror ();
2437int
2438main ()
2439{
2440strerror ();
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext conftest$ac_exeext
2446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
1ad12f97
NC
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
ab509236
L
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468break
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
13b2be9c 2473fi
ab509236
L
2474rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
13b2be9c 2477fi
ab509236
L
2478LIBS=$ac_func_search_save_LIBS
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2484
ab509236 2485fi
13b2be9c
DJ
2486
2487
2488BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2489am__api_version="1.9"
13b2be9c
DJ
2490# Find a good install program. We prefer a C program (faster),
2491# so one script is as good as another. But avoid the broken or
2492# incompatible versions:
2493# SysV /etc/install, /usr/sbin/install
2494# SunOS /usr/etc/install
2495# IRIX /sbin/install
2496# AIX /bin/install
2497# AmigaOS /C/install, which installs bootblocks on floppy discs
2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2501# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2502# ./install, which can be erroneously created by make from ./install.sh.
2503echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505if test -z "$INSTALL"; then
2506if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2519 /usr/ucb/* ) ;;
2520 *)
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2530 :
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2534 :
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2538 fi
2539 fi
13b2be9c
DJ
2540 done
2541 done
2542 ;;
2543esac
2544done
2545
252b5132
RH
2546
2547fi
2548 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2549 INSTALL=$ac_cv_path_install
252b5132
RH
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
13b2be9c 2555 INSTALL=$ac_install_sh
252b5132
RH
2556 fi
2557fi
13b2be9c
DJ
2558echo "$as_me:$LINENO: result: $INSTALL" >&5
2559echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2560
2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562# It thinks the first close brace ends the variable substitution.
2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
13b2be9c 2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2566
2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
13b2be9c
DJ
2569echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2571# Just in case
2572sleep 1
13b2be9c 2573echo timestamp > conftest.file
252b5132
RH
2574# Do `set' in a subshell so we don't clobber the current shell's
2575# arguments. Must try -L first in case configure is actually a
2576# symlink; some systems play weird games with the mod time of symlinks
2577# (eg FreeBSD returns the mod time of the symlink's containing
2578# directory).
2579if (
13b2be9c 2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2581 if test "$*" = "X"; then
2582 # -L didn't work.
13b2be9c 2583 set X `ls -t $srcdir/configure conftest.file`
252b5132 2584 fi
13b2be9c
DJ
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2588
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&5
2595echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
252b5132
RH
2598 fi
2599
13b2be9c
DJ
2600 test "$2" = conftest.file
2601 )
2602then
2603 # Ok.
2604 :
2605else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607Check your system clock" >&5
2608echo "$as_me: error: newly created file is older than distributed files!
2609Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2611fi
2612echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
2614test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616# Use a double $ so make ignores it.
2617test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619# Double any \ or $. echo might interpret backslashes.
2620# By default was `s,x,x', remove it if useless.
2621cat <<\_ACEOF >conftest.sed
2622s/[\\$]/&&/g;s/;s,x,x,$//
2623_ACEOF
2624program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625rm conftest.sed
2626
13b2be9c
DJ
2627# expand $ac_aux_dir to an absolute path
2628am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631# Use eval to expand $SHELL
2632if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638fi
2639
4b363073 2640if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
ab509236 2643 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
ab509236
L
2656else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
4b363073 2661 for d in ./-p ./--version;
ab509236
L
2662 do
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2670 fi
2671fi
2672
13b2be9c
DJ
2673for ac_prog in gawk mawk nawk awk
2674do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
2677echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704echo "${ECHO_T}$AWK" >&6
2705else
2706 echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708fi
2709
2710 test -n "$AWK" && break
2711done
2712
2713echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2715set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2716if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 cat >conftest.make <<\_ACEOF
2720all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2729fi
2730rm -f conftest.make
2731fi
2732if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745 am__leading_dot=.
2746else
2747 am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751DEPDIR="${am__leading_dot}deps"
2752
2753 ac_config_commands="$ac_config_commands depfiles"
2754
2755
2756am_make=${MAKE-make}
2757cat > confinc << 'END'
2758am__doit:
2759 @echo done
2760.PHONY: am__doit
2761END
2762# If we don't find an include directive, just comment out the code.
2763echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765am__include="#"
2766am__quote=
2767_am_result=none
2768# First try GNU make style include.
2769echo "include confinc" > confmf
2770# We grep out `Entering directory' and `Leaving directory'
2771# messages which can occur if `w' ends up in MAKEFLAGS.
2772# In particular we don't look at `^make:' because GNU make might
2773# be invoked under some other name (usually "gmake"), in which
2774# case it prints its new name instead of `make'.
2775if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2779fi
2780# Now try BSD make style include.
2781if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2787 fi
2788fi
2789
2790
2791echo "$as_me:$LINENO: result: $_am_result" >&5
2792echo "${ECHO_T}$_am_result" >&6
2793rm -f confinc confmf
2794
2795# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2798
2799fi;
2800if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2803fi
2804
2805
2806if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2812fi
2813
2814
2815
ab509236 2816# test to see if srcdir already configured
13b2be9c
DJ
2817if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2822fi
2823
2824# test whether we have cygpath
2825if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2830 fi
2831fi
2832
2833
2834# Define the identity of the package.
2835 PACKAGE=gas
2836 VERSION=${BFD_VERSION}
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define PACKAGE "$PACKAGE"
2841_ACEOF
2842
2843
2844cat >>confdefs.h <<_ACEOF
2845#define VERSION "$VERSION"
2846_ACEOF
2847
2848# Some tools Automake needs.
2849
2850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
13b2be9c
DJ
2864install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865
2866# Installed binaries are usually stripped using `strip' when the user
2867# run `make install-strip'. However `strip' might not be the right
2868# tool to use in cross-compilation environments, therefore Automake
2869# will honor the `STRIP' environment variable to overrule this program.
2870if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873set dummy ${ac_tool_prefix}strip; ac_word=$2
2874echo "$as_me:$LINENO: checking for $ac_word" >&5
2875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2881else
13b2be9c
DJ
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894done
2895
252b5132 2896fi
13b2be9c
DJ
2897fi
2898STRIP=$ac_cv_prog_STRIP
2899if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901echo "${ECHO_T}$STRIP" >&6
c8615825 2902else
13b2be9c
DJ
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
c8615825 2905fi
c8615825 2906
13b2be9c
DJ
2907fi
2908if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911set dummy strip; ac_word=$2
2912echo "$as_me:$LINENO: checking for $ac_word" >&5
2913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2916else
13b2be9c
DJ
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2919else
13b2be9c
DJ
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
2932done
2933
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2935fi
252b5132 2936fi
13b2be9c
DJ
2937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2941else
13b2be9c
DJ
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
252b5132
RH
2944fi
2945
13b2be9c
DJ
2946 STRIP=$ac_ct_STRIP
2947else
2948 STRIP="$ac_cv_prog_STRIP"
2949fi
d6d788bd 2950
252b5132 2951fi
13b2be9c 2952INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2953
13b2be9c
DJ
2954# We need awk for the "check" target. The system "awk" is bad on
2955# some platforms.
8ea2b00f
AM
2956# Always define AMTAR for backward compatibility.
2957
2958AMTAR=${AMTAR-"${am_missing_run}tar"}
2959
2960am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2961
2962
252b5132 2963
d6d788bd 2964
13b2be9c 2965depcc="$CC" am_compiler_list=
d6d788bd 2966
13b2be9c
DJ
2967echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2971else
13b2be9c
DJ
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
252b5132 2990
13b2be9c
DJ
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 fi
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
2999 #
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
13b2be9c
DJ
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3020 fi
3021 ;;
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3046 fi
3047 fi
3048 done
252b5132 3049
13b2be9c
DJ
3050 cd ..
3051 rm -rf conftest.dir
252b5132 3052else
13b2be9c 3053 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3054fi
3055
252b5132 3056fi
13b2be9c
DJ
3057echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3060
13b2be9c
DJ
3061
3062
3063if
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
252b5132 3068else
13b2be9c
DJ
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
252b5132
RH
3071fi
3072
d6d788bd
L
3073
3074
13b2be9c 3075
252b5132
RH
3076# Check whether --enable-shared or --disable-shared was given.
3077if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
f9c19112 3080case $enableval in
252b5132
RH
3081yes) enable_shared=yes ;;
3082no) enable_shared=no ;;
3083*)
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3090 fi
3091 done
3092 IFS="$ac_save_ifs"
3093 ;;
3094esac
3095else
3096 enable_shared=yes
13b2be9c 3097fi;
252b5132
RH
3098# Check whether --enable-static or --disable-static was given.
3099if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
f9c19112 3102case $enableval in
252b5132
RH
3103yes) enable_static=yes ;;
3104no) enable_static=no ;;
3105*)
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3112 fi
3113 done
3114 IFS="$ac_save_ifs"
3115 ;;
3116esac
3117else
3118 enable_static=yes
13b2be9c 3119fi;
bedf545c
ILT
3120# Check whether --enable-fast-install or --disable-fast-install was given.
3121if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
f9c19112 3124case $enableval in
bedf545c
ILT
3125yes) enable_fast_install=yes ;;
3126no) enable_fast_install=no ;;
3127*)
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3134 fi
3135 done
3136 IFS="$ac_save_ifs"
3137 ;;
3138esac
3139else
3140 enable_fast_install=yes
13b2be9c 3141fi;
87ccc1b0 3142
6840198f
NC
3143# Check whether --with-gnu-ld or --without-gnu-ld was given.
3144if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3147else
6840198f 3148 with_gnu_ld=no
13b2be9c 3149fi;
6840198f
NC
3150ac_prog=ld
3151if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 *)
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3172 ;;
3173 "")
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3176 ;;
3177 *)
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3180 ;;
3181 esac
3182elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3185else
13b2be9c
DJ
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3188fi
13b2be9c
DJ
3189if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3191else
3192 if test -z "$LD"; then
a74801ba 3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
a74801ba 3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3197 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3202 test "$with_gnu_ld" != no && break
3203 else
bedf545c 3204 test "$with_gnu_ld" != yes && break
252b5132
RH
3205 fi
3206 fi
3207 done
3208 IFS="$ac_save_ifs"
3209else
f9c19112 3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3211fi
3212fi
3213
f9c19112 3214LD="$lt_cv_path_LD"
252b5132 3215if test -n "$LD"; then
13b2be9c
DJ
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217echo "${ECHO_T}$LD" >&6
252b5132 3218else
13b2be9c
DJ
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
252b5132 3221fi
13b2be9c
DJ
3222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3229else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3232 lt_cv_prog_gnu_ld=yes
252b5132 3233else
f9c19112 3234 lt_cv_prog_gnu_ld=no
252b5132
RH
3235fi
3236fi
13b2be9c
DJ
3237echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3239with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3240
d6d788bd 3241
13b2be9c
DJ
3242echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3246else
3247 lt_cv_ld_reload_flag='-r'
3248fi
13b2be9c
DJ
3249echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3251reload_flag=$lt_cv_ld_reload_flag
3252test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3253
13b2be9c
DJ
3254echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3258else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
f9c19112 3261 lt_cv_path_NM="$NM"
252b5132 3262else
a74801ba 3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3265 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
58cccadb
AO
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3273 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3274 break
ac48eca1 3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3276 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3277 break
252b5132 3278 else
f9c19112 3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3280 continue # so that we can try to find one that supports BSD flags
252b5132 3281 fi
252b5132
RH
3282 fi
3283 done
3284 IFS="$ac_save_ifs"
f9c19112 3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3286fi
3287fi
3288
f9c19112 3289NM="$lt_cv_path_NM"
13b2be9c
DJ
3290echo "$as_me:$LINENO: result: $NM" >&5
3291echo "${ECHO_T}$NM" >&6
252b5132 3292
13b2be9c
DJ
3293echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295LN_S=$as_ln_s
3296if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6
252b5132 3299else
13b2be9c
DJ
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3302fi
3303
13b2be9c
DJ
3304echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3308else
d64552c5 3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3310lt_cv_file_magic_test_file=
3311lt_cv_deplibs_check_method='unknown'
3312# Need to set the preceding variable on all platforms that support
3313# interlibrary dependencies.
3314# 'none' -- dependencies not supported.
3315# `unknown' -- same as none, but documents that we really don't know.
3316# 'pass_all' -- all dependencies passed with no checks.
3317# 'test_compile' -- check by making test program.
3318# 'file_magic [regex]' -- check by looking for files in library path
3319# which responds to the $file_magic_cmd with a given egrep regex.
3320# If you have `file' or equivalent on your system and you're not sure
3321# whether `pass_all' will *always* work, you probably want this one.
3322
f9c19112
HPN
3323case $host_os in
3324aix*)
ac48eca1
AO
3325 lt_cv_deplibs_check_method=pass_all
3326 ;;
3327
3328beos*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
3332bsdi4*)
f9c19112
HPN
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3336 ;;
3337
d64552c5 3338cygwin* | mingw* |pw32*)
ac48eca1 3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3341 ;;
3342
f9c19112
HPN
3343darwin* | rhapsody*)
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 ;;
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 ;;
3353 esac
f9c19112
HPN
3354 ;;
3355
4101eec8 3356freebsd* | kfreebsd*-gnu)
ac48eca1 3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3358 case $host_cpu in
ac48eca1 3359 i*86 )
58cccadb
AO
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 ;;
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3369 fi
3370 ;;
3371
3372gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375
f9c19112 3376hpux10.20*|hpux11*)
4867be41
DJ
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ;;
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 ;;
3388 esac
ac48eca1
AO
3389 ;;
3390
3391irix5* | irix6*)
f9c19112 3392 case $host_os in
ac48eca1
AO
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 ;;
3397 *)
f9c19112 3398 case $LD in
ac48eca1
AO
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 ;;
ac48eca1
AO
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3410 ;;
3411
3412# This must be Linux ELF.
58cccadb 3413linux-gnu*)
f9c19112 3414 case $host_cpu in
dbeba5e5 3415 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3416 lt_cv_deplibs_check_method=pass_all ;;
3417 *)
3418 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
3419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3420 esac
ac48eca1
AO
3421 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3422 ;;
3423
4101eec8 3424netbsd* | knetbsd*-gnu)
f9c19112 3425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3426 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3427 else
6840198f 3428 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3429 fi
f9c19112
HPN
3430 ;;
3431
3432newsos6)
3433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3436 ;;
3437
3438osf3* | osf4* | osf5*)
3439 # this will be overridden with pass_all, but let us keep it just in case
3440 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441 lt_cv_file_magic_test_file=/shlib/libc.so
3442 lt_cv_deplibs_check_method=pass_all
3443 ;;
3444
3445sco3.2v5*)
3446 lt_cv_deplibs_check_method=pass_all
3447 ;;
3448
3449solaris*)
3450 lt_cv_deplibs_check_method=pass_all
3451 lt_cv_file_magic_test_file=/lib/libc.so
3452 ;;
3453
6be7c12c
AO
3454sysv5uw[78]* | sysv4*uw2*)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457
ac48eca1 3458sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3459 case $host_vendor in
ac48eca1
AO
3460 ncr)
3461 lt_cv_deplibs_check_method=pass_all
3462 ;;
3463 motorola)
f9c19112
HPN
3464 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]'
3465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3466 ;;
3467 esac
3468 ;;
3469esac
3470
3471fi
13b2be9c
DJ
3472echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3473echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3474file_magic_cmd=$lt_cv_file_magic_cmd
3475deplibs_check_method=$lt_cv_deplibs_check_method
3476
c8615825 3477
c8615825 3478
c8615825 3479
ac48eca1
AO
3480# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3481
3482# Only perform the check for file, if the check method requires it
f9c19112 3483case $deplibs_check_method in
ac48eca1 3484file_magic*)
d64552c5 3485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3487echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3488if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3490else
f9c19112 3491 case $MAGIC_CMD in
ac48eca1 3492 /*)
d64552c5 3493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3494 ;;
3495 ?:/*)
d64552c5 3496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3497 ;;
3498 *)
d64552c5 3499 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="/usr/bin:$PATH"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3506 if test -n "$file_magic_test_file"; then
f9c19112 3507 case $deplibs_check_method in
ac48eca1
AO
3508 "file_magic "*)
3509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3512 egrep "$file_magic_regex" > /dev/null; then
3513 :
3514 else
3515 cat <<EOF 1>&2
3516
3517*** Warning: the command libtool uses to detect shared libraries,
3518*** $file_magic_cmd, produces output that libtool cannot recognize.
3519*** The result is that libtool may fail to recognize shared libraries
3520*** as such. This will affect the creation of libtool libraries that
3521*** depend on shared libraries, but programs linked with such libtool
3522*** libraries will work regardless of this problem. Nevertheless, you
3523*** may want to report the problem to your system manager and/or to
3524*** bug-libtool@gnu.org
3525
3526EOF
3527 fi ;;
3528 esac
3529 fi
3530 break
3531 fi
3532 done
3533 IFS="$ac_save_ifs"
d64552c5 3534 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3535 ;;
3536esac
3537fi
3538
d64552c5
AO
3539MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3540if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3542echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3543else
13b2be9c
DJ
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
ac48eca1
AO
3546fi
3547
d64552c5 3548if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3549 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3550 echo "$as_me:$LINENO: checking for file" >&5
3551echo $ECHO_N "checking for file... $ECHO_C" >&6
3552if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3554else
f9c19112 3555 case $MAGIC_CMD in
ac48eca1 3556 /*)
d64552c5 3557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3558 ;;
3559 ?:/*)
d64552c5 3560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3561 ;;
3562 *)
d64552c5 3563 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3565 ac_dummy="/usr/bin:$PATH"
3566 for ac_dir in $ac_dummy; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/file; then
d64552c5 3569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3570 if test -n "$file_magic_test_file"; then
f9c19112 3571 case $deplibs_check_method in
ac48eca1
AO
3572 "file_magic "*)
3573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3576 egrep "$file_magic_regex" > /dev/null; then
3577 :
3578 else
3579 cat <<EOF 1>&2
3580
3581*** Warning: the command libtool uses to detect shared libraries,
3582*** $file_magic_cmd, produces output that libtool cannot recognize.
3583*** The result is that libtool may fail to recognize shared libraries
3584*** as such. This will affect the creation of libtool libraries that
3585*** depend on shared libraries, but programs linked with such libtool
3586*** libraries will work regardless of this problem. Nevertheless, you
3587*** may want to report the problem to your system manager and/or to
3588*** bug-libtool@gnu.org
3589
3590EOF
3591 fi ;;
3592 esac
3593 fi
3594 break
3595 fi
3596 done
3597 IFS="$ac_save_ifs"
d64552c5 3598 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3599 ;;
3600esac
3601fi
3602
d64552c5
AO
3603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3604if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3606echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3607else
13b2be9c
DJ
3608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
ac48eca1
AO
3610fi
3611
3612 else
d64552c5 3613 MAGIC_CMD=:
ac48eca1
AO
3614 fi
3615fi
3616
3617 fi
3618 ;;
3619esac
3620
13b2be9c
DJ
3621if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3623set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3624echo "$as_me:$LINENO: checking for $ac_word" >&5
3625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626if test "${ac_cv_prog_RANLIB+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3628else
3629 if test -n "$RANLIB"; then
3630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3631else
13b2be9c
DJ
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643done
3644done
3645
ac48eca1
AO
3646fi
3647fi
13b2be9c 3648RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3649if test -n "$RANLIB"; then
13b2be9c
DJ
3650 echo "$as_me:$LINENO: result: $RANLIB" >&5
3651echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3652else
13b2be9c
DJ
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
ac48eca1
AO
3655fi
3656
13b2be9c 3657fi
ac48eca1 3658if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3659 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3660 # Extract the first word of "ranlib", so it can be a program name with args.
3661set dummy ranlib; ac_word=$2
13b2be9c
DJ
3662echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3666else
13b2be9c
DJ
3667 if test -n "$ac_ct_RANLIB"; then
3668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3669else
13b2be9c
DJ
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_RANLIB="ranlib"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682done
3683
3684 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3685fi
3686fi
13b2be9c
DJ
3687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3688if test -n "$ac_ct_RANLIB"; then
3689 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3690echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3691else
13b2be9c
DJ
3692 echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
ac48eca1
AO
3694fi
3695
13b2be9c 3696 RANLIB=$ac_ct_RANLIB
ac48eca1 3697else
13b2be9c 3698 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3699fi
3700
13b2be9c
DJ
3701if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3703set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3704echo "$as_me:$LINENO: checking for $ac_word" >&5
3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706if test "${ac_cv_prog_STRIP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3708else
3709 if test -n "$STRIP"; then
3710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3711else
13b2be9c
DJ
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723done
3724done
3725
ac48eca1
AO
3726fi
3727fi
13b2be9c 3728STRIP=$ac_cv_prog_STRIP
ac48eca1 3729if test -n "$STRIP"; then
13b2be9c
DJ
3730 echo "$as_me:$LINENO: result: $STRIP" >&5
3731echo "${ECHO_T}$STRIP" >&6
ac48eca1 3732else
13b2be9c
DJ
3733 echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6
ac48eca1
AO
3735fi
3736
13b2be9c 3737fi
ac48eca1 3738if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3739 ac_ct_STRIP=$STRIP
ac48eca1
AO
3740 # Extract the first word of "strip", so it can be a program name with args.
3741set dummy strip; ac_word=$2
13b2be9c
DJ
3742echo "$as_me:$LINENO: checking for $ac_word" >&5
3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3746else
13b2be9c
DJ
3747 if test -n "$ac_ct_STRIP"; then
3748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3749else
13b2be9c
DJ
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_STRIP="strip"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761done
3762done
3763
3764 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3765fi
3766fi
13b2be9c
DJ
3767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3768if test -n "$ac_ct_STRIP"; then
3769 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3770echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3771else
13b2be9c
DJ
3772 echo "$as_me:$LINENO: result: no" >&5
3773echo "${ECHO_T}no" >&6
d6d788bd
L
3774fi
3775
13b2be9c 3776 STRIP=$ac_ct_STRIP
d6d788bd 3777else
13b2be9c 3778 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3779fi
3780
252b5132 3781
252b5132 3782# Check for any special flags to pass to ltconfig.
bedf545c 3783libtool_flags="--cache-file=$cache_file"
252b5132
RH
3784test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3785test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3786test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3787test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3788test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3789
d6d788bd 3790
a74801ba
ILT
3791# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3792if test "${enable_libtool_lock+set}" = set; then
3793 enableval="$enable_libtool_lock"
a74801ba 3794
13b2be9c 3795fi;
a74801ba
ILT
3796test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3797test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3798
13b2be9c 3799
ac48eca1
AO
3800# Check whether --with-pic or --without-pic was given.
3801if test "${with_pic+set}" = set; then
3802 withval="$with_pic"
3803 pic_mode="$withval"
3804else
3805 pic_mode=default
13b2be9c 3806fi;
ac48eca1
AO
3807test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3808test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3809
252b5132
RH
3810# Some flags need to be propagated to the compiler or linker for good
3811# libtool support.
f9c19112 3812case $host in
252b5132
RH
3813*-*-irix6*)
3814 # Find out which ABI we are using.
1ad12f97 3815 echo '#line 3815 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; then
e0001a05
NC
3821 if test "$lt_cv_prog_gnu_ld" = yes; then
3822 case `/usr/bin/file conftest.$ac_objext` in
3823 *32-bit*)
3824 LD="${LD-ld} -melf32bsmip"
3825 ;;
3826 *N32*)
3827 LD="${LD-ld} -melf32bmipn32"
3828 ;;
3829 *64-bit*)
3830 LD="${LD-ld} -melf64bmip"
3831 ;;
3832 esac
3833 else
f9c19112 3834 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3835 *32-bit*)
3836 LD="${LD-ld} -32"
3837 ;;
3838 *N32*)
3839 LD="${LD-ld} -n32"
3840 ;;
3841 *64-bit*)
3842 LD="${LD-ld} -64"
3843 ;;
3844 esac
e0001a05 3845 fi
252b5132
RH
3846 fi
3847 rm -rf conftest*
3848 ;;
3849
4867be41
DJ
3850ia64-*-hpux*)
3851 # Find out which ABI we are using.
3852 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
4867be41
DJ
3858 case "`/usr/bin/file conftest.o`" in
3859 *ELF-32*)
3860 HPUX_IA64_MODE="32"
3861 ;;
3862 *ELF-64*)
3863 HPUX_IA64_MODE="64"
3864 ;;
3865 esac
3866 fi
3867 rm -rf conftest*
3868 ;;
3869
252b5132
RH
3870*-*-sco3.2v5*)
3871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3872 SAVE_CFLAGS="$CFLAGS"
252b5132 3873 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3875echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3876if test "${lt_cv_cc_needs_belf+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3878else
13b2be9c
DJ
3879
3880
ac48eca1 3881 ac_ext=c
ac48eca1 3882ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
bedf545c 3893
13b2be9c
DJ
3894int
3895main ()
3896{
6840198f 3897
13b2be9c
DJ
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext conftest$ac_exeext
3903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 3904 (eval $ac_link) 2>conftest.er1
13b2be9c 3905 ac_status=$?
ab509236
L
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
13b2be9c
DJ
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
1ad12f97
NC
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
ab509236
L
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
bedf545c
ILT
3924 lt_cv_cc_needs_belf=yes
3925else
13b2be9c
DJ
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929lt_cv_cc_needs_belf=no
bedf545c 3930fi
ab509236
L
3931rm -f conftest.err conftest.$ac_objext \
3932 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3933 ac_ext=c
ac48eca1 3934ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3938
bedf545c 3939fi
13b2be9c
DJ
3940echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3941echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3944 CFLAGS="$SAVE_CFLAGS"
3945 fi
252b5132
RH
3946 ;;
3947
d6d788bd 3948
252b5132
RH
3949esac
3950
d6d788bd 3951
bedf545c 3952# Save cache, so that ltconfig can load it
13b2be9c 3953cat >confcache <<\_ACEOF
bedf545c
ILT
3954# This file is a shell script that caches the results of configure
3955# tests run on this system so they can be shared between configure
13b2be9c
DJ
3956# scripts and configure runs, see configure's option --config-cache.
3957# It is not useful on other systems. If it contains results you don't
3958# want to keep, you may remove or edit it.
bedf545c 3959#
13b2be9c
DJ
3960# config.status only pays attention to the cache file if you give it
3961# the --recheck option to rerun configure.
bedf545c 3962#
13b2be9c
DJ
3963# `ac_cv_env_foo' variables (set or unset) will be overridden when
3964# loading this file, other *unset* `ac_cv_foo' will be assigned the
3965# following values.
3966
3967_ACEOF
3968
bedf545c 3969# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3970# but we know of no workaround that is simple, portable, and efficient.
3971# So, don't put newlines in cache variables' values.
3972# Ultrix sh set writes to stderr and can't be redirected directly,
3973# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
3974{
3975 (set) 2>&1 |
3976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3977 *ac_space=\ *)
3978 # `set' does not quote correctly, so add quotes (double-quote
3979 # substitution turns \\\\ into \\, and sed turns \\ into \).
3980 sed -n \
ab509236
L
3981 "s/'/'\\\\''/g;
3982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
3983 ;;
3984 *)
3985 # `set' quotes correctly as required by POSIX, so do not add quotes.
3986 sed -n \
ab509236 3987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
3988 ;;
3989 esac;
3990} |
3991 sed '
3992 t clear
3993 : clear
3994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3995 t end
3996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3997 : end' >>confcache
3998if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 3999 if test -w $cache_file; then
13b2be9c
DJ
4000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4001 cat confcache >$cache_file
bedf545c
ILT
4002 else
4003 echo "not updating unwritable cache $cache_file"
4004 fi
4005fi
4006rm -f confcache
4007
252b5132 4008# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4009AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4010MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4011LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4012AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4013objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4014deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4015${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4016$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
4017|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4018echo "$as_me: error: libtool configure failed" >&2;}
4019 { (exit 1); exit 1; }; }
252b5132 4020
bedf545c
ILT
4021# Reload cache, that may have been modified by ltconfig
4022if test -r "$cache_file"; then
13b2be9c
DJ
4023 # Some versions of bash will fail to source /dev/null (special
4024 # files actually), so we avoid doing that.
4025 if test -f "$cache_file"; then
4026 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4027echo "$as_me: loading cache $cache_file" >&6;}
4028 case $cache_file in
4029 [\\/]* | ?:[\\/]* ) . $cache_file;;
4030 *) . ./$cache_file;;
4031 esac
4032 fi
bedf545c 4033else
13b2be9c
DJ
4034 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4035echo "$as_me: creating cache $cache_file" >&6;}
4036 >$cache_file
bedf545c
ILT
4037fi
4038
d6d788bd 4039
bedf545c 4040# This can be used to rebuild libtool when needed
ac48eca1 4041LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
4042
4043# Always use our own libtool.
4044LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4045
252b5132
RH
4046# Redirect the config.log output again, so that the ltconfig log is not
4047# clobbered by the next message.
4048exec 5>>./config.log
4049
d6d788bd 4050
13b2be9c
DJ
4051
4052
4053
4054
d6d788bd 4055
252b5132
RH
4056user_bfd_gas=
4057# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4058if test "${enable_bfd_assembler+set}" = set; then
4059 enableval="$enable_bfd_assembler"
4060 case "${enableval}" in
4061 yes) need_bfd=yes user_bfd_gas=yes ;;
4062 no) user_bfd_gas=no ;;
13b2be9c
DJ
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4064echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
252b5132 4066esac
13b2be9c 4067fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4068if test "${enable_targets+set}" = set; then
4069 enableval="$enable_targets"
4070 case "${enableval}" in
13b2be9c
DJ
4071 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4072echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4073 { (exit 1); exit 1; }; }
252b5132
RH
4074 ;;
4075 no) enable_targets= ;;
4076 *) enable_targets=$enableval ;;
4077esac
13b2be9c 4078fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4079if test "${enable_commonbfdlib+set}" = set; then
4080 enableval="$enable_commonbfdlib"
4081 case "${enableval}" in
4082 yes) commonbfdlib=true ;;
4083 no) commonbfdlib=false ;;
13b2be9c
DJ
4084 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4085echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4086 { (exit 1); exit 1; }; } ;;
252b5132 4087esac
13b2be9c 4088fi;
252b5132
RH
4089using_cgen=no
4090
0218d1e4 4091build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4092
569acd2c
NC
4093# Check whether --enable-werror or --disable-werror was given.
4094if test "${enable_werror+set}" = set; then
4095 enableval="$enable_werror"
1ad12f97
NC
4096 case "${enableval}" in
4097 yes | y) ERROR_ON_WARNING="yes" ;;
4098 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4099 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4100echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4101 { (exit 1); exit 1; }; } ;;
4102 esac
4103fi;
4104
569acd2c 4105# Enable -Werror by default, suppressing it only for --disable-werror
1ad12f97
NC
4106# or --disable-build-warnings.
4107if test "${ERROR_ON_WARNING}" != no
4108then
4109 build_warnings="$build_warnings -Werror"
4110fi
4111
a2d91340
AC
4112# Check whether --enable-build-warnings or --disable-build-warnings was given.
4113if test "${enable_build_warnings+set}" = set; then
4114 enableval="$enable_build_warnings"
4115 case "${enableval}" in
4116 yes) ;;
4117 no) build_warnings="-w";;
4118 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4119 build_warnings="${build_warnings} ${t}";;
4120 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4121 build_warnings="${t} ${build_warnings}";;
4122 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4123esac
4124if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4125 echo "Setting warning flags = $build_warnings" 6>&1
4126fi
13b2be9c 4127fi; WARN_CFLAGS=""
a2d91340
AC
4128if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4129 WARN_CFLAGS="${build_warnings}"
4130fi
4131
d6d788bd 4132
252b5132 4133# Generate a header file
13b2be9c 4134 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 4135
252b5132 4136
76a27922
ILT
4137# If we are on a DOS filesystem, we must use gdb.ini rather than
4138# .gdbinit.
76a27922 4139case "${host}" in
591d4689 4140 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 4141 GDBINIT="gdb.ini"
13b2be9c
DJ
4142 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4143
4144 ;;
4145 *)
4146 GDBINIT=".gdbinit"
4147 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4148
76a27922
ILT
4149 ;;
4150esac
4151
d6d788bd 4152
44f2f9d2
AM
4153#We need this for the host. BOUT header is in host order.
4154echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4155echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4156if test "${ac_cv_c_bigendian+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159 # See if sys/param.h defines the BYTE_ORDER macro.
4160cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
4166#include <sys/types.h>
4167#include <sys/param.h>
4168
4169int
4170main ()
4171{
4172#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4173 bogus endian macros
4174#endif
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
1ad12f97
NC
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
44f2f9d2
AM
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 # It does; now see whether it defined to BIG_ENDIAN or not.
4203cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209#include <sys/types.h>
4210#include <sys/param.h>
4211
4212int
4213main ()
4214{
4215#if BYTE_ORDER != BIG_ENDIAN
4216 not big endian
4217#endif
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext
4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
1ad12f97
NC
4232 { ac_try='test -z "$ac_c_werror_flag"
4233 || test ! -s conftest.err'
44f2f9d2
AM
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_c_bigendian=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_c_bigendian=no
4251fi
4252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257# It does not; compile a test program.
4258if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4273int
4274main ()
4275{
4276 _ascii (); _ebcdic ();
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281rm -f conftest.$ac_objext
4282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
1ad12f97
NC
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
44f2f9d2
AM
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4304 ac_cv_c_bigendian=yes
4305fi
4306if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4307 if test "$ac_cv_c_bigendian" = unknown; then
4308 ac_cv_c_bigendian=no
4309 else
4310 # finding both strings is unlikely to happen, but who knows?
4311 ac_cv_c_bigendian=unknown
4312 fi
4313fi
4314else
4315 echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318fi
4319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320else
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327int
4328main ()
4329{
4330 /* Are we little or big endian? From Harbison&Steele. */
4331 union
4332 {
4333 long l;
4334 char c[sizeof (long)];
4335 } u;
4336 u.l = 1;
4337 exit (u.c[sizeof (long) - 1] == 1);
4338}
4339_ACEOF
4340rm -f conftest$ac_exeext
4341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_c_bigendian=no
4352else
4353 echo "$as_me: program exited with status $ac_status" >&5
4354echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357( exit $ac_status )
4358ac_cv_c_bigendian=yes
4359fi
4360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4361fi
4362fi
4363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4364fi
4365echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4366echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4367case $ac_cv_c_bigendian in
4368 yes)
4369
4370cat >>confdefs.h <<\_ACEOF
4371#define WORDS_BIGENDIAN 1
4372_ACEOF
4373 ;;
4374 no)
4375 ;;
4376 *)
4377 { { echo "$as_me:$LINENO: error: unknown endianness
4378presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4379echo "$as_me: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4381 { (exit 1); exit 1; }; } ;;
4382esac
4383
4384
252b5132
RH
4385te_file=generic
4386
4387# Makefile target for installing gas in $(tooldir)/bin.
4388install_tooldir=install-exec-tooldir
4389
4390canon_targets=""
15886821 4391all_targets=no
252b5132
RH
4392if test -n "$enable_targets" ; then
4393 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
4394 if test $t = "all"; then
4395 all_targets=yes
4396 continue
4397 fi
6d83c84b 4398 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
4399 if test -n "$result" ; then
4400 canon_targets="$canon_targets $result"
4401# else
4402# # Permit "all", etc. We don't support it yet though.
4403# canon_targets="$canon_targets $t"
4404 fi
4405 done
4406 _gas_uniq_list="$canon_targets"
4407_gas_uniq_newlist=""
4408for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4409 case $_gas_uniq_i in
4410 _gas_uniq_dummy) ;;
4411 *) case " $_gas_uniq_newlist " in
4412 *" $_gas_uniq_i "*) ;;
4413 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4414 esac ;;
4415 esac
4416done
4417canon_targets=$_gas_uniq_newlist
4418
4419fi
4420
4421emulations=""
4422
4423for this_target in $target $canon_targets ; do
4424
14ee9f48
ILT
4425 targ=${this_target}
4426 . ${srcdir}/configure.tgt
4427
4428 case ${target_cpu} in
4429 crisv32)
ae57792d
HPN
4430
4431cat >>confdefs.h <<_ACEOF
4432#define DEFAULT_CRIS_ARCH $arch
4433_ACEOF
4434
14ee9f48 4435 ;;
252b5132
RH
4436 esac
4437
4438 if test ${this_target} = $target ; then
4439 target_cpu_type=${cpu_type}
4440 elif test ${target_cpu_type} != ${cpu_type} ; then
4441 continue
4442 fi
4443
14ee9f48 4444 generic_target=${cpu_type}-${target_vendor}-${target_os}
252b5132 4445 case ${generic_target} in
14ee9f48
ILT
4446 i386-*-sco3.2v5*)
4447 if test ${this_target} = $target; then
13b2be9c
DJ
4448
4449cat >>confdefs.h <<\_ACEOF
252b5132 4450#define SCO_ELF 1
13b2be9c 4451_ACEOF
252b5132 4452
14ee9f48
ILT
4453 fi
4454 ;;
4455
79500683
AM
4456 i386-*-msdosdjgpp* \
4457 | i386-*-go32* \
14ee9f48 4458 | i386-go32-rtems*)
13b2be9c
DJ
4459
4460cat >>confdefs.h <<\_ACEOF
56385375 4461#define STRICTCOFF 1
13b2be9c 4462_ACEOF
14ee9f48
ILT
4463
4464 ;;
4465
4466 i860-*-*)
4467 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4468echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4469 ;;
4470
4471 mips-sony-bsd*)
4472 ;;
79500683 4473 mips-*-bsd*)
14ee9f48 4474 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
13b2be9c 4475echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
14ee9f48
ILT
4476 { (exit 1); exit 1; }; }
4477 ;;
4478
4479 ppc-*-aix5.*)
f8fc3443
NC
4480
4481cat >>confdefs.h <<\_ACEOF
4482#define AIX_WEAK_SUPPORT 1
4483_ACEOF
4484
14ee9f48 4485 ;;
ed84e695 4486 ppc-*-linux-*)
14ee9f48
ILT
4487 case "$endian" in
4488 big) ;;
4489 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
13b2be9c
DJ
4490echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4491 { (exit 1); exit 1; }; } ;;
14ee9f48
ILT
4492 esac
4493 ;;
4494 ppc-*-solaris*)
4495 if test ${this_target} = $target; then
13b2be9c
DJ
4496
4497cat >>confdefs.h <<\_ACEOF
252b5132 4498#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4499_ACEOF
252b5132 4500
14ee9f48
ILT
4501 fi
4502 if test x${endian} = xbig; then
4503 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
13b2be9c
DJ
4504echo "$as_me: error: Solaris must be configured little endian" >&2;}
4505 { (exit 1); exit 1; }; }
14ee9f48
ILT
4506 fi
4507 ;;
4508
4509 sh*-*-symbianelf*)
85fbca6a
NC
4510
4511cat >>confdefs.h <<\_ACEOF
4512#define TARGET_SYMBIAN 1
4513_ACEOF
4514
14ee9f48 4515 ;;
252b5132
RH
4516 esac
4517
4518 if test ${this_target} = $target ; then
4519 endian_def=
4520 if test x${endian} = xbig; then
4521 endian_def=1
4522 elif test x${endian} = xlittle; then
4523 endian_def=0
4524 fi
4525 if test x${endian_def} != x; then
13b2be9c
DJ
4526
4527cat >>confdefs.h <<_ACEOF
252b5132 4528#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4529_ACEOF
252b5132
RH
4530
4531 fi
4532 fi
4533
252b5132
RH
4534# Other random stuff.
4535
316f5878
RS
4536 case ${cpu_type} in
4537 mips)
4538 # Set mips_cpu to the name of the default CPU.
4539 case ${target_cpu} in
4540 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4541 mips_cpu=from-abi
4542 ;;
4543 mipsisa32 | mipsisa32el)
4544 mips_cpu=mips32
4545 ;;
af7ee8bf
CD
4546 mipsisa32r2 | mipsisa32r2el)
4547 mips_cpu=mips32r2
4548 ;;
316f5878
RS
4549 mipsisa64 | mipsisa64el)
4550 mips_cpu=mips64
4551 ;;
5f74bc13
CD
4552 mipsisa64r2 | mipsisa64r2el)
4553 mips_cpu=mips64r2
4554 ;;
316f5878
RS
4555 mipstx39 | mipstx39el)
4556 mips_cpu=r3900
4557 ;;
8f6847cb
RS
4558 mips64vr | mips64vrel)
4559 mips_cpu=vr4100
4560 ;;
5f74bc13 4561 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4562 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4563 ;;
316f5878
RS
4564 mips64* | mipsisa64* | mipsisa32*)
4565 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4566 ;;
4567 *)
13b2be9c
DJ
4568 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4569echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4570 { (exit 1); exit 1; }; }
316f5878
RS
4571 ;;
4572 esac
4573 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4574 # binaries. It's a GNU extension that some OSes don't understand.
4575 # The value only matters on ELF targets.
4576 case ${target} in
4577 *-*-irix*)
4578 use_e_mips_abi_o32=0
4579 ;;
4580 *)
4581 use_e_mips_abi_o32=1
4582 ;;
4583 esac
4584 # Decide whether to generate 32-bit or 64-bit code by default.
4585 # Used to resolve -march=from-abi when an embedded ABI is selected.
4586 case ${target} in
4587 mips64*-*-* | mipsisa64*-*-*)
4588 mips_default_64bit=1
4589 ;;
4590 *)
4591 mips_default_64bit=0
4592 ;;
4593 esac
cac012d6
AO
4594 # Decide which ABI to target by default.
4595 case ${target} in
4596 mips64*-linux* | mips-sgi-irix6*)
4597 mips_default_abi=N32_ABI
4598 ;;
4599 mips*-linux*)
4600 mips_default_abi=O32_ABI
4601 ;;
4602 *)
4603 mips_default_abi=NO_ABI
4604 ;;
4605 esac
13b2be9c
DJ
4606
4607cat >>confdefs.h <<_ACEOF
316f5878 4608#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4609_ACEOF
316f5878 4610
13b2be9c
DJ
4611
4612cat >>confdefs.h <<_ACEOF
316f5878 4613#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4614_ACEOF
316f5878 4615
13b2be9c
DJ
4616
4617cat >>confdefs.h <<_ACEOF
316f5878 4618#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4619_ACEOF
cac012d6 4620
13b2be9c
DJ
4621
4622cat >>confdefs.h <<_ACEOF
cac012d6 4623#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4624_ACEOF
316f5878
RS
4625
4626 ;;
4627 esac
4628
252b5132
RH
4629 # Do we need the opcodes library?
4630 case ${cpu_type} in
4631 vax | i386 | tic30)
4632 ;;
4633
4634 *)
4635 need_opcodes=yes
4636
4637 case "${enable_shared}" in
4638 yes) shared_opcodes=true ;;
4639 *opcodes*) shared_opcodes=true ;;
4640 *) shared_opcodes=false ;;
4641 esac
4642 if test "${shared_opcodes}" = "true"; then
4643 # A shared libopcodes must be linked against libbfd.
4644 need_bfd=yes
4645 fi
4646 ;;
4647 esac
4648
4649 # Any other special object files needed ?
4650 case ${cpu_type} in
1c53c80d 4651 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4652 using_cgen=yes
4653 ;;
4654
0ebb9a87
DB
4655 frv)
4656 using_cgen=yes
4657 ;;
252b5132
RH
4658 m68k)
4659 case ${extra_objects} in
4660 *m68k-parse.o*) ;;
4661 *) extra_objects="$extra_objects m68k-parse.o" ;;
4662 esac
4663 ;;
4664
4665 mips)
13b2be9c 4666 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4667 if test $? -ne 0 ; then
4668 extra_objects="$extra_objects itbl-parse.o"
4669 fi
4670
13b2be9c 4671 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4672 if test $? -ne 0 ; then
4673 extra_objects="$extra_objects itbl-lex.o"
4674 fi
4675
13b2be9c 4676 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4677 if test $? -ne 0 ; then
4678 extra_objects="$extra_objects itbl-ops.o"
4679 fi
4680 ;;
4681
c1e4eef7 4682 i386 | s390 | sparc)
252b5132 4683 if test $this_target = $target ; then
13b2be9c
DJ
4684
4685cat >>confdefs.h <<_ACEOF
252b5132 4686#define DEFAULT_ARCH "${arch}"
13b2be9c 4687_ACEOF
252b5132
RH
4688
4689 fi
4690 ;;
93fbbb04
GK
4691
4692 xstormy16)
4693 using_cgen=yes
4694 ;;
4695
e0001a05
NC
4696 xtensa)
4697 echo ${extra_objects} | grep -s "xtensa-relax.o"
4698 if test $? -ne 0 ; then
4699 extra_objects="$extra_objects xtensa-relax.o"
4700 fi
4701 ;;
4702
252b5132
RH
4703 *)
4704 ;;
4705 esac
4706
4707 if test $using_cgen = yes ; then
4708 case "x${extra_objects}" in
4709 *cgen.o*) ;;
4710 *) extra_objects="$extra_objects cgen.o" ;;
4711 esac
4712 fi
4713
4714# See if we really can support this configuration with the emulation code.
4715
4716 if test $this_target = $target ; then
4717 primary_bfd_gas=$bfd_gas
4718 obj_format=$fmt
4719 te_file=$em
4720
4721 if test $bfd_gas = no ; then
4722 # Can't support other configurations this way.
4723 break
4724 fi
4725 elif test $bfd_gas = no ; then
4726 # Can't support this configuration.
4727 break
4728 fi
4729
4730# From target name and format, produce a list of supported emulations.
4731
4732 case ${generic_target}-${fmt} in
4733 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4734 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4735 big) emulation="mipsbelf mipslelf mipself" ;;
4736 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4737 esac ;;
4738 mips-*-lnews*-ecoff) ;;
4739 mips-*-*-ecoff) case "$endian" in
4740 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4741 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4742 esac ;;
4743 mips-*-*-elf) case "$endian" in
4744 big) emulation="mipsbelf mipslelf mipself" ;;
4745 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4746 esac ;;
906fac54 4747 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4748 # i386-pc-pe-coff != i386-pc-coff.
4749 i386-*-pe-coff) ;;
4c63da97
AM
4750 # Uncommenting the next line will turn on support for i386 AOUT
4751 # for the default linux configuration
4752 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4753 #
4754 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4755 i386-*-coff) emulation="i386coff" ;;
4c63da97 4756 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4757
f9c19112
HPN
4758 # Always all formats. The first stated emulation becomes the default.
4759 cris-*-*aout*) emulation="crisaout criself" ;;
4760 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4761 esac
4762
4763 emulations="$emulations $emulation"
4764
4765done
4766
15886821
L
4767# Turn on all targets if possible
4768if test ${all_targets} = "yes"; then
4769 case ${target_cpu_type} in
4770 i386)
4771 case ${obj_format} in
4772 aout)
4773 emulations="$emulations i386coff i386elf"
4774 ;;
4775 coff)
4776 emulations="$emulations i386aout i386elf"
4777 ;;
4778 elf)
4779 emulations="$emulations i386aout i386coff"
4780 ;;
4781 esac
4782 ;;
4783 esac
4784fi
4785
252b5132
RH
4786# Assign floating point type. Most processors with FP support
4787# IEEE FP. On those that don't support FP at all, usually IEEE
4788# is emulated.
4789case ${target_cpu} in
4790 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4791 pdp11) atof=vax ;;
252b5132
RH
4792 *) atof=ieee ;;
4793esac
4794
4795case "${obj_format}" in
13b2be9c
DJ
4796 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4797echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4798 { (exit 1); exit 1; }; } ;;
252b5132
RH
4799esac
4800
4801# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4802cgen_cpu_prefix=""
4803if test $using_cgen = yes ; then
4804 case ${target_cpu} in
4805 *) cgen_cpu_prefix=${target_cpu} ;;
4806 esac
13b2be9c
DJ
4807
4808
4809cat >>confdefs.h <<\_ACEOF
252b5132 4810#define USING_CGEN 1
13b2be9c 4811_ACEOF
252b5132
RH
4812
4813fi
4814
d6d788bd 4815
252b5132 4816if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4817 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4818echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4819 { (exit 1); exit 1; }; }
252b5132
RH
4820fi
4821
4822if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4823 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4824echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4825 { (exit 1); exit 1; }; }
252b5132
RH
4826fi
4827
4828case ${user_bfd_gas}-${primary_bfd_gas} in
4829 yes-yes | no-no)
4830 # We didn't override user's choice.
4831 ;;
4832 no-yes)
13b2be9c
DJ
4833 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4834echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4835 ;;
4836 no-preferred)
4837 primary_bfd_gas=no
4838 ;;
4839 *-preferred)
4840 primary_bfd_gas=yes
4841 ;;
4842 yes-*)
4843 primary_bfd_gas=yes
4844 ;;
4845 -*)
4846 # User specified nothing.
4847 ;;
4848esac
4849
4850# Some COFF configurations want these random other flags set.
4851case ${obj_format} in
4852 coff)
4853 case ${target_cpu_type} in
13b2be9c
DJ
4854 i386)
4855cat >>confdefs.h <<\_ACEOF
252b5132 4856#define I386COFF 1
13b2be9c 4857_ACEOF
252b5132 4858 ;;
13b2be9c
DJ
4859 m68k)
4860cat >>confdefs.h <<\_ACEOF
252b5132 4861#define M68KCOFF 1
13b2be9c 4862_ACEOF
252b5132 4863 ;;
13b2be9c
DJ
4864 m88k)
4865cat >>confdefs.h <<\_ACEOF
252b5132 4866#define M88KCOFF 1
13b2be9c 4867_ACEOF
252b5132
RH
4868 ;;
4869 esac
4870 ;;
4871esac
4872
4873# Getting this done right is going to be a bitch. Each configuration specified
4874# with --enable-targets=... should be checked for environment, format, cpu, and
4875# bfd_gas setting.
4876#
4877# For each configuration, the necessary object file support code must be linked
4878# in. This might be only one, it might be up to four. The necessary emulation
4879# code needs to be provided, too.
4880#
4881# And then there's "--enable-targets=all"....
4882#
4883# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4884
4885formats="${obj_format}"
4886emfiles=""
4887EMULATIONS=""
4888_gas_uniq_list="$emulations"
4889_gas_uniq_newlist=""
4890for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4891 case $_gas_uniq_i in
4892 _gas_uniq_dummy) ;;
4893 *) case " $_gas_uniq_newlist " in
4894 *" $_gas_uniq_i "*) ;;
4895 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4896 esac ;;
4897 esac
4898done
4899emulations=$_gas_uniq_newlist
4900
4901for em in . $emulations ; do
4902 case $em in
4903 .) continue ;;
97238fbd 4904 mipsbelf | mipslelf | mipself)
252b5132 4905 fmt=elf file=mipself ;;
97238fbd 4906 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4907 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4908 *coff)
4909 fmt=coff file=$em ;;
4910 *aout)
4911 fmt=aout file=$em ;;
4912 *elf)
4913 fmt=elf file=$em ;;
252b5132
RH
4914 esac
4915 formats="$formats $fmt"
4916 emfiles="$emfiles e-$file.o"
4917 EMULATIONS="$EMULATIONS &$em,"
4918done
4919_gas_uniq_list="$formats"
4920_gas_uniq_newlist=""
4921for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4922 case $_gas_uniq_i in
4923 _gas_uniq_dummy) ;;
4924 *) case " $_gas_uniq_newlist " in
4925 *" $_gas_uniq_i "*) ;;
4926 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4927 esac ;;
4928 esac
4929done
4930formats=$_gas_uniq_newlist
4931
4932_gas_uniq_list="$emfiles"
4933_gas_uniq_newlist=""
4934for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4935 case $_gas_uniq_i in
4936 _gas_uniq_dummy) ;;
4937 *) case " $_gas_uniq_newlist " in
4938 *" $_gas_uniq_i "*) ;;
4939 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4940 esac ;;
4941 esac
4942done
4943emfiles=$_gas_uniq_newlist
4944
4945if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4946 for fmt in $formats ; do
4947 case $fmt in
13b2be9c
DJ
4948 aout)
4949cat >>confdefs.h <<\_ACEOF
252b5132 4950#define OBJ_MAYBE_AOUT 1
13b2be9c 4951_ACEOF
252b5132 4952 ;;
13b2be9c
DJ
4953 bout)
4954cat >>confdefs.h <<\_ACEOF
252b5132 4955#define OBJ_MAYBE_BOUT 1
13b2be9c 4956_ACEOF
252b5132 4957 ;;
13b2be9c
DJ
4958 coff)
4959cat >>confdefs.h <<\_ACEOF
252b5132 4960#define OBJ_MAYBE_COFF 1
13b2be9c 4961_ACEOF
252b5132 4962 ;;
13b2be9c
DJ
4963 ecoff)
4964cat >>confdefs.h <<\_ACEOF
252b5132 4965#define OBJ_MAYBE_ECOFF 1
13b2be9c 4966_ACEOF
252b5132 4967 ;;
13b2be9c
DJ
4968 elf)
4969cat >>confdefs.h <<\_ACEOF
252b5132 4970#define OBJ_MAYBE_ELF 1
13b2be9c 4971_ACEOF
252b5132 4972 ;;
13b2be9c
DJ
4973 generic)
4974cat >>confdefs.h <<\_ACEOF
252b5132 4975#define OBJ_MAYBE_GENERIC 1
13b2be9c 4976_ACEOF
252b5132 4977 ;;
13b2be9c
DJ
4978 hp300)
4979cat >>confdefs.h <<\_ACEOF
252b5132 4980#define OBJ_MAYBE_HP300 1
13b2be9c 4981_ACEOF
252b5132 4982 ;;
13b2be9c
DJ
4983 ieee)
4984cat >>confdefs.h <<\_ACEOF
252b5132 4985#define OBJ_MAYBE_IEEE 1
13b2be9c 4986_ACEOF
252b5132 4987 ;;
13b2be9c
DJ
4988 som)
4989cat >>confdefs.h <<\_ACEOF
252b5132 4990#define OBJ_MAYBE_SOM 1
13b2be9c 4991_ACEOF
252b5132
RH
4992 ;;
4993 esac
4994 extra_objects="$extra_objects obj-$fmt.o"
4995 done
4996 obj_format=multi
4997fi
4998if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 4999 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
5000 # e-mips* has more than one emulation per file, e-i386* has just one at the
5001 # moment. If only one emulation is specified, then don't define
5002 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5003 case "${obj_format}${emfiles}" in
5004 multi* | *mips*)
4ca72d38 5005 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
5006
5007cat >>confdefs.h <<\_ACEOF
252b5132 5008#define USE_EMULATIONS 1
13b2be9c 5009_ACEOF
4ca72d38
AM
5010 ;;
5011 esac
252b5132
RH
5012fi
5013
13b2be9c
DJ
5014
5015cat >>confdefs.h <<_ACEOF
252b5132 5016#define EMULATIONS $EMULATIONS
13b2be9c
DJ
5017_ACEOF
5018
252b5132 5019
13b2be9c 5020cat >>confdefs.h <<_ACEOF
252b5132 5021#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 5022_ACEOF
252b5132 5023
d6d788bd 5024
252b5132
RH
5025case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
5026 yes-*-coff) need_bfd=yes ;;
5027 no-*-coff) need_bfd=yes
13b2be9c
DJ
5028
5029cat >>confdefs.h <<\_ACEOF
252b5132 5030#define MANY_SEGMENTS 1
13b2be9c 5031_ACEOF
252b5132
RH
5032 ;;
5033esac
5034
5035reject_dev_configs=yes
5036
5037case ${reject_dev_configs}-${dev} in
5038 yes-yes) # Oops.
13b2be9c
DJ
5039 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5040echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5041 { (exit 1); exit 1; }; }
252b5132
RH
5042 ;;
5043esac
5044
d6d788bd
L
5045
5046
5047
5048
5049
5050
252b5132 5051case "${primary_bfd_gas}" in
13b2be9c
DJ
5052 yes)
5053cat >>confdefs.h <<\_ACEOF
252b5132 5054#define BFD_ASSEMBLER 1
13b2be9c 5055_ACEOF
252b5132
RH
5056
5057 need_bfd=yes ;;
5058esac
5059
5060# do we need the opcodes library?
5061case "${need_opcodes}" in
5062yes)
5063 OPCODES_LIB=../opcodes/libopcodes.la
5064 ;;
5065esac
5066
5067case "${need_bfd}" in
5068yes)
5069 BFDLIB=../bfd/libbfd.la
4001ad8c 5070 BFDVER_H=../bfd/bfdver.h
29589b0c 5071 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
252b5132
RH
5072 ;;
5073esac
5074
d6d788bd
L
5075
5076
5077
5078
5079
4001ad8c 5080
13b2be9c
DJ
5081
5082cat >>confdefs.h <<_ACEOF
252b5132 5083#define TARGET_ALIAS "${target_alias}"
13b2be9c 5084_ACEOF
9b2b7d69 5085
13b2be9c
DJ
5086
5087cat >>confdefs.h <<_ACEOF
252b5132 5088#define TARGET_CANONICAL "${target}"
13b2be9c 5089_ACEOF
9b2b7d69 5090
13b2be9c
DJ
5091
5092cat >>confdefs.h <<_ACEOF
252b5132 5093#define TARGET_CPU "${target_cpu}"
13b2be9c 5094_ACEOF
9b2b7d69 5095
13b2be9c
DJ
5096
5097cat >>confdefs.h <<_ACEOF
252b5132 5098#define TARGET_VENDOR "${target_vendor}"
13b2be9c 5099_ACEOF
9b2b7d69 5100
13b2be9c
DJ
5101
5102cat >>confdefs.h <<_ACEOF
252b5132 5103#define TARGET_OS "${target_os}"
13b2be9c
DJ
5104_ACEOF
5105
5106
5107ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5114set dummy ${ac_tool_prefix}gcc; ac_word=$2
5115echo "$as_me:$LINENO: checking for $ac_word" >&5
5116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5117if test "${ac_cv_prog_CC+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120 if test -n "$CC"; then
5121 ac_cv_prog_CC="$CC" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134done
5135done
252b5132 5136
13b2be9c
DJ
5137fi
5138fi
5139CC=$ac_cv_prog_CC
5140if test -n "$CC"; then
5141 echo "$as_me:$LINENO: result: $CC" >&5
5142echo "${ECHO_T}$CC" >&6
5143else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146fi
252b5132 5147
13b2be9c
DJ
5148fi
5149if test -z "$ac_cv_prog_CC"; then
5150 ac_ct_CC=$CC
5151 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5152set dummy gcc; ac_word=$2
13b2be9c
DJ
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 if test -n "$ac_ct_CC"; then
5159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_ac_ct_CC="gcc"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173done
5174
5175fi
5176fi
5177ac_ct_CC=$ac_cv_prog_ac_ct_CC
5178if test -n "$ac_ct_CC"; then
5179 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5180echo "${ECHO_T}$ac_ct_CC" >&6
5181else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184fi
5185
5186 CC=$ac_ct_CC
5187else
5188 CC="$ac_cv_prog_CC"
5189fi
5190
5191if test -z "$CC"; then
5192 if test -n "$ac_tool_prefix"; then
5193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5194set dummy ${ac_tool_prefix}cc; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_CC+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5199else
5200 if test -n "$CC"; then
5201 ac_cv_prog_CC="$CC" # Let the user override the test.
5202else
13b2be9c
DJ
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_CC="${ac_tool_prefix}cc"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
252b5132
RH
5217fi
5218fi
13b2be9c 5219CC=$ac_cv_prog_CC
252b5132 5220if test -n "$CC"; then
13b2be9c
DJ
5221 echo "$as_me:$LINENO: result: $CC" >&5
5222echo "${ECHO_T}$CC" >&6
5223else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228fi
5229if test -z "$ac_cv_prog_CC"; then
5230 ac_ct_CC=$CC
5231 # Extract the first word of "cc", so it can be a program name with args.
5232set dummy cc; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5237else
13b2be9c
DJ
5238 if test -n "$ac_ct_CC"; then
5239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_ac_ct_CC="cc"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253done
5254
5255fi
5256fi
5257ac_ct_CC=$ac_cv_prog_ac_ct_CC
5258if test -n "$ac_ct_CC"; then
5259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5260echo "${ECHO_T}$ac_ct_CC" >&6
5261else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264fi
5265
5266 CC=$ac_ct_CC
5267else
5268 CC="$ac_cv_prog_CC"
6840198f
NC
5269fi
5270
13b2be9c 5271fi
252b5132
RH
5272if test -z "$CC"; then
5273 # Extract the first word of "cc", so it can be a program name with args.
5274set dummy cc; ac_word=$2
13b2be9c
DJ
5275echo "$as_me:$LINENO: checking for $ac_word" >&5
5276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5277if test "${ac_cv_prog_CC+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5279else
5280 if test -n "$CC"; then
5281 ac_cv_prog_CC="$CC" # Let the user override the test.
5282else
252b5132 5283 ac_prog_rejected=no
13b2be9c
DJ
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5292 ac_prog_rejected=yes
5293 continue
5294 fi
5295 ac_cv_prog_CC="cc"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
5301
252b5132
RH
5302if test $ac_prog_rejected = yes; then
5303 # We found a bogon in the path, so make sure we never use it.
5304 set dummy $ac_cv_prog_CC
5305 shift
13b2be9c 5306 if test $# != 0; then
252b5132
RH
5307 # We chose a different compiler from the bogus one.
5308 # However, it has the same basename, so the bogon will be chosen
5309 # first if we set CC to just the basename; use the full file name.
5310 shift
13b2be9c 5311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5312 fi
5313fi
5314fi
5315fi
13b2be9c 5316CC=$ac_cv_prog_CC
252b5132 5317if test -n "$CC"; then
13b2be9c
DJ
5318 echo "$as_me:$LINENO: result: $CC" >&5
5319echo "${ECHO_T}$CC" >&6
252b5132 5320else
13b2be9c
DJ
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
252b5132
RH
5323fi
5324
13b2be9c
DJ
5325fi
5326if test -z "$CC"; then
5327 if test -n "$ac_tool_prefix"; then
5328 for ac_prog in cl
5329 do
5330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332echo "$as_me:$LINENO: checking for $ac_word" >&5
5333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5334if test "${ac_cv_prog_CC+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5336else
5337 if test -n "$CC"; then
5338 ac_cv_prog_CC="$CC" # Let the user override the test.
5339else
13b2be9c
DJ
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351done
5352done
5353
252b5132
RH
5354fi
5355fi
13b2be9c 5356CC=$ac_cv_prog_CC
252b5132 5357if test -n "$CC"; then
13b2be9c
DJ
5358 echo "$as_me:$LINENO: result: $CC" >&5
5359echo "${ECHO_T}$CC" >&6
c8615825 5360else
13b2be9c
DJ
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
c8615825 5363fi
6840198f 5364
13b2be9c
DJ
5365 test -n "$CC" && break
5366 done
5367fi
5368if test -z "$CC"; then
5369 ac_ct_CC=$CC
5370 for ac_prog in cl
5371do
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373set dummy $ac_prog; ac_word=$2
5374echo "$as_me:$LINENO: checking for $ac_word" >&5
5375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5378else
13b2be9c
DJ
5379 if test -n "$ac_ct_CC"; then
5380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5381else
13b2be9c
DJ
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_CC="$ac_prog"
5390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393done
5394done
5395
c8615825
AM
5396fi
5397fi
13b2be9c
DJ
5398ac_ct_CC=$ac_cv_prog_ac_ct_CC
5399if test -n "$ac_ct_CC"; then
5400 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5401echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5402else
13b2be9c
DJ
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
c8615825 5405fi
252b5132 5406
13b2be9c
DJ
5407 test -n "$ac_ct_CC" && break
5408done
5409
5410 CC=$ac_ct_CC
5411fi
5412
5413fi
5414
5415
5416test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5417See \`config.log' for more details." >&5
5418echo "$as_me: error: no acceptable C compiler found in \$PATH
5419See \`config.log' for more details." >&2;}
5420 { (exit 1); exit 1; }; }
5421
5422# Provide some information about the compiler.
5423echo "$as_me:$LINENO:" \
5424 "checking for C compiler version" >&5
5425ac_compiler=`set X $ac_compile; echo $2`
5426{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5427 (eval $ac_compiler --version </dev/null >&5) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }
5431{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5432 (eval $ac_compiler -v </dev/null >&5) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5437 (eval $ac_compiler -V </dev/null >&5) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441
5442echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5443echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5444if test "${ac_cv_c_compiler_gnu+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
5453
5454int
5455main ()
5456{
5457#ifndef __GNUC__
5458 choke me
5459#endif
5460
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext
5466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5467 (eval $ac_compile) 2>conftest.er1
13b2be9c 5468 ac_status=$?
ab509236
L
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
13b2be9c
DJ
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
1ad12f97
NC
5474 { ac_try='test -z "$ac_c_werror_flag"
5475 || test ! -s conftest.err'
ab509236
L
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 (eval $ac_try) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; } &&
5481 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_compiler_gnu=yes
5488else
5489 echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492ac_compiler_gnu=no
5493fi
ab509236 5494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5495ac_cv_c_compiler_gnu=$ac_compiler_gnu
5496
5497fi
5498echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5499echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5500GCC=`test $ac_compiler_gnu = yes && echo yes`
5501ac_test_CFLAGS=${CFLAGS+set}
5502ac_save_CFLAGS=$CFLAGS
5503CFLAGS="-g"
5504echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5505echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5506if test "${ac_cv_prog_cc_g+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
5516int
5517main ()
5518{
5519
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext
5525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5526 (eval $ac_compile) 2>conftest.er1
13b2be9c 5527 ac_status=$?
ab509236
L
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
13b2be9c
DJ
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
1ad12f97
NC
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
ab509236
L
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
252b5132
RH
5546 ac_cv_prog_cc_g=yes
5547else
13b2be9c
DJ
5548 echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5550
13b2be9c 5551ac_cv_prog_cc_g=no
252b5132 5552fi
ab509236 5553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5554fi
5555echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5556echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5557if test "$ac_test_CFLAGS" = set; then
13b2be9c 5558 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5559elif test $ac_cv_prog_cc_g = yes; then
5560 if test "$GCC" = yes; then
5561 CFLAGS="-g -O2"
5562 else
5563 CFLAGS="-g"
5564 fi
5565else
9b2b7d69
MM
5566 if test "$GCC" = yes; then
5567 CFLAGS="-O2"
5568 else
5569 CFLAGS=
5570 fi
5571fi
13b2be9c
DJ
5572echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5573echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5574if test "${ac_cv_prog_cc_stdc+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 ac_cv_prog_cc_stdc=no
5578ac_save_CC=$CC
5579cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585#include <stdarg.h>
5586#include <stdio.h>
5587#include <sys/types.h>
5588#include <sys/stat.h>
5589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5590struct buf { int x; };
5591FILE * (*rcsopen) (struct buf *, struct stat *, int);
5592static char *e (p, i)
5593 char **p;
5594 int i;
5595{
5596 return p[i];
5597}
5598static char *f (char * (*g) (char **, int), char **p, ...)
5599{
5600 char *s;
5601 va_list v;
5602 va_start (v,p);
5603 s = g (p, va_arg (v,int));
5604 va_end (v);
5605 return s;
5606}
ab509236
L
5607
5608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5609 function prototypes and stuff, but not '\xHH' hex character constants.
5610 These don't provoke an error unfortunately, instead are silently treated
5611 as 'x'. The following induces an error, until -std1 is added to get
5612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5613 array size at least. It's necessary to write '\x00'==0 to get something
5614 that's true only with -std1. */
5615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5616
13b2be9c
DJ
5617int test (int i, double x);
5618struct s1 {int (*f) (int a);};
5619struct s2 {int (*f) (double a);};
5620int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5621int argc;
5622char **argv;
5623int
5624main ()
5625{
5626return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631# Don't try gcc -ansi; that turns off useful extensions and
5632# breaks some systems' header files.
5633# AIX -qlanglvl=ansi
5634# Ultrix and OSF/1 -std1
5635# HP-UX 10.20 and later -Ae
5636# HP-UX older versions -Aa -D_HPUX_SOURCE
5637# SVR4 -Xc -D__EXTENSIONS__
5638for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5639do
5640 CC="$ac_save_CC $ac_arg"
5641 rm -f conftest.$ac_objext
5642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5643 (eval $ac_compile) 2>conftest.er1
13b2be9c 5644 ac_status=$?
ab509236
L
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
13b2be9c
DJ
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
1ad12f97
NC
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
ab509236
L
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_prog_cc_stdc=$ac_arg
5664break
5665else
5666 echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669fi
ab509236 5670rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
5671done
5672rm -f conftest.$ac_ext conftest.$ac_objext
5673CC=$ac_save_CC
5674
5675fi
5676
5677case "x$ac_cv_prog_cc_stdc" in
5678 x|xno)
5679 echo "$as_me:$LINENO: result: none needed" >&5
5680echo "${ECHO_T}none needed" >&6 ;;
5681 *)
5682 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5683echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5684 CC="$CC $ac_cv_prog_cc_stdc" ;;
5685esac
5686
5687# Some people use a C++ compiler to compile C. Since we use `exit',
5688# in C++ we need to declare it. In case someone uses the same compiler
5689# for both compiling C and C++ we need to have the C++ compiler decide
5690# the declaration of exit, since it's the most demanding environment.
5691cat >conftest.$ac_ext <<_ACEOF
5692#ifndef __cplusplus
5693 choke me
5694#endif
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5698 (eval $ac_compile) 2>conftest.er1
13b2be9c 5699 ac_status=$?
ab509236
L
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
13b2be9c
DJ
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
1ad12f97
NC
5705 { ac_try='test -z "$ac_c_werror_flag"
5706 || test ! -s conftest.err'
ab509236
L
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 for ac_declaration in \
ab509236 5719 '' \
13b2be9c
DJ
5720 'extern "C" void std::exit (int) throw (); using std::exit;' \
5721 'extern "C" void std::exit (int); using std::exit;' \
5722 'extern "C" void exit (int) throw ();' \
5723 'extern "C" void exit (int);' \
5724 'void exit (int);'
5725do
5726 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
13dfd2d0 5732$ac_declaration
ab509236 5733#include <stdlib.h>
13b2be9c
DJ
5734int
5735main ()
5736{
5737exit (42);
5738 ;
5739 return 0;
5740}
5741_ACEOF
5742rm -f conftest.$ac_objext
5743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5744 (eval $ac_compile) 2>conftest.er1
13b2be9c 5745 ac_status=$?
ab509236
L
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
13b2be9c
DJ
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
1ad12f97
NC
5751 { ac_try='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
ab509236
L
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
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); }; }; then
5764 :
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769continue
5770fi
ab509236 5771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5772 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778$ac_declaration
5779int
5780main ()
5781{
5782exit (42);
5783 ;
5784 return 0;
5785}
5786_ACEOF
5787rm -f conftest.$ac_objext
5788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5789 (eval $ac_compile) 2>conftest.er1
13b2be9c 5790 ac_status=$?
ab509236
L
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
13b2be9c
DJ
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
1ad12f97
NC
5796 { ac_try='test -z "$ac_c_werror_flag"
5797 || test ! -s conftest.err'
ab509236
L
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 break
5810else
5811 echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814fi
ab509236 5815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5816done
5817rm -f conftest*
5818if test -n "$ac_declaration"; then
5819 echo '#ifdef __cplusplus' >>confdefs.h
5820 echo $ac_declaration >>confdefs.h
5821 echo '#endif' >>confdefs.h
5822fi
5823
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828fi
ab509236 5829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5830ac_ext=c
5831ac_cpp='$CPP $CPPFLAGS'
5832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5835
5836
5837for ac_prog in 'bison -y' byacc
9b2b7d69 5838do
13b2be9c 5839 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5840set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5841echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5843if test "${ac_cv_prog_YACC+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5845else
5846 if test -n "$YACC"; then
5847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5848else
13b2be9c
DJ
5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850for as_dir in $PATH
5851do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_YACC="$ac_prog"
5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860done
5861done
5862
c8615825
AM
5863fi
5864fi
13b2be9c 5865YACC=$ac_cv_prog_YACC
c8615825 5866if test -n "$YACC"; then
13b2be9c
DJ
5867 echo "$as_me:$LINENO: result: $YACC" >&5
5868echo "${ECHO_T}$YACC" >&6
c8615825 5869else
13b2be9c
DJ
5870 echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
c8615825
AM
5872fi
5873
13b2be9c 5874 test -n "$YACC" && break
c8615825
AM
5875done
5876test -n "$YACC" || YACC="yacc"
5877
13b2be9c
DJ
5878for ac_prog in flex lex
5879do
5880 # Extract the first word of "$ac_prog", so it can be a program name with args.
5881set dummy $ac_prog; ac_word=$2
5882echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5884if test "${ac_cv_prog_LEX+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5886else
13b2be9c
DJ
5887 if test -n "$LEX"; then
5888 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5889else
13b2be9c
DJ
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_LEX="$ac_prog"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902done
5903
5904fi
5905fi
5906LEX=$ac_cv_prog_LEX
5907if test -n "$LEX"; then
5908 echo "$as_me:$LINENO: result: $LEX" >&5
5909echo "${ECHO_T}$LEX" >&6
c8615825 5910else
13b2be9c
DJ
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
5913fi
5914
5915 test -n "$LEX" && break
5916done
5917test -n "$LEX" || LEX=":"
5918
5919if test -z "$LEXLIB"
5920then
5921 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5922echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5923if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926 ac_check_lib_save_LIBS=$LIBS
5927LIBS="-lfl $LIBS"
5928cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934
5935/* Override any gcc2 internal prototype to avoid an error. */
5936#ifdef __cplusplus
5937extern "C"
5938#endif
5939/* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5941char yywrap ();
5942int
5943main ()
5944{
5945yywrap ();
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext conftest$ac_exeext
5951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 5952 (eval $ac_link) 2>conftest.er1
13b2be9c 5953 ac_status=$?
ab509236
L
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
13b2be9c
DJ
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
1ad12f97
NC
5959 { ac_try='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
ab509236
L
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_lib_fl_yywrap=yes
5973else
5974 echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977ac_cv_lib_fl_yywrap=no
5978fi
ab509236
L
5979rm -f conftest.err conftest.$ac_objext \
5980 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
5981LIBS=$ac_check_lib_save_LIBS
5982fi
5983echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5984echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5985if test $ac_cv_lib_fl_yywrap = yes; then
5986 LEXLIB="-lfl"
5987else
5988 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5989echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5990if test "${ac_cv_lib_l_yywrap+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993 ac_check_lib_save_LIBS=$LIBS
5994LIBS="-ll $LIBS"
5995cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
6001
6002/* Override any gcc2 internal prototype to avoid an error. */
6003#ifdef __cplusplus
6004extern "C"
6005#endif
6006/* We use char because int might match the return type of a gcc2
6007 builtin and then its argument prototype would still apply. */
6008char yywrap ();
6009int
6010main ()
6011{
6012yywrap ();
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext conftest$ac_exeext
6018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6019 (eval $ac_link) 2>conftest.er1
13b2be9c 6020 ac_status=$?
ab509236
L
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
13b2be9c
DJ
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
1ad12f97
NC
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
ab509236
L
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_lib_l_yywrap=yes
9b2b7d69 6040else
13b2be9c
DJ
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044ac_cv_lib_l_yywrap=no
9b2b7d69 6045fi
ab509236
L
6046rm -f conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
13b2be9c 6048LIBS=$ac_check_lib_save_LIBS
9b2b7d69 6049fi
13b2be9c
DJ
6050echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6051echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6052if test $ac_cv_lib_l_yywrap = yes; then
6053 LEXLIB="-ll"
252b5132 6054fi
13b2be9c
DJ
6055
6056fi
6057
252b5132 6058fi
13b2be9c
DJ
6059
6060if test "x$LEX" != "x:"; then
6061 echo "$as_me:$LINENO: checking lex output file root" >&5
6062echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6063if test "${ac_cv_prog_lex_root+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 # The minimal lex program is just a single line: %%. But some broken lexes
6067# (Solaris, I think it was) want two %% lines, so accommodate them.
6068cat >conftest.l <<_ACEOF
6069%%
6070%%
6071_ACEOF
6072{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6073 (eval $LEX conftest.l) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }
6077if test -f lex.yy.c; then
6078 ac_cv_prog_lex_root=lex.yy
6079elif test -f lexyy.c; then
6080 ac_cv_prog_lex_root=lexyy
252b5132 6081else
13b2be9c
DJ
6082 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6083echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6084 { (exit 1); exit 1; }; }
252b5132 6085fi
13b2be9c
DJ
6086fi
6087echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6088echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6089rm -f conftest.l
6090LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 6091
13b2be9c
DJ
6092echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6093echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6094if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6096else
13b2be9c
DJ
6097 # POSIX says lex can declare yytext either as a pointer or an array; the
6098# default is implementation-dependent. Figure out which it is, since
6099# not all implementations provide the %pointer and %array declarations.
6100ac_cv_prog_lex_yytext_pointer=no
6101echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6102ac_save_LIBS=$LIBS
6103LIBS="$LIBS $LEXLIB"
6104cat >conftest.$ac_ext <<_ACEOF
6105`cat $LEX_OUTPUT_ROOT.c`
6106_ACEOF
6107rm -f conftest.$ac_objext conftest$ac_exeext
6108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6109 (eval $ac_link) 2>conftest.er1
13b2be9c 6110 ac_status=$?
ab509236
L
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
13b2be9c
DJ
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
1ad12f97
NC
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
ab509236
L
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_prog_lex_yytext_pointer=yes
252b5132 6130else
13b2be9c
DJ
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
252b5132 6134fi
ab509236
L
6135rm -f conftest.err conftest.$ac_objext \
6136 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6137LIBS=$ac_save_LIBS
6138rm -f "${LEX_OUTPUT_ROOT}.c"
6139
252b5132 6140fi
13b2be9c
DJ
6141echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6142echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6143if test $ac_cv_prog_lex_yytext_pointer = yes; then
6144
6145cat >>confdefs.h <<\_ACEOF
6146#define YYTEXT_POINTER 1
6147_ACEOF
6148
6149fi
6150
6151fi
6152if test "$LEX" = :; then
6153 LEX=${am_missing_run}flex
6154fi
6155
6156ALL_LINGUAS="fr tr es"
6157if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6160echo "$as_me:$LINENO: checking for $ac_word" >&5
6161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162if test "${ac_cv_prog_RANLIB+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 if test -n "$RANLIB"; then
6166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179done
6180done
6181
6182fi
6183fi
6184RANLIB=$ac_cv_prog_RANLIB
6185if test -n "$RANLIB"; then
6186 echo "$as_me:$LINENO: result: $RANLIB" >&5
6187echo "${ECHO_T}$RANLIB" >&6
252b5132 6188else
13b2be9c
DJ
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
252b5132
RH
6191fi
6192
13b2be9c
DJ
6193fi
6194if test -z "$ac_cv_prog_RANLIB"; then
6195 ac_ct_RANLIB=$RANLIB
6196 # Extract the first word of "ranlib", so it can be a program name with args.
6197set dummy ranlib; ac_word=$2
6198echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 if test -n "$ac_ct_RANLIB"; then
6204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_ac_ct_RANLIB="ranlib"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
6840198f 6218done
d6d788bd 6219
13b2be9c
DJ
6220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6221fi
6222fi
6223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6224if test -n "$ac_ct_RANLIB"; then
6225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6226echo "${ECHO_T}$ac_ct_RANLIB" >&6
d6d788bd 6227else
13b2be9c
DJ
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230fi
6231
6232 RANLIB=$ac_ct_RANLIB
d6d788bd 6233else
13b2be9c
DJ
6234 RANLIB="$ac_cv_prog_RANLIB"
6235fi
6236
6237ac_ext=c
6238ac_cpp='$CPP $CPPFLAGS'
6239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241ac_compiler_gnu=$ac_cv_c_compiler_gnu
6242echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6243echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6244# On Suns, sometimes $CPP names a directory.
6245if test -n "$CPP" && test -d "$CPP"; then
6246 CPP=
d6d788bd 6247fi
13b2be9c
DJ
6248if test -z "$CPP"; then
6249 if test "${ac_cv_prog_CPP+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252 # Double quotes because CPP needs to be expanded
6253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6254 do
6255 ac_preproc_ok=false
6256for ac_c_preproc_warn_flag in '' yes
6257do
6258 # Use a header file that comes with gcc, so configuring glibc
6259 # with a fresh cross-compiler works.
6260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6261 # <limits.h> exists even on freestanding compilers.
6262 # On the NeXT, cc -E runs the code through the compiler's parser,
6263 # not just through cpp. "Syntax error" is here to catch this case.
6264 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6265/* confdefs.h. */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h. */
6270#ifdef __STDC__
6271# include <limits.h>
6272#else
6273# include <assert.h>
6274#endif
ab509236 6275 Syntax error
13b2be9c
DJ
6276_ACEOF
6277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null; then
6285 if test -s conftest.err; then
6286 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6288 else
6289 ac_cpp_err=
6290 fi
6291else
6292 ac_cpp_err=yes
d6d788bd 6293fi
13b2be9c
DJ
6294if test -z "$ac_cpp_err"; then
6295 :
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 # Broken: fails on valid input.
6301continue
6302fi
6303rm -f conftest.err conftest.$ac_ext
6304
6305 # OK, works on sane cases. Now check whether non-existent headers
6306 # can be detected and how.
6307 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313#include <ac_nonexistent.h>
6314_ACEOF
6315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6326 else
6327 ac_cpp_err=
6328 fi
d6d788bd 6329else
13b2be9c 6330 ac_cpp_err=yes
d6d788bd 6331fi
13b2be9c
DJ
6332if test -z "$ac_cpp_err"; then
6333 # Broken: success on invalid input.
6334continue
6335else
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6338
13b2be9c
DJ
6339 # Passes both tests.
6340ac_preproc_ok=:
6341break
6342fi
6343rm -f conftest.err conftest.$ac_ext
252b5132 6344
13b2be9c
DJ
6345done
6346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6347rm -f conftest.err conftest.$ac_ext
6348if $ac_preproc_ok; then
6349 break
9b2b7d69 6350fi
13b2be9c
DJ
6351
6352 done
6353 ac_cv_prog_CPP=$CPP
9b2b7d69 6354
d6d788bd 6355fi
13b2be9c 6356 CPP=$ac_cv_prog_CPP
c8615825 6357else
13b2be9c 6358 ac_cv_prog_CPP=$CPP
c8615825 6359fi
13b2be9c
DJ
6360echo "$as_me:$LINENO: result: $CPP" >&5
6361echo "${ECHO_T}$CPP" >&6
6362ac_preproc_ok=false
6363for ac_c_preproc_warn_flag in '' yes
6364do
6365 # Use a header file that comes with gcc, so configuring glibc
6366 # with a fresh cross-compiler works.
6367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6368 # <limits.h> exists even on freestanding compilers.
6369 # On the NeXT, cc -E runs the code through the compiler's parser,
6370 # not just through cpp. "Syntax error" is here to catch this case.
6371 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377#ifdef __STDC__
6378# include <limits.h>
6379#else
6380# include <assert.h>
6381#endif
ab509236 6382 Syntax error
13b2be9c
DJ
6383_ACEOF
6384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } >/dev/null; then
6392 if test -s conftest.err; then
6393 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6395 else
6396 ac_cpp_err=
6397 fi
6398else
6399 ac_cpp_err=yes
252b5132 6400fi
13b2be9c
DJ
6401if test -z "$ac_cpp_err"; then
6402 :
252b5132 6403else
13b2be9c
DJ
6404 echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 # Broken: fails on valid input.
6408continue
6409fi
6410rm -f conftest.err conftest.$ac_ext
6411
6412 # OK, works on sane cases. Now check whether non-existent headers
6413 # can be detected and how.
6414 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6415/* confdefs.h. */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h. */
6420#include <ac_nonexistent.h>
6421_ACEOF
6422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } >/dev/null; then
6430 if test -s conftest.err; then
6431 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6433 else
6434 ac_cpp_err=
6435 fi
252b5132 6436else
13b2be9c 6437 ac_cpp_err=yes
252b5132 6438fi
13b2be9c
DJ
6439if test -z "$ac_cpp_err"; then
6440 # Broken: success on invalid input.
6441continue
252b5132 6442else
13b2be9c
DJ
6443 echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6445
13b2be9c
DJ
6446 # Passes both tests.
6447ac_preproc_ok=:
6448break
252b5132 6449fi
13b2be9c 6450rm -f conftest.err conftest.$ac_ext
252b5132 6451
13b2be9c
DJ
6452done
6453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6454rm -f conftest.err conftest.$ac_ext
6455if $ac_preproc_ok; then
6456 :
6457else
6458 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6459See \`config.log' for more details." >&5
6460echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6461See \`config.log' for more details." >&2;}
6462 { (exit 1); exit 1; }; }
252b5132 6463fi
9b2b7d69 6464
13b2be9c
DJ
6465ac_ext=c
6466ac_cpp='$CPP $CPPFLAGS'
6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6470
6471
13b2be9c
DJ
6472echo "$as_me:$LINENO: checking for egrep" >&5
6473echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6474if test "${ac_cv_prog_egrep+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6476else
13b2be9c
DJ
6477 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6478 then ac_cv_prog_egrep='grep -E'
6479 else ac_cv_prog_egrep='egrep'
c8615825 6480 fi
6840198f 6481fi
13b2be9c
DJ
6482echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6483echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6484 EGREP=$ac_cv_prog_egrep
6840198f 6485
13b2be9c
DJ
6486
6487echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6488echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6489if test "${ac_cv_header_stdc+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6491else
13b2be9c 6492 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6493/* confdefs.h. */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h. */
252b5132
RH
6498#include <stdlib.h>
6499#include <stdarg.h>
6500#include <string.h>
6501#include <float.h>
13b2be9c
DJ
6502
6503int
6504main ()
6505{
6506
6507 ;
6508 return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6513 (eval $ac_compile) 2>conftest.er1
13b2be9c 6514 ac_status=$?
ab509236
L
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
13b2be9c
DJ
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
1ad12f97
NC
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
ab509236
L
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
252b5132
RH
6533 ac_cv_header_stdc=yes
6534else
13b2be9c
DJ
6535 echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538ac_cv_header_stdc=no
252b5132 6539fi
ab509236 6540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6541
6542if test $ac_cv_header_stdc = yes; then
6543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13b2be9c 6544 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6545/* confdefs.h. */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
6549/* end confdefs.h. */
252b5132 6550#include <string.h>
13b2be9c
DJ
6551
6552_ACEOF
252b5132 6553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6554 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
6555 :
6556else
252b5132
RH
6557 ac_cv_header_stdc=no
6558fi
6559rm -f conftest*
6560
6561fi
6562
6563if test $ac_cv_header_stdc = yes; then
6564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13b2be9c 6565 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
252b5132 6571#include <stdlib.h>
13b2be9c
DJ
6572
6573_ACEOF
252b5132 6574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6575 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
6576 :
6577else
252b5132
RH
6578 ac_cv_header_stdc=no
6579fi
6580rm -f conftest*
6581
6582fi
6583
6584if test $ac_cv_header_stdc = yes; then
6585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13b2be9c 6586 if test "$cross_compiling" = yes; then
252b5132
RH
6587 :
6588else
13b2be9c 6589 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
252b5132 6595#include <ctype.h>
13b2be9c
DJ
6596#if ((' ' & 0x0FF) == 0x020)
6597# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6598# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6599#else
6600# define ISLOWER(c) \
ab509236
L
6601 (('a' <= (c) && (c) <= 'i') \
6602 || ('j' <= (c) && (c) <= 'r') \
6603 || ('s' <= (c) && (c) <= 'z'))
13b2be9c
DJ
6604# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6605#endif
c8615825 6606
13b2be9c
DJ
6607#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6608int
6609main ()
6610{
6611 int i;
6612 for (i = 0; i < 256; i++)
6613 if (XOR (islower (i), ISLOWER (i))
ab509236 6614 || toupper (i) != TOUPPER (i))
13b2be9c
DJ
6615 exit(2);
6616 exit (0);
6617}
6618_ACEOF
6619rm -f conftest$ac_exeext
6620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
c8615825
AM
6630 :
6631else
13b2be9c
DJ
6632 echo "$as_me: program exited with status $ac_status" >&5
6633echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636( exit $ac_status )
6637ac_cv_header_stdc=no
c8615825 6638fi
ab509236 6639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c8615825 6640fi
c8615825 6641fi
9b2b7d69 6642fi
13b2be9c
DJ
6643echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6644echo "${ECHO_T}$ac_cv_header_stdc" >&6
c8615825 6645if test $ac_cv_header_stdc = yes; then
13b2be9c
DJ
6646
6647cat >>confdefs.h <<\_ACEOF
c8615825 6648#define STDC_HEADERS 1
13b2be9c 6649_ACEOF
9b2b7d69 6650
c8615825
AM
6651fi
6652
13b2be9c
DJ
6653echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6654echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6655if test "${ac_cv_c_const+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
c8615825 6664
13b2be9c
DJ
6665int
6666main ()
6667{
6668/* FIXME: Include the comments suggested by Paul. */
6669#ifndef __cplusplus
6670 /* Ultrix mips cc rejects this. */
6671 typedef int charset[2];
6672 const charset x;
6673 /* SunOS 4.1.1 cc rejects this. */
6674 char const *const *ccp;
6675 char **p;
6676 /* NEC SVR4.0.2 mips cc rejects this. */
6677 struct point {int x, y;};
6678 static struct point const zero = {0,0};
6679 /* AIX XL C 1.02.0.0 rejects this.
6680 It does not let you subtract one const X* pointer from another in
6681 an arm of an if-expression whose if-part is not a constant
6682 expression */
6683 const char *g = "string";
6684 ccp = &g + (g ? g-g : 0);
6685 /* HPUX 7.0 cc rejects these. */
6686 ++ccp;
6687 p = (char**) ccp;
6688 ccp = (char const *const *) p;
6689 { /* SCO 3.2v4 cc rejects this. */
6690 char *t;
6691 char const *s = 0 ? (char *) 0 : (char const *) 0;
6692
6693 *t++ = 0;
6694 }
6695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6696 int x[] = {25, 17};
6697 const int *foo = &x[0];
6698 ++foo;
6699 }
6700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6701 typedef const int *iptr;
6702 iptr p = 0;
6703 ++p;
6704 }
6705 { /* AIX XL C 1.02.0.0 rejects this saying
6706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6707 struct s { int j; const int *ap[3]; };
6708 struct s *b; b->j = 5;
6709 }
6710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6711 const int foo = 10;
6712 }
6713#endif
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719rm -f conftest.$ac_objext
6720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6721 (eval $ac_compile) 2>conftest.er1
13b2be9c 6722 ac_status=$?
ab509236
L
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
13b2be9c
DJ
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } &&
1ad12f97
NC
6728 { ac_try='test -z "$ac_c_werror_flag"
6729 || test ! -s conftest.err'
ab509236
L
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
252b5132
RH
6741 ac_cv_c_const=yes
6742else
13b2be9c
DJ
6743 echo "$as_me: failed program was:" >&5
6744sed 's/^/| /' conftest.$ac_ext >&5
6745
6746ac_cv_c_const=no
252b5132 6747fi
ab509236 6748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6749fi
13b2be9c
DJ
6750echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6751echo "${ECHO_T}$ac_cv_c_const" >&6
c8615825 6752if test $ac_cv_c_const = no; then
13b2be9c
DJ
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define const
6756_ACEOF
252b5132
RH
6757
6758fi
6759
13b2be9c
DJ
6760echo "$as_me:$LINENO: checking for inline" >&5
6761echo $ECHO_N "checking for inline... $ECHO_C" >&6
6762if test "${ac_cv_c_inline+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6764else
6765 ac_cv_c_inline=no
6766for ac_kw in inline __inline__ __inline; do
13b2be9c 6767 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773#ifndef __cplusplus
6774typedef int foo_t;
6775static $ac_kw foo_t static_foo () {return 0; }
6776$ac_kw foo_t foo () {return 0; }
6777#endif
252b5132 6778
13b2be9c
DJ
6779_ACEOF
6780rm -f conftest.$ac_objext
6781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6782 (eval $ac_compile) 2>conftest.er1
13b2be9c 6783 ac_status=$?
ab509236
L
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
13b2be9c
DJ
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
1ad12f97
NC
6789 { ac_try='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
ab509236
L
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
d6d788bd 6802 ac_cv_c_inline=$ac_kw; break
6840198f 6803else
13b2be9c
DJ
6804 echo "$as_me: failed program was:" >&5
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6840198f 6807fi
ab509236 6808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d6d788bd 6809done
6840198f
NC
6810
6811fi
13b2be9c
DJ
6812echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6813echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
6814
6815
13b2be9c 6816case $ac_cv_c_inline in
d6d788bd 6817 inline | yes) ;;
ab509236
L
6818 *)
6819 case $ac_cv_c_inline in
6820 no) ac_val=;;
6821 *) ac_val=$ac_cv_c_inline;;
6822 esac
6823 cat >>confdefs.h <<_ACEOF
6824#ifndef __cplusplus
6825#define inline $ac_val
6826#endif
13b2be9c 6827_ACEOF
ab509236 6828 ;;
d6d788bd
L
6829esac
6830
13b2be9c
DJ
6831# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ab509236 6842 inttypes.h stdint.h unistd.h
13b2be9c
DJ
6843do
6844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845echo "$as_me:$LINENO: checking for $ac_header" >&5
6846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6847if eval "test \"\${$as_ac_Header+set}\" = set"; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856$ac_includes_default
6857
6858#include <$ac_header>
6859_ACEOF
6860rm -f conftest.$ac_objext
6861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6862 (eval $ac_compile) 2>conftest.er1
13b2be9c 6863 ac_status=$?
ab509236
L
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
13b2be9c
DJ
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
1ad12f97
NC
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
ab509236
L
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 eval "$as_ac_Header=yes"
6883else
6884 echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887eval "$as_ac_Header=no"
6888fi
ab509236 6889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6890fi
6891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6893if test `eval echo '${'$as_ac_Header'}'` = yes; then
6894 cat >>confdefs.h <<_ACEOF
6895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6896_ACEOF
6897
6898fi
6899
6900done
6901
6902
6903echo "$as_me:$LINENO: checking for off_t" >&5
6904echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6905if test "${ac_cv_type_off_t+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6907else
13b2be9c 6908 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6909/* confdefs.h. */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h. */
6914$ac_includes_default
6915int
6916main ()
6917{
6918if ((off_t *) 0)
6919 return 0;
6920if (sizeof (off_t))
6921 return 0;
6922 ;
6923 return 0;
6924}
6925_ACEOF
6926rm -f conftest.$ac_objext
6927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6928 (eval $ac_compile) 2>conftest.er1
13b2be9c 6929 ac_status=$?
ab509236
L
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
13b2be9c
DJ
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
1ad12f97
NC
6935 { ac_try='test -z "$ac_c_werror_flag"
6936 || test ! -s conftest.err'
ab509236
L
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
a2d91340 6948 ac_cv_type_off_t=yes
252b5132 6949else
13b2be9c
DJ
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6952
13b2be9c 6953ac_cv_type_off_t=no
c8615825 6954fi
ab509236 6955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6956fi
6957echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6958echo "${ECHO_T}$ac_cv_type_off_t" >&6
6959if test $ac_cv_type_off_t = yes; then
6960 :
6961else
6962
6963cat >>confdefs.h <<_ACEOF
252b5132 6964#define off_t long
13b2be9c 6965_ACEOF
252b5132
RH
6966
6967fi
6968
13b2be9c
DJ
6969echo "$as_me:$LINENO: checking for size_t" >&5
6970echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6971if test "${ac_cv_type_size_t+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6973else
13b2be9c 6974 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
6980$ac_includes_default
6981int
6982main ()
6983{
6984if ((size_t *) 0)
6985 return 0;
6986if (sizeof (size_t))
6987 return 0;
6988 ;
6989 return 0;
6990}
6991_ACEOF
6992rm -f conftest.$ac_objext
6993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6994 (eval $ac_compile) 2>conftest.er1
13b2be9c 6995 ac_status=$?
ab509236
L
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
13b2be9c
DJ
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
1ad12f97
NC
7001 { ac_try='test -z "$ac_c_werror_flag"
7002 || test ! -s conftest.err'
ab509236
L
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
a2d91340 7014 ac_cv_type_size_t=yes
252b5132 7015else
13b2be9c
DJ
7016 echo "$as_me: failed program was:" >&5
7017sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 7018
13b2be9c
DJ
7019ac_cv_type_size_t=no
7020fi
ab509236 7021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8615825 7022fi
13b2be9c
DJ
7023echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7024echo "${ECHO_T}$ac_cv_type_size_t" >&6
7025if test $ac_cv_type_size_t = yes; then
7026 :
7027else
7028
7029cat >>confdefs.h <<_ACEOF
252b5132 7030#define size_t unsigned
13b2be9c 7031_ACEOF
252b5132
RH
7032
7033fi
7034
7035# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7036# for constant arguments. Useless!
13b2be9c
DJ
7037echo "$as_me:$LINENO: checking for working alloca.h" >&5
7038echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7039if test "${ac_cv_working_alloca_h+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
252b5132 7048#include <alloca.h>
13b2be9c
DJ
7049int
7050main ()
7051{
7052char *p = (char *) alloca (2 * sizeof (int));
7053 ;
7054 return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext conftest$ac_exeext
7058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7059 (eval $ac_link) 2>conftest.er1
13b2be9c 7060 ac_status=$?
ab509236
L
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
13b2be9c
DJ
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
1ad12f97
NC
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
ab509236
L
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_working_alloca_h=yes
7080else
7081 echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084ac_cv_working_alloca_h=no
7085fi
ab509236
L
7086rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7088fi
7089echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7090echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7091if test $ac_cv_working_alloca_h = yes; then
7092
7093cat >>confdefs.h <<\_ACEOF
252b5132 7094#define HAVE_ALLOCA_H 1
13b2be9c 7095_ACEOF
252b5132
RH
7096
7097fi
7098
13b2be9c
DJ
7099echo "$as_me:$LINENO: checking for alloca" >&5
7100echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7101if test "${ac_cv_func_alloca_works+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7103else
13b2be9c 7104 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
252b5132
RH
7110#ifdef __GNUC__
7111# define alloca __builtin_alloca
7112#else
7113# ifdef _MSC_VER
7114# include <malloc.h>
7115# define alloca _alloca
7116# else
7117# if HAVE_ALLOCA_H
7118# include <alloca.h>
7119# else
7120# ifdef _AIX
7121 #pragma alloca
7122# else
7123# ifndef alloca /* predefined by HP cc +Olibcalls */
7124char *alloca ();
7125# endif
7126# endif
7127# endif
7128# endif
7129#endif
7130
13b2be9c
DJ
7131int
7132main ()
7133{
7134char *p = (char *) alloca (1);
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139rm -f conftest.$ac_objext conftest$ac_exeext
7140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7141 (eval $ac_link) 2>conftest.er1
13b2be9c 7142 ac_status=$?
ab509236
L
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
13b2be9c
DJ
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
1ad12f97
NC
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
ab509236
L
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
252b5132
RH
7161 ac_cv_func_alloca_works=yes
7162else
13b2be9c
DJ
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166ac_cv_func_alloca_works=no
252b5132 7167fi
ab509236
L
7168rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
252b5132 7170fi
13b2be9c
DJ
7171echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7172echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 7173
252b5132 7174if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 7175
13b2be9c
DJ
7176cat >>confdefs.h <<\_ACEOF
7177#define HAVE_ALLOCA 1
7178_ACEOF
9b2b7d69 7179
13b2be9c 7180else
c8615825 7181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
7182# that cause trouble. Some versions do not even contain alloca or
7183# contain a buggy version. If you still want to use their alloca,
7184# use ar to extract alloca.o from them instead of compiling alloca.c.
7185
7186ALLOCA=alloca.$ac_objext
7187
7188cat >>confdefs.h <<\_ACEOF
252b5132 7189#define C_ALLOCA 1
13b2be9c 7190_ACEOF
252b5132 7191
d6d788bd 7192
13b2be9c
DJ
7193echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7194echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7195if test "${ac_cv_os_cray+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7197else
13b2be9c 7198 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h. */
252b5132
RH
7204#if defined(CRAY) && ! defined(CRAY2)
7205webecray
7206#else
7207wenotbecray
7208#endif
7209
13b2be9c 7210_ACEOF
252b5132 7211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 7212 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
7213 ac_cv_os_cray=yes
7214else
252b5132
RH
7215 ac_cv_os_cray=no
7216fi
7217rm -f conftest*
7218
7219fi
13b2be9c
DJ
7220echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7221echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 7222if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
7223 for ac_func in _getb67 GETB67 getb67; do
7224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225echo "$as_me:$LINENO: checking for $ac_func" >&5
7226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
ab509236
L
7236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7238#define $ac_func innocuous_$ac_func
7239
252b5132 7240/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7241 which can conflict with char $ac_func (); below.
7242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 <limits.h> exists even on freestanding compilers. */
ab509236 7244
13b2be9c
DJ
7245#ifdef __STDC__
7246# include <limits.h>
7247#else
7248# include <assert.h>
7249#endif
ab509236
L
7250
7251#undef $ac_func
7252
252b5132 7253/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7254#ifdef __cplusplus
7255extern "C"
7256{
7257#endif
252b5132 7258/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7259 builtin and then its argument prototype would still apply. */
7260char $ac_func ();
252b5132
RH
7261/* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265choke me
7266#else
13b2be9c
DJ
7267char (*f) () = $ac_func;
7268#endif
7269#ifdef __cplusplus
7270}
252b5132
RH
7271#endif
7272
13b2be9c
DJ
7273int
7274main ()
7275{
7276return f != $ac_func;
7277 ;
7278 return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext conftest$ac_exeext
7282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7283 (eval $ac_link) 2>conftest.er1
13b2be9c 7284 ac_status=$?
ab509236
L
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
13b2be9c
DJ
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
1ad12f97
NC
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
ab509236
L
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 eval "$as_ac_var=yes"
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308eval "$as_ac_var=no"
7309fi
ab509236
L
7310rm -f conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7312fi
7313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7314echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7315if test `eval echo '${'$as_ac_var'}'` = yes; then
7316
7317cat >>confdefs.h <<_ACEOF
252b5132 7318#define CRAY_STACKSEG_END $ac_func
13b2be9c 7319_ACEOF
252b5132 7320
13b2be9c 7321 break
252b5132
RH
7322fi
7323
13b2be9c 7324 done
252b5132
RH
7325fi
7326
13b2be9c
DJ
7327echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7328echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7329if test "${ac_cv_c_stack_direction+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7331else
7332 if test "$cross_compiling" = yes; then
7333 ac_cv_c_stack_direction=0
7334else
13b2be9c 7335 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7336/* confdefs.h. */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h. */
7341int
252b5132
RH
7342find_stack_direction ()
7343{
7344 static char *addr = 0;
7345 auto char dummy;
7346 if (addr == 0)
7347 {
7348 addr = &dummy;
7349 return find_stack_direction ();
7350 }
7351 else
7352 return (&dummy > addr) ? 1 : -1;
7353}
13b2be9c
DJ
7354
7355int
252b5132
RH
7356main ()
7357{
13b2be9c 7358 exit (find_stack_direction () < 0);
252b5132 7359}
13b2be9c
DJ
7360_ACEOF
7361rm -f conftest$ac_exeext
7362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
252b5132
RH
7372 ac_cv_c_stack_direction=1
7373else
13b2be9c
DJ
7374 echo "$as_me: program exited with status $ac_status" >&5
7375echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378( exit $ac_status )
7379ac_cv_c_stack_direction=-1
252b5132 7380fi
ab509236 7381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7382fi
252b5132 7383fi
13b2be9c
DJ
7384echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7385echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7386
13b2be9c 7387cat >>confdefs.h <<_ACEOF
252b5132 7388#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7389_ACEOF
7390
252b5132
RH
7391
7392fi
7393
13b2be9c
DJ
7394
7395
7396for ac_header in stdlib.h unistd.h
252b5132 7397do
13b2be9c
DJ
7398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7399if eval "test \"\${$as_ac_Header+set}\" = set"; then
7400 echo "$as_me:$LINENO: checking for $ac_header" >&5
7401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7402if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404fi
7405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7407else
7408 # Is the header compilable?
7409echo "$as_me:$LINENO: checking $ac_header usability" >&5
7410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7411cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417$ac_includes_default
7418#include <$ac_header>
7419_ACEOF
7420rm -f conftest.$ac_objext
7421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7422 (eval $ac_compile) 2>conftest.er1
13b2be9c 7423 ac_status=$?
ab509236
L
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
13b2be9c
DJ
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
1ad12f97
NC
7429 { ac_try='test -z "$ac_c_werror_flag"
7430 || test ! -s conftest.err'
ab509236
L
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 ac_header_compiler=yes
7443else
7444 echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447ac_header_compiler=no
7448fi
ab509236 7449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7451echo "${ECHO_T}$ac_header_compiler" >&6
7452
7453# Is the header present?
7454echo "$as_me:$LINENO: checking $ac_header presence" >&5
7455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7456cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7457/* confdefs.h. */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
7461/* end confdefs.h. */
7462#include <$ac_header>
7463_ACEOF
7464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null; then
7472 if test -s conftest.err; then
7473 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7475 else
7476 ac_cpp_err=
7477 fi
252b5132 7478else
13b2be9c
DJ
7479 ac_cpp_err=yes
7480fi
7481if test -z "$ac_cpp_err"; then
7482 ac_header_preproc=yes
7483else
7484 echo "$as_me: failed program was:" >&5
7485sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_header_preproc=no
7488fi
7489rm -f conftest.err conftest.$ac_ext
7490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7491echo "${ECHO_T}$ac_header_preproc" >&6
7492
7493# So? What about this header?
ab509236
L
7494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7495 yes:no: )
13b2be9c
DJ
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7500 ac_header_preproc=yes
13b2be9c 7501 ;;
ab509236 7502 no:yes:* )
13b2be9c
DJ
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7515 (
7516 cat <<\_ASBOX
ab509236
L
7517## ------------------------------------------ ##
7518## Report this to the AC_PACKAGE_NAME lists. ##
7519## ------------------------------------------ ##
13b2be9c
DJ
7520_ASBOX
7521 ) |
7522 sed "s/^/$as_me: WARNING: /" >&2
7523 ;;
7524esac
7525echo "$as_me:$LINENO: checking for $ac_header" >&5
7526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7527if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
ab509236 7530 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7531fi
13b2be9c
DJ
7532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7534
252b5132 7535fi
13b2be9c
DJ
7536if test `eval echo '${'$as_ac_Header'}'` = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7539_ACEOF
7540
252b5132 7541fi
13b2be9c 7542
252b5132
RH
7543done
7544
13b2be9c 7545
252b5132
RH
7546for ac_func in getpagesize
7547do
13b2be9c
DJ
7548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7549echo "$as_me:$LINENO: checking for $ac_func" >&5
7550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7551if eval "test \"\${$as_ac_var+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
ab509236
L
7560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7562#define $ac_func innocuous_$ac_func
7563
252b5132 7564/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7565 which can conflict with char $ac_func (); below.
7566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567 <limits.h> exists even on freestanding compilers. */
ab509236 7568
13b2be9c
DJ
7569#ifdef __STDC__
7570# include <limits.h>
7571#else
7572# include <assert.h>
7573#endif
ab509236
L
7574
7575#undef $ac_func
7576
252b5132 7577/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7578#ifdef __cplusplus
7579extern "C"
7580{
7581#endif
252b5132 7582/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7583 builtin and then its argument prototype would still apply. */
7584char $ac_func ();
252b5132
RH
7585/* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589choke me
7590#else
13b2be9c
DJ
7591char (*f) () = $ac_func;
7592#endif
7593#ifdef __cplusplus
7594}
252b5132
RH
7595#endif
7596
13b2be9c
DJ
7597int
7598main ()
7599{
7600return f != $ac_func;
7601 ;
7602 return 0;
7603}
7604_ACEOF
7605rm -f conftest.$ac_objext conftest$ac_exeext
7606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7607 (eval $ac_link) 2>conftest.er1
13b2be9c 7608 ac_status=$?
ab509236
L
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
13b2be9c
DJ
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
1ad12f97
NC
7614 { ac_try='test -z "$ac_c_werror_flag"
7615 || test ! -s conftest.err'
ab509236
L
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 eval "$as_ac_var=yes"
7628else
7629 echo "$as_me: failed program was:" >&5
7630sed 's/^/| /' conftest.$ac_ext >&5
7631
7632eval "$as_ac_var=no"
7633fi
ab509236
L
7634rm -f conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7636fi
7637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7639if test `eval echo '${'$as_ac_var'}'` = yes; then
7640 cat >>confdefs.h <<_ACEOF
7641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7642_ACEOF
252b5132 7643
252b5132
RH
7644fi
7645done
7646
13b2be9c
DJ
7647echo "$as_me:$LINENO: checking for working mmap" >&5
7648echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7649if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7651else
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_mmap_fixed_mapped=no
7654else
13b2be9c 7655 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
7661$ac_includes_default
7662/* malloc might have been renamed as rpl_malloc. */
7663#undef malloc
d6d788bd 7664
252b5132
RH
7665/* Thanks to Mike Haertel and Jim Avera for this test.
7666 Here is a matrix of mmap possibilities:
7667 mmap private not fixed
7668 mmap private fixed at somewhere currently unmapped
7669 mmap private fixed at somewhere already mapped
7670 mmap shared not fixed
7671 mmap shared fixed at somewhere currently unmapped
7672 mmap shared fixed at somewhere already mapped
7673 For private mappings, we should verify that changes cannot be read()
7674 back from the file, nor mmap's back from the file at a different
7675 address. (There have been systems where private was not correctly
7676 implemented like the infamous i386 svr4.0, and systems where the
13b2be9c 7677 VM page cache was not coherent with the file system buffer cache
252b5132
RH
7678 like early versions of FreeBSD and possibly contemporary NetBSD.)
7679 For shared mappings, we should conversely verify that changes get
13b2be9c 7680 propagated back to all the places they're supposed to be.
252b5132
RH
7681
7682 Grep wants private fixed already mapped.
7683 The main things grep needs to know about mmap are:
7684 * does it exist and is it safe to write into the mmap'd area
7685 * how to use it (BSD variants) */
13b2be9c 7686
252b5132
RH
7687#include <fcntl.h>
7688#include <sys/mman.h>
7689
13b2be9c
DJ
7690#if !STDC_HEADERS && !HAVE_STDLIB_H
7691char *malloc ();
7692#endif
c8615825 7693
13b2be9c
DJ
7694/* This mess was copied from the GNU getpagesize.h. */
7695#if !HAVE_GETPAGESIZE
252b5132 7696/* Assume that all systems that can run configure have sys/param.h. */
13b2be9c 7697# if !HAVE_SYS_PARAM_H
252b5132
RH
7698# define HAVE_SYS_PARAM_H 1
7699# endif
7700
7701# ifdef _SC_PAGESIZE
7702# define getpagesize() sysconf(_SC_PAGESIZE)
7703# else /* no _SC_PAGESIZE */
13b2be9c 7704# if HAVE_SYS_PARAM_H
252b5132
RH
7705# include <sys/param.h>
7706# ifdef EXEC_PAGESIZE
7707# define getpagesize() EXEC_PAGESIZE
7708# else /* no EXEC_PAGESIZE */
7709# ifdef NBPG
7710# define getpagesize() NBPG * CLSIZE
7711# ifndef CLSIZE
7712# define CLSIZE 1
7713# endif /* no CLSIZE */
7714# else /* no NBPG */
7715# ifdef NBPC
7716# define getpagesize() NBPC
7717# else /* no NBPC */
7718# ifdef PAGESIZE
7719# define getpagesize() PAGESIZE
7720# endif /* PAGESIZE */
7721# endif /* no NBPC */
7722# endif /* no NBPG */
7723# endif /* no EXEC_PAGESIZE */
7724# else /* no HAVE_SYS_PARAM_H */
7725# define getpagesize() 8192 /* punt totally */
7726# endif /* no HAVE_SYS_PARAM_H */
7727# endif /* no _SC_PAGESIZE */
7728
7729#endif /* no HAVE_GETPAGESIZE */
7730
252b5132 7731int
13b2be9c 7732main ()
252b5132 7733{
13b2be9c
DJ
7734 char *data, *data2, *data3;
7735 int i, pagesize;
7736 int fd;
7737
7738 pagesize = getpagesize ();
7739
7740 /* First, make a file with some known garbage in it. */
7741 data = (char *) malloc (pagesize);
7742 if (!data)
7743 exit (1);
7744 for (i = 0; i < pagesize; ++i)
7745 *(data + i) = rand ();
7746 umask (0);
7747 fd = creat ("conftest.mmap", 0600);
7748 if (fd < 0)
7749 exit (1);
7750 if (write (fd, data, pagesize) != pagesize)
7751 exit (1);
7752 close (fd);
7753
7754 /* Next, try to mmap the file at a fixed address which already has
7755 something else allocated at it. If we can, also make sure that
7756 we see the same garbage. */
7757 fd = open ("conftest.mmap", O_RDWR);
7758 if (fd < 0)
7759 exit (1);
7760 data2 = (char *) malloc (2 * pagesize);
7761 if (!data2)
7762 exit (1);
ab509236 7763 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
13b2be9c 7764 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
ab509236 7765 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13b2be9c
DJ
7766 exit (1);
7767 for (i = 0; i < pagesize; ++i)
7768 if (*(data + i) != *(data2 + i))
7769 exit (1);
7770
7771 /* Finally, make sure that changes to the mapped area do not
7772 percolate back to the file as seen by read(). (This is a bug on
7773 some variants of i386 svr4.0.) */
7774 for (i = 0; i < pagesize; ++i)
7775 *(data2 + i) = *(data2 + i) + 1;
7776 data3 = (char *) malloc (pagesize);
7777 if (!data3)
7778 exit (1);
7779 if (read (fd, data3, pagesize) != pagesize)
7780 exit (1);
7781 for (i = 0; i < pagesize; ++i)
7782 if (*(data + i) != *(data3 + i))
7783 exit (1);
7784 close (fd);
7785 exit (0);
252b5132 7786}
13b2be9c
DJ
7787_ACEOF
7788rm -f conftest$ac_exeext
7789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790 (eval $ac_link) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
252b5132
RH
7799 ac_cv_func_mmap_fixed_mapped=yes
7800else
13b2be9c
DJ
7801 echo "$as_me: program exited with status $ac_status" >&5
7802echo "$as_me: failed program was:" >&5
7803sed 's/^/| /' conftest.$ac_ext >&5
7804
7805( exit $ac_status )
7806ac_cv_func_mmap_fixed_mapped=no
9b2b7d69 7807fi
ab509236 7808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7809fi
252b5132 7810fi
13b2be9c
DJ
7811echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7812echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c8615825 7813if test $ac_cv_func_mmap_fixed_mapped = yes; then
13b2be9c
DJ
7814
7815cat >>confdefs.h <<\_ACEOF
9b2b7d69 7816#define HAVE_MMAP 1
13b2be9c 7817_ACEOF
9b2b7d69
MM
7818
7819fi
13b2be9c
DJ
7820rm -f conftest.mmap
7821
7822
7823
7824
7825
7826
7827
6840198f 7828
13b2be9c
DJ
7829
7830
7831
7832for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
7833unistd.h values.h sys/param.h
7834do
13b2be9c
DJ
7835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7836if eval "test \"\${$as_ac_Header+set}\" = set"; then
7837 echo "$as_me:$LINENO: checking for $ac_header" >&5
7838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7839if eval "test \"\${$as_ac_Header+set}\" = set"; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841fi
7842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7844else
7845 # Is the header compilable?
7846echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7848cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h. */
7854$ac_includes_default
7855#include <$ac_header>
7856_ACEOF
7857rm -f conftest.$ac_objext
7858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7859 (eval $ac_compile) 2>conftest.er1
13b2be9c 7860 ac_status=$?
ab509236
L
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
13b2be9c
DJ
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
1ad12f97
NC
7866 { ac_try='test -z "$ac_c_werror_flag"
7867 || test ! -s conftest.err'
ab509236
L
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; } &&
7873 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_header_compiler=yes
7880else
7881 echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884ac_header_compiler=no
7885fi
ab509236 7886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7888echo "${ECHO_T}$ac_header_compiler" >&6
7889
7890# Is the header present?
7891echo "$as_me:$LINENO: checking $ac_header presence" >&5
7892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7893cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
7899#include <$ac_header>
7900_ACEOF
7901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } >/dev/null; then
7909 if test -s conftest.err; then
7910 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7912 else
7913 ac_cpp_err=
7914 fi
9b2b7d69 7915else
13b2be9c
DJ
7916 ac_cpp_err=yes
7917fi
7918if test -z "$ac_cpp_err"; then
7919 ac_header_preproc=yes
7920else
7921 echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 ac_header_preproc=no
7925fi
7926rm -f conftest.err conftest.$ac_ext
7927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7928echo "${ECHO_T}$ac_header_preproc" >&6
7929
7930# So? What about this header?
ab509236
L
7931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7932 yes:no: )
13b2be9c
DJ
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7937 ac_header_preproc=yes
13b2be9c 7938 ;;
ab509236 7939 no:yes:* )
13b2be9c
DJ
7940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7952 (
7953 cat <<\_ASBOX
ab509236
L
7954## ------------------------------------------ ##
7955## Report this to the AC_PACKAGE_NAME lists. ##
7956## ------------------------------------------ ##
13b2be9c
DJ
7957_ASBOX
7958 ) |
7959 sed "s/^/$as_me: WARNING: /" >&2
7960 ;;
7961esac
7962echo "$as_me:$LINENO: checking for $ac_header" >&5
7963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
ab509236 7967 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7968fi
13b2be9c
DJ
7969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971
252b5132 7972fi
13b2be9c
DJ
7973if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976_ACEOF
7977
252b5132 7978fi
13b2be9c 7979
252b5132
RH
7980done
7981
13b2be9c
DJ
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7993__argz_count __argz_stringify __argz_next
7994do
13b2be9c
DJ
7995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7996echo "$as_me:$LINENO: checking for $ac_func" >&5
7997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7998if eval "test \"\${$as_ac_var+set}\" = set"; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8002/* confdefs.h. */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h. */
ab509236
L
8007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8009#define $ac_func innocuous_$ac_func
8010
252b5132 8011/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8012 which can conflict with char $ac_func (); below.
8013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8014 <limits.h> exists even on freestanding compilers. */
ab509236 8015
13b2be9c
DJ
8016#ifdef __STDC__
8017# include <limits.h>
8018#else
8019# include <assert.h>
8020#endif
ab509236
L
8021
8022#undef $ac_func
8023
252b5132 8024/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8025#ifdef __cplusplus
8026extern "C"
8027{
8028#endif
252b5132 8029/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8030 builtin and then its argument prototype would still apply. */
8031char $ac_func ();
252b5132
RH
8032/* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036choke me
8037#else
13b2be9c
DJ
8038char (*f) () = $ac_func;
8039#endif
8040#ifdef __cplusplus
8041}
252b5132
RH
8042#endif
8043
13b2be9c
DJ
8044int
8045main ()
8046{
8047return f != $ac_func;
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext conftest$ac_exeext
8053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8054 (eval $ac_link) 2>conftest.er1
13b2be9c 8055 ac_status=$?
ab509236
L
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
13b2be9c
DJ
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
1ad12f97
NC
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
ab509236
L
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 eval "$as_ac_var=yes"
8075else
8076 echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079eval "$as_ac_var=no"
8080fi
ab509236
L
8081rm -f conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8083fi
8084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8086if test `eval echo '${'$as_ac_var'}'` = yes; then
8087 cat >>confdefs.h <<_ACEOF
8088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8089_ACEOF
252b5132 8090
252b5132
RH
8091fi
8092done
8093
6840198f 8094
d6d788bd 8095 if test "${ac_cv_func_stpcpy+set}" != "set"; then
13b2be9c
DJ
8096
8097for ac_func in stpcpy
252b5132 8098do
13b2be9c
DJ
8099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8100echo "$as_me:$LINENO: checking for $ac_func" >&5
8101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8102if eval "test \"\${$as_ac_var+set}\" = set"; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8106/* confdefs.h. */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h. */
ab509236
L
8111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8113#define $ac_func innocuous_$ac_func
8114
252b5132 8115/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8116 which can conflict with char $ac_func (); below.
8117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8118 <limits.h> exists even on freestanding compilers. */
ab509236 8119
13b2be9c
DJ
8120#ifdef __STDC__
8121# include <limits.h>
8122#else
8123# include <assert.h>
8124#endif
ab509236
L
8125
8126#undef $ac_func
8127
252b5132 8128/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8129#ifdef __cplusplus
8130extern "C"
8131{
8132#endif
252b5132 8133/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8134 builtin and then its argument prototype would still apply. */
8135char $ac_func ();
252b5132
RH
8136/* The GNU C library defines this for functions which it implements
8137 to always fail with ENOSYS. Some functions are actually named
8138 something starting with __ and the normal name is an alias. */
8139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8140choke me
8141#else
13b2be9c
DJ
8142char (*f) () = $ac_func;
8143#endif
8144#ifdef __cplusplus
8145}
252b5132
RH
8146#endif
8147
13b2be9c
DJ
8148int
8149main ()
8150{
8151return f != $ac_func;
8152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext conftest$ac_exeext
8157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8158 (eval $ac_link) 2>conftest.er1
13b2be9c 8159 ac_status=$?
ab509236
L
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
13b2be9c
DJ
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
1ad12f97
NC
8165 { ac_try='test -z "$ac_c_werror_flag"
8166 || test ! -s conftest.err'
ab509236
L
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 eval "$as_ac_var=yes"
8179else
8180 echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183eval "$as_ac_var=no"
8184fi
ab509236
L
8185rm -f conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8187fi
8188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8190if test `eval echo '${'$as_ac_var'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193_ACEOF
252b5132 8194
252b5132
RH
8195fi
8196done
8197
8198 fi
8199 if test "${ac_cv_func_stpcpy}" = "yes"; then
13b2be9c
DJ
8200
8201cat >>confdefs.h <<\_ACEOF
252b5132 8202#define HAVE_STPCPY 1
13b2be9c 8203_ACEOF
252b5132
RH
8204
8205 fi
8206
8207 if test $ac_cv_header_locale_h = yes; then
13b2be9c
DJ
8208 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8209echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8210if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212else
8213 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
252b5132 8219#include <locale.h>
13b2be9c
DJ
8220int
8221main ()
8222{
252b5132 8223return LC_MESSAGES
13b2be9c
DJ
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8230 (eval $ac_link) 2>conftest.er1
13b2be9c 8231 ac_status=$?
ab509236
L
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
13b2be9c
DJ
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
1ad12f97
NC
8237 { ac_try='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
ab509236
L
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
252b5132
RH
8250 am_cv_val_LC_MESSAGES=yes
8251else
13b2be9c
DJ
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255am_cv_val_LC_MESSAGES=no
252b5132 8256fi
ab509236
L
8257rm -f conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
252b5132 8259fi
13b2be9c
DJ
8260echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8261echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c8615825 8262 if test $am_cv_val_LC_MESSAGES = yes; then
13b2be9c
DJ
8263
8264cat >>confdefs.h <<\_ACEOF
252b5132 8265#define HAVE_LC_MESSAGES 1
13b2be9c 8266_ACEOF
252b5132
RH
8267
8268 fi
8269 fi
13b2be9c
DJ
8270 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8271echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
8272 # Check whether --enable-nls or --disable-nls was given.
8273if test "${enable_nls+set}" = set; then
8274 enableval="$enable_nls"
8275 USE_NLS=$enableval
8276else
8277 USE_NLS=yes
13b2be9c
DJ
8278fi;
8279 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8280echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 8281
252b5132
RH
8282
8283 USE_INCLUDED_LIBINTL=no
8284
8285 if test "$USE_NLS" = "yes"; then
13b2be9c
DJ
8286 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8287echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8288
8289# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
8290if test "${with_included_gettext+set}" = set; then
8291 withval="$with_included_gettext"
8292 nls_cv_force_use_gnu_gettext=$withval
8293else
8294 nls_cv_force_use_gnu_gettext=no
13b2be9c
DJ
8295fi;
8296 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8297echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
8298
8299 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8300 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8301 nls_cv_header_intl=
8302 nls_cv_header_libgt=
e8093792 8303 CATOBJEXT=
252b5132 8304
13b2be9c
DJ
8305 if test "${ac_cv_header_libintl_h+set}" = set; then
8306 echo "$as_me:$LINENO: checking for libintl.h" >&5
8307echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8308if test "${ac_cv_header_libintl_h+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310fi
8311echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8312echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8313else
8314 # Is the header compilable?
8315echo "$as_me:$LINENO: checking libintl.h usability" >&5
8316echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8317cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323$ac_includes_default
9b2b7d69 8324#include <libintl.h>
13b2be9c
DJ
8325_ACEOF
8326rm -f conftest.$ac_objext
8327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 8328 (eval $ac_compile) 2>conftest.er1
13b2be9c 8329 ac_status=$?
ab509236
L
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
13b2be9c
DJ
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
1ad12f97
NC
8335 { ac_try='test -z "$ac_c_werror_flag"
8336 || test ! -s conftest.err'
ab509236
L
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 ac_header_compiler=yes
8349else
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353ac_header_compiler=no
8354fi
ab509236 8355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
8356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8357echo "${ECHO_T}$ac_header_compiler" >&6
8358
8359# Is the header present?
8360echo "$as_me:$LINENO: checking libintl.h presence" >&5
8361echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8362cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
8368#include <libintl.h>
8369_ACEOF
8370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } >/dev/null; then
8378 if test -s conftest.err; then
8379 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 8380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
8381 else
8382 ac_cpp_err=
8383 fi
252b5132 8384else
13b2be9c
DJ
8385 ac_cpp_err=yes
8386fi
8387if test -z "$ac_cpp_err"; then
8388 ac_header_preproc=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_header_preproc=no
8394fi
8395rm -f conftest.err conftest.$ac_ext
8396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8397echo "${ECHO_T}$ac_header_preproc" >&6
8398
8399# So? What about this header?
ab509236
L
8400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8401 yes:no: )
13b2be9c
DJ
8402 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8403echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
8404 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8405echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8406 ac_header_preproc=yes
13b2be9c 8407 ;;
ab509236 8408 no:yes:* )
13b2be9c
DJ
8409 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8410echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
ab509236
L
8411 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8412echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8414echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8416echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
8417 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8418echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
8419 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8420echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
8421 (
8422 cat <<\_ASBOX
ab509236
L
8423## ------------------------------------------ ##
8424## Report this to the AC_PACKAGE_NAME lists. ##
8425## ------------------------------------------ ##
13b2be9c
DJ
8426_ASBOX
8427 ) |
8428 sed "s/^/$as_me: WARNING: /" >&2
8429 ;;
8430esac
8431echo "$as_me:$LINENO: checking for libintl.h" >&5
8432echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8433if test "${ac_cv_header_libintl_h+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436 ac_cv_header_libintl_h=$ac_header_preproc
8437fi
8438echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8439echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8440
8441fi
8442if test $ac_cv_header_libintl_h = yes; then
8443 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8444echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8445if test "${gt_cv_func_gettext_libc+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
252b5132 8454#include <libintl.h>
13b2be9c
DJ
8455int
8456main ()
8457{
252b5132 8458return (int) gettext ("")
13b2be9c
DJ
8459 ;
8460 return 0;
8461}
8462_ACEOF
8463rm -f conftest.$ac_objext conftest$ac_exeext
8464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8465 (eval $ac_link) 2>conftest.er1
13b2be9c 8466 ac_status=$?
ab509236
L
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
13b2be9c
DJ
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
1ad12f97
NC
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
ab509236
L
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
252b5132
RH
8485 gt_cv_func_gettext_libc=yes
8486else
13b2be9c
DJ
8487 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5
8489
8490gt_cv_func_gettext_libc=no
252b5132 8491fi
ab509236
L
8492rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
252b5132 8494fi
13b2be9c
DJ
8495echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8496echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
8497
8498 if test "$gt_cv_func_gettext_libc" != "yes"; then
13b2be9c
DJ
8499 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8500echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8501if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8503else
13b2be9c 8504 ac_check_lib_save_LIBS=$LIBS
252b5132 8505LIBS="-lintl $LIBS"
13b2be9c 8506cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
8512
252b5132 8513/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8514#ifdef __cplusplus
8515extern "C"
8516#endif
252b5132 8517/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8518 builtin and then its argument prototype would still apply. */
8519char bindtextdomain ();
8520int
8521main ()
8522{
8523bindtextdomain ();
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8530 (eval $ac_link) 2>conftest.er1
13b2be9c 8531 ac_status=$?
ab509236
L
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
13b2be9c
DJ
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
1ad12f97
NC
8537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
ab509236
L
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_lib_intl_bindtextdomain=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555ac_cv_lib_intl_bindtextdomain=no
8556fi
ab509236
L
8557rm -f conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8559LIBS=$ac_check_lib_save_LIBS
8560fi
8561echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8562echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8563if test $ac_cv_lib_intl_bindtextdomain = yes; then
8564 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8565echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8566if test "${gt_cv_func_gettext_libintl+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8570/* confdefs.h. */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h. */
d6d788bd 8575
13b2be9c
DJ
8576int
8577main ()
8578{
252b5132 8579return (int) gettext ("")
13b2be9c
DJ
8580 ;
8581 return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext conftest$ac_exeext
8585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8586 (eval $ac_link) 2>conftest.er1
13b2be9c 8587 ac_status=$?
ab509236
L
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
13b2be9c
DJ
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
1ad12f97
NC
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
ab509236
L
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
252b5132
RH
8606 gt_cv_func_gettext_libintl=yes
8607else
13b2be9c
DJ
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611gt_cv_func_gettext_libintl=no
252b5132 8612fi
ab509236
L
8613rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
252b5132 8615fi
13b2be9c
DJ
8616echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8617echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
8618fi
8619
8620 fi
8621
8622 if test "$gt_cv_func_gettext_libc" = "yes" \
8623 || test "$gt_cv_func_gettext_libintl" = "yes"; then
13b2be9c
DJ
8624
8625cat >>confdefs.h <<\_ACEOF
252b5132 8626#define HAVE_GETTEXT 1
13b2be9c 8627_ACEOF
252b5132
RH
8628
8629 # Extract the first word of "msgfmt", so it can be a program name with args.
8630set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8631echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633if test "${ac_cv_path_MSGFMT+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8635else
8636 case "$MSGFMT" in
8637 /*)
8638 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8639 ;;
8640 *)
8641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8642 for ac_dir in $PATH; do
8643 test -z "$ac_dir" && ac_dir=.
8644 if test -f $ac_dir/$ac_word; then
8645 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8646 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8647 break
8648 fi
8649 fi
8650 done
8651 IFS="$ac_save_ifs"
8652 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8653 ;;
8654esac
8655fi
8656MSGFMT="$ac_cv_path_MSGFMT"
8657if test -n "$MSGFMT"; then
13b2be9c
DJ
8658 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8659echo "${ECHO_T}$MSGFMT" >&6
252b5132 8660else
13b2be9c
DJ
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
252b5132
RH
8663fi
8664 if test "$MSGFMT" != "no"; then
13b2be9c
DJ
8665
8666for ac_func in dcgettext
252b5132 8667do
13b2be9c
DJ
8668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8669echo "$as_me:$LINENO: checking for $ac_func" >&5
8670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8671if eval "test \"\${$as_ac_var+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
ab509236
L
8680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8682#define $ac_func innocuous_$ac_func
8683
252b5132 8684/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8685 which can conflict with char $ac_func (); below.
8686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8687 <limits.h> exists even on freestanding compilers. */
ab509236 8688
13b2be9c
DJ
8689#ifdef __STDC__
8690# include <limits.h>
8691#else
8692# include <assert.h>
8693#endif
ab509236
L
8694
8695#undef $ac_func
8696
252b5132 8697/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8698#ifdef __cplusplus
8699extern "C"
8700{
8701#endif
252b5132 8702/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8703 builtin and then its argument prototype would still apply. */
8704char $ac_func ();
252b5132
RH
8705/* The GNU C library defines this for functions which it implements
8706 to always fail with ENOSYS. Some functions are actually named
8707 something starting with __ and the normal name is an alias. */
8708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8709choke me
8710#else
13b2be9c
DJ
8711char (*f) () = $ac_func;
8712#endif
8713#ifdef __cplusplus
8714}
252b5132
RH
8715#endif
8716
13b2be9c
DJ
8717int
8718main ()
8719{
8720return f != $ac_func;
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725rm -f conftest.$ac_objext conftest$ac_exeext
8726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8727 (eval $ac_link) 2>conftest.er1
13b2be9c 8728 ac_status=$?
ab509236
L
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
13b2be9c
DJ
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
1ad12f97
NC
8734 { ac_try='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
ab509236
L
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 eval "$as_ac_var=yes"
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752eval "$as_ac_var=no"
8753fi
ab509236
L
8754rm -f conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8756fi
8757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8759if test `eval echo '${'$as_ac_var'}'` = yes; then
8760 cat >>confdefs.h <<_ACEOF
8761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8762_ACEOF
252b5132 8763
252b5132
RH
8764fi
8765done
8766
8767 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8768set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771if test "${ac_cv_path_GMSGFMT+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8773else
13b2be9c
DJ
8774 case $GMSGFMT in
8775 [\\/]* | ?:[\\/]*)
252b5132
RH
8776 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8777 ;;
252b5132 8778 *)
13b2be9c
DJ
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH
8781do
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790done
8791done
8792
252b5132
RH
8793 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8794 ;;
8795esac
8796fi
13b2be9c
DJ
8797GMSGFMT=$ac_cv_path_GMSGFMT
8798
252b5132 8799if test -n "$GMSGFMT"; then
13b2be9c
DJ
8800 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8801echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8802else
13b2be9c
DJ
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
252b5132
RH
8805fi
8806
8807 # Extract the first word of "xgettext", so it can be a program name with args.
8808set dummy xgettext; ac_word=$2
13b2be9c
DJ
8809echo "$as_me:$LINENO: checking for $ac_word" >&5
8810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8811if test "${ac_cv_path_XGETTEXT+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8813else
8814 case "$XGETTEXT" in
8815 /*)
8816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8817 ;;
8818 *)
8819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8820 for ac_dir in $PATH; do
8821 test -z "$ac_dir" && ac_dir=.
8822 if test -f $ac_dir/$ac_word; then
8823 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8824 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8825 break
8826 fi
8827 fi
8828 done
8829 IFS="$ac_save_ifs"
8830 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8831 ;;
8832esac
8833fi
8834XGETTEXT="$ac_cv_path_XGETTEXT"
8835if test -n "$XGETTEXT"; then
13b2be9c
DJ
8836 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8837echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8838else
13b2be9c
DJ
8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
252b5132
RH
8841fi
8842
13b2be9c 8843 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8844/* confdefs.h. */
8845_ACEOF
8846cat confdefs.h >>conftest.$ac_ext
8847cat >>conftest.$ac_ext <<_ACEOF
8848/* end confdefs.h. */
252b5132 8849
13b2be9c
DJ
8850int
8851main ()
8852{
252b5132
RH
8853extern int _nl_msg_cat_cntr;
8854 return _nl_msg_cat_cntr
13b2be9c
DJ
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext conftest$ac_exeext
8860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8861 (eval $ac_link) 2>conftest.er1
13b2be9c 8862 ac_status=$?
ab509236
L
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
13b2be9c
DJ
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
1ad12f97
NC
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
ab509236
L
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
252b5132
RH
8881 CATOBJEXT=.gmo
8882 DATADIRNAME=share
8883else
13b2be9c
DJ
8884 echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887CATOBJEXT=.mo
252b5132
RH
8888 DATADIRNAME=lib
8889fi
ab509236
L
8890rm -f conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8892 INSTOBJEXT=.mo
8893 fi
8894 fi
13b2be9c 8895
6840198f 8896fi
252b5132 8897
d6d788bd 8898
13b2be9c
DJ
8899
8900
e8093792
AC
8901 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8902 # Neither gettext nor catgets in included in the C library.
8903 # Fall back on GNU gettext library (assuming it is present).
8904 nls_cv_use_gnu_gettext=yes
252b5132
RH
8905 fi
8906 fi
8907
8908 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8909 INTLOBJS="\$(GETTOBJS)"
8910 # Extract the first word of "msgfmt", so it can be a program name with args.
8911set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8912echo "$as_me:$LINENO: checking for $ac_word" >&5
8913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8914if test "${ac_cv_path_MSGFMT+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8916else
8917 case "$MSGFMT" in
8918 /*)
8919 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8920 ;;
8921 *)
8922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8923 for ac_dir in $PATH; do
8924 test -z "$ac_dir" && ac_dir=.
8925 if test -f $ac_dir/$ac_word; then
8926 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8927 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8928 break
8929 fi
8930 fi
8931 done
8932 IFS="$ac_save_ifs"
8933 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8934 ;;
8935esac
8936fi
8937MSGFMT="$ac_cv_path_MSGFMT"
8938if test -n "$MSGFMT"; then
13b2be9c
DJ
8939 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8940echo "${ECHO_T}$MSGFMT" >&6
252b5132 8941else
13b2be9c
DJ
8942 echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
252b5132
RH
8944fi
8945
8946 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8947set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8948echo "$as_me:$LINENO: checking for $ac_word" >&5
8949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8950if test "${ac_cv_path_GMSGFMT+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8952else
13b2be9c
DJ
8953 case $GMSGFMT in
8954 [\\/]* | ?:[\\/]*)
252b5132
RH
8955 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8956 ;;
252b5132 8957 *)
13b2be9c
DJ
8958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959for as_dir in $PATH
8960do
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 break 2
8968 fi
8969done
8970done
8971
252b5132
RH
8972 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8973 ;;
8974esac
8975fi
13b2be9c
DJ
8976GMSGFMT=$ac_cv_path_GMSGFMT
8977
252b5132 8978if test -n "$GMSGFMT"; then
13b2be9c
DJ
8979 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8980echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8981else
13b2be9c
DJ
8982 echo "$as_me:$LINENO: result: no" >&5
8983echo "${ECHO_T}no" >&6
252b5132
RH
8984fi
8985
8986 # Extract the first word of "xgettext", so it can be a program name with args.
8987set dummy xgettext; ac_word=$2
13b2be9c
DJ
8988echo "$as_me:$LINENO: checking for $ac_word" >&5
8989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990if test "${ac_cv_path_XGETTEXT+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8992else
8993 case "$XGETTEXT" in
8994 /*)
8995 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8996 ;;
8997 *)
8998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8999 for ac_dir in $PATH; do
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f $ac_dir/$ac_word; then
9002 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9003 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9004 break
9005 fi
9006 fi
9007 done
9008 IFS="$ac_save_ifs"
9009 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9010 ;;
9011esac
9012fi
9013XGETTEXT="$ac_cv_path_XGETTEXT"
9014if test -n "$XGETTEXT"; then
13b2be9c
DJ
9015 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9016echo "${ECHO_T}$XGETTEXT" >&6
252b5132 9017else
13b2be9c
DJ
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
252b5132
RH
9020fi
9021
13b2be9c 9022
252b5132
RH
9023 USE_INCLUDED_LIBINTL=yes
9024 CATOBJEXT=.gmo
9025 INSTOBJEXT=.mo
9026 DATADIRNAME=share
9027 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9028 INTLLIBS=$INTLDEPS
9029 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9030 nls_cv_header_intl=libintl.h
9031 nls_cv_header_libgt=libgettext.h
9032 fi
9033
9034 if test "$XGETTEXT" != ":"; then
9035 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9036 : ;
9037 else
13b2be9c
DJ
9038 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9039echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
9040 XGETTEXT=":"
9041 fi
9042 fi
9043
9044 # We need to process the po/ directory.
9045 POSUB=po
9046 else
9047 DATADIRNAME=share
9048 nls_cv_header_intl=libintl.h
9049 nls_cv_header_libgt=libgettext.h
9050 fi
9051
9052 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9053 # because some of the sources are only built for this goal.
9054 if test "$PACKAGE" = gettext; then
9055 USE_NLS=yes
9056 USE_INCLUDED_LIBINTL=yes
9057 fi
9058
9059 for lang in $ALL_LINGUAS; do
9060 GMOFILES="$GMOFILES $lang.gmo"
9061 POFILES="$POFILES $lang.po"
9062 done
9063
13b2be9c
DJ
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
b16b813f
AM
9075 if test "x$CATOBJEXT" != "x"; then
9076
9077cat >>confdefs.h <<\_ACEOF
9078#define ENABLE_NLS 1
9079_ACEOF
9080
9081 fi
13b2be9c 9082
d6d788bd 9083
252b5132
RH
9084 if test "x$CATOBJEXT" != "x"; then
9085 if test "x$ALL_LINGUAS" = "x"; then
9086 LINGUAS=
9087 else
13b2be9c
DJ
9088 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9089echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
9090 NEW_LINGUAS=
9091 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9092 case "$ALL_LINGUAS" in
9093 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9094 esac
9095 done
9096 LINGUAS=$NEW_LINGUAS
13b2be9c
DJ
9097 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9098echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
9099 fi
9100
9101 if test -n "$LINGUAS"; then
9102 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9103 fi
9104 fi
9105
9106 if test $ac_cv_header_locale_h = yes; then
9107 INCLUDE_LOCALE_H="#include <locale.h>"
9108 else
9109 INCLUDE_LOCALE_H="\
9110/* The system does not provide the header <locale.h>. Take care yourself. */"
9111 fi
13b2be9c 9112
252b5132
RH
9113
9114 if test -f $srcdir/po2tbl.sed.in; then
9115 if test "$CATOBJEXT" = ".cat"; then
13b2be9c
DJ
9116 if test "${ac_cv_header_linux_version_h+set}" = set; then
9117 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9118echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9119if test "${ac_cv_header_linux_version_h+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121fi
9122echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9123echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9124else
9125 # Is the header compilable?
9126echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9127echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9128cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
9134$ac_includes_default
9b2b7d69 9135#include <linux/version.h>
13b2be9c
DJ
9136_ACEOF
9137rm -f conftest.$ac_objext
9138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9139 (eval $ac_compile) 2>conftest.er1
13b2be9c 9140 ac_status=$?
ab509236
L
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
13b2be9c
DJ
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
1ad12f97
NC
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
ab509236
L
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 ac_header_compiler=yes
9160else
9161 echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164ac_header_compiler=no
9165fi
ab509236 9166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9168echo "${ECHO_T}$ac_header_compiler" >&6
9169
9170# Is the header present?
9171echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9172echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9173cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9174/* confdefs.h. */
9175_ACEOF
9176cat confdefs.h >>conftest.$ac_ext
9177cat >>conftest.$ac_ext <<_ACEOF
9178/* end confdefs.h. */
9179#include <linux/version.h>
9180_ACEOF
9181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } >/dev/null; then
9189 if test -s conftest.err; then
9190 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9192 else
9193 ac_cpp_err=
9194 fi
252b5132 9195else
13b2be9c
DJ
9196 ac_cpp_err=yes
9197fi
9198if test -z "$ac_cpp_err"; then
9199 ac_header_preproc=yes
9200else
9201 echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_header_preproc=no
9205fi
9206rm -f conftest.err conftest.$ac_ext
9207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9208echo "${ECHO_T}$ac_header_preproc" >&6
9209
9210# So? What about this header?
ab509236
L
9211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9212 yes:no: )
13b2be9c
DJ
9213 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9214echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9215 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9216echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9217 ac_header_preproc=yes
13b2be9c 9218 ;;
ab509236 9219 no:yes:* )
13b2be9c
DJ
9220 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9221echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
ab509236
L
9222 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9223echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9225echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9227echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9228 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9229echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
9230 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9231echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9232 (
9233 cat <<\_ASBOX
ab509236
L
9234## ------------------------------------------ ##
9235## Report this to the AC_PACKAGE_NAME lists. ##
9236## ------------------------------------------ ##
13b2be9c
DJ
9237_ASBOX
9238 ) |
9239 sed "s/^/$as_me: WARNING: /" >&2
9240 ;;
9241esac
9242echo "$as_me:$LINENO: checking for linux/version.h" >&5
9243echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9244if test "${ac_cv_header_linux_version_h+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246else
9247 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 9248fi
13b2be9c
DJ
9249echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9250echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9251
252b5132 9252fi
13b2be9c 9253if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
9254 msgformat=linux
9255else
13b2be9c 9256 msgformat=xopen
252b5132
RH
9257fi
9258
d6d788bd 9259
13b2be9c 9260
252b5132
RH
9261 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9262 fi
9263 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9264 $srcdir/po2tbl.sed.in > po2tbl.sed
9265 fi
9266
9267 if test "$PACKAGE" = "gettext"; then
9268 GT_NO="#NO#"
9269 GT_YES=
9270 else
9271 GT_NO=
9272 GT_YES="#YES#"
9273 fi
13b2be9c
DJ
9274
9275
252b5132
RH
9276
9277 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
13b2be9c 9278
252b5132
RH
9279
9280 l=
13b2be9c 9281
252b5132 9282
fcd8210c 9283 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
9284 test -d po || mkdir po
9285 if test "x$srcdir" != "x."; then
9286 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9287 posrcprefix="$srcdir/"
9288 else
9289 posrcprefix="../$srcdir/"
9290 fi
9291 else
9292 posrcprefix="../"
9293 fi
9294 rm -f po/POTFILES
9295 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9296 < $srcdir/po/POTFILES.in > po/POTFILES
9297 fi
252b5132 9298
13b2be9c
DJ
9299
9300echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9301echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
9302 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9303if test "${enable_maintainer_mode+set}" = set; then
9304 enableval="$enable_maintainer_mode"
9305 USE_MAINTAINER_MODE=$enableval
9306else
9307 USE_MAINTAINER_MODE=no
13b2be9c
DJ
9308fi;
9309 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9310echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 9311
252b5132
RH
9312
9313if test $USE_MAINTAINER_MODE = yes; then
9314 MAINTAINER_MODE_TRUE=
c8615825
AM
9315 MAINTAINER_MODE_FALSE='#'
9316else
9317 MAINTAINER_MODE_TRUE='#'
9318 MAINTAINER_MODE_FALSE=
9319fi
13b2be9c 9320
c8615825 9321 MAINT=$MAINTAINER_MODE_TRUE
9b2b7d69
MM
9322
9323
9324
9325
9326
9327
13b2be9c
DJ
9328
9329
9330
9331
9332
9333
9334
9335for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 9336do
13b2be9c
DJ
9337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9338if eval "test \"\${$as_ac_Header+set}\" = set"; then
9339 echo "$as_me:$LINENO: checking for $ac_header" >&5
9340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9341if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343fi
9344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9346else
9347 # Is the header compilable?
9348echo "$as_me:$LINENO: checking $ac_header usability" >&5
9349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9350cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356$ac_includes_default
9357#include <$ac_header>
9358_ACEOF
9359rm -f conftest.$ac_objext
9360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9361 (eval $ac_compile) 2>conftest.er1
13b2be9c 9362 ac_status=$?
ab509236
L
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
13b2be9c
DJ
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
1ad12f97
NC
9368 { ac_try='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
ab509236
L
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_header_compiler=yes
9382else
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386ac_header_compiler=no
9387fi
ab509236 9388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9390echo "${ECHO_T}$ac_header_compiler" >&6
9391
9392# Is the header present?
9393echo "$as_me:$LINENO: checking $ac_header presence" >&5
9394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9395cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9396/* confdefs.h. */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h. */
9401#include <$ac_header>
9402_ACEOF
9403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } >/dev/null; then
9411 if test -s conftest.err; then
9412 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9414 else
9415 ac_cpp_err=
9416 fi
9b2b7d69 9417else
13b2be9c
DJ
9418 ac_cpp_err=yes
9419fi
9420if test -z "$ac_cpp_err"; then
9421 ac_header_preproc=yes
9422else
9423 echo "$as_me: failed program was:" >&5
9424sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 ac_header_preproc=no
9427fi
9428rm -f conftest.err conftest.$ac_ext
9429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9430echo "${ECHO_T}$ac_header_preproc" >&6
9431
9432# So? What about this header?
ab509236
L
9433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9434 yes:no: )
13b2be9c
DJ
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9439 ac_header_preproc=yes
13b2be9c 9440 ;;
ab509236 9441 no:yes:* )
13b2be9c
DJ
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9454 (
9455 cat <<\_ASBOX
ab509236
L
9456## ------------------------------------------ ##
9457## Report this to the AC_PACKAGE_NAME lists. ##
9458## ------------------------------------------ ##
13b2be9c
DJ
9459_ASBOX
9460 ) |
9461 sed "s/^/$as_me: WARNING: /" >&2
9462 ;;
9463esac
9464echo "$as_me:$LINENO: checking for $ac_header" >&5
9465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9466if eval "test \"\${$as_ac_Header+set}\" = set"; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
ab509236 9469 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 9470fi
13b2be9c
DJ
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473
252b5132 9474fi
13b2be9c
DJ
9475if test `eval echo '${'$as_ac_Header'}'` = yes; then
9476 cat >>confdefs.h <<_ACEOF
9477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9478_ACEOF
9479
252b5132 9480fi
13b2be9c 9481
252b5132
RH
9482done
9483
d6d788bd 9484
252b5132
RH
9485# Put this here so that autoconf's "cross-compiling" message doesn't confuse
9486# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
9487echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9488echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
9489if test "${host}" = "${target}"; then
9490 cross_gas=no
9491else
9492 cross_gas=yes
13b2be9c
DJ
9493
9494cat >>confdefs.h <<\_ACEOF
252b5132 9495#define CROSS_COMPILE 1
13b2be9c 9496_ACEOF
252b5132
RH
9497
9498fi
13b2be9c
DJ
9499echo "$as_me:$LINENO: result: $cross_gas" >&5
9500echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
9501
9502# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9503# for constant arguments. Useless!
13b2be9c
DJ
9504echo "$as_me:$LINENO: checking for working alloca.h" >&5
9505echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9506if test "${ac_cv_working_alloca_h+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
252b5132 9515#include <alloca.h>
13b2be9c
DJ
9516int
9517main ()
9518{
9519char *p = (char *) alloca (2 * sizeof (int));
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9526 (eval $ac_link) 2>conftest.er1
13b2be9c 9527 ac_status=$?
ab509236
L
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
13b2be9c
DJ
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
1ad12f97
NC
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
ab509236
L
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_cv_working_alloca_h=yes
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551ac_cv_working_alloca_h=no
9552fi
ab509236
L
9553rm -f conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9555fi
9556echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9557echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9558if test $ac_cv_working_alloca_h = yes; then
9559
9560cat >>confdefs.h <<\_ACEOF
252b5132 9561#define HAVE_ALLOCA_H 1
13b2be9c 9562_ACEOF
252b5132
RH
9563
9564fi
9565
13b2be9c
DJ
9566echo "$as_me:$LINENO: checking for alloca" >&5
9567echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9568if test "${ac_cv_func_alloca_works+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9570else
13b2be9c 9571 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
252b5132
RH
9577#ifdef __GNUC__
9578# define alloca __builtin_alloca
9579#else
9580# ifdef _MSC_VER
9581# include <malloc.h>
9582# define alloca _alloca
9583# else
9584# if HAVE_ALLOCA_H
9585# include <alloca.h>
9586# else
9587# ifdef _AIX
9588 #pragma alloca
9589# else
9590# ifndef alloca /* predefined by HP cc +Olibcalls */
9591char *alloca ();
9592# endif
9593# endif
9594# endif
9595# endif
9596#endif
9597
13b2be9c
DJ
9598int
9599main ()
9600{
9601char *p = (char *) alloca (1);
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9608 (eval $ac_link) 2>conftest.er1
13b2be9c 9609 ac_status=$?
ab509236
L
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
13b2be9c
DJ
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
1ad12f97
NC
9615 { ac_try='test -z "$ac_c_werror_flag"
9616 || test ! -s conftest.err'
ab509236
L
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
252b5132
RH
9628 ac_cv_func_alloca_works=yes
9629else
13b2be9c
DJ
9630 echo "$as_me: failed program was:" >&5
9631sed 's/^/| /' conftest.$ac_ext >&5
9632
9633ac_cv_func_alloca_works=no
252b5132 9634fi
ab509236
L
9635rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
252b5132 9637fi
13b2be9c
DJ
9638echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9639echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9640
252b5132 9641if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 9642
13b2be9c
DJ
9643cat >>confdefs.h <<\_ACEOF
9644#define HAVE_ALLOCA 1
9645_ACEOF
9b2b7d69 9646
13b2be9c 9647else
c8615825 9648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
9649# that cause trouble. Some versions do not even contain alloca or
9650# contain a buggy version. If you still want to use their alloca,
9651# use ar to extract alloca.o from them instead of compiling alloca.c.
9652
9653ALLOCA=alloca.$ac_objext
9654
9655cat >>confdefs.h <<\_ACEOF
252b5132 9656#define C_ALLOCA 1
13b2be9c 9657_ACEOF
252b5132 9658
d6d788bd 9659
13b2be9c
DJ
9660echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9661echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9662if test "${ac_cv_os_cray+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9664else
13b2be9c 9665 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
252b5132
RH
9671#if defined(CRAY) && ! defined(CRAY2)
9672webecray
9673#else
9674wenotbecray
9675#endif
9676
13b2be9c 9677_ACEOF
252b5132 9678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 9679 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9680 ac_cv_os_cray=yes
9681else
252b5132
RH
9682 ac_cv_os_cray=no
9683fi
9684rm -f conftest*
9685
9686fi
13b2be9c
DJ
9687echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9688echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 9689if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
9690 for ac_func in _getb67 GETB67 getb67; do
9691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9692echo "$as_me:$LINENO: checking for $ac_func" >&5
9693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9694if eval "test \"\${$as_ac_var+set}\" = set"; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
ab509236
L
9703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705#define $ac_func innocuous_$ac_func
9706
252b5132 9707/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9708 which can conflict with char $ac_func (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
ab509236 9711
13b2be9c
DJ
9712#ifdef __STDC__
9713# include <limits.h>
9714#else
9715# include <assert.h>
9716#endif
ab509236
L
9717
9718#undef $ac_func
9719
252b5132 9720/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9721#ifdef __cplusplus
9722extern "C"
9723{
9724#endif
252b5132 9725/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9726 builtin and then its argument prototype would still apply. */
9727char $ac_func ();
252b5132
RH
9728/* The GNU C library defines this for functions which it implements
9729 to always fail with ENOSYS. Some functions are actually named
9730 something starting with __ and the normal name is an alias. */
9731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732choke me
9733#else
13b2be9c
DJ
9734char (*f) () = $ac_func;
9735#endif
9736#ifdef __cplusplus
9737}
252b5132
RH
9738#endif
9739
13b2be9c
DJ
9740int
9741main ()
9742{
9743return f != $ac_func;
9744 ;
9745 return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9750 (eval $ac_link) 2>conftest.er1
13b2be9c 9751 ac_status=$?
ab509236
L
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
13b2be9c
DJ
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
1ad12f97
NC
9757 { ac_try='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
ab509236
L
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 eval "$as_ac_var=yes"
9771else
9772 echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775eval "$as_ac_var=no"
9776fi
ab509236
L
9777rm -f conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9779fi
9780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9782if test `eval echo '${'$as_ac_var'}'` = yes; then
9783
9784cat >>confdefs.h <<_ACEOF
252b5132 9785#define CRAY_STACKSEG_END $ac_func
13b2be9c 9786_ACEOF
252b5132 9787
13b2be9c 9788 break
252b5132
RH
9789fi
9790
13b2be9c 9791 done
252b5132
RH
9792fi
9793
13b2be9c
DJ
9794echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9795echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9796if test "${ac_cv_c_stack_direction+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9798else
9799 if test "$cross_compiling" = yes; then
9800 ac_cv_c_stack_direction=0
9801else
13b2be9c 9802 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
9808int
252b5132
RH
9809find_stack_direction ()
9810{
9811 static char *addr = 0;
9812 auto char dummy;
9813 if (addr == 0)
9814 {
9815 addr = &dummy;
9816 return find_stack_direction ();
9817 }
9818 else
9819 return (&dummy > addr) ? 1 : -1;
9820}
13b2be9c
DJ
9821
9822int
252b5132
RH
9823main ()
9824{
13b2be9c 9825 exit (find_stack_direction () < 0);
252b5132 9826}
13b2be9c
DJ
9827_ACEOF
9828rm -f conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
252b5132
RH
9839 ac_cv_c_stack_direction=1
9840else
13b2be9c
DJ
9841 echo "$as_me: program exited with status $ac_status" >&5
9842echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845( exit $ac_status )
9846ac_cv_c_stack_direction=-1
252b5132 9847fi
ab509236 9848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9849fi
252b5132 9850fi
13b2be9c
DJ
9851echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9852echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9853
13b2be9c 9854cat >>confdefs.h <<_ACEOF
252b5132 9855#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
9856_ACEOF
9857
252b5132
RH
9858
9859fi
9860
13b2be9c
DJ
9861echo "$as_me:$LINENO: checking for inline" >&5
9862echo $ECHO_N "checking for inline... $ECHO_C" >&6
9863if test "${ac_cv_c_inline+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9865else
9866 ac_cv_c_inline=no
9867for ac_kw in inline __inline__ __inline; do
13b2be9c 9868 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874#ifndef __cplusplus
9875typedef int foo_t;
9876static $ac_kw foo_t static_foo () {return 0; }
9877$ac_kw foo_t foo () {return 0; }
9878#endif
252b5132 9879
13b2be9c
DJ
9880_ACEOF
9881rm -f conftest.$ac_objext
9882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9883 (eval $ac_compile) 2>conftest.er1
13b2be9c 9884 ac_status=$?
ab509236
L
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
13b2be9c
DJ
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
1ad12f97
NC
9890 { ac_try='test -z "$ac_c_werror_flag"
9891 || test ! -s conftest.err'
ab509236
L
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
252b5132
RH
9903 ac_cv_c_inline=$ac_kw; break
9904else
13b2be9c
DJ
9905 echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
252b5132 9908fi
ab509236 9909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9910done
9911
9912fi
13b2be9c
DJ
9913echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9914echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
9915
9916
13b2be9c 9917case $ac_cv_c_inline in
252b5132 9918 inline | yes) ;;
ab509236
L
9919 *)
9920 case $ac_cv_c_inline in
9921 no) ac_val=;;
9922 *) ac_val=$ac_cv_c_inline;;
9923 esac
9924 cat >>confdefs.h <<_ACEOF
9925#ifndef __cplusplus
9926#define inline $ac_val
9927#endif
13b2be9c 9928_ACEOF
ab509236 9929 ;;
252b5132
RH
9930esac
9931
6840198f 9932
d6d788bd 9933# VMS doesn't have unlink.
13b2be9c
DJ
9934
9935
252b5132
RH
9936for ac_func in unlink remove
9937do
13b2be9c
DJ
9938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939echo "$as_me:$LINENO: checking for $ac_func" >&5
9940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9941if eval "test \"\${$as_ac_var+set}\" = set"; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
9949/* end confdefs.h. */
ab509236
L
9950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952#define $ac_func innocuous_$ac_func
9953
252b5132 9954/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
ab509236 9958
13b2be9c
DJ
9959#ifdef __STDC__
9960# include <limits.h>
9961#else
9962# include <assert.h>
9963#endif
ab509236
L
9964
9965#undef $ac_func
9966
252b5132 9967/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9968#ifdef __cplusplus
9969extern "C"
9970{
9971#endif
252b5132 9972/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9973 builtin and then its argument prototype would still apply. */
9974char $ac_func ();
252b5132
RH
9975/* The GNU C library defines this for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9979choke me
9980#else
13b2be9c
DJ
9981char (*f) () = $ac_func;
9982#endif
9983#ifdef __cplusplus
9984}
252b5132
RH
9985#endif
9986
13b2be9c
DJ
9987int
9988main ()
9989{
9990return f != $ac_func;
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext conftest$ac_exeext
9996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9997 (eval $ac_link) 2>conftest.er1
13b2be9c 9998 ac_status=$?
ab509236
L
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
13b2be9c
DJ
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
1ad12f97
NC
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
ab509236
L
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 eval "$as_ac_var=yes"
10018else
10019 echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022eval "$as_ac_var=no"
10023fi
ab509236
L
10024rm -f conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10026fi
10027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10029if test `eval echo '${'$as_ac_var'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10032_ACEOF
252b5132 10033 break
252b5132
RH
10034fi
10035done
10036
6840198f 10037
d6d788bd 10038# Some systems don't have sbrk().
13b2be9c 10039
252b5132
RH
10040for ac_func in sbrk
10041do
13b2be9c
DJ
10042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10043echo "$as_me:$LINENO: checking for $ac_func" >&5
10044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10045if eval "test \"\${$as_ac_var+set}\" = set"; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047else
10048 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10049/* confdefs.h. */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h. */
ab509236
L
10054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056#define $ac_func innocuous_$ac_func
10057
252b5132 10058/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
10059 which can conflict with char $ac_func (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
ab509236 10062
13b2be9c
DJ
10063#ifdef __STDC__
10064# include <limits.h>
10065#else
10066# include <assert.h>
10067#endif
ab509236
L
10068
10069#undef $ac_func
10070
252b5132 10071/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10072#ifdef __cplusplus
10073extern "C"
10074{
10075#endif
252b5132 10076/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10077 builtin and then its argument prototype would still apply. */
10078char $ac_func ();
252b5132
RH
10079/* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10083choke me
10084#else
13b2be9c
DJ
10085char (*f) () = $ac_func;
10086#endif
10087#ifdef __cplusplus
10088}
252b5132
RH
10089#endif
10090
13b2be9c
DJ
10091int
10092main ()
10093{
10094return f != $ac_func;
10095 ;
10096 return 0;
10097}
10098_ACEOF
10099rm -f conftest.$ac_objext conftest$ac_exeext
10100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10101 (eval $ac_link) 2>conftest.er1
13b2be9c 10102 ac_status=$?
ab509236
L
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
13b2be9c
DJ
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
1ad12f97
NC
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
ab509236
L
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 eval "$as_ac_var=yes"
10122else
10123 echo "$as_me: failed program was:" >&5
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
10126eval "$as_ac_var=no"
10127fi
ab509236
L
10128rm -f conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10130fi
10131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10132echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10133if test `eval echo '${'$as_ac_var'}'` = yes; then
10134 cat >>confdefs.h <<_ACEOF
10135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10136_ACEOF
252b5132 10137
252b5132
RH
10138fi
10139done
10140
d6d788bd 10141
39bec121
TW
10142# do we need the math library?
10143case "${need_libm}" in
13b2be9c 10144yes)
39bec121 10145 LIBM=
f9c19112 10146case $host in
4b363073 10147*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
10148 # These system don't have libm
10149 ;;
10150*-ncr-sysv4.3*)
13b2be9c
DJ
10151 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10152echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10153if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10155else
13b2be9c 10156 ac_check_lib_save_LIBS=$LIBS
39bec121 10157LIBS="-lmw $LIBS"
13b2be9c 10158cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164
39bec121 10165/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10166#ifdef __cplusplus
10167extern "C"
10168#endif
39bec121 10169/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10170 builtin and then its argument prototype would still apply. */
10171char _mwvalidcheckl ();
10172int
10173main ()
10174{
10175_mwvalidcheckl ();
10176 ;
10177 return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10182 (eval $ac_link) 2>conftest.er1
13b2be9c 10183 ac_status=$?
ab509236
L
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
13b2be9c
DJ
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
1ad12f97
NC
10189 { ac_try='test -z "$ac_c_werror_flag"
10190 || test ! -s conftest.err'
ab509236
L
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_lib_mw__mwvalidcheckl=yes
10203else
10204 echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207ac_cv_lib_mw__mwvalidcheckl=no
10208fi
ab509236
L
10209rm -f conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10214echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10215if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 10216 LIBM="-lmw"
39bec121
TW
10217fi
10218
13b2be9c
DJ
10219 echo "$as_me:$LINENO: checking for main in -lm" >&5
10220echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10221if test "${ac_cv_lib_m_main+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10223else
13b2be9c 10224 ac_check_lib_save_LIBS=$LIBS
39bec121 10225LIBS="-lm $LIBS"
13b2be9c 10226cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
39bec121 10232
d6d788bd 10233
13b2be9c
DJ
10234int
10235main ()
10236{
10237main ();
10238 ;
10239 return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10244 (eval $ac_link) 2>conftest.er1
13b2be9c 10245 ac_status=$?
ab509236
L
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
13b2be9c
DJ
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
1ad12f97
NC
10251 { ac_try='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
ab509236
L
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_m_main=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269ac_cv_lib_m_main=no
10270fi
ab509236
L
10271rm -f conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10273LIBS=$ac_check_lib_save_LIBS
10274fi
10275echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10276echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10277if test $ac_cv_lib_m_main = yes; then
39bec121 10278 LIBM="$LIBM -lm"
39bec121
TW
10279fi
10280
10281 ;;
10282*)
13b2be9c
DJ
10283 echo "$as_me:$LINENO: checking for main in -lm" >&5
10284echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10285if test "${ac_cv_lib_m_main+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10287else
13b2be9c 10288 ac_check_lib_save_LIBS=$LIBS
39bec121 10289LIBS="-lm $LIBS"
13b2be9c 10290cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
39bec121 10296
d6d788bd 10297
13b2be9c
DJ
10298int
10299main ()
10300{
10301main ();
10302 ;
10303 return 0;
10304}
10305_ACEOF
10306rm -f conftest.$ac_objext conftest$ac_exeext
10307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10308 (eval $ac_link) 2>conftest.er1
13b2be9c 10309 ac_status=$?
ab509236
L
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
13b2be9c
DJ
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
1ad12f97
NC
10315 { ac_try='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
ab509236
L
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_lib_m_main=yes
10329else
10330 echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333ac_cv_lib_m_main=no
10334fi
ab509236
L
10335rm -f conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10337LIBS=$ac_check_lib_save_LIBS
10338fi
10339echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10340echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10341if test $ac_cv_lib_m_main = yes; then
39bec121 10342 LIBM="-lm"
39bec121
TW
10343fi
10344
10345 ;;
10346esac
10347
13b2be9c 10348
39bec121
TW
10349 ;;
10350esac
10351
252b5132
RH
10352# Some non-ANSI preprocessors botch requoting inside strings. That's bad
10353# enough, but on some of those systems, the assert macro relies on requoting
10354# working properly!
13b2be9c
DJ
10355echo "$as_me:$LINENO: checking for working assert macro" >&5
10356echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10357if test "${gas_cv_assert_ok+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
252b5132
RH
10366#include <assert.h>
10367#include <stdio.h>
13b2be9c
DJ
10368int
10369main ()
10370{
252b5132
RH
10371
10372/* check for requoting problems */
10373static int a, b, c, d;
10374static char *s;
10375assert (!strcmp(s, "foo bar baz quux"));
10376/* check for newline handling */
10377assert (a == b
10378 || c == d);
10379
13b2be9c
DJ
10380 ;
10381 return 0;
10382}
10383_ACEOF
10384rm -f conftest.$ac_objext conftest$ac_exeext
10385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10386 (eval $ac_link) 2>conftest.er1
13b2be9c 10387 ac_status=$?
ab509236
L
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
13b2be9c
DJ
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
1ad12f97
NC
10393 { ac_try='test -z "$ac_c_werror_flag"
10394 || test ! -s conftest.err'
ab509236
L
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
252b5132
RH
10406 gas_cv_assert_ok=yes
10407else
13b2be9c
DJ
10408 echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411gas_cv_assert_ok=no
252b5132 10412fi
ab509236
L
10413rm -f conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
252b5132 10415fi
13b2be9c
DJ
10416echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10417echo "${ECHO_T}$gas_cv_assert_ok" >&6
10418test $gas_cv_assert_ok = yes ||
10419cat >>confdefs.h <<\_ACEOF
252b5132 10420#define BROKEN_ASSERT 1
13b2be9c 10421_ACEOF
252b5132 10422
d6d788bd
L
10423
10424
252b5132
RH
10425# On some systems, the system header files may not declare malloc, realloc,
10426# and free. There are places where gas needs these functions to have been
10427# declared -- such as when taking their addresses.
10428gas_test_headers="
10429#ifdef HAVE_MEMORY_H
10430#include <memory.h>
10431#endif
10432#ifdef HAVE_STRING_H
10433#include <string.h>
10434#else
10435#ifdef HAVE_STRINGS_H
10436#include <strings.h>
10437#endif
10438#endif
10439#ifdef HAVE_STDLIB_H
10440#include <stdlib.h>
10441#endif
10442#ifdef HAVE_UNISTD_H
10443#include <unistd.h>
10444#endif
10445"
10446
e8a38df5
AL
10447# Does errno.h declare errno, or do we have to add a separate declaration
10448# for it?
10449
10450echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10451echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10452if test "${gas_cv_decl_needed_errno+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461
10462#ifdef HAVE_ERRNO_H
10463#include <errno.h>
10464#endif
10465
10466int
10467main ()
10468{
10469
10470typedef int f;
10471f x;
10472x = (f) errno;
10473
10474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
10479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480 (eval $ac_link) 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try='test -z "$ac_c_werror_flag"
10488 || test ! -s conftest.err'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 gas_cv_decl_needed_errno=no
10501else
10502 echo "$as_me: failed program was:" >&5
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
10505gas_cv_decl_needed_errno=yes
10506fi
10507rm -f conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509fi
10510echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10511echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10512if test $gas_cv_decl_needed_errno = yes; then
10513
10514cat >>confdefs.h <<\_ACEOF
10515#define NEED_DECLARATION_ERRNO 1
10516_ACEOF
10517
10518fi
10519
10520
10521
10522echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10523echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10524if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10528/* confdefs.h. */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h. */
252b5132 10533$gas_test_headers
13b2be9c
DJ
10534int
10535main ()
10536{
252b5132 10537
e8a38df5 10538typedef char **f;
252b5132 10539f x;
e8a38df5 10540x = (f) environ;
252b5132 10541
13b2be9c
DJ
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext conftest$ac_exeext
10547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10548 (eval $ac_link) 2>conftest.er1
13b2be9c 10549 ac_status=$?
ab509236
L
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
13b2be9c
DJ
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
1ad12f97
NC
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
ab509236
L
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
e8a38df5 10568 gas_cv_decl_needed_environ=no
252b5132 10569else
13b2be9c
DJ
10570 echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
e8a38df5 10573gas_cv_decl_needed_environ=yes
252b5132 10574fi
ab509236
L
10575rm -f conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
252b5132 10577fi
e8a38df5
AL
10578echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10579echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10580if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
10581
10582cat >>confdefs.h <<\_ACEOF
e8a38df5 10583#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
10584_ACEOF
10585
10586fi
10587
10588
e8a38df5
AL
10589echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
10590echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
10591if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593else
10594 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600$gas_test_headers
10601int
10602main ()
10603{
10604
e8a38df5 10605typedef int (*f)(int);
13b2be9c 10606f x;
e8a38df5 10607x = (f) ffs;
13b2be9c
DJ
10608
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10615 (eval $ac_link) 2>conftest.er1
13b2be9c 10616 ac_status=$?
ab509236
L
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
13b2be9c
DJ
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
1ad12f97
NC
10622 { ac_try='test -z "$ac_c_werror_flag"
10623 || test ! -s conftest.err'
ab509236
L
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
e8a38df5 10635 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
e8a38df5 10640gas_cv_decl_needed_ffs=yes
13b2be9c 10641fi
ab509236
L
10642rm -f conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10644fi
e8a38df5
AL
10645echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
10646echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
10647if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
10648
10649cat >>confdefs.h <<\_ACEOF
e8a38df5 10650#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
10651_ACEOF
10652
10653fi
10654
10655
10656echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10657echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10658if test "${gas_cv_decl_needed_free+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667$gas_test_headers
10668int
10669main ()
10670{
10671
10672typedef void (*f)();
10673f x;
10674x = (f) free;
10675
10676 ;
10677 return 0;
10678}
10679_ACEOF
10680rm -f conftest.$ac_objext conftest$ac_exeext
10681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10682 (eval $ac_link) 2>conftest.er1
13b2be9c 10683 ac_status=$?
ab509236
L
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
13b2be9c
DJ
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
1ad12f97
NC
10689 { ac_try='test -z "$ac_c_werror_flag"
10690 || test ! -s conftest.err'
ab509236
L
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 gas_cv_decl_needed_free=no
10703else
10704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707gas_cv_decl_needed_free=yes
10708fi
ab509236
L
10709rm -f conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10711fi
10712echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10713echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10714if test $gas_cv_decl_needed_free = yes; then
10715
10716cat >>confdefs.h <<\_ACEOF
10717#define NEED_DECLARATION_FREE 1
10718_ACEOF
10719
10720fi
10721
10722
e8a38df5
AL
10723echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10724echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10725if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734$gas_test_headers
10735int
10736main ()
10737{
10738
10739typedef char *(*f)();
10740f x;
e8a38df5 10741x = (f) malloc;
13b2be9c
DJ
10742
10743 ;
10744 return 0;
10745}
10746_ACEOF
10747rm -f conftest.$ac_objext conftest$ac_exeext
10748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10749 (eval $ac_link) 2>conftest.er1
13b2be9c 10750 ac_status=$?
ab509236
L
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
13b2be9c
DJ
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
1ad12f97
NC
10756 { ac_try='test -z "$ac_c_werror_flag"
10757 || test ! -s conftest.err'
ab509236
L
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
e8a38df5 10769 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
10770else
10771 echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
e8a38df5 10774gas_cv_decl_needed_malloc=yes
13b2be9c 10775fi
ab509236
L
10776rm -f conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10778fi
e8a38df5
AL
10779echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10780echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10781if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
10782
10783cat >>confdefs.h <<\_ACEOF
e8a38df5 10784#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
10785_ACEOF
10786
10787fi
10788
10789
e8a38df5
AL
10790echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10791echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10792if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10796/* confdefs.h. */
10797_ACEOF
10798cat confdefs.h >>conftest.$ac_ext
10799cat >>conftest.$ac_ext <<_ACEOF
10800/* end confdefs.h. */
10801$gas_test_headers
10802int
10803main ()
10804{
10805
e8a38df5 10806typedef char *(*f)();
13b2be9c 10807f x;
e8a38df5 10808x = (f) sbrk;
13b2be9c
DJ
10809
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814rm -f conftest.$ac_objext conftest$ac_exeext
10815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10816 (eval $ac_link) 2>conftest.er1
13b2be9c 10817 ac_status=$?
ab509236
L
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
13b2be9c
DJ
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
1ad12f97
NC
10823 { ac_try='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
ab509236
L
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
e8a38df5 10836 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
10837else
10838 echo "$as_me: failed program was:" >&5
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
e8a38df5 10841gas_cv_decl_needed_sbrk=yes
13b2be9c 10842fi
ab509236
L
10843rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10845fi
e8a38df5
AL
10846echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10847echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10848if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
10849
10850cat >>confdefs.h <<\_ACEOF
e8a38df5 10851#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
10852_ACEOF
10853
10854fi
10855
10856
e8a38df5
AL
10857echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10858echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10859if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
e8a38df5 10868$gas_test_headers
13b2be9c
DJ
10869int
10870main ()
10871{
10872
e8a38df5 10873typedef char *(*f)();
13b2be9c 10874f x;
e8a38df5 10875x = (f) strstr;
13b2be9c
DJ
10876
10877 ;
10878 return 0;
10879}
10880_ACEOF
10881rm -f conftest.$ac_objext conftest$ac_exeext
10882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10883 (eval $ac_link) 2>conftest.er1
13b2be9c 10884 ac_status=$?
ab509236
L
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
13b2be9c
DJ
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
1ad12f97
NC
10890 { ac_try='test -z "$ac_c_werror_flag"
10891 || test ! -s conftest.err'
ab509236
L
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
e8a38df5 10903 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
10904else
10905 echo "$as_me: failed program was:" >&5
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
e8a38df5 10908gas_cv_decl_needed_strstr=yes
13b2be9c 10909fi
ab509236
L
10910rm -f conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10912fi
e8a38df5
AL
10913echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10914echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10915if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
10916
10917cat >>confdefs.h <<\_ACEOF
e8a38df5 10918#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
10919_ACEOF
10920
10921fi
10922
10923
10924
10925
10926 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10927
10928 ac_config_commands="$ac_config_commands default"
10929
10930
10931cat >confcache <<\_ACEOF
10932# This file is a shell script that caches the results of configure
10933# tests run on this system so they can be shared between configure
10934# scripts and configure runs, see configure's option --config-cache.
10935# It is not useful on other systems. If it contains results you don't
10936# want to keep, you may remove or edit it.
10937#
10938# config.status only pays attention to the cache file if you give it
10939# the --recheck option to rerun configure.
10940#
10941# `ac_cv_env_foo' variables (set or unset) will be overridden when
10942# loading this file, other *unset* `ac_cv_foo' will be assigned the
10943# following values.
10944
10945_ACEOF
10946
10947# The following way of writing the cache mishandles newlines in values,
10948# but we know of no workaround that is simple, portable, and efficient.
10949# So, don't put newlines in cache variables' values.
10950# Ultrix sh set writes to stderr and can't be redirected directly,
10951# and sets the high bit in the cache file unless we assign to the vars.
10952{
10953 (set) 2>&1 |
10954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10955 *ac_space=\ *)
10956 # `set' does not quote correctly, so add quotes (double-quote
10957 # substitution turns \\\\ into \\, and sed turns \\ into \).
10958 sed -n \
ab509236
L
10959 "s/'/'\\\\''/g;
10960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
10961 ;;
10962 *)
10963 # `set' quotes correctly as required by POSIX, so do not add quotes.
10964 sed -n \
ab509236 10965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
10966 ;;
10967 esac;
10968} |
10969 sed '
10970 t clear
10971 : clear
10972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10973 t end
10974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10975 : end' >>confcache
10976if diff $cache_file confcache >/dev/null 2>&1; then :; else
10977 if test -w $cache_file; then
10978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10979 cat confcache >$cache_file
10980 else
10981 echo "not updating unwritable cache $cache_file"
10982 fi
10983fi
10984rm -f confcache
10985
10986test "x$prefix" = xNONE && prefix=$ac_default_prefix
10987# Let make expand exec_prefix.
10988test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10989
10990# VPATH may cause trouble with some makes, so we remove $(srcdir),
10991# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10992# trailing colons and then remove the whole line if VPATH becomes empty
10993# (actually we leave an empty line to preserve line numbers).
10994if test "x$srcdir" = x.; then
ab509236 10995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
10996s/:*\$(srcdir):*/:/;
10997s/:*\${srcdir}:*/:/;
10998s/:*@srcdir@:*/:/;
ab509236 10999s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 11000s/:*$//;
ab509236 11001s/^[^=]*=[ ]*$//;
13b2be9c
DJ
11002}'
11003fi
11004
11005DEFS=-DHAVE_CONFIG_H
11006
11007ac_libobjs=
11008ac_ltlibobjs=
11009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11010 # 1. Remove the extension, and $U if already installed.
11011 ac_i=`echo "$ac_i" |
ab509236 11012 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
11013 # 2. Add them.
11014 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11015 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11016done
11017LIBOBJS=$ac_libobjs
11018
11019LTLIBOBJS=$ac_ltlibobjs
11020
11021
11022if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11023 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11024Usually this means the macro was only invoked conditionally." >&5
11025echo "$as_me: error: conditional \"AMDEP\" was never defined.
11026Usually this means the macro was only invoked conditionally." >&2;}
11027 { (exit 1); exit 1; }; }
11028fi
11029if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11030 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11031Usually this means the macro was only invoked conditionally." >&5
11032echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11033Usually this means the macro was only invoked conditionally." >&2;}
11034 { (exit 1); exit 1; }; }
11035fi
11036if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11037 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11038Usually this means the macro was only invoked conditionally." >&5
11039echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11040Usually this means the macro was only invoked conditionally." >&2;}
11041 { (exit 1); exit 1; }; }
11042fi
11043
11044: ${CONFIG_STATUS=./config.status}
11045ac_clean_files_save=$ac_clean_files
11046ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11047{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11048echo "$as_me: creating $CONFIG_STATUS" >&6;}
11049cat >$CONFIG_STATUS <<_ACEOF
11050#! $SHELL
11051# Generated by $as_me.
11052# Run this file to recreate the current configuration.
11053# Compiler output produced by configure, useful for debugging
11054# configure, is in config.log if it exists.
11055
11056debug=false
11057ac_cs_recheck=false
11058ac_cs_silent=false
11059SHELL=\${CONFIG_SHELL-$SHELL}
11060_ACEOF
11061
11062cat >>$CONFIG_STATUS <<\_ACEOF
11063## --------------------- ##
11064## M4sh Initialization. ##
11065## --------------------- ##
11066
11067# Be Bourne compatible
11068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11069 emulate sh
11070 NULLCMD=:
11071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11072 # is contrary to our usage. Disable this feature.
11073 alias -g '${1+"$@"}'='"$@"'
11074elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11075 set -o posix
11076fi
ab509236 11077DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
11078
11079# Support unset when possible.
ab509236 11080if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
11081 as_unset=unset
11082else
11083 as_unset=false
11084fi
11085
11086
11087# Work around bugs in pre-3.0 UWIN ksh.
11088$as_unset ENV MAIL MAILPATH
11089PS1='$ '
11090PS2='> '
11091PS4='+ '
11092
11093# NLS nuisances.
11094for as_var in \
11095 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11096 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11097 LC_TELEPHONE LC_TIME
11098do
ab509236 11099 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
11100 eval $as_var=C; export $as_var
11101 else
11102 $as_unset $as_var
11103 fi
11104done
11105
11106# Required to use basename.
11107if expr a : '\(a\)' >/dev/null 2>&1; then
11108 as_expr=expr
11109else
11110 as_expr=false
11111fi
11112
11113if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11114 as_basename=basename
11115else
11116 as_basename=false
11117fi
11118
11119
11120# Name of the executable.
11121as_me=`$as_basename "$0" ||
11122$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11123 X"$0" : 'X\(//\)$' \| \
11124 X"$0" : 'X\(/\)$' \| \
11125 . : '\(.\)' 2>/dev/null ||
11126echo X/"$0" |
11127 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11128 /^X\/\(\/\/\)$/{ s//\1/; q; }
11129 /^X\/\(\/\).*/{ s//\1/; q; }
11130 s/.*/./; q'`
11131
11132
11133# PATH needs CR, and LINENO needs CR and PATH.
11134# Avoid depending upon Character Ranges.
11135as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11136as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11137as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11138as_cr_digits='0123456789'
11139as_cr_alnum=$as_cr_Letters$as_cr_digits
11140
11141# The user is always right.
11142if test "${PATH_SEPARATOR+set}" != set; then
11143 echo "#! /bin/sh" >conf$$.sh
11144 echo "exit 0" >>conf$$.sh
11145 chmod +x conf$$.sh
11146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11147 PATH_SEPARATOR=';'
11148 else
11149 PATH_SEPARATOR=:
11150 fi
11151 rm -f conf$$.sh
11152fi
11153
11154
11155 as_lineno_1=$LINENO
11156 as_lineno_2=$LINENO
11157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11158 test "x$as_lineno_1" != "x$as_lineno_2" &&
11159 test "x$as_lineno_3" = "x$as_lineno_2" || {
11160 # Find who we are. Look in the path if we contain no path at all
11161 # relative or not.
11162 case $0 in
11163 *[\\/]* ) as_myself=$0 ;;
11164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11170done
252b5132 11171
13b2be9c
DJ
11172 ;;
11173 esac
11174 # We did not find ourselves, most probably we were run as `sh COMMAND'
11175 # in which case we are not to be found in the path.
11176 if test "x$as_myself" = x; then
11177 as_myself=$0
11178 fi
11179 if test ! -f "$as_myself"; then
11180 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11181echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11182 { (exit 1); exit 1; }; }
11183 fi
11184 case $CONFIG_SHELL in
11185 '')
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11188do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for as_base in sh bash ksh sh5; do
11192 case $as_dir in
11193 /*)
11194 if ("$as_dir/$as_base" -c '
11195 as_lineno_1=$LINENO
11196 as_lineno_2=$LINENO
11197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11198 test "x$as_lineno_1" != "x$as_lineno_2" &&
11199 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11200 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11201 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11202 CONFIG_SHELL=$as_dir/$as_base
11203 export CONFIG_SHELL
11204 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11205 fi;;
11206 esac
11207 done
11208done
11209;;
11210 esac
252b5132 11211
13b2be9c
DJ
11212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11213 # uniformly replaced by the line number. The first 'sed' inserts a
11214 # line-number line before each line; the second 'sed' does the real
11215 # work. The second script uses 'N' to pair each line-number line
11216 # with the numbered line, and appends trailing '-' during
11217 # substitution so that $LINENO is not a special case at line end.
11218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11219 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11220 sed '=' <$as_myself |
11221 sed '
11222 N
11223 s,$,-,
11224 : loop
11225 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11226 t loop
11227 s,-$,,
11228 s,^['$as_cr_digits']*\n,,
11229 ' >$as_me.lineno &&
11230 chmod +x $as_me.lineno ||
11231 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11232echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11233 { (exit 1); exit 1; }; }
11234
11235 # Don't try to exec as it changes $[0], causing all sort of problems
11236 # (the dirname of $[0] is not the place where we might find the
11237 # original and so on. Autoconf is especially sensible to this).
11238 . ./$as_me.lineno
11239 # Exit status is that of the last command.
11240 exit
11241}
d6d788bd 11242
252b5132 11243
13b2be9c
DJ
11244case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11245 *c*,-n*) ECHO_N= ECHO_C='
11246' ECHO_T=' ' ;;
11247 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11248 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11249esac
252b5132 11250
13b2be9c
DJ
11251if expr a : '\(a\)' >/dev/null 2>&1; then
11252 as_expr=expr
252b5132 11253else
13b2be9c 11254 as_expr=false
252b5132 11255fi
252b5132 11256
13b2be9c
DJ
11257rm -f conf$$ conf$$.exe conf$$.file
11258echo >conf$$.file
11259if ln -s conf$$.file conf$$ 2>/dev/null; then
11260 # We could just check for DJGPP; but this test a) works b) is more generic
11261 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11262 if test -f conf$$.exe; then
11263 # Don't use ln at all; we don't have any links
11264 as_ln_s='cp -p'
11265 else
11266 as_ln_s='ln -s'
11267 fi
11268elif ln conf$$.file conf$$ 2>/dev/null; then
11269 as_ln_s=ln
11270else
11271 as_ln_s='cp -p'
252b5132 11272fi
13b2be9c 11273rm -f conf$$ conf$$.exe conf$$.file
252b5132 11274
13b2be9c
DJ
11275if mkdir -p . 2>/dev/null; then
11276 as_mkdir_p=:
252b5132 11277else
ab509236 11278 test -d ./-p && rmdir ./-p
13b2be9c
DJ
11279 as_mkdir_p=false
11280fi
252b5132 11281
13b2be9c 11282as_executable_p="test -f"
252b5132 11283
13b2be9c 11284# Sed expression to map a string onto a valid CPP name.
ab509236 11285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11286
13b2be9c 11287# Sed expression to map a string onto a valid variable name.
ab509236 11288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11289
d6d788bd 11290
13b2be9c
DJ
11291# IFS
11292# We need space, tab and new line, in precisely that order.
11293as_nl='
11294'
11295IFS=" $as_nl"
252b5132 11296
13b2be9c
DJ
11297# CDPATH.
11298$as_unset CDPATH
252b5132 11299
13b2be9c 11300exec 6>&1
252b5132 11301
13b2be9c
DJ
11302# Open the log real soon, to keep \$[0] and so on meaningful, and to
11303# report actual input values of CONFIG_FILES etc. instead of their
11304# values after options handling. Logging --version etc. is OK.
11305exec 5>>config.log
11306{
11307 echo
11308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11309## Running $as_me. ##
11310_ASBOX
11311} >&5
11312cat >&5 <<_CSEOF
252b5132 11313
13b2be9c 11314This file was extended by $as_me, which was
ab509236 11315generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 11316
13b2be9c
DJ
11317 CONFIG_FILES = $CONFIG_FILES
11318 CONFIG_HEADERS = $CONFIG_HEADERS
11319 CONFIG_LINKS = $CONFIG_LINKS
11320 CONFIG_COMMANDS = $CONFIG_COMMANDS
11321 $ $0 $@
252b5132 11322
13b2be9c
DJ
11323_CSEOF
11324echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11325echo >&5
11326_ACEOF
252b5132 11327
13b2be9c
DJ
11328# Files that config.status was made for.
11329if test -n "$ac_config_files"; then
11330 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 11331fi
13b2be9c
DJ
11332
11333if test -n "$ac_config_headers"; then
11334 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 11335fi
252b5132 11336
13b2be9c
DJ
11337if test -n "$ac_config_links"; then
11338 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
11339fi
11340
13b2be9c
DJ
11341if test -n "$ac_config_commands"; then
11342 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11343fi
d6d788bd 11344
13b2be9c 11345cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 11346
13b2be9c
DJ
11347ac_cs_usage="\
11348\`$as_me' instantiates files from templates according to the
11349current configuration.
252b5132 11350
13b2be9c 11351Usage: $0 [OPTIONS] [FILE]...
252b5132 11352
13b2be9c
DJ
11353 -h, --help print this help, then exit
11354 -V, --version print version number, then exit
11355 -q, --quiet do not print progress messages
11356 -d, --debug don't remove temporary files
11357 --recheck update $as_me by reconfiguring in the same conditions
11358 --file=FILE[:TEMPLATE]
ab509236 11359 instantiate the configuration file FILE
13b2be9c 11360 --header=FILE[:TEMPLATE]
ab509236 11361 instantiate the configuration header FILE
252b5132 11362
13b2be9c
DJ
11363Configuration files:
11364$config_files
252b5132 11365
13b2be9c
DJ
11366Configuration headers:
11367$config_headers
252b5132 11368
13b2be9c
DJ
11369Configuration commands:
11370$config_commands
252b5132 11371
13b2be9c
DJ
11372Report bugs to <bug-autoconf@gnu.org>."
11373_ACEOF
d6d788bd 11374
13b2be9c
DJ
11375cat >>$CONFIG_STATUS <<_ACEOF
11376ac_cs_version="\\
11377config.status
ab509236 11378configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 11379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 11380
ab509236 11381Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
11382This config.status script is free software; the Free Software Foundation
11383gives unlimited permission to copy, distribute and modify it."
11384srcdir=$srcdir
11385INSTALL="$INSTALL"
11386_ACEOF
d6d788bd 11387
13b2be9c
DJ
11388cat >>$CONFIG_STATUS <<\_ACEOF
11389# If no file are specified by the user, then we need to provide default
11390# value. By we need to know if files were specified by the user.
11391ac_need_defaults=:
11392while test $# != 0
11393do
11394 case $1 in
11395 --*=*)
11396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11398 ac_shift=:
c8615825 11399 ;;
13b2be9c
DJ
11400 -*)
11401 ac_option=$1
11402 ac_optarg=$2
11403 ac_shift=shift
c8615825 11404 ;;
13b2be9c
DJ
11405 *) # This is not an option, so the user has probably given explicit
11406 # arguments.
11407 ac_option=$1
11408 ac_need_defaults=false;;
11409 esac
252b5132 11410
13b2be9c
DJ
11411 case $ac_option in
11412 # Handling of the options.
11413_ACEOF
11414cat >>$CONFIG_STATUS <<\_ACEOF
11415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11416 ac_cs_recheck=: ;;
11417 --version | --vers* | -V )
11418 echo "$ac_cs_version"; exit 0 ;;
11419 --he | --h)
11420 # Conflict between --help and --header
11421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11422Try \`$0 --help' for more information." >&5
11423echo "$as_me: error: ambiguous option: $1
11424Try \`$0 --help' for more information." >&2;}
11425 { (exit 1); exit 1; }; };;
11426 --help | --hel | -h )
11427 echo "$ac_cs_usage"; exit 0 ;;
11428 --debug | --d* | -d )
11429 debug=: ;;
11430 --file | --fil | --fi | --f )
11431 $ac_shift
11432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11433 ac_need_defaults=false;;
11434 --header | --heade | --head | --hea )
11435 $ac_shift
11436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11437 ac_need_defaults=false;;
11438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11440 ac_cs_silent=: ;;
c8615825 11441
13b2be9c
DJ
11442 # This is an error.
11443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11444Try \`$0 --help' for more information." >&5
11445echo "$as_me: error: unrecognized option: $1
11446Try \`$0 --help' for more information." >&2;}
11447 { (exit 1); exit 1; }; } ;;
252b5132 11448
13b2be9c 11449 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11450
13b2be9c
DJ
11451 esac
11452 shift
11453done
252b5132 11454
13b2be9c 11455ac_configure_extra_args=
d6d788bd 11456
13b2be9c
DJ
11457if $ac_cs_silent; then
11458 exec 6>/dev/null
11459 ac_configure_extra_args="$ac_configure_extra_args --silent"
11460fi
9b2b7d69 11461
13b2be9c
DJ
11462_ACEOF
11463cat >>$CONFIG_STATUS <<_ACEOF
11464if \$ac_cs_recheck; then
11465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11467fi
11468
11469_ACEOF
11470
11471cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 11472#
13b2be9c 11473# INIT-COMMANDS section.
9b2b7d69
MM
11474#
11475
13b2be9c
DJ
11476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11477target_cpu_type=${target_cpu_type}
11478 cgen_cpu_prefix=${cgen_cpu_prefix}
11479 obj_format=${obj_format}
11480 te_file=${te_file}
11481
11482_ACEOF
11483
11484
11485
11486cat >>$CONFIG_STATUS <<\_ACEOF
11487for ac_config_target in $ac_config_targets
9b2b7d69 11488do
13b2be9c
DJ
11489 case "$ac_config_target" in
11490 # Handling of arguments.
11491 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11492 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11493 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11494 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11495 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11496 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11497 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11498 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11500echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11501 { (exit 1); exit 1; }; };;
9b2b7d69
MM
11502 esac
11503done
11504
13b2be9c
DJ
11505# If the user did not use the arguments to specify the items to instantiate,
11506# then the envvar interface is used. Set only those that are not.
11507# We use the long form for the default assignment because of an extremely
11508# bizarre bug on SunOS 4.1.3.
11509if $ac_need_defaults; then
11510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11513fi
11514
11515# Have a temporary directory for convenience. Make it in the build tree
11516# simply because there is no reason to put it here, and in addition,
11517# creating and moving files from /tmp can sometimes cause problems.
11518# Create a temporary directory, and hook for its removal unless debugging.
11519$debug ||
11520{
11521 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11522 trap '{ (exit 1); exit 1; }' 1 2 13 15
11523}
9b2b7d69 11524
13b2be9c 11525# Create a (secure) tmp directory for tmp files.
9b2b7d69 11526
13b2be9c
DJ
11527{
11528 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11529 test -n "$tmp" && test -d "$tmp"
11530} ||
11531{
11532 tmp=./confstat$$-$RANDOM
11533 (umask 077 && mkdir $tmp)
11534} ||
11535{
11536 echo "$me: cannot create a temporary directory in ." >&2
11537 { (exit 1); exit 1; }
11538}
9b2b7d69 11539
13b2be9c
DJ
11540_ACEOF
11541
11542cat >>$CONFIG_STATUS <<_ACEOF
11543
11544#
11545# CONFIG_FILES section.
11546#
11547
11548# No need to generate the scripts if there are no CONFIG_FILES.
11549# This happens for instance when ./config.status config.h
11550if test -n "\$CONFIG_FILES"; then
11551 # Protect against being on the right side of a sed subst in config.status.
11552 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11553 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11554s,@SHELL@,$SHELL,;t t
11555s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11556s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11557s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11558s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11559s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11560s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11561s,@exec_prefix@,$exec_prefix,;t t
11562s,@prefix@,$prefix,;t t
11563s,@program_transform_name@,$program_transform_name,;t t
11564s,@bindir@,$bindir,;t t
11565s,@sbindir@,$sbindir,;t t
11566s,@libexecdir@,$libexecdir,;t t
11567s,@datadir@,$datadir,;t t
11568s,@sysconfdir@,$sysconfdir,;t t
11569s,@sharedstatedir@,$sharedstatedir,;t t
11570s,@localstatedir@,$localstatedir,;t t
11571s,@libdir@,$libdir,;t t
11572s,@includedir@,$includedir,;t t
11573s,@oldincludedir@,$oldincludedir,;t t
11574s,@infodir@,$infodir,;t t
11575s,@mandir@,$mandir,;t t
11576s,@build_alias@,$build_alias,;t t
11577s,@host_alias@,$host_alias,;t t
11578s,@target_alias@,$target_alias,;t t
11579s,@DEFS@,$DEFS,;t t
11580s,@ECHO_C@,$ECHO_C,;t t
11581s,@ECHO_N@,$ECHO_N,;t t
11582s,@ECHO_T@,$ECHO_T,;t t
11583s,@LIBS@,$LIBS,;t t
11584s,@build@,$build,;t t
11585s,@build_cpu@,$build_cpu,;t t
11586s,@build_vendor@,$build_vendor,;t t
11587s,@build_os@,$build_os,;t t
11588s,@host@,$host,;t t
11589s,@host_cpu@,$host_cpu,;t t
11590s,@host_vendor@,$host_vendor,;t t
11591s,@host_os@,$host_os,;t t
11592s,@target@,$target,;t t
11593s,@target_cpu@,$target_cpu,;t t
11594s,@target_vendor@,$target_vendor,;t t
11595s,@target_os@,$target_os,;t t
11596s,@CC@,$CC,;t t
11597s,@CFLAGS@,$CFLAGS,;t t
11598s,@LDFLAGS@,$LDFLAGS,;t t
11599s,@CPPFLAGS@,$CPPFLAGS,;t t
11600s,@ac_ct_CC@,$ac_ct_CC,;t t
11601s,@EXEEXT@,$EXEEXT,;t t
11602s,@OBJEXT@,$OBJEXT,;t t
11603s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11604s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11605s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11606s,@CYGPATH_W@,$CYGPATH_W,;t t
11607s,@PACKAGE@,$PACKAGE,;t t
11608s,@VERSION@,$VERSION,;t t
11609s,@ACLOCAL@,$ACLOCAL,;t t
11610s,@AUTOCONF@,$AUTOCONF,;t t
11611s,@AUTOMAKE@,$AUTOMAKE,;t t
11612s,@AUTOHEADER@,$AUTOHEADER,;t t
11613s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
11614s,@install_sh@,$install_sh,;t t
11615s,@STRIP@,$STRIP,;t t
11616s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11617s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 11618s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
11619s,@AWK@,$AWK,;t t
11620s,@SET_MAKE@,$SET_MAKE,;t t
11621s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
11622s,@AMTAR@,$AMTAR,;t t
11623s,@am__tar@,$am__tar,;t t
11624s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
11625s,@DEPDIR@,$DEPDIR,;t t
11626s,@am__include@,$am__include,;t t
11627s,@am__quote@,$am__quote,;t t
11628s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11629s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11630s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11631s,@CCDEPMODE@,$CCDEPMODE,;t t
11632s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11633s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11634s,@LN_S@,$LN_S,;t t
11635s,@RANLIB@,$RANLIB,;t t
11636s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11637s,@LIBTOOL@,$LIBTOOL,;t t
11638s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11639s,@GDBINIT@,$GDBINIT,;t t
11640s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11641s,@extra_objects@,$extra_objects,;t t
11642s,@target_cpu_type@,$target_cpu_type,;t t
11643s,@obj_format@,$obj_format,;t t
11644s,@te_file@,$te_file,;t t
11645s,@install_tooldir@,$install_tooldir,;t t
11646s,@atof@,$atof,;t t
11647s,@BFDLIB@,$BFDLIB,;t t
11648s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11649s,@BFDVER_H@,$BFDVER_H,;t t
11650s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11651s,@YACC@,$YACC,;t t
11652s,@LEX@,$LEX,;t t
11653s,@LEXLIB@,$LEXLIB,;t t
11654s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11655s,@CPP@,$CPP,;t t
11656s,@EGREP@,$EGREP,;t t
11657s,@ALLOCA@,$ALLOCA,;t t
11658s,@USE_NLS@,$USE_NLS,;t t
11659s,@MSGFMT@,$MSGFMT,;t t
11660s,@GMSGFMT@,$GMSGFMT,;t t
11661s,@XGETTEXT@,$XGETTEXT,;t t
11662s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11663s,@CATALOGS@,$CATALOGS,;t t
11664s,@CATOBJEXT@,$CATOBJEXT,;t t
11665s,@DATADIRNAME@,$DATADIRNAME,;t t
11666s,@GMOFILES@,$GMOFILES,;t t
11667s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11668s,@INTLDEPS@,$INTLDEPS,;t t
11669s,@INTLLIBS@,$INTLLIBS,;t t
11670s,@INTLOBJS@,$INTLOBJS,;t t
11671s,@POFILES@,$POFILES,;t t
11672s,@POSUB@,$POSUB,;t t
11673s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11674s,@GT_NO@,$GT_NO,;t t
11675s,@GT_YES@,$GT_YES,;t t
11676s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11677s,@l@,$l,;t t
11678s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11679s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11680s,@MAINT@,$MAINT,;t t
11681s,@LIBM@,$LIBM,;t t
11682s,@LIBOBJS@,$LIBOBJS,;t t
11683s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
11684CEOF
11685
13b2be9c
DJ
11686_ACEOF
11687
11688 cat >>$CONFIG_STATUS <<\_ACEOF
11689 # Split the substitutions into bite-sized pieces for seds with
11690 # small command number limits, like on Digital OSF/1 and HP-UX.
11691 ac_max_sed_lines=48
11692 ac_sed_frag=1 # Number of current file.
11693 ac_beg=1 # First line for current file.
11694 ac_end=$ac_max_sed_lines # Line after last line for current file.
11695 ac_more_lines=:
11696 ac_sed_cmds=
11697 while $ac_more_lines; do
11698 if test $ac_beg -gt 1; then
11699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11700 else
11701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11702 fi
11703 if test ! -s $tmp/subs.frag; then
11704 ac_more_lines=false
9b2b7d69 11705 else
13b2be9c
DJ
11706 # The purpose of the label and of the branching condition is to
11707 # speed up the sed processing (if there are no `@' at all, there
11708 # is no need to browse any of the substitutions).
11709 # These are the two extra sed commands mentioned above.
11710 (echo ':t
11711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11712 if test -z "$ac_sed_cmds"; then
ab509236 11713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 11714 else
ab509236 11715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
11716 fi
11717 ac_sed_frag=`expr $ac_sed_frag + 1`
11718 ac_beg=$ac_end
11719 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 11720 fi
13b2be9c
DJ
11721 done
11722 if test -z "$ac_sed_cmds"; then
11723 ac_sed_cmds=cat
252b5132 11724 fi
13b2be9c 11725fi # test -n "$CONFIG_FILES"
252b5132 11726
13b2be9c
DJ
11727_ACEOF
11728cat >>$CONFIG_STATUS <<\_ACEOF
11729for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 11730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11731 case $ac_file in
11732 - | *:- | *:-:* ) # input from stdin
ab509236
L
11733 cat >$tmp/stdin
11734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 11737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11738 * ) ac_file_in=$ac_file.in ;;
252b5132 11739 esac
9b2b7d69 11740
13b2be9c
DJ
11741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11743$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11744 X"$ac_file" : 'X\(//\)[^/]' \| \
11745 X"$ac_file" : 'X\(//\)$' \| \
11746 X"$ac_file" : 'X\(/\)' \| \
11747 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11748echo X"$ac_file" |
11749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11751 /^X\(\/\/\)$/{ s//\1/; q; }
11752 /^X\(\/\).*/{ s//\1/; q; }
11753 s/.*/./; q'`
11754 { if $as_mkdir_p; then
11755 mkdir -p "$ac_dir"
c8615825 11756 else
13b2be9c
DJ
11757 as_dir="$ac_dir"
11758 as_dirs=
11759 while test ! -d "$as_dir"; do
11760 as_dirs="$as_dir $as_dirs"
11761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11763 X"$as_dir" : 'X\(//\)[^/]' \| \
11764 X"$as_dir" : 'X\(//\)$' \| \
11765 X"$as_dir" : 'X\(/\)' \| \
11766 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11767echo X"$as_dir" |
11768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11770 /^X\(\/\/\)$/{ s//\1/; q; }
11771 /^X\(\/\).*/{ s//\1/; q; }
11772 s/.*/./; q'`
11773 done
11774 test ! -n "$as_dirs" || mkdir $as_dirs
11775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11777 { (exit 1); exit 1; }; }; }
11778
11779 ac_builddir=.
11780
11781if test "$ac_dir" != .; then
11782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11783 # A "../" for each directory in $ac_dir_suffix.
11784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11785else
11786 ac_dir_suffix= ac_top_builddir=
11787fi
9b2b7d69 11788
13b2be9c
DJ
11789case $srcdir in
11790 .) # No --srcdir option. We are building in place.
11791 ac_srcdir=.
11792 if test -z "$ac_top_builddir"; then
11793 ac_top_srcdir=.
11794 else
11795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11796 fi ;;
11797 [\\/]* | ?:[\\/]* ) # Absolute path.
11798 ac_srcdir=$srcdir$ac_dir_suffix;
11799 ac_top_srcdir=$srcdir ;;
9b2b7d69 11800 *) # Relative path.
13b2be9c
DJ
11801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11803esac
ab509236
L
11804
11805# Do not use `cd foo && pwd` to compute absolute paths, because
11806# the directories may not exist.
11807case `pwd` in
11808.) ac_abs_builddir="$ac_dir";;
11809*)
11810 case "$ac_dir" in
11811 .) ac_abs_builddir=`pwd`;;
11812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11814 esac;;
11815esac
11816case $ac_abs_builddir in
11817.) ac_abs_top_builddir=${ac_top_builddir}.;;
11818*)
11819 case ${ac_top_builddir}. in
11820 .) ac_abs_top_builddir=$ac_abs_builddir;;
11821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11823 esac;;
11824esac
11825case $ac_abs_builddir in
11826.) ac_abs_srcdir=$ac_srcdir;;
11827*)
11828 case $ac_srcdir in
11829 .) ac_abs_srcdir=$ac_abs_builddir;;
11830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11832 esac;;
11833esac
11834case $ac_abs_builddir in
11835.) ac_abs_top_srcdir=$ac_top_srcdir;;
11836*)
11837 case $ac_top_srcdir in
11838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11841 esac;;
11842esac
252b5132 11843
9b2b7d69 11844
13b2be9c
DJ
11845 case $INSTALL in
11846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 11848 esac
9b2b7d69 11849
1ad12f97
NC
11850 if test x"$ac_file" != x-; then
11851 { echo "$as_me:$LINENO: creating $ac_file" >&5
11852echo "$as_me: creating $ac_file" >&6;}
11853 rm -f "$ac_file"
11854 fi
13b2be9c
DJ
11855 # Let's still pretend it is `configure' which instantiates (i.e., don't
11856 # use $as_me), people would be surprised to read:
11857 # /* config.h. Generated by config.status. */
11858 if test x"$ac_file" = x-; then
11859 configure_input=
11860 else
11861 configure_input="$ac_file. "
11862 fi
11863 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 11864 sed 's,.*/,,'` by configure."
13b2be9c
DJ
11865
11866 # First look for the input files in the build tree, otherwise in the
11867 # src tree.
11868 ac_file_inputs=`IFS=:
11869 for f in $ac_file_in; do
11870 case $f in
11871 -) echo $tmp/stdin ;;
11872 [\\/$]*)
ab509236
L
11873 # Absolute (can't be DOS-style, as IFS=:)
11874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11875echo "$as_me: error: cannot find input file: $f" >&2;}
11876 { (exit 1); exit 1; }; }
ab509236 11877 echo "$f";;
13b2be9c 11878 *) # Relative
ab509236
L
11879 if test -f "$f"; then
11880 # Build tree
11881 echo "$f"
11882 elif test -f "$srcdir/$f"; then
11883 # Source tree
11884 echo "$srcdir/$f"
11885 else
11886 # /dev/null tree
11887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11888echo "$as_me: error: cannot find input file: $f" >&2;}
11889 { (exit 1); exit 1; }; }
ab509236 11890 fi;;
13b2be9c
DJ
11891 esac
11892 done` || { (exit 1); exit 1; }
11893_ACEOF
11894cat >>$CONFIG_STATUS <<_ACEOF
11895 sed "$ac_vpsub
11896$extrasub
11897_ACEOF
11898cat >>$CONFIG_STATUS <<\_ACEOF
11899:t
11900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11901s,@configure_input@,$configure_input,;t t
11902s,@srcdir@,$ac_srcdir,;t t
11903s,@abs_srcdir@,$ac_abs_srcdir,;t t
11904s,@top_srcdir@,$ac_top_srcdir,;t t
11905s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11906s,@builddir@,$ac_builddir,;t t
11907s,@abs_builddir@,$ac_abs_builddir,;t t
11908s,@top_builddir@,$ac_top_builddir,;t t
11909s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11910s,@INSTALL@,$ac_INSTALL,;t t
11911" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11912 rm -f $tmp/stdin
11913 if test x"$ac_file" != x-; then
11914 mv $tmp/out $ac_file
11915 else
11916 cat $tmp/out
11917 rm -f $tmp/out
11918 fi
11919
11920done
11921_ACEOF
11922cat >>$CONFIG_STATUS <<\_ACEOF
11923
11924#
11925# CONFIG_HEADER section.
11926#
252b5132
RH
11927
11928# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11929# NAME is the cpp macro being defined and VALUE is the value it is being given.
11930#
11931# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
11932ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11933ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
11934ac_dC=' '
11935ac_dD=',;t'
11936# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 11937ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 11938ac_uB='$,\1#\2define\3'
252b5132 11939ac_uC=' '
13b2be9c
DJ
11940ac_uD=',;t'
11941
11942for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11944 case $ac_file in
11945 - | *:- | *:-:* ) # input from stdin
ab509236
L
11946 cat >$tmp/stdin
11947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 11950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11951 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11952 esac
11953
13b2be9c
DJ
11954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11955echo "$as_me: creating $ac_file" >&6;}
11956
11957 # First look for the input files in the build tree, otherwise in the
11958 # src tree.
11959 ac_file_inputs=`IFS=:
11960 for f in $ac_file_in; do
11961 case $f in
11962 -) echo $tmp/stdin ;;
11963 [\\/$]*)
ab509236
L
11964 # Absolute (can't be DOS-style, as IFS=:)
11965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11966echo "$as_me: error: cannot find input file: $f" >&2;}
11967 { (exit 1); exit 1; }; }
ab509236
L
11968 # Do quote $f, to prevent DOS paths from being IFS'd.
11969 echo "$f";;
13b2be9c 11970 *) # Relative
ab509236
L
11971 if test -f "$f"; then
11972 # Build tree
11973 echo "$f"
11974 elif test -f "$srcdir/$f"; then
11975 # Source tree
11976 echo "$srcdir/$f"
11977 else
11978 # /dev/null tree
11979 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11980echo "$as_me: error: cannot find input file: $f" >&2;}
11981 { (exit 1); exit 1; }; }
ab509236 11982 fi;;
13b2be9c
DJ
11983 esac
11984 done` || { (exit 1); exit 1; }
11985 # Remove the trailing spaces.
ab509236 11986 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
11987
11988_ACEOF
11989
11990# Transform confdefs.h into two sed scripts, `conftest.defines' and
11991# `conftest.undefs', that substitutes the proper values into
11992# config.h.in to produce config.h. The first handles `#define'
11993# templates, and the second `#undef' templates.
11994# And first: Protect against being on the right side of a sed subst in
11995# config.status. Protect against being in an unquoted here document
11996# in config.status.
11997rm -f conftest.defines conftest.undefs
11998# Using a here document instead of a string reduces the quoting nightmare.
11999# Putting comments in sed scripts is not portable.
12000#
12001# `end' is used to avoid that the second main sed command (meant for
12002# 0-ary CPP macros) applies to n-ary macro definitions.
12003# See the Autoconf documentation for `clear'.
12004cat >confdef2sed.sed <<\_ACEOF
12005s/[\\&,]/\\&/g
12006s,[\\$`],\\&,g
12007t clear
12008: clear
ab509236 12009s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 12010t end
ab509236 12011s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
12012: end
12013_ACEOF
12014# If some macros were called several times there might be several times
12015# the same #defines, which is useless. Nevertheless, we may not want to
12016# sort them, since we want the *last* AC-DEFINE to be honored.
12017uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12018sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12019rm -f confdef2sed.sed
252b5132
RH
12020
12021# This sed command replaces #undef with comments. This is necessary, for
12022# example, in the case of _POSIX_SOURCE, which is predefined and required
12023# on some systems where configure will not decide to define it.
13b2be9c 12024cat >>conftest.undefs <<\_ACEOF
ab509236 12025s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
12026_ACEOF
12027
12028# Break up conftest.defines because some shells have a limit on the size
12029# of here documents, and old seds have small limits too (100 cmds).
12030echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 12031echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
12032echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12033echo ' :' >>$CONFIG_STATUS
12034rm -f conftest.tail
12035while grep . conftest.defines >/dev/null
12036do
12037 # Write a limited-size here document to $tmp/defines.sed.
12038 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12039 # Speed up: don't consider the non `#define' lines.
ab509236 12040 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
12041 # Work around the forget-to-reset-the-flag bug.
12042 echo 't clr' >>$CONFIG_STATUS
12043 echo ': clr' >>$CONFIG_STATUS
12044 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12045 echo 'CEOF
12046 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12047 rm -f $tmp/in
12048 mv $tmp/out $tmp/in
12049' >>$CONFIG_STATUS
12050 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12051 rm -f conftest.defines
12052 mv conftest.tail conftest.defines
12053done
12054rm -f conftest.defines
12055echo ' fi # grep' >>$CONFIG_STATUS
12056echo >>$CONFIG_STATUS
252b5132 12057
13b2be9c
DJ
12058# Break up conftest.undefs because some shells have a limit on the size
12059# of here documents, and old seds have small limits too (100 cmds).
12060echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 12061rm -f conftest.tail
13b2be9c 12062while grep . conftest.undefs >/dev/null
252b5132 12063do
13b2be9c
DJ
12064 # Write a limited-size here document to $tmp/undefs.sed.
12065 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12066 # Speed up: don't consider the non `#undef'
ab509236 12067 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
12068 # Work around the forget-to-reset-the-flag bug.
12069 echo 't clr' >>$CONFIG_STATUS
12070 echo ': clr' >>$CONFIG_STATUS
12071 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 12072 echo 'CEOF
13b2be9c
DJ
12073 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12074 rm -f $tmp/in
12075 mv $tmp/out $tmp/in
12076' >>$CONFIG_STATUS
12077 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12078 rm -f conftest.undefs
12079 mv conftest.tail conftest.undefs
252b5132 12080done
13b2be9c
DJ
12081rm -f conftest.undefs
12082
12083cat >>$CONFIG_STATUS <<\_ACEOF
12084 # Let's still pretend it is `configure' which instantiates (i.e., don't
12085 # use $as_me), people would be surprised to read:
12086 # /* config.h. Generated by config.status. */
12087 if test x"$ac_file" = x-; then
12088 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 12089 else
13b2be9c
DJ
12090 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12091 fi
12092 cat $tmp/in >>$tmp/config.h
12093 rm -f $tmp/in
12094 if test x"$ac_file" != x-; then
12095 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12097echo "$as_me: $ac_file is unchanged" >&6;}
12098 else
12099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12100$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12101 X"$ac_file" : 'X\(//\)[^/]' \| \
12102 X"$ac_file" : 'X\(//\)$' \| \
12103 X"$ac_file" : 'X\(/\)' \| \
12104 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12105echo X"$ac_file" |
12106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12108 /^X\(\/\/\)$/{ s//\1/; q; }
12109 /^X\(\/\).*/{ s//\1/; q; }
12110 s/.*/./; q'`
12111 { if $as_mkdir_p; then
12112 mkdir -p "$ac_dir"
12113 else
12114 as_dir="$ac_dir"
12115 as_dirs=
12116 while test ! -d "$as_dir"; do
12117 as_dirs="$as_dir $as_dirs"
12118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12120 X"$as_dir" : 'X\(//\)[^/]' \| \
12121 X"$as_dir" : 'X\(//\)$' \| \
12122 X"$as_dir" : 'X\(/\)' \| \
12123 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12124echo X"$as_dir" |
12125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12127 /^X\(\/\/\)$/{ s//\1/; q; }
12128 /^X\(\/\).*/{ s//\1/; q; }
12129 s/.*/./; q'`
12130 done
12131 test ! -n "$as_dirs" || mkdir $as_dirs
12132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12133echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12134 { (exit 1); exit 1; }; }; }
12135
12136 rm -f $ac_file
12137 mv $tmp/config.h $ac_file
9b2b7d69 12138 fi
13b2be9c
DJ
12139 else
12140 cat $tmp/config.h
12141 rm -f $tmp/config.h
9b2b7d69 12142 fi
13b2be9c
DJ
12143# Compute $ac_file's index in $config_headers.
12144_am_stamp_count=1
12145for _am_header in $config_headers :; do
12146 case $_am_header in
12147 $ac_file | $ac_file:* )
12148 break ;;
12149 * )
12150 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12151 esac
12152done
12153echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12154$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12155 X$ac_file : 'X\(//\)[^/]' \| \
12156 X$ac_file : 'X\(//\)$' \| \
12157 X$ac_file : 'X\(/\)' \| \
12158 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12159echo X$ac_file |
12160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12162 /^X\(\/\/\)$/{ s//\1/; q; }
12163 /^X\(\/\).*/{ s//\1/; q; }
12164 s/.*/./; q'`/stamp-h$_am_stamp_count
12165done
12166_ACEOF
12167cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 12168
13b2be9c
DJ
12169#
12170# CONFIG_COMMANDS section.
12171#
12172for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12173 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12174 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12175 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12176$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12177 X"$ac_dest" : 'X\(//\)[^/]' \| \
12178 X"$ac_dest" : 'X\(//\)$' \| \
12179 X"$ac_dest" : 'X\(/\)' \| \
12180 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12181echo X"$ac_dest" |
12182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12184 /^X\(\/\/\)$/{ s//\1/; q; }
12185 /^X\(\/\).*/{ s//\1/; q; }
12186 s/.*/./; q'`
ab509236
L
12187 { if $as_mkdir_p; then
12188 mkdir -p "$ac_dir"
12189 else
12190 as_dir="$ac_dir"
12191 as_dirs=
12192 while test ! -d "$as_dir"; do
12193 as_dirs="$as_dir $as_dirs"
12194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196 X"$as_dir" : 'X\(//\)[^/]' \| \
12197 X"$as_dir" : 'X\(//\)$' \| \
12198 X"$as_dir" : 'X\(/\)' \| \
12199 . : '\(.\)' 2>/dev/null ||
12200echo X"$as_dir" |
12201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12203 /^X\(\/\/\)$/{ s//\1/; q; }
12204 /^X\(\/\).*/{ s//\1/; q; }
12205 s/.*/./; q'`
12206 done
12207 test ! -n "$as_dirs" || mkdir $as_dirs
12208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12209echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12210 { (exit 1); exit 1; }; }; }
12211
13b2be9c
DJ
12212 ac_builddir=.
12213
12214if test "$ac_dir" != .; then
12215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12216 # A "../" for each directory in $ac_dir_suffix.
12217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12218else
12219 ac_dir_suffix= ac_top_builddir=
12220fi
12221
12222case $srcdir in
12223 .) # No --srcdir option. We are building in place.
12224 ac_srcdir=.
12225 if test -z "$ac_top_builddir"; then
12226 ac_top_srcdir=.
12227 else
12228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12229 fi ;;
12230 [\\/]* | ?:[\\/]* ) # Absolute path.
12231 ac_srcdir=$srcdir$ac_dir_suffix;
12232 ac_top_srcdir=$srcdir ;;
12233 *) # Relative path.
12234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12236esac
ab509236
L
12237
12238# Do not use `cd foo && pwd` to compute absolute paths, because
12239# the directories may not exist.
12240case `pwd` in
12241.) ac_abs_builddir="$ac_dir";;
12242*)
12243 case "$ac_dir" in
12244 .) ac_abs_builddir=`pwd`;;
12245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12246 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12247 esac;;
12248esac
12249case $ac_abs_builddir in
12250.) ac_abs_top_builddir=${ac_top_builddir}.;;
12251*)
12252 case ${ac_top_builddir}. in
12253 .) ac_abs_top_builddir=$ac_abs_builddir;;
12254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12256 esac;;
12257esac
12258case $ac_abs_builddir in
12259.) ac_abs_srcdir=$ac_srcdir;;
12260*)
12261 case $ac_srcdir in
12262 .) ac_abs_srcdir=$ac_abs_builddir;;
12263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12265 esac;;
12266esac
12267case $ac_abs_builddir in
12268.) ac_abs_top_srcdir=$ac_top_srcdir;;
12269*)
12270 case $ac_top_srcdir in
12271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12274 esac;;
12275esac
13b2be9c
DJ
12276
12277
12278 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12279echo "$as_me: executing $ac_dest commands" >&6;}
12280 case $ac_dest in
12281 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12282 # Strip MF so we end up with the name of the file.
12283 mf=`echo "$mf" | sed -e 's/:.*$//'`
12284 # Check whether this is an Automake generated Makefile or not.
12285 # We used to match only the files named `Makefile.in', but
12286 # some people rename them; so instead we look at the file content.
12287 # Grep'ing the first line is not enough: some people post-process
12288 # each Makefile.in and add a new line on top of each file to say so.
12289 # So let's grep whole file.
12290 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12291 dirpart=`(dirname "$mf") 2>/dev/null ||
12292$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12293 X"$mf" : 'X\(//\)[^/]' \| \
12294 X"$mf" : 'X\(//\)$' \| \
12295 X"$mf" : 'X\(/\)' \| \
12296 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12297echo X"$mf" |
12298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12300 /^X\(\/\/\)$/{ s//\1/; q; }
12301 /^X\(\/\).*/{ s//\1/; q; }
12302 s/.*/./; q'`
12303 else
12304 continue
12305 fi
8ea2b00f
AM
12306 # Extract the definition of DEPDIR, am__include, and am__quote
12307 # from the Makefile without running `make'.
4b363073 12308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 12309 test -z "$DEPDIR" && continue
8ea2b00f
AM
12310 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12311 test -z "am__include" && continue
12312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 12313 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 12314 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
12315 # Find all dependency output files, they are included files with
12316 # $(DEPDIR) in their names. We invoke sed twice because it is the
12317 # simplest approach to changing $(DEPDIR) to its actual value in the
12318 # expansion.
12319 for file in `sed -n "
12320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
12321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12322 # Make sure the directory exists.
12323 test -f "$dirpart/$file" && continue
12324 fdir=`(dirname "$file") 2>/dev/null ||
12325$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12326 X"$file" : 'X\(//\)[^/]' \| \
12327 X"$file" : 'X\(//\)$' \| \
12328 X"$file" : 'X\(/\)' \| \
12329 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12330echo X"$file" |
12331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12333 /^X\(\/\/\)$/{ s//\1/; q; }
12334 /^X\(\/\).*/{ s//\1/; q; }
12335 s/.*/./; q'`
12336 { if $as_mkdir_p; then
12337 mkdir -p $dirpart/$fdir
12338 else
12339 as_dir=$dirpart/$fdir
12340 as_dirs=
12341 while test ! -d "$as_dir"; do
12342 as_dirs="$as_dir $as_dirs"
12343 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12345 X"$as_dir" : 'X\(//\)[^/]' \| \
12346 X"$as_dir" : 'X\(//\)$' \| \
12347 X"$as_dir" : 'X\(/\)' \| \
12348 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12349echo X"$as_dir" |
12350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12352 /^X\(\/\/\)$/{ s//\1/; q; }
12353 /^X\(\/\).*/{ s//\1/; q; }
12354 s/.*/./; q'`
12355 done
12356 test ! -n "$as_dirs" || mkdir $as_dirs
12357 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12358echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12359 { (exit 1); exit 1; }; }; }
c8615825 12360
13b2be9c
DJ
12361 # echo "creating $dirpart/$file"
12362 echo '# dummy' > "$dirpart/$file"
12363 done
12364done
12365 ;;
12366 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
12367 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12368 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12369 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12370 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12371 if test "x$cgen_cpu_prefix" != x ; then
12372 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12373 fi
12374
13b2be9c
DJ
12375 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12376 esac
12377done
12378_ACEOF
12379
12380cat >>$CONFIG_STATUS <<\_ACEOF
12381
12382{ (exit 0); exit 0; }
12383_ACEOF
252b5132 12384chmod +x $CONFIG_STATUS
13b2be9c
DJ
12385ac_clean_files=$ac_clean_files_save
12386
12387
12388# configure is writing to config.log, and then calls config.status.
12389# config.status does its own redirection, appending to config.log.
12390# Unfortunately, on DOS this fails, as config.log is still kept open
12391# by configure, so config.status won't be able to write to it; its
12392# output is simply discarded. So we exec the FD to /dev/null,
12393# effectively closing config.log, so it can be properly (re)opened and
12394# appended to by config.status. When coming back to configure, we
12395# need to make the FD available again.
12396if test "$no_create" != yes; then
12397 ac_cs_success=:
12398 ac_config_status_args=
12399 test "$silent" = yes &&
12400 ac_config_status_args="$ac_config_status_args --quiet"
12401 exec 5>/dev/null
12402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12403 exec 5>>config.log
12404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12405 # would make configure fail if this is the last instruction.
12406 $ac_cs_success || { (exit 1); exit 1; }
12407fi
252b5132 12408
This page took 1.309807 seconds and 4 git commands to generate.