2003-11-11 Jan Hubicka <jh@suse.cz>
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
13b2be9c 3# Generated by GNU Autoconf 2.57.
252b5132 4#
13b2be9c
DJ
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
252b5132
RH
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 247
13b2be9c
DJ
248exec 6>&1
249
250#
251# Initializations.
252#
252b5132 253ac_default_prefix=/usr/local
13b2be9c
DJ
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="as.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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'
312ac_subst_files=''
252b5132
RH
313
314# Initialize some variables set by options.
13b2be9c
DJ
315ac_init_help=
316ac_init_version=false
252b5132
RH
317# The variables have the same names as the options, with
318# dashes changed to underlines.
13b2be9c 319cache_file=/dev/null
252b5132 320exec_prefix=NONE
252b5132 321no_create=
252b5132
RH
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
252b5132
RH
330verbose=
331x_includes=NONE
332x_libraries=NONE
13b2be9c
DJ
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
252b5132
RH
352ac_prev=
353for ac_option
354do
252b5132
RH
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
13b2be9c 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
13b2be9c 366 case $ac_option in
252b5132
RH
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 371 bindir=$ac_optarg ;;
252b5132
RH
372
373 -build | --build | --buil | --bui | --bu)
13b2be9c 374 ac_prev=build_alias ;;
252b5132 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 376 build_alias=$ac_optarg ;;
252b5132
RH
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
252b5132
RH
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
13b2be9c 392 datadir=$ac_optarg ;;
252b5132
RH
393
394 -disable-* | --disable-*)
13b2be9c 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 396 # Reject names that are not valid shell variable names.
13b2be9c
DJ
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
252b5132
RH
402
403 -enable-* | --enable-*)
13b2be9c 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 405 # Reject names that are not valid shell variable names.
13b2be9c
DJ
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
412 *) ac_optarg=yes ;;
413 esac
13b2be9c 414 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
13b2be9c 423 exec_prefix=$ac_optarg ;;
252b5132
RH
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
13b2be9c
DJ
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
252b5132
RH
435
436 -host | --host | --hos | --ho)
13b2be9c 437 ac_prev=host_alias ;;
252b5132 438 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 439 host_alias=$ac_optarg ;;
252b5132
RH
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 446 includedir=$ac_optarg ;;
252b5132
RH
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 451 infodir=$ac_optarg ;;
252b5132
RH
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 456 libdir=$ac_optarg ;;
252b5132
RH
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
13b2be9c 463 libexecdir=$ac_optarg ;;
252b5132
RH
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 472 localstatedir=$ac_optarg ;;
252b5132
RH
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 477 mandir=$ac_optarg ;;
252b5132
RH
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 484 | --no-cr | --no-c | -n)
252b5132
RH
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 498 oldincludedir=$ac_optarg ;;
252b5132
RH
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 503 prefix=$ac_optarg ;;
252b5132
RH
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 510 program_prefix=$ac_optarg ;;
252b5132
RH
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 517 program_suffix=$ac_optarg ;;
252b5132
RH
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 534 program_transform_name=$ac_optarg ;;
252b5132
RH
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
13b2be9c 544 sbindir=$ac_optarg ;;
252b5132
RH
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
13b2be9c 555 sharedstatedir=$ac_optarg ;;
252b5132
RH
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
13b2be9c 560 site=$ac_optarg ;;
76bff705 561
252b5132
RH
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 565 srcdir=$ac_optarg ;;
252b5132
RH
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 572 sysconfdir=$ac_optarg ;;
252b5132
RH
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 575 ac_prev=target_alias ;;
252b5132 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 577 target_alias=$ac_optarg ;;
252b5132
RH
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
13b2be9c
DJ
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
252b5132
RH
584
585 -with-* | --with-*)
13b2be9c 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 587 # Reject names that are not valid shell variable names.
13b2be9c
DJ
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
252b5132 591 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
594 *) ac_optarg=yes ;;
595 esac
13b2be9c 596 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
597
598 -without-* | --without-*)
13b2be9c 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 600 # Reject names that are not valid shell variable names.
13b2be9c
DJ
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
252b5132
RH
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 616 x_includes=$ac_optarg ;;
252b5132
RH
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 623 x_libraries=$ac_optarg ;;
252b5132 624
13b2be9c
DJ
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
252b5132
RH
628 ;;
629
13b2be9c
DJ
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
252b5132 640 *)
13b2be9c
DJ
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
13b2be9c
DJ
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
c8615825 655fi
c8615825 656
13b2be9c
DJ
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
252b5132 667
13b2be9c
DJ
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 671do
13b2be9c
DJ
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
252b5132
RH
677 esac
678done
679
13b2be9c
DJ
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
9b2b7d69 697
13b2be9c
DJ
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
252b5132 702
252b5132
RH
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
13b2be9c
DJ
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
252b5132
RH
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
252b5132 731 else
13b2be9c
DJ
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
252b5132
RH
734 fi
735fi
13b2be9c
DJ
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
d6d788bd 772
13b2be9c
DJ
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 781
13b2be9c 782Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 783
13b2be9c
DJ
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 786
13b2be9c 787Defaults for the options are specified in brackets.
9b2b7d69 788
13b2be9c
DJ
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
9b2b7d69 808
13b2be9c
DJ
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
9b2b7d69 813
13b2be9c 814For better control, use the options below.
9b2b7d69 815
13b2be9c
DJ
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
9b2b7d69 830
13b2be9c 831 cat <<\_ACEOF
9b2b7d69 832
13b2be9c
DJ
833Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 837
13b2be9c
DJ
838System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842_ACEOF
9b2b7d69 843fi
9b2b7d69 844
13b2be9c 845if test -n "$ac_init_help"; then
9b2b7d69 846
13b2be9c 847 cat <<\_ACEOF
9b2b7d69 848
13b2be9c
DJ
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --enable-shared=PKGS build shared libraries default=yes
855 --enable-static=PKGS build static libraries default=yes
856 --enable-fast-install=PKGS optimize for fast installation default=yes
857 --disable-libtool-lock avoid locking (might break parallel builds)
858 --enable-bfd-assembler use BFD back end for writing object files
859 targets alternative target configurations besides the primary
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --disable-nls do not use Native Language Support
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
9b2b7d69 865
13b2be9c
DJ
866Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
9b2b7d69 872
13b2be9c
DJ
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
9b2b7d69 886fi
9b2b7d69 887
13b2be9c
DJ
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
9b2b7d69 902
13b2be9c
DJ
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 910 fi ;;
13b2be9c
DJ
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 917esac
13b2be9c
DJ
918# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919# absolute.
920ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 fi
13dfd2d0 940 cd $ac_popdir
13b2be9c
DJ
941 done
942fi
6840198f 943
13b2be9c
DJ
944test -n "$ac_init_help" && exit 0
945if $ac_init_version; then
946 cat <<\_ACEOF
c8615825 947
13b2be9c
DJ
948Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
949Free Software Foundation, Inc.
950This configure script is free software; the Free Software Foundation
951gives unlimited permission to copy, distribute and modify it.
952_ACEOF
953 exit 0
954fi
955exec 5>config.log
956cat >&5 <<_ACEOF
957This file contains any messages produced by compilers while
958running configure, to aid debugging if configure makes a mistake.
c8615825 959
13b2be9c
DJ
960It was created by $as_me, which was
961generated by GNU Autoconf 2.57. Invocation command line was
c8615825 962
13b2be9c 963 $ $0 $@
c8615825 964
13b2be9c
DJ
965_ACEOF
966{
967cat <<_ASUNAME
968## --------- ##
969## Platform. ##
970## --------- ##
971
972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973uname -m = `(uname -m) 2>/dev/null || echo unknown`
974uname -r = `(uname -r) 2>/dev/null || echo unknown`
975uname -s = `(uname -s) 2>/dev/null || echo unknown`
976uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980
981/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
982/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
985/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
986/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
987/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
988
989_ASUNAME
990
991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992for as_dir in $PATH
993do
994 IFS=$as_save_IFS
995 test -z "$as_dir" && as_dir=.
996 echo "PATH: $as_dir"
997done
9b2b7d69 998
13b2be9c 999} >&5
6840198f 1000
13b2be9c 1001cat >&5 <<_ACEOF
c8615825 1002
9b2b7d69 1003
13b2be9c
DJ
1004## ----------- ##
1005## Core tests. ##
1006## ----------- ##
87ccc1b0 1007
13b2be9c 1008_ACEOF
9b2b7d69 1009
13b2be9c
DJ
1010
1011# Keep a trace of the command line.
1012# Strip out --no-create and --no-recursion so they do not pile up.
1013# Strip out --silent because we don't want to record it for future runs.
1014# Also quote any args containing shell meta-characters.
1015# Make two passes to allow for proper duplicate-argument suppression.
1016ac_configure_args=
1017ac_configure_args0=
1018ac_configure_args1=
1019ac_sep=
1020ac_must_keep_next=false
1021for ac_pass in 1 2
1022do
1023 for ac_arg
1024 do
1025 case $ac_arg in
1026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case $ac_pass in
1034 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 2)
1036 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037 if test $ac_must_keep_next = true; then
1038 ac_must_keep_next=false # Got value, back to normal.
1039 else
1040 case $ac_arg in
1041 *=* | --config-cache | -C | -disable-* | --disable-* \
1042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044 | -with-* | --with-* | -without-* | --without-* | --x)
1045 case "$ac_configure_args0 " in
1046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047 esac
1048 ;;
1049 -* ) ac_must_keep_next=true ;;
1050 esac
1051 fi
1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 # Get rid of the leading space.
1054 ac_sep=" "
c8615825
AM
1055 ;;
1056 esac
1057 done
13b2be9c
DJ
1058done
1059$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062# When interrupted or exit'd, cleanup temporary files, and complete
1063# config.log. We remove comments because anyway the quotes in there
1064# would cause problems or look ugly.
1065# WARNING: Be sure not to use single quotes in there, as some shells,
1066# such as our DU 5.0 friend, will then `close' the trap.
1067trap 'exit_status=$?
1068 # Save into config.log some information that might help in debugging.
1069 {
1070 echo
1071
1072 cat <<\_ASBOX
1073## ---------------- ##
1074## Cache variables. ##
1075## ---------------- ##
1076_ASBOX
1077 echo
1078 # The following way of writing the cache mishandles newlines in values,
1079{
1080 (set) 2>&1 |
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082 *ac_space=\ *)
1083 sed -n \
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086 ;;
1087 *)
1088 sed -n \
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ;;
1091 esac;
1092}
1093 echo
1094
1095 cat <<\_ASBOX
1096## ----------------- ##
1097## Output variables. ##
1098## ----------------- ##
1099_ASBOX
1100 echo
1101 for ac_var in $ac_subst_vars
1102 do
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1107
1108 if test -n "$ac_subst_files"; then
1109 cat <<\_ASBOX
1110## ------------- ##
1111## Output files. ##
1112## ------------- ##
1113_ASBOX
1114 echo
1115 for ac_var in $ac_subst_files
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121 fi
1122
1123 if test -s confdefs.h; then
1124 cat <<\_ASBOX
1125## ----------- ##
1126## confdefs.h. ##
1127## ----------- ##
1128_ASBOX
1129 echo
1130 sed "/^$/d" confdefs.h | sort
1131 echo
1132 fi
1133 test "$ac_signal" != 0 &&
1134 echo "$as_me: caught signal $ac_signal"
1135 echo "$as_me: exit $exit_status"
1136 } >&5
13dfd2d0 1137 rm -f core core.* *.core &&
13b2be9c
DJ
1138 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139 exit $exit_status
1140 ' 0
1141for ac_signal in 1 2 13 15; do
1142 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143done
1144ac_signal=0
1145
1146# confdefs.h avoids OS command line length limits that DEFS can exceed.
1147rm -rf conftest* confdefs.h
1148# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149echo >confdefs.h
1150
1151# Predefined preprocessor variables.
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_NAME "$PACKAGE_NAME"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_VERSION "$PACKAGE_VERSION"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_STRING "$PACKAGE_STRING"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175_ACEOF
1176
1177
1178# Let the site file select an alternate cache file if it wants to.
1179# Prefer explicitly selected file to automatically selected ones.
1180if test -z "$CONFIG_SITE"; then
1181 if test "x$prefix" != xNONE; then
1182 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 else
1184 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185 fi
1186fi
1187for ac_site_file in $CONFIG_SITE; do
1188 if test -r "$ac_site_file"; then
1189 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190echo "$as_me: loading site script $ac_site_file" >&6;}
1191 sed 's/^/| /' "$ac_site_file" >&5
1192 . "$ac_site_file"
1193 fi
1194done
1195
1196if test -r "$cache_file"; then
1197 # Some versions of bash will fail to source /dev/null (special
1198 # files actually), so we avoid doing that.
1199 if test -f "$cache_file"; then
1200 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201echo "$as_me: loading cache $cache_file" >&6;}
1202 case $cache_file in
1203 [\\/]* | ?:[\\/]* ) . $cache_file;;
1204 *) . ./$cache_file;;
1205 esac
1206 fi
1207else
1208 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209echo "$as_me: creating cache $cache_file" >&6;}
1210 >$cache_file
1211fi
1212
1213# Check that the precious variables saved in the cache have kept the same
1214# value.
1215ac_cache_corrupted=false
1216for ac_var in `(set) 2>&1 |
1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219 eval ac_new_set=\$ac_env_${ac_var}_set
1220 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221 eval ac_new_val="\$ac_env_${ac_var}_value"
1222 case $ac_old_set,$ac_new_set in
1223 set,)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,set)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,);;
1232 *)
1233 if test "x$ac_old_val" != "x$ac_new_val"; then
1234 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237echo "$as_me: former value: $ac_old_val" >&2;}
1238 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239echo "$as_me: current value: $ac_new_val" >&2;}
1240 ac_cache_corrupted=:
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1254 fi
1255done
1256if $ac_cache_corrupted; then
1257 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261 { (exit 1); exit 1; }; }
1262fi
1263
1264ac_ext=c
1265ac_cpp='$CPP $CPPFLAGS'
1266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289ac_aux_dir=
1290for ac_dir in .. $srcdir/..; do
1291 if test -f $ac_dir/install-sh; then
1292 ac_aux_dir=$ac_dir
1293 ac_install_sh="$ac_aux_dir/install-sh -c"
1294 break
1295 elif test -f $ac_dir/install.sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install.sh -c"
1298 break
1299 elif test -f $ac_dir/shtool; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/shtool install -c"
1302 break
1303 fi
1304done
1305if test -z "$ac_aux_dir"; then
1306 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1307echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1308 { (exit 1); exit 1; }; }
1309fi
1310ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313
1314# Make sure we can run config.sub.
1315$ac_config_sub sun4 >/dev/null 2>&1 ||
1316 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1317echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1318 { (exit 1); exit 1; }; }
1319
1320echo "$as_me:$LINENO: checking build system type" >&5
1321echo $ECHO_N "checking build system type... $ECHO_C" >&6
1322if test "${ac_cv_build+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324else
1325 ac_cv_build_alias=$build_alias
1326test -z "$ac_cv_build_alias" &&
1327 ac_cv_build_alias=`$ac_config_guess`
1328test -z "$ac_cv_build_alias" &&
1329 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1330echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1331 { (exit 1); exit 1; }; }
1332ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1334echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1336
1337fi
1338echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1339echo "${ECHO_T}$ac_cv_build" >&6
1340build=$ac_cv_build
1341build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344
1345
1346echo "$as_me:$LINENO: checking host system type" >&5
1347echo $ECHO_N "checking host system type... $ECHO_C" >&6
1348if test "${ac_cv_host+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1350else
1351 ac_cv_host_alias=$host_alias
1352test -z "$ac_cv_host_alias" &&
1353 ac_cv_host_alias=$ac_cv_build_alias
1354ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1356echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359fi
1360echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1361echo "${ECHO_T}$ac_cv_host" >&6
1362host=$ac_cv_host
1363host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368echo "$as_me:$LINENO: checking target system type" >&5
1369echo $ECHO_N "checking target system type... $ECHO_C" >&6
1370if test "${ac_cv_target+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 ac_cv_target_alias=$target_alias
1374test "x$ac_cv_target_alias" = "x" &&
1375 ac_cv_target_alias=$ac_cv_host_alias
1376ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1378echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1380
1381fi
1382echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1383echo "${ECHO_T}$ac_cv_target" >&6
1384target=$ac_cv_target
1385target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390# The aliases save the names the user supplied, while $host etc.
1391# will get canonicalized.
1392test -n "$target_alias" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1395 program_prefix=${target_alias}-
1396ac_ext=c
1397ac_cpp='$CPP $CPPFLAGS'
1398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400ac_compiler_gnu=$ac_cv_c_compiler_gnu
1401if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1403set dummy ${ac_tool_prefix}gcc; ac_word=$2
1404echo "$as_me:$LINENO: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411else
1412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413for as_dir in $PATH
1414do
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1422 fi
1423done
1424done
1425
1426fi
1427fi
1428CC=$ac_cv_prog_CC
1429if test -n "$CC"; then
1430 echo "$as_me:$LINENO: result: $CC" >&5
1431echo "${ECHO_T}$CC" >&6
1432else
1433 echo "$as_me:$LINENO: result: no" >&5
1434echo "${ECHO_T}no" >&6
1435fi
1436
1437fi
1438if test -z "$ac_cv_prog_CC"; then
1439 ac_ct_CC=$CC
1440 # Extract the first word of "gcc", so it can be a program name with args.
1441set dummy gcc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_ac_ct_CC="gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467if test -n "$ac_ct_CC"; then
1468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469echo "${ECHO_T}$ac_ct_CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475 CC=$ac_ct_CC
1476else
1477 CC="$ac_cv_prog_CC"
1478fi
1479
1480if test -z "$CC"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483set dummy ${ac_tool_prefix}cc; ac_word=$2
1484echo "$as_me:$LINENO: checking for $ac_word" >&5
1485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488else
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1491else
1492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493for as_dir in $PATH
1494do
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_prog_CC="${ac_tool_prefix}cc"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 break 2
1502 fi
1503done
1504done
1505
1506fi
1507fi
1508CC=$ac_cv_prog_CC
1509if test -n "$CC"; then
1510 echo "$as_me:$LINENO: result: $CC" >&5
1511echo "${ECHO_T}$CC" >&6
1512else
1513 echo "$as_me:$LINENO: result: no" >&5
1514echo "${ECHO_T}no" >&6
1515fi
1516
1517fi
1518if test -z "$ac_cv_prog_CC"; then
1519 ac_ct_CC=$CC
1520 # Extract the first word of "cc", so it can be a program name with args.
1521set dummy cc; ac_word=$2
1522echo "$as_me:$LINENO: checking for $ac_word" >&5
1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 if test -n "$ac_ct_CC"; then
1528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529else
1530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544fi
1545fi
1546ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547if test -n "$ac_ct_CC"; then
1548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1549echo "${ECHO_T}$ac_ct_CC" >&6
1550else
1551 echo "$as_me:$LINENO: result: no" >&5
1552echo "${ECHO_T}no" >&6
1553fi
1554
1555 CC=$ac_ct_CC
1556else
1557 CC="$ac_cv_prog_CC"
1558fi
1559
1560fi
1561if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563set dummy cc; ac_word=$2
1564echo "$as_me:$LINENO: checking for $ac_word" >&5
1565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1571else
1572 ac_prog_rejected=no
1573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1581 ac_prog_rejected=yes
1582 continue
1583 fi
1584 ac_cv_prog_CC="cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1587 fi
1588done
1589done
1590
1591if test $ac_prog_rejected = yes; then
1592 # We found a bogon in the path, so make sure we never use it.
1593 set dummy $ac_cv_prog_CC
1594 shift
1595 if test $# != 0; then
1596 # We chose a different compiler from the bogus one.
1597 # However, it has the same basename, so the bogon will be chosen
1598 # first if we set CC to just the basename; use the full file name.
1599 shift
1600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1601 fi
1602fi
1603fi
1604fi
1605CC=$ac_cv_prog_CC
1606if test -n "$CC"; then
1607 echo "$as_me:$LINENO: result: $CC" >&5
1608echo "${ECHO_T}$CC" >&6
1609else
1610 echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612fi
1613
1614fi
1615if test -z "$CC"; then
1616 if test -n "$ac_tool_prefix"; then
1617 for ac_prog in cl
1618 do
1619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
1642
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648echo "${ECHO_T}$CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654 test -n "$CC" && break
1655 done
1656fi
1657if test -z "$CC"; then
1658 ac_ct_CC=$CC
1659 for ac_prog in cl
1660do
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662set dummy $ac_prog; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC="$ac_prog"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682done
1683done
1684
1685fi
1686fi
1687ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690echo "${ECHO_T}$ac_ct_CC" >&6
1691else
1692 echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696 test -n "$ac_ct_CC" && break
1697done
1698
1699 CC=$ac_ct_CC
1700fi
1701
1702fi
1703
1704
1705test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706See \`config.log' for more details." >&5
1707echo "$as_me: error: no acceptable C compiler found in \$PATH
1708See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }
1710
1711# Provide some information about the compiler.
1712echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714ac_compiler=`set X $ac_compile; echo $2`
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731cat >conftest.$ac_ext <<_ACEOF
1732#line $LINENO "configure"
1733/* confdefs.h. */
1734_ACEOF
1735cat confdefs.h >>conftest.$ac_ext
1736cat >>conftest.$ac_ext <<_ACEOF
1737/* end confdefs.h. */
1738
1739int
1740main ()
1741{
1742
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747ac_clean_files_save=$ac_clean_files
1748ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749# Try to create an executable without -o first, disregard a.out.
1750# It will help us diagnose broken compilers, and finding out an intuition
1751# of exeext.
1752echo "$as_me:$LINENO: checking for C compiler default output" >&5
1753echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756 (eval $ac_link_default) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # Find the output, starting from the most likely. This scheme is
1761# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762# resort.
1763
1764# Be careful to initialize this variable, since it used to be cached.
1765# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766ac_cv_exeext=
1767# b.out is created by i960 compilers.
1768for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769do
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 ;;
1774 conftest.$ac_ext )
1775 # This is the source file.
1776 ;;
1777 [ab].out )
1778 # We found the default executable, but exeext='' is most
1779 # certainly right.
1780 break;;
1781 *.* )
1782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 # FIXME: I believe we export ac_cv_exeext for Libtool,
1784 # but it would be cool to find out if it's true. Does anybody
1785 # maintain Libtool? --akim.
1786 export ac_cv_exeext
1787 break;;
1788 * )
1789 break;;
1790 esac
1791done
1792else
1793 echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797See \`config.log' for more details." >&5
1798echo "$as_me: error: C compiler cannot create executables
1799See \`config.log' for more details." >&2;}
1800 { (exit 77); exit 77; }; }
1801fi
1802
1803ac_exeext=$ac_cv_exeext
1804echo "$as_me:$LINENO: result: $ac_file" >&5
1805echo "${ECHO_T}$ac_file" >&6
1806
1807# Check the compiler produces executables we can run. If not, either
1808# the compiler is broken, or we cross compile.
1809echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812# If not cross compiling, check that we can run a simple program.
1813if test "$cross_compiling" != yes; then
1814 if { ac_try='./$ac_file'
1815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816 (eval $ac_try) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1820 cross_compiling=no
1821 else
1822 if test "$cross_compiling" = maybe; then
1823 cross_compiling=yes
1824 else
1825 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1826If you meant to cross compile, use \`--host'.
1827See \`config.log' for more details." >&5
1828echo "$as_me: error: cannot run C compiled programs.
1829If you meant to cross compile, use \`--host'.
1830See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833 fi
1834fi
1835echo "$as_me:$LINENO: result: yes" >&5
1836echo "${ECHO_T}yes" >&6
1837
1838rm -f a.out a.exe conftest$ac_cv_exeext b.out
1839ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
1843echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1844echo "$as_me:$LINENO: result: $cross_compiling" >&5
1845echo "${ECHO_T}$cross_compiling" >&6
1846
1847echo "$as_me:$LINENO: checking for suffix of executables" >&5
1848echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1850 (eval $ac_link) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1855# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1856# work properly (i.e., refer to `conftest.exe'), while it won't with
1857# `rm'.
1858for ac_file in conftest.exe conftest conftest.*; do
1859 test -f "$ac_file" || continue
1860 case $ac_file in
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1863 export ac_cv_exeext
1864 break;;
1865 * ) break;;
1866 esac
1867done
1868else
1869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1870See \`config.log' for more details." >&5
1871echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1872See \`config.log' for more details." >&2;}
1873 { (exit 1); exit 1; }; }
1874fi
1875
1876rm -f conftest$ac_cv_exeext
1877echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1878echo "${ECHO_T}$ac_cv_exeext" >&6
1879
1880rm -f conftest.$ac_ext
1881EXEEXT=$ac_cv_exeext
1882ac_exeext=$EXEEXT
1883echo "$as_me:$LINENO: checking for suffix of object files" >&5
1884echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1885if test "${ac_cv_objext+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888 cat >conftest.$ac_ext <<_ACEOF
1889#line $LINENO "configure"
1890/* confdefs.h. */
1891_ACEOF
1892cat confdefs.h >>conftest.$ac_ext
1893cat >>conftest.$ac_ext <<_ACEOF
1894/* end confdefs.h. */
1895
1896int
1897main ()
1898{
1899
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904rm -f conftest.o conftest.obj
1905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; then
1910 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1911 case $ac_file in
1912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1914 break;;
1915 esac
1916done
1917else
1918 echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1922See \`config.log' for more details." >&5
1923echo "$as_me: error: cannot compute suffix of object files: cannot compile
1924See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1926fi
1927
1928rm -f conftest.$ac_cv_objext conftest.$ac_ext
1929fi
1930echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1931echo "${ECHO_T}$ac_cv_objext" >&6
1932OBJEXT=$ac_cv_objext
1933ac_objext=$OBJEXT
1934echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1935echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1936if test "${ac_cv_c_compiler_gnu+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 cat >conftest.$ac_ext <<_ACEOF
1940#line $LINENO "configure"
1941/* confdefs.h. */
1942_ACEOF
1943cat confdefs.h >>conftest.$ac_ext
1944cat >>conftest.$ac_ext <<_ACEOF
1945/* end confdefs.h. */
1946
1947int
1948main ()
1949{
1950#ifndef __GNUC__
1951 choke me
1952#endif
1953
1954 ;
1955 return 0;
1956}
1957_ACEOF
1958rm -f conftest.$ac_objext
1959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 (eval $ac_try) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1970 ac_compiler_gnu=yes
1971else
1972 echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975ac_compiler_gnu=no
1976fi
1977rm -f conftest.$ac_objext conftest.$ac_ext
1978ac_cv_c_compiler_gnu=$ac_compiler_gnu
1979
1980fi
1981echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1982echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1983GCC=`test $ac_compiler_gnu = yes && echo yes`
1984ac_test_CFLAGS=${CFLAGS+set}
1985ac_save_CFLAGS=$CFLAGS
1986CFLAGS="-g"
1987echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1988echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1989if test "${ac_cv_prog_cc_g+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 cat >conftest.$ac_ext <<_ACEOF
1993#line $LINENO "configure"
1994/* confdefs.h. */
1995_ACEOF
1996cat confdefs.h >>conftest.$ac_ext
1997cat >>conftest.$ac_ext <<_ACEOF
1998/* end confdefs.h. */
1999
2000int
2001main ()
2002{
2003
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008rm -f conftest.$ac_objext
2009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_g=yes
2021else
2022 echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025ac_cv_prog_cc_g=no
2026fi
2027rm -f conftest.$ac_objext conftest.$ac_ext
2028fi
2029echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2038 fi
2039else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
2045fi
2046echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 ac_cv_prog_cc_stdc=no
2052ac_save_CC=$CC
2053cat >conftest.$ac_ext <<_ACEOF
2054#line $LINENO "configure"
2055/* confdefs.h. */
2056_ACEOF
2057cat confdefs.h >>conftest.$ac_ext
2058cat >>conftest.$ac_ext <<_ACEOF
2059/* end confdefs.h. */
2060#include <stdarg.h>
2061#include <stdio.h>
2062#include <sys/types.h>
2063#include <sys/stat.h>
2064/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2065struct buf { int x; };
2066FILE * (*rcsopen) (struct buf *, struct stat *, int);
2067static char *e (p, i)
2068 char **p;
2069 int i;
2070{
2071 return p[i];
2072}
2073static char *f (char * (*g) (char **, int), char **p, ...)
2074{
2075 char *s;
2076 va_list v;
2077 va_start (v,p);
2078 s = g (p, va_arg (v,int));
2079 va_end (v);
2080 return s;
2081}
2082int test (int i, double x);
2083struct s1 {int (*f) (int a);};
2084struct s2 {int (*f) (double a);};
2085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086int argc;
2087char **argv;
2088int
2089main ()
2090{
2091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096# Don't try gcc -ansi; that turns off useful extensions and
2097# breaks some systems' header files.
2098# AIX -qlanglvl=ansi
2099# Ultrix and OSF/1 -std1
2100# HP-UX 10.20 and later -Ae
2101# HP-UX older versions -Aa -D_HPUX_SOURCE
2102# SVR4 -Xc -D__EXTENSIONS__
2103for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2104do
2105 CC="$ac_save_CC $ac_arg"
2106 rm -f conftest.$ac_objext
2107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 ac_cv_prog_cc_stdc=$ac_arg
2119break
2120else
2121 echo "$as_me: failed program was:" >&5
2122sed 's/^/| /' conftest.$ac_ext >&5
2123
2124fi
2125rm -f conftest.$ac_objext
2126done
2127rm -f conftest.$ac_ext conftest.$ac_objext
2128CC=$ac_save_CC
2129
2130fi
2131
2132case "x$ac_cv_prog_cc_stdc" in
2133 x|xno)
2134 echo "$as_me:$LINENO: result: none needed" >&5
2135echo "${ECHO_T}none needed" >&6 ;;
2136 *)
2137 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2138echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2139 CC="$CC $ac_cv_prog_cc_stdc" ;;
2140esac
2141
2142# Some people use a C++ compiler to compile C. Since we use `exit',
2143# in C++ we need to declare it. In case someone uses the same compiler
2144# for both compiling C and C++ we need to have the C++ compiler decide
2145# the declaration of exit, since it's the most demanding environment.
2146cat >conftest.$ac_ext <<_ACEOF
2147#ifndef __cplusplus
2148 choke me
2149#endif
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 for ac_declaration in \
13dfd2d0
NC
2164 ''\
2165 '#include <stdlib.h>' \
13b2be9c
DJ
2166 'extern "C" void std::exit (int) throw (); using std::exit;' \
2167 'extern "C" void std::exit (int); using std::exit;' \
2168 'extern "C" void exit (int) throw ();' \
2169 'extern "C" void exit (int);' \
2170 'void exit (int);'
2171do
2172 cat >conftest.$ac_ext <<_ACEOF
2173#line $LINENO "configure"
2174/* confdefs.h. */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h. */
13b2be9c 2179#include <stdlib.h>
13dfd2d0 2180$ac_declaration
13b2be9c
DJ
2181int
2182main ()
2183{
2184exit (42);
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 :
2202else
2203 echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206continue
2207fi
2208rm -f conftest.$ac_objext conftest.$ac_ext
2209 cat >conftest.$ac_ext <<_ACEOF
2210#line $LINENO "configure"
2211/* confdefs.h. */
2212_ACEOF
2213cat confdefs.h >>conftest.$ac_ext
2214cat >>conftest.$ac_ext <<_ACEOF
2215/* end confdefs.h. */
2216$ac_declaration
2217int
2218main ()
2219{
2220exit (42);
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 break
2238else
2239 echo "$as_me: failed program was:" >&5
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
2242fi
2243rm -f conftest.$ac_objext conftest.$ac_ext
2244done
2245rm -f conftest*
2246if test -n "$ac_declaration"; then
2247 echo '#ifdef __cplusplus' >>confdefs.h
2248 echo $ac_declaration >>confdefs.h
2249 echo '#endif' >>confdefs.h
2250fi
2251
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256fi
2257rm -f conftest.$ac_objext conftest.$ac_ext
2258ac_ext=c
2259ac_cpp='$CPP $CPPFLAGS'
2260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263
2264
2265
2266 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2267echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2268if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 ac_check_lib_save_LIBS=$LIBS
2272LIBS="-lcposix $LIBS"
2273cat >conftest.$ac_ext <<_ACEOF
2274#line $LINENO "configure"
2275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
2280
2281/* Override any gcc2 internal prototype to avoid an error. */
2282#ifdef __cplusplus
2283extern "C"
2284#endif
2285/* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287char strerror ();
2288int
2289main ()
2290{
2291strerror ();
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296rm -f conftest.$ac_objext conftest$ac_exeext
2297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2298 (eval $ac_link) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest$ac_exeext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_lib_cposix_strerror=yes
2309else
2310 echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313ac_cv_lib_cposix_strerror=no
2314fi
2315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2316LIBS=$ac_check_lib_save_LIBS
2317fi
2318echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2319echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2320if test $ac_cv_lib_cposix_strerror = yes; then
2321 LIBS="$LIBS -lcposix"
2322fi
2323
2324
2325
2326
2327BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2328am__api_version="1.7"
2329# Find a good install program. We prefer a C program (faster),
2330# so one script is as good as another. But avoid the broken or
2331# incompatible versions:
2332# SysV /etc/install, /usr/sbin/install
2333# SunOS /usr/etc/install
2334# IRIX /sbin/install
2335# AIX /bin/install
2336# AmigaOS /C/install, which installs bootblocks on floppy discs
2337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340# ./install, which can be erroneously created by make from ./install.sh.
2341echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2342echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2343if test -z "$INSTALL"; then
2344if test "${ac_cv_path_install+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 # Account for people who put trailing slashes in PATH elements.
2353case $as_dir/ in
2354 ./ | .// | /cC/* | \
2355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 break 3
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380esac
2381done
2382
252b5132
RH
2383
2384fi
2385 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2386 INSTALL=$ac_cv_path_install
252b5132
RH
2387 else
2388 # As a last resort, use the slow shell script. We don't cache a
2389 # path for INSTALL within a source directory, because that will
2390 # break other packages using the cache if that directory is
2391 # removed, or if the path is relative.
13b2be9c 2392 INSTALL=$ac_install_sh
252b5132
RH
2393 fi
2394fi
13b2be9c
DJ
2395echo "$as_me:$LINENO: result: $INSTALL" >&5
2396echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2397
2398# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399# It thinks the first close brace ends the variable substitution.
2400test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2401
13b2be9c 2402test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2403
2404test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2405
13b2be9c
DJ
2406echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2407echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2408# Just in case
2409sleep 1
13b2be9c 2410echo timestamp > conftest.file
252b5132
RH
2411# Do `set' in a subshell so we don't clobber the current shell's
2412# arguments. Must try -L first in case configure is actually a
2413# symlink; some systems play weird games with the mod time of symlinks
2414# (eg FreeBSD returns the mod time of the symlink's containing
2415# directory).
2416if (
13b2be9c 2417 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2418 if test "$*" = "X"; then
2419 # -L didn't work.
13b2be9c 2420 set X `ls -t $srcdir/configure conftest.file`
252b5132 2421 fi
13b2be9c
DJ
2422 rm -f conftest.file
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2425
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2430 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2431alias in your environment" >&5
2432echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2433alias in your environment" >&2;}
2434 { (exit 1); exit 1; }; }
252b5132
RH
2435 fi
2436
13b2be9c
DJ
2437 test "$2" = conftest.file
2438 )
2439then
2440 # Ok.
2441 :
2442else
2443 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2444Check your system clock" >&5
2445echo "$as_me: error: newly created file is older than distributed files!
2446Check your system clock" >&2;}
2447 { (exit 1); exit 1; }; }
2448fi
2449echo "$as_me:$LINENO: result: yes" >&5
2450echo "${ECHO_T}yes" >&6
2451test "$program_prefix" != NONE &&
2452 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2453# Use a double $ so make ignores it.
2454test "$program_suffix" != NONE &&
2455 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2456# Double any \ or $. echo might interpret backslashes.
2457# By default was `s,x,x', remove it if useless.
2458cat <<\_ACEOF >conftest.sed
2459s/[\\$]/&&/g;s/;s,x,x,$//
2460_ACEOF
2461program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2462rm conftest.sed
2463
2464
2465# expand $ac_aux_dir to an absolute path
2466am_aux_dir=`cd $ac_aux_dir && pwd`
2467
2468test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2469# Use eval to expand $SHELL
2470if eval "$MISSING --run true"; then
2471 am_missing_run="$MISSING --run "
2472else
2473 am_missing_run=
2474 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2475echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2476fi
2477
2478for ac_prog in gawk mawk nawk awk
2479do
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484if test "${ac_cv_prog_AWK+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$AWK"; then
2488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_AWK="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
2503
2504fi
2505fi
2506AWK=$ac_cv_prog_AWK
2507if test -n "$AWK"; then
2508 echo "$as_me:$LINENO: result: $AWK" >&5
2509echo "${ECHO_T}$AWK" >&6
2510else
2511 echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513fi
2514
2515 test -n "$AWK" && break
2516done
2517
2518echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2520set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2521if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 cat >conftest.make <<\_ACEOF
2525all:
2526 @echo 'ac_maketemp="$(MAKE)"'
2527_ACEOF
2528# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2530if test -n "$ac_maketemp"; then
2531 eval ac_cv_prog_make_${ac_make}_set=yes
2532else
2533 eval ac_cv_prog_make_${ac_make}_set=no
2534fi
2535rm -f conftest.make
2536fi
2537if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539echo "${ECHO_T}yes" >&6
2540 SET_MAKE=
2541else
2542 echo "$as_me:$LINENO: result: no" >&5
2543echo "${ECHO_T}no" >&6
2544 SET_MAKE="MAKE=${MAKE-make}"
2545fi
2546
2547rm -rf .tst 2>/dev/null
2548mkdir .tst 2>/dev/null
2549if test -d .tst; then
2550 am__leading_dot=.
2551else
2552 am__leading_dot=_
2553fi
2554rmdir .tst 2>/dev/null
2555
2556DEPDIR="${am__leading_dot}deps"
2557
2558 ac_config_commands="$ac_config_commands depfiles"
2559
2560
2561am_make=${MAKE-make}
2562cat > confinc << 'END'
2563am__doit:
2564 @echo done
2565.PHONY: am__doit
2566END
2567# If we don't find an include directive, just comment out the code.
2568echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2570am__include="#"
2571am__quote=
2572_am_result=none
2573# First try GNU make style include.
2574echo "include confinc" > confmf
2575# We grep out `Entering directory' and `Leaving directory'
2576# messages which can occur if `w' ends up in MAKEFLAGS.
2577# In particular we don't look at `^make:' because GNU make might
2578# be invoked under some other name (usually "gmake"), in which
2579# case it prints its new name instead of `make'.
2580if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2581 am__include=include
2582 am__quote=
2583 _am_result=GNU
2584fi
2585# Now try BSD make style include.
2586if test "$am__include" = "#"; then
2587 echo '.include "confinc"' > confmf
2588 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2589 am__include=.include
2590 am__quote="\""
2591 _am_result=BSD
2592 fi
2593fi
2594
2595
2596echo "$as_me:$LINENO: result: $_am_result" >&5
2597echo "${ECHO_T}$_am_result" >&6
2598rm -f confinc confmf
2599
2600# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2601if test "${enable_dependency_tracking+set}" = set; then
2602 enableval="$enable_dependency_tracking"
2603
2604fi;
2605if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2607 AMDEPBACKSLASH='\'
2608fi
2609
2610
2611if test "x$enable_dependency_tracking" != xno; then
2612 AMDEP_TRUE=
2613 AMDEP_FALSE='#'
2614else
2615 AMDEP_TRUE='#'
2616 AMDEP_FALSE=
2617fi
2618
2619
2620
2621 # test to see if srcdir already configured
2622if test "`cd $srcdir && pwd`" != "`pwd`" &&
2623 test -f $srcdir/config.status; then
2624 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2625echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2626 { (exit 1); exit 1; }; }
2627fi
2628
2629# test whether we have cygpath
2630if test -z "$CYGPATH_W"; then
2631 if (cygpath --version) >/dev/null 2>/dev/null; then
2632 CYGPATH_W='cygpath -w'
2633 else
2634 CYGPATH_W=echo
2635 fi
2636fi
2637
2638
2639# Define the identity of the package.
2640 PACKAGE=gas
2641 VERSION=${BFD_VERSION}
2642
2643
2644cat >>confdefs.h <<_ACEOF
2645#define PACKAGE "$PACKAGE"
2646_ACEOF
2647
2648
2649cat >>confdefs.h <<_ACEOF
2650#define VERSION "$VERSION"
2651_ACEOF
2652
2653# Some tools Automake needs.
2654
2655ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2656
2657
2658AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2659
2660
2661AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2662
2663
2664AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2665
2666
2667MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2668
2669
2670AMTAR=${AMTAR-"${am_missing_run}tar"}
2671
2672install_sh=${install_sh-"$am_aux_dir/install-sh"}
2673
2674# Installed binaries are usually stripped using `strip' when the user
2675# run `make install-strip'. However `strip' might not be the right
2676# tool to use in cross-compilation environments, therefore Automake
2677# will honor the `STRIP' environment variable to overrule this program.
2678if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}strip; ac_word=$2
2682echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684if test "${ac_cv_prog_STRIP+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2689else
13b2be9c
DJ
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702done
2703
252b5132 2704fi
13b2be9c
DJ
2705fi
2706STRIP=$ac_cv_prog_STRIP
2707if test -n "$STRIP"; then
2708 echo "$as_me:$LINENO: result: $STRIP" >&5
2709echo "${ECHO_T}$STRIP" >&6
c8615825 2710else
13b2be9c
DJ
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
c8615825 2713fi
c8615825 2714
13b2be9c
DJ
2715fi
2716if test -z "$ac_cv_prog_STRIP"; then
2717 ac_ct_STRIP=$STRIP
2718 # Extract the first word of "strip", so it can be a program name with args.
2719set dummy strip; ac_word=$2
2720echo "$as_me:$LINENO: checking for $ac_word" >&5
2721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2724else
13b2be9c
DJ
2725 if test -n "$ac_ct_STRIP"; then
2726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2727else
13b2be9c
DJ
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_STRIP="strip"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740done
2741
2742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2743fi
252b5132 2744fi
13b2be9c
DJ
2745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746if test -n "$ac_ct_STRIP"; then
2747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2748echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2749else
13b2be9c
DJ
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
252b5132
RH
2752fi
2753
13b2be9c
DJ
2754 STRIP=$ac_ct_STRIP
2755else
2756 STRIP="$ac_cv_prog_STRIP"
2757fi
d6d788bd 2758
252b5132 2759fi
13b2be9c 2760INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2761
13b2be9c
DJ
2762# We need awk for the "check" target. The system "awk" is bad on
2763# some platforms.
252b5132 2764
d6d788bd 2765
13b2be9c 2766depcc="$CC" am_compiler_list=
d6d788bd 2767
13b2be9c
DJ
2768echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2772else
13b2be9c
DJ
2773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774 # We make a subdir and do the tests there. Otherwise we can end up
2775 # making bogus files that we don't know about and never remove. For
2776 # instance it was reported that on HP-UX the gcc test will end up
2777 # making a dummy file named `D' -- because `-MD' means `put the output
2778 # in D'.
2779 mkdir conftest.dir
2780 # Copy depcomp to subdir because otherwise we won't find it if we're
2781 # using a relative directory.
2782 cp "$am_depcomp" conftest.dir
2783 cd conftest.dir
2784 # We will build objects and dependencies in a subdirectory because
2785 # it helps to detect inapplicable dependency modes. For instance
2786 # both Tru64's cc and ICC support -MD to output dependencies as a
2787 # side effect of compilation, but ICC will put the dependencies in
2788 # the current directory while Tru64 will put them in the object
2789 # directory.
2790 mkdir sub
252b5132 2791
13b2be9c
DJ
2792 am_cv_CC_dependencies_compiler_type=none
2793 if test "$am_compiler_list" = ""; then
2794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2795 fi
2796 for depmode in $am_compiler_list; do
2797 # Setup a source with many dependencies, because some compilers
2798 # like to wrap large dependency lists on column 80 (with \), and
2799 # we should not choose a depcomp mode which is confused by this.
2800 #
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 : > sub/conftest.c
2805 for i in 1 2 3 4 5 6; do
2806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807 : > sub/conftst$i.h
2808 done
2809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2810
2811 case $depmode in
2812 nosideeffect)
2813 # after this tag, mechanisms are not by side-effect, so they'll
2814 # only be used when explicitly requested
2815 if test "x$enable_dependency_tracking" = xyes; then
2816 continue
2817 else
2818 break
2819 fi
2820 ;;
2821 none) break ;;
2822 esac
2823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2824 # mode. It turns out that the SunPro C++ compiler does not properly
2825 # handle `-M -o', and we need to detect this.
2826 if depmode=$depmode \
2827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2830 >/dev/null 2>conftest.err &&
2831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2832 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2834 # icc doesn't choke on unknown options, it will just issue warnings
2835 # (even with -Werror). So we grep stderr for any message
2836 # that says an option was ignored.
2837 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2838 am_cv_CC_dependencies_compiler_type=$depmode
2839 break
2840 fi
2841 fi
2842 done
252b5132 2843
13b2be9c
DJ
2844 cd ..
2845 rm -rf conftest.dir
252b5132 2846else
13b2be9c 2847 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
2848fi
2849
252b5132 2850fi
13b2be9c
DJ
2851echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2852echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 2854
13b2be9c
DJ
2855
2856
2857if
2858 test "x$enable_dependency_tracking" != xno \
2859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2860 am__fastdepCC_TRUE=
2861 am__fastdepCC_FALSE='#'
252b5132 2862else
13b2be9c
DJ
2863 am__fastdepCC_TRUE='#'
2864 am__fastdepCC_FALSE=
252b5132
RH
2865fi
2866
d6d788bd
L
2867
2868
13b2be9c 2869
252b5132
RH
2870# Check whether --enable-shared or --disable-shared was given.
2871if test "${enable_shared+set}" = set; then
2872 enableval="$enable_shared"
2873 p=${PACKAGE-default}
f9c19112 2874case $enableval in
252b5132
RH
2875yes) enable_shared=yes ;;
2876no) enable_shared=no ;;
2877*)
2878 enable_shared=no
2879 # Look at the argument we got. We use all the common list separators.
2880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2881 for pkg in $enableval; do
2882 if test "X$pkg" = "X$p"; then
2883 enable_shared=yes
2884 fi
2885 done
2886 IFS="$ac_save_ifs"
2887 ;;
2888esac
2889else
2890 enable_shared=yes
13b2be9c 2891fi;
252b5132
RH
2892# Check whether --enable-static or --disable-static was given.
2893if test "${enable_static+set}" = set; then
2894 enableval="$enable_static"
2895 p=${PACKAGE-default}
f9c19112 2896case $enableval in
252b5132
RH
2897yes) enable_static=yes ;;
2898no) enable_static=no ;;
2899*)
2900 enable_static=no
2901 # Look at the argument we got. We use all the common list separators.
2902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2903 for pkg in $enableval; do
2904 if test "X$pkg" = "X$p"; then
2905 enable_static=yes
2906 fi
2907 done
2908 IFS="$ac_save_ifs"
2909 ;;
2910esac
2911else
2912 enable_static=yes
13b2be9c 2913fi;
bedf545c
ILT
2914# Check whether --enable-fast-install or --disable-fast-install was given.
2915if test "${enable_fast_install+set}" = set; then
2916 enableval="$enable_fast_install"
2917 p=${PACKAGE-default}
f9c19112 2918case $enableval in
bedf545c
ILT
2919yes) enable_fast_install=yes ;;
2920no) enable_fast_install=no ;;
2921*)
2922 enable_fast_install=no
2923 # Look at the argument we got. We use all the common list separators.
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2925 for pkg in $enableval; do
2926 if test "X$pkg" = "X$p"; then
2927 enable_fast_install=yes
2928 fi
2929 done
2930 IFS="$ac_save_ifs"
2931 ;;
2932esac
2933else
2934 enable_fast_install=yes
13b2be9c 2935fi;
87ccc1b0 2936
6840198f
NC
2937# Check whether --with-gnu-ld or --without-gnu-ld was given.
2938if test "${with_gnu_ld+set}" = set; then
2939 withval="$with_gnu_ld"
2940 test "$withval" = no || with_gnu_ld=yes
27b7e12d 2941else
6840198f 2942 with_gnu_ld=no
13b2be9c 2943fi;
6840198f
NC
2944ac_prog=ld
2945if test "$GCC" = yes; then
2946 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
2947 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2948echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
2949 case $host in
2950 *-*-mingw*)
2951 # gcc leaves a trailing carriage return which upsets mingw
2952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2953 *)
2954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2955 esac
2956 case $ac_prog in
2957 # Accept absolute paths.
2958 [\\/]* | [A-Za-z]:[\\/]*)
2959 re_direlt='/[^/][^/]*/\.\./'
2960 # Canonicalize the path of ld
2961 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2963 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2964 done
2965 test -z "$LD" && LD="$ac_prog"
2966 ;;
2967 "")
2968 # If it fails, then pretend we aren't using GCC.
2969 ac_prog=ld
2970 ;;
2971 *)
2972 # If it is relative, then search for the first ld in PATH.
2973 with_gnu_ld=unknown
2974 ;;
2975 esac
2976elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
2977 echo "$as_me:$LINENO: checking for GNU ld" >&5
2978echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 2979else
13b2be9c
DJ
2980 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2981echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 2982fi
13b2be9c
DJ
2983if test "${lt_cv_path_LD+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2985else
2986 if test -z "$LD"; then
a74801ba 2987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2988 for ac_dir in $PATH; do
2989 test -z "$ac_dir" && ac_dir=.
a74801ba 2990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 2991 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2992 # Check to see if the program is GNU ld. I'd rather use --version,
2993 # but apparently some GNU ld's only accept -v.
2994 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 2995 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2996 test "$with_gnu_ld" != no && break
2997 else
bedf545c 2998 test "$with_gnu_ld" != yes && break
252b5132
RH
2999 fi
3000 fi
3001 done
3002 IFS="$ac_save_ifs"
3003else
f9c19112 3004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3005fi
3006fi
3007
f9c19112 3008LD="$lt_cv_path_LD"
252b5132 3009if test -n "$LD"; then
13b2be9c
DJ
3010 echo "$as_me:$LINENO: result: $LD" >&5
3011echo "${ECHO_T}$LD" >&6
252b5132 3012else
13b2be9c
DJ
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
252b5132 3015fi
13b2be9c
DJ
3016test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3017echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3018 { (exit 1); exit 1; }; }
3019echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3020echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3021if test "${lt_cv_prog_gnu_ld+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3023else
3024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3025if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3026 lt_cv_prog_gnu_ld=yes
252b5132 3027else
f9c19112 3028 lt_cv_prog_gnu_ld=no
252b5132
RH
3029fi
3030fi
13b2be9c
DJ
3031echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3032echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3033with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3034
d6d788bd 3035
13b2be9c
DJ
3036echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3037echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3038if test "${lt_cv_ld_reload_flag+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3040else
3041 lt_cv_ld_reload_flag='-r'
3042fi
13b2be9c
DJ
3043echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3044echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3045reload_flag=$lt_cv_ld_reload_flag
3046test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3047
13b2be9c
DJ
3048echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3049echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3050if test "${lt_cv_path_NM+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3052else
3053 if test -n "$NM"; then
3054 # Let the user override the test.
f9c19112 3055 lt_cv_path_NM="$NM"
252b5132 3056else
a74801ba 3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3058 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3059 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3060 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3061 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3062 # Check to see if the nm accepts a BSD-compat flag.
3063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3064 # nm: unknown option "B" ignored
58cccadb
AO
3065 # Tru64's nm complains that /dev/null is an invalid object file
3066 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3067 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3068 break
ac48eca1 3069 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3070 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3071 break
252b5132 3072 else
f9c19112 3073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3074 continue # so that we can try to find one that supports BSD flags
252b5132 3075 fi
252b5132
RH
3076 fi
3077 done
3078 IFS="$ac_save_ifs"
f9c19112 3079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3080fi
3081fi
3082
f9c19112 3083NM="$lt_cv_path_NM"
13b2be9c
DJ
3084echo "$as_me:$LINENO: result: $NM" >&5
3085echo "${ECHO_T}$NM" >&6
252b5132 3086
13b2be9c
DJ
3087echo "$as_me:$LINENO: checking whether ln -s works" >&5
3088echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3089LN_S=$as_ln_s
3090if test "$LN_S" = "ln -s"; then
3091 echo "$as_me:$LINENO: result: yes" >&5
3092echo "${ECHO_T}yes" >&6
252b5132 3093else
13b2be9c
DJ
3094 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3095echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3096fi
3097
13b2be9c
DJ
3098echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3099echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3100if test "${lt_cv_deplibs_check_method+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3102else
d64552c5 3103 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3104lt_cv_file_magic_test_file=
3105lt_cv_deplibs_check_method='unknown'
3106# Need to set the preceding variable on all platforms that support
3107# interlibrary dependencies.
3108# 'none' -- dependencies not supported.
3109# `unknown' -- same as none, but documents that we really don't know.
3110# 'pass_all' -- all dependencies passed with no checks.
3111# 'test_compile' -- check by making test program.
3112# 'file_magic [regex]' -- check by looking for files in library path
3113# which responds to the $file_magic_cmd with a given egrep regex.
3114# If you have `file' or equivalent on your system and you're not sure
3115# whether `pass_all' will *always* work, you probably want this one.
3116
f9c19112
HPN
3117case $host_os in
3118aix*)
ac48eca1
AO
3119 lt_cv_deplibs_check_method=pass_all
3120 ;;
3121
3122beos*)
3123 lt_cv_deplibs_check_method=pass_all
3124 ;;
3125
3126bsdi4*)
f9c19112
HPN
3127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3128 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3129 lt_cv_file_magic_test_file=/shlib/libc.so
3130 ;;
3131
d64552c5 3132cygwin* | mingw* |pw32*)
ac48eca1 3133 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3134 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3135 ;;
3136
f9c19112
HPN
3137darwin* | rhapsody*)
3138 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3139 lt_cv_file_magic_cmd='/usr/bin/file -L'
3140 case "$host_os" in
3141 rhapsody* | darwin1.012)
3142 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3143 ;;
3144 *) # Darwin 1.3 on
3145 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3146 ;;
3147 esac
f9c19112
HPN
3148 ;;
3149
ac48eca1
AO
3150freebsd* )
3151 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3152 case $host_cpu in
ac48eca1 3153 i*86 )
58cccadb
AO
3154 # Not sure whether the presence of OpenBSD here was a mistake.
3155 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3156 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3157 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3159 ;;
3160 esac
3161 else
3162 lt_cv_deplibs_check_method=pass_all
3163 fi
3164 ;;
3165
3166gnu*)
3167 lt_cv_deplibs_check_method=pass_all
3168 ;;
3169
f9c19112 3170hpux10.20*|hpux11*)
4867be41
DJ
3171 case $host_cpu in
3172 hppa*)
3173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3174 lt_cv_file_magic_cmd=/usr/bin/file
3175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3176 ;;
3177 ia64*)
3178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3179 lt_cv_file_magic_cmd=/usr/bin/file
3180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3181 ;;
3182 esac
ac48eca1
AO
3183 ;;
3184
3185irix5* | irix6*)
f9c19112 3186 case $host_os in
ac48eca1
AO
3187 irix5*)
3188 # this will be overridden with pass_all, but let us keep it just in case
3189 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3190 ;;
3191 *)
f9c19112 3192 case $LD in
ac48eca1
AO
3193 *-32|*"-32 ") libmagic=32-bit;;
3194 *-n32|*"-n32 ") libmagic=N32;;
3195 *-64|*"-64 ") libmagic=64-bit;;
3196 *) libmagic=never-match;;
3197 esac
3198 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3199 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3200 ;;
ac48eca1
AO
3201 esac
3202 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3203 lt_cv_deplibs_check_method=pass_all
3204 ;;
3205
3206# This must be Linux ELF.
58cccadb 3207linux-gnu*)
f9c19112 3208 case $host_cpu in
dbeba5e5 3209 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3210 lt_cv_deplibs_check_method=pass_all ;;
3211 *)
3212 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
3213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3214 esac
ac48eca1
AO
3215 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3216 ;;
3217
3218netbsd*)
f9c19112 3219 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3220 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3221 else
6840198f 3222 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3223 fi
f9c19112
HPN
3224 ;;
3225
3226newsos6)
3227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3228 lt_cv_file_magic_cmd=/usr/bin/file
3229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3230 ;;
3231
3232osf3* | osf4* | osf5*)
3233 # this will be overridden with pass_all, but let us keep it just in case
3234 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3235 lt_cv_file_magic_test_file=/shlib/libc.so
3236 lt_cv_deplibs_check_method=pass_all
3237 ;;
3238
3239sco3.2v5*)
3240 lt_cv_deplibs_check_method=pass_all
3241 ;;
3242
3243solaris*)
3244 lt_cv_deplibs_check_method=pass_all
3245 lt_cv_file_magic_test_file=/lib/libc.so
3246 ;;
3247
6be7c12c
AO
3248sysv5uw[78]* | sysv4*uw2*)
3249 lt_cv_deplibs_check_method=pass_all
3250 ;;
3251
ac48eca1 3252sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3253 case $host_vendor in
ac48eca1
AO
3254 ncr)
3255 lt_cv_deplibs_check_method=pass_all
3256 ;;
3257 motorola)
f9c19112
HPN
3258 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]'
3259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3260 ;;
3261 esac
3262 ;;
3263esac
3264
3265fi
13b2be9c
DJ
3266echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3267echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3268file_magic_cmd=$lt_cv_file_magic_cmd
3269deplibs_check_method=$lt_cv_deplibs_check_method
3270
c8615825 3271
c8615825 3272
c8615825 3273
ac48eca1
AO
3274# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3275
3276# Only perform the check for file, if the check method requires it
f9c19112 3277case $deplibs_check_method in
ac48eca1 3278file_magic*)
d64552c5 3279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3280 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3281echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3284else
f9c19112 3285 case $MAGIC_CMD in
ac48eca1 3286 /*)
d64552c5 3287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3288 ;;
3289 ?:/*)
d64552c5 3290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3291 ;;
3292 *)
d64552c5 3293 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3295 ac_dummy="/usr/bin:$PATH"
3296 for ac_dir in $ac_dummy; do
3297 test -z "$ac_dir" && ac_dir=.
3298 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3300 if test -n "$file_magic_test_file"; then
f9c19112 3301 case $deplibs_check_method in
ac48eca1
AO
3302 "file_magic "*)
3303 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3306 egrep "$file_magic_regex" > /dev/null; then
3307 :
3308 else
3309 cat <<EOF 1>&2
3310
3311*** Warning: the command libtool uses to detect shared libraries,
3312*** $file_magic_cmd, produces output that libtool cannot recognize.
3313*** The result is that libtool may fail to recognize shared libraries
3314*** as such. This will affect the creation of libtool libraries that
3315*** depend on shared libraries, but programs linked with such libtool
3316*** libraries will work regardless of this problem. Nevertheless, you
3317*** may want to report the problem to your system manager and/or to
3318*** bug-libtool@gnu.org
3319
3320EOF
3321 fi ;;
3322 esac
3323 fi
3324 break
3325 fi
3326 done
3327 IFS="$ac_save_ifs"
d64552c5 3328 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3329 ;;
3330esac
3331fi
3332
d64552c5
AO
3333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3334if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3335 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3336echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3337else
13b2be9c
DJ
3338 echo "$as_me:$LINENO: result: no" >&5
3339echo "${ECHO_T}no" >&6
ac48eca1
AO
3340fi
3341
d64552c5 3342if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3343 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3344 echo "$as_me:$LINENO: checking for file" >&5
3345echo $ECHO_N "checking for file... $ECHO_C" >&6
3346if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3348else
f9c19112 3349 case $MAGIC_CMD in
ac48eca1 3350 /*)
d64552c5 3351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3352 ;;
3353 ?:/*)
d64552c5 3354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3355 ;;
3356 *)
d64552c5 3357 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 ac_dummy="/usr/bin:$PATH"
3360 for ac_dir in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir=.
3362 if test -f $ac_dir/file; then
d64552c5 3363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3364 if test -n "$file_magic_test_file"; then
f9c19112 3365 case $deplibs_check_method in
ac48eca1
AO
3366 "file_magic "*)
3367 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3370 egrep "$file_magic_regex" > /dev/null; then
3371 :
3372 else
3373 cat <<EOF 1>&2
3374
3375*** Warning: the command libtool uses to detect shared libraries,
3376*** $file_magic_cmd, produces output that libtool cannot recognize.
3377*** The result is that libtool may fail to recognize shared libraries
3378*** as such. This will affect the creation of libtool libraries that
3379*** depend on shared libraries, but programs linked with such libtool
3380*** libraries will work regardless of this problem. Nevertheless, you
3381*** may want to report the problem to your system manager and/or to
3382*** bug-libtool@gnu.org
3383
3384EOF
3385 fi ;;
3386 esac
3387 fi
3388 break
3389 fi
3390 done
3391 IFS="$ac_save_ifs"
d64552c5 3392 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3393 ;;
3394esac
3395fi
3396
d64552c5
AO
3397MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3398if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3400echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3401else
13b2be9c
DJ
3402 echo "$as_me:$LINENO: result: no" >&5
3403echo "${ECHO_T}no" >&6
ac48eca1
AO
3404fi
3405
3406 else
d64552c5 3407 MAGIC_CMD=:
ac48eca1
AO
3408 fi
3409fi
3410
3411 fi
3412 ;;
3413esac
3414
13b2be9c
DJ
3415if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3418echo "$as_me:$LINENO: checking for $ac_word" >&5
3419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420if test "${ac_cv_prog_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3422else
3423 if test -n "$RANLIB"; then
3424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3425else
13b2be9c
DJ
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437done
3438done
3439
ac48eca1
AO
3440fi
3441fi
13b2be9c 3442RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3443if test -n "$RANLIB"; then
13b2be9c
DJ
3444 echo "$as_me:$LINENO: result: $RANLIB" >&5
3445echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3446else
13b2be9c
DJ
3447 echo "$as_me:$LINENO: result: no" >&5
3448echo "${ECHO_T}no" >&6
ac48eca1
AO
3449fi
3450
13b2be9c 3451fi
ac48eca1 3452if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3453 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3454 # Extract the first word of "ranlib", so it can be a program name with args.
3455set dummy ranlib; ac_word=$2
13b2be9c
DJ
3456echo "$as_me:$LINENO: checking for $ac_word" >&5
3457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3460else
13b2be9c
DJ
3461 if test -n "$ac_ct_RANLIB"; then
3462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3463else
13b2be9c
DJ
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_RANLIB="ranlib"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475done
3476done
3477
3478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3479fi
3480fi
13b2be9c
DJ
3481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482if test -n "$ac_ct_RANLIB"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3484echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3485else
13b2be9c
DJ
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
ac48eca1
AO
3488fi
3489
13b2be9c 3490 RANLIB=$ac_ct_RANLIB
ac48eca1 3491else
13b2be9c 3492 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3493fi
3494
13b2be9c
DJ
3495if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3497set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_prog_STRIP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3502else
3503 if test -n "$STRIP"; then
3504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3505else
13b2be9c
DJ
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518done
3519
ac48eca1
AO
3520fi
3521fi
13b2be9c 3522STRIP=$ac_cv_prog_STRIP
ac48eca1 3523if test -n "$STRIP"; then
13b2be9c
DJ
3524 echo "$as_me:$LINENO: result: $STRIP" >&5
3525echo "${ECHO_T}$STRIP" >&6
ac48eca1 3526else
13b2be9c
DJ
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
ac48eca1
AO
3529fi
3530
13b2be9c 3531fi
ac48eca1 3532if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3533 ac_ct_STRIP=$STRIP
ac48eca1
AO
3534 # Extract the first word of "strip", so it can be a program name with args.
3535set dummy strip; ac_word=$2
13b2be9c
DJ
3536echo "$as_me:$LINENO: checking for $ac_word" >&5
3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3540else
13b2be9c
DJ
3541 if test -n "$ac_ct_STRIP"; then
3542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3543else
13b2be9c
DJ
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_STRIP="strip"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556done
3557
3558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3559fi
3560fi
13b2be9c
DJ
3561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3562if test -n "$ac_ct_STRIP"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3564echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3565else
13b2be9c
DJ
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
d6d788bd
L
3568fi
3569
13b2be9c 3570 STRIP=$ac_ct_STRIP
d6d788bd 3571else
13b2be9c 3572 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3573fi
3574
252b5132 3575
252b5132 3576# Check for any special flags to pass to ltconfig.
bedf545c 3577libtool_flags="--cache-file=$cache_file"
252b5132
RH
3578test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3579test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3580test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3581test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3582test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3583
d6d788bd 3584
a74801ba
ILT
3585# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3586if test "${enable_libtool_lock+set}" = set; then
3587 enableval="$enable_libtool_lock"
a74801ba 3588
13b2be9c 3589fi;
a74801ba
ILT
3590test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3591test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3592
13b2be9c 3593
ac48eca1
AO
3594# Check whether --with-pic or --without-pic was given.
3595if test "${with_pic+set}" = set; then
3596 withval="$with_pic"
3597 pic_mode="$withval"
3598else
3599 pic_mode=default
13b2be9c 3600fi;
ac48eca1
AO
3601test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3602test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3603
252b5132
RH
3604# Some flags need to be propagated to the compiler or linker for good
3605# libtool support.
f9c19112 3606case $host in
252b5132
RH
3607*-*-irix6*)
3608 # Find out which ABI we are using.
13dfd2d0 3609 echo '#line 3609 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; then
e0001a05
NC
3615 if test "$lt_cv_prog_gnu_ld" = yes; then
3616 case `/usr/bin/file conftest.$ac_objext` in
3617 *32-bit*)
3618 LD="${LD-ld} -melf32bsmip"
3619 ;;
3620 *N32*)
3621 LD="${LD-ld} -melf32bmipn32"
3622 ;;
3623 *64-bit*)
3624 LD="${LD-ld} -melf64bmip"
3625 ;;
3626 esac
3627 else
f9c19112 3628 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3629 *32-bit*)
3630 LD="${LD-ld} -32"
3631 ;;
3632 *N32*)
3633 LD="${LD-ld} -n32"
3634 ;;
3635 *64-bit*)
3636 LD="${LD-ld} -64"
3637 ;;
3638 esac
e0001a05 3639 fi
252b5132
RH
3640 fi
3641 rm -rf conftest*
3642 ;;
3643
4867be41
DJ
3644ia64-*-hpux*)
3645 # Find out which ABI we are using.
3646 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
4867be41
DJ
3652 case "`/usr/bin/file conftest.o`" in
3653 *ELF-32*)
3654 HPUX_IA64_MODE="32"
3655 ;;
3656 *ELF-64*)
3657 HPUX_IA64_MODE="64"
3658 ;;
3659 esac
3660 fi
3661 rm -rf conftest*
3662 ;;
3663
252b5132
RH
3664*-*-sco3.2v5*)
3665 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3666 SAVE_CFLAGS="$CFLAGS"
252b5132 3667 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3668 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3669echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3670if test "${lt_cv_cc_needs_belf+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3672else
13b2be9c
DJ
3673
3674
ac48eca1 3675 ac_ext=c
ac48eca1 3676ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681 cat >conftest.$ac_ext <<_ACEOF
3682#line $LINENO "configure"
3683/* confdefs.h. */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h. */
bedf545c 3688
13b2be9c
DJ
3689int
3690main ()
3691{
6840198f 3692
13b2be9c
DJ
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext conftest$ac_exeext
3698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699 (eval $ac_link) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
bedf545c
ILT
3709 lt_cv_cc_needs_belf=yes
3710else
13b2be9c
DJ
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714lt_cv_cc_needs_belf=no
bedf545c 3715fi
13b2be9c 3716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ac48eca1 3717 ac_ext=c
ac48eca1 3718ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3722
bedf545c 3723fi
13b2be9c
DJ
3724echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3725echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3728 CFLAGS="$SAVE_CFLAGS"
3729 fi
252b5132
RH
3730 ;;
3731
d6d788bd 3732
252b5132
RH
3733esac
3734
d6d788bd 3735
bedf545c 3736# Save cache, so that ltconfig can load it
13b2be9c 3737cat >confcache <<\_ACEOF
bedf545c
ILT
3738# This file is a shell script that caches the results of configure
3739# tests run on this system so they can be shared between configure
13b2be9c
DJ
3740# scripts and configure runs, see configure's option --config-cache.
3741# It is not useful on other systems. If it contains results you don't
3742# want to keep, you may remove or edit it.
bedf545c 3743#
13b2be9c
DJ
3744# config.status only pays attention to the cache file if you give it
3745# the --recheck option to rerun configure.
bedf545c 3746#
13b2be9c
DJ
3747# `ac_cv_env_foo' variables (set or unset) will be overridden when
3748# loading this file, other *unset* `ac_cv_foo' will be assigned the
3749# following values.
3750
3751_ACEOF
3752
bedf545c 3753# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3754# but we know of no workaround that is simple, portable, and efficient.
3755# So, don't put newlines in cache variables' values.
3756# Ultrix sh set writes to stderr and can't be redirected directly,
3757# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
3758{
3759 (set) 2>&1 |
3760 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3761 *ac_space=\ *)
3762 # `set' does not quote correctly, so add quotes (double-quote
3763 # substitution turns \\\\ into \\, and sed turns \\ into \).
3764 sed -n \
3765 "s/'/'\\\\''/g;
3766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3767 ;;
3768 *)
3769 # `set' quotes correctly as required by POSIX, so do not add quotes.
3770 sed -n \
3771 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3772 ;;
3773 esac;
3774} |
3775 sed '
3776 t clear
3777 : clear
3778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3779 t end
3780 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3781 : end' >>confcache
3782if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 3783 if test -w $cache_file; then
13b2be9c
DJ
3784 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3785 cat confcache >$cache_file
bedf545c
ILT
3786 else
3787 echo "not updating unwritable cache $cache_file"
3788 fi
3789fi
3790rm -f confcache
3791
252b5132 3792# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3793AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3794MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3795LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3796AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3797objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3798deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3799${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3800$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
3801|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3802echo "$as_me: error: libtool configure failed" >&2;}
3803 { (exit 1); exit 1; }; }
252b5132 3804
bedf545c
ILT
3805# Reload cache, that may have been modified by ltconfig
3806if test -r "$cache_file"; then
13b2be9c
DJ
3807 # Some versions of bash will fail to source /dev/null (special
3808 # files actually), so we avoid doing that.
3809 if test -f "$cache_file"; then
3810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3811echo "$as_me: loading cache $cache_file" >&6;}
3812 case $cache_file in
3813 [\\/]* | ?:[\\/]* ) . $cache_file;;
3814 *) . ./$cache_file;;
3815 esac
3816 fi
bedf545c 3817else
13b2be9c
DJ
3818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3819echo "$as_me: creating cache $cache_file" >&6;}
3820 >$cache_file
bedf545c
ILT
3821fi
3822
d6d788bd 3823
bedf545c 3824# This can be used to rebuild libtool when needed
ac48eca1 3825LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
3826
3827# Always use our own libtool.
3828LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3829
252b5132
RH
3830# Redirect the config.log output again, so that the ltconfig log is not
3831# clobbered by the next message.
3832exec 5>>./config.log
3833
d6d788bd 3834
13b2be9c
DJ
3835
3836
3837
3838
d6d788bd 3839
252b5132
RH
3840user_bfd_gas=
3841# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3842if test "${enable_bfd_assembler+set}" = set; then
3843 enableval="$enable_bfd_assembler"
3844 case "${enableval}" in
3845 yes) need_bfd=yes user_bfd_gas=yes ;;
3846 no) user_bfd_gas=no ;;
13b2be9c
DJ
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3848echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
252b5132 3850esac
13b2be9c 3851fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3852if test "${enable_targets+set}" = set; then
3853 enableval="$enable_targets"
3854 case "${enableval}" in
13b2be9c
DJ
3855 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3856echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3857 { (exit 1); exit 1; }; }
252b5132
RH
3858 ;;
3859 no) enable_targets= ;;
3860 *) enable_targets=$enableval ;;
3861esac
13b2be9c 3862fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3863if test "${enable_commonbfdlib+set}" = set; then
3864 enableval="$enable_commonbfdlib"
3865 case "${enableval}" in
3866 yes) commonbfdlib=true ;;
3867 no) commonbfdlib=false ;;
13b2be9c
DJ
3868 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3869echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3870 { (exit 1); exit 1; }; } ;;
252b5132 3871esac
13b2be9c 3872fi;
252b5132
RH
3873using_cgen=no
3874
0218d1e4 3875build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3876# Check whether --enable-build-warnings or --disable-build-warnings was given.
3877if test "${enable_build_warnings+set}" = set; then
3878 enableval="$enable_build_warnings"
3879 case "${enableval}" in
3880 yes) ;;
3881 no) build_warnings="-w";;
3882 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3883 build_warnings="${build_warnings} ${t}";;
3884 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3885 build_warnings="${t} ${build_warnings}";;
3886 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3887esac
3888if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3889 echo "Setting warning flags = $build_warnings" 6>&1
3890fi
13b2be9c 3891fi; WARN_CFLAGS=""
a2d91340
AC
3892if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3893 WARN_CFLAGS="${build_warnings}"
3894fi
3895
d6d788bd 3896
252b5132 3897# Generate a header file
13b2be9c 3898 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 3899
252b5132 3900
76a27922
ILT
3901# If we are on a DOS filesystem, we must use gdb.ini rather than
3902# .gdbinit.
76a27922 3903case "${host}" in
591d4689 3904 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 3905 GDBINIT="gdb.ini"
13b2be9c
DJ
3906 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
3907
3908 ;;
3909 *)
3910 GDBINIT=".gdbinit"
3911 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
3912
76a27922
ILT
3913 ;;
3914esac
3915
d6d788bd 3916
252b5132
RH
3917te_file=generic
3918
3919# Makefile target for installing gas in $(tooldir)/bin.
3920install_tooldir=install-exec-tooldir
3921
3922canon_targets=""
15886821 3923all_targets=no
252b5132
RH
3924if test -n "$enable_targets" ; then
3925 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
3926 if test $t = "all"; then
3927 all_targets=yes
3928 continue
3929 fi
6d83c84b 3930 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
3931 if test -n "$result" ; then
3932 canon_targets="$canon_targets $result"
3933# else
3934# # Permit "all", etc. We don't support it yet though.
3935# canon_targets="$canon_targets $t"
3936 fi
3937 done
3938 _gas_uniq_list="$canon_targets"
3939_gas_uniq_newlist=""
3940for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3941 case $_gas_uniq_i in
3942 _gas_uniq_dummy) ;;
3943 *) case " $_gas_uniq_newlist " in
3944 *" $_gas_uniq_i "*) ;;
3945 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3946 esac ;;
3947 esac
3948done
3949canon_targets=$_gas_uniq_newlist
3950
3951fi
3952
3953emulations=""
3954
3955for this_target in $target $canon_targets ; do
3956
3957 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3958
3959 # check for architecture variants
3960 arch=
3961 endian=
3962 case ${cpu} in
2ce28d43 3963 am33_2.0) cpu_type=mn10300 endian=little ;;
252b5132 3964 alpha*) cpu_type=alpha ;;
54847c76
DJ
3965 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
3966 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
2fe04c57 3967 c4x*) cpu_type=tic4x ;;
252b5132 3968 hppa*) cpu_type=hppa ;;
80c7c40a 3969 i[3-7]86) cpu_type=i386 arch=i386;;
a735d1cd 3970 x86_64) cpu_type=i386 arch=x86_64;;
800eeca4 3971 ia64) cpu_type=ia64 ;;
13b2be9c
DJ
3972 ip2k) cpu_type=ip2k endian=big ;;
3973 iq2000) cpu_type=iq2000 endian=big ;;
6f6ef0fa 3974 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
252b5132
RH
3975 m680[012346]0) cpu_type=m68k ;;
3976 m68008) cpu_type=m68k ;;
3977 m683??) cpu_type=m68k ;;
3978 m5200) cpu_type=m68k ;;
3979 m8*) cpu_type=m88k ;;
3980 mips*el) cpu_type=mips endian=little ;;
3981 mips*) cpu_type=mips endian=big ;;
3b16e843 3982 or32*) cpu_type=or32 endian=big ;;
041dd5a9
ILT
3983 pjl*) cpu_type=pj endian=little ;;
3984 pj*) cpu_type=pj endian=big ;;
0baf16f2 3985 powerpc*le*) cpu_type=ppc endian=little ;;
252b5132
RH
3986 powerpc*) cpu_type=ppc endian=big ;;
3987 rs6000*) cpu_type=ppc ;;
a85d7ed0
NC
3988 s390x*) cpu_type=s390 arch=s390x ;;
3989 s390*) cpu_type=s390 arch=s390 ;;
5b0e55b6
JT
3990 sh5*) cpu_type=sh64 endian=big ;;
3991 sh5le*) cpu_type=sh64 endian=little ;;
3992 sh64*) cpu_type=sh64 endian=big ;;
3993 sh64le*) cpu_type=sh64 endian=little ;;
8d05742f 3994 sh*le) cpu_type=sh endian=little ;;
05982cac 3995 sh*) cpu_type=sh endian=big ;;
252b5132
RH
3996 sparclite*) cpu_type=sparc arch=sparclite ;;
3997 sparclet*) cpu_type=sparc arch=sparclet ;;
3998 sparc64*) cpu_type=sparc arch=v9-64 ;;
3999 sparc86x*) cpu_type=sparc arch=sparc86x ;;
4000 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4001 v850*) cpu_type=v850 ;;
e0001a05 4002 xtensa*) cpu_type=xtensa arch=xtensa ;;
252b5132
RH
4003 *) cpu_type=${cpu} ;;
4004 esac
4005
4006 if test ${this_target} = $target ; then
4007 target_cpu_type=${cpu_type}
4008 elif test ${target_cpu_type} != ${cpu_type} ; then
4009 continue
4010 fi
4011
4012 generic_target=${cpu_type}-$vendor-$os
4013 dev=no
4014 bfd_gas=no
4015 em=generic
4016
4017 # assign object format
4018 case ${generic_target} in
79500683
AM
4019 a29k-*-coff) fmt=coff ;;
4020 a29k-amd-udi) fmt=coff ;;
4021 a29k-amd-ebmon) fmt=coff ;;
4022 a29k-nyu-sym1) fmt=coff ;;
4023 a29k-*-rtems*) fmt=coff ;;
4024 a29k-*-vxworks*) fmt=coff ;;
4025
4026 alpha*-*-*vms*) fmt=evax ;;
4027 alpha*-*-netware*) fmt=ecoff ;;
4028 alpha*-*-osf*) fmt=ecoff ;;
4029 alpha*-*-linuxecoff*) fmt=ecoff ;;
4030 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
4031 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
4032 alpha*-*-openbsd*) fmt=elf em=obsd ;;
4033
2ce28d43
AO
4034 # cpu_type for am33_2.0 is set to mn10300
4035 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;;
4036
79500683
AM
4037 arc-*-elf*) fmt=elf ;;
4038
4039 arm-*-aout) fmt=aout ;;
4040 arm-*-coff | thumb-*-coff) fmt=coff ;;
28d297de 4041 arm-*-rtems* | thumb-*-rtems*) fmt=elf ;;
79500683 4042 arm-*-elf | thumb-*-elf) fmt=elf ;;
42b5d0ea 4043 arm-*-kaos*) fmt=elf ;;
0decc840 4044 arm*-*-conix*) fmt=elf ;;
79500683
AM
4045 arm-*-linux*aout*) fmt=aout em=linux ;;
4046 arm*-*-linux-gnu*) fmt=elf em=linux ;;
4047 arm*-*-uclinux*) fmt=elf em=linux ;;
8bdcf8ca 4048 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
79500683
AM
4049 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
4050 arm-**-nto*) fmt=elf ;;
4051 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
4052 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
c1e73230 4053 arm-*-wince) fmt=coff em=wince-pe ;;
79500683
AM
4054 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
4055 arm-*-riscix*) fmt=aout em=riscix ;;
79500683
AM
4056
4057 avr-*-*) fmt=elf ;;
4058
399f703e 4059 cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
79500683
AM
4060 cris-*-*) fmt=multi bfd_gas=yes ;;
4061
4062 d10v-*-*) fmt=elf ;;
4063 d30v-*-*) fmt=elf ;;
4064 dlx-*-*) fmt=elf ;;
4065
4066 fr30-*-*) fmt=elf ;;
4067 frv-*-*) fmt=elf ;;
4068
4069 hppa-*-linux*) case ${cpu} in
4070 hppa*64*) fmt=elf em=hppalinux64;;
4071 hppa*) fmt=elf em=linux;;
4072 esac ;;
4073 hppa-*-*elf*) fmt=elf em=hppa ;;
4074 hppa-*-lites*) fmt=elf em=hppa ;;
4075 hppa-*-netbsd*) fmt=elf em=nbsd ;;
4076 hppa-*-openbsd*) fmt=elf em=hppa ;;
4077 hppa-*-osf*) fmt=som em=hppa ;;
4078 hppa-*-rtems*) fmt=elf em=hppa ;;
4079 hppa-*-hpux11*) case ${cpu} in
4080 hppa*64*) fmt=elf em=hppa64 ;;
4081 hppa*) fmt=som em=hppa ;;
4082 esac ;;
4083 hppa-*-hpux*) fmt=som em=hppa ;;
4084 hppa-*-mpeix*) fmt=som em=hppa ;;
4085 hppa-*-bsd*) fmt=som em=hppa ;;
4086 hppa-*-hiux*) fmt=som em=hppa ;;
4087
4088 h8300-*-rtems*) fmt=coff ;;
4089 h8300-*-coff) fmt=coff ;;
4090 h8300-*-elf) fmt=elf ;;
4091 h8500-*-rtems*) fmt=coff ;;
4092 h8500-*-coff) fmt=coff ;;
4093
4094 i370-*-elf* | i370-*-linux*) fmt=elf ;;
4095 i386-ibm-aix*) fmt=coff em=i386aix ;;
4096 i386-sequent-bsd*) fmt=aout em=dynix ;;
4097 i386-*-beospe*) fmt=coff em=pe ;;
4098 i386-*-beos*) fmt=elf ;;
4099 i386-*-coff) fmt=coff ;;
4100 i386-*-elf) fmt=elf ;;
42b5d0ea 4101 i386-*-kaos*) fmt=elf ;;
79500683
AM
4102 i386-*-bsd*) fmt=aout em=386bsd ;;
4103 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
4104 i386-*-netbsdpe*) fmt=coff em=pe ;;
4615568e
NC
4105 i386-*-netbsd*-gnu* | \
4106 i386-*-knetbsd*-gnu | \
79500683
AM
4107 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
4108 i386-*-*n*bsd*) case ${cpu} in
4109 x86_64) fmt=elf em=nbsd ;;
4110 *) fmt=aout em=nbsd ;;
4111 esac ;;
4112 i386-*-linux*aout*) fmt=aout em=linux ;;
4113 i386-*-linux*oldld) fmt=aout em=linux ;;
4114 i386-*-linux*coff*) fmt=coff em=linux ;;
4115 i386-*-linux-gnu*) fmt=elf em=linux ;;
4116 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
4117 i386-*-lynxos*) fmt=coff em=lynx ;;
4118 i386-*-sysv[45]*) fmt=elf ;;
4119 i386-*-solaris*) fmt=elf ;;
4120 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
4121 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
4122 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
13dfd2d0
NC
4123 i386-*-freebsd* | i386-*-kfreebsd*-gnu)
4124 fmt=elf em=freebsd ;;
79500683
AM
4125 i386-*-sysv*) fmt=coff ;;
4126 i386-*-sco3.2v5*coff) fmt=coff ;;
4127 i386-*-isc*) fmt=coff ;;
4128 i386-*-sco3.2v5*) fmt=elf
4129 if test ${this_target} = $target; then
13b2be9c
DJ
4130
4131cat >>confdefs.h <<\_ACEOF
252b5132 4132#define SCO_ELF 1
13b2be9c 4133_ACEOF
252b5132 4134
79500683
AM
4135 fi ;;
4136 i386-*-sco3.2*) fmt=coff ;;
4137 i386-*-vsta) fmt=aout ;;
4138 i386-*-msdosdjgpp* \
4139 | i386-*-go32* \
4140 | i386-go32-rtems*) fmt=coff em=go32
13b2be9c
DJ
4141
4142cat >>confdefs.h <<\_ACEOF
56385375 4143#define STRICTCOFF 1
13b2be9c 4144_ACEOF
79500683
AM
4145 ;;
4146 i386-*-rtemself*) fmt=elf ;;
4147 i386-*-rtemscoff*) fmt=coff ;;
4148 i386-*-rtems*) fmt=elf ;;
4149 i386-*-gnu*) fmt=elf ;;
4150 i386-*-mach*) fmt=aout em=mach ;;
4151 i386-*-msdos*) fmt=aout ;;
4152 i386-*-moss*) fmt=elf ;;
4153 i386-*-pe) fmt=coff em=pe ;;
4154 i386-*-cygwin*) fmt=coff em=pe ;;
4155 i386-*-interix*) fmt=coff em=interix ;;
4156 i386-*-mingw32*) fmt=coff em=pe ;;
4157 i386-*-nto-qnx*) fmt=elf ;;
4158 i386-*-*nt*) fmt=coff em=pe ;;
79500683
AM
4159 i386-*-chaos) fmt=elf ;;
4160
4161 i860-*-*) fmt=elf endian=little
13b2be9c
DJ
4162 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4163echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
79500683
AM
4164 i960-*-bout) fmt=bout ;;
4165 i960-*-coff) fmt=coff em=ic960 ;;
4166 i960-*-rtems*) fmt=coff em=ic960 ;;
4167 i960-*-nindy*) fmt=bout ;;
4168 i960-*-vxworks5.0) fmt=bout ;;
4169 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
4170 i960-*-vxworks*) fmt=bout ;;
4171 i960-*-elf*) fmt=elf ;;
4172
4173 ia64-*-elf*) fmt=elf ;;
4174 ia64-*-aix*) fmt=elf em=ia64aix ;;
4175 ia64-*-linux-gnu*) fmt=elf em=linux ;;
4176 ia64-*-hpux*) fmt=elf em=hpux ;;
4177 ia64-*-netbsd*) fmt=elf em=nbsd ;;
4178
4179 ip2k-*-*) fmt=elf ;;
4180
da896d3f 4181 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
1c53c80d 4182
79500683
AM
4183 m32r-*-*) fmt=elf ;;
4184
4185 m68hc11-*-* | m6811-*-*) fmt=elf ;;
4186 m68hc12-*-* | m6812-*-*) fmt=elf ;;
4187
4188 m68k-*-vxworks*) fmt=aout em=sun3 ;;
4189 m68k-ericsson-ose) fmt=aout em=sun3 ;;
4190 m68k-*-sunos*) fmt=aout em=sun3 ;;
4191 m68k-motorola-sysv*) fmt=coff em=delta ;;
4192 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
4193 m68k-apollo-*) fmt=coff em=apollo ;;
4194 m68k-*-elf*) fmt=elf ;;
4195 m68k-*-sysv4*) fmt=elf em=svr4 ;;
4196 m68k-*-sysv*) fmt=coff ;;
4197 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
4198 m68k-*-rtems*) fmt=elf ;;
4199 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
4200 m68k-*-linux*aout*) fmt=aout em=linux ;;
4201 m68k-*-linux-gnu*) fmt=elf em=linux ;;
4202 m68k-*-gnu*) fmt=elf ;;
4203 m68k-*-lynxos*) fmt=coff em=lynx ;;
4204 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
4205 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4206 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4207 m68k-apple-aux*) fmt=coff em=aux ;;
4208 m68k-*-psos*) fmt=elf em=psos;;
4209
4210 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
4211 m88k-*-coff*) fmt=coff ;;
4212
4213 mcore-*-elf) fmt=elf ;;
4214 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
252b5132
RH
4215
4216 # don't change em like *-*-bsd does
79500683
AM
4217 mips-dec-openbsd*) fmt=elf endian=little ;;
4218 mips-dec-bsd*) fmt=aout endian=little ;;
4219 mips-sony-bsd*) fmt=ecoff ;;
4220 mips-*-bsd*)
13b2be9c
DJ
4221 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4222echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4223 { (exit 1); exit 1; }; } ;;
79500683
AM
4224 mips-*-ultrix*) fmt=ecoff endian=little ;;
4225 mips-*-osf*) fmt=ecoff endian=little ;;
4226 mips-*-ecoff*) fmt=ecoff ;;
4227 mips-*-pe*) fmt=coff endian=little em=pe ;;
1de5b6a1
AO
4228 mips-*-irix6*) fmt=elf em=irix ;;
4229 mips-*-irix5*) fmt=elf em=irix ;;
4230 mips-*-irix*) fmt=ecoff em=irix ;;
79500683
AM
4231 mips-*-lnews*) fmt=ecoff em=lnews ;;
4232 mips-*-riscos*) fmt=ecoff ;;
4233 mips*-*-linux*) fmt=elf em=tmips ;;
4234 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
4235 mips-*-sysv*) fmt=ecoff ;;
4236 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
dbeba5e5
CD
4237 mips-*-netbsd*) fmt=elf ;;
4238 mips-*-openbsd*) fmt=elf ;;
79500683
AM
4239
4240 mmix-*-*) fmt=elf ;;
4241 mn10200-*-*) fmt=elf ;;
4242 mn10300-*-*) fmt=elf ;;
2469cfa2 4243 msp430-*-*) fmt=elf ;;
79500683
AM
4244 openrisc-*-*) fmt=elf ;;
4245 or32-*-rtems*) fmt=coff ;;
4246 or32-*-coff) fmt=coff ;;
4247 or32-*-elf) fmt=elf ;;
4248 pj*) fmt=elf ;;
4249
4250 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
4251 ppc-*-winnt*) fmt=coff em=pe ;;
4252 ppc-*-aix5*) fmt=coff em=aix5 ;;
4253 ppc-*-aix*) fmt=coff ;;
4254 ppc-*-beos*) fmt=coff ;;
4255 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
4256 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
fda712ee 4257 ppc-*-linux-gnu*) fmt=elf em=linux
79500683
AM
4258 case "$endian" in
4259 big) ;;
13b2be9c
DJ
4260 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4261echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4262 { (exit 1); exit 1; }; } ;;
79500683
AM
4263 esac ;;
4264 ppc-*-solaris*) fmt=elf
4265 if test ${this_target} = $target; then
13b2be9c
DJ
4266
4267cat >>confdefs.h <<\_ACEOF
252b5132 4268#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4269_ACEOF
252b5132 4270
79500683
AM
4271 fi
4272 if test x${endian} = xbig; then
13b2be9c
DJ
4273 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4274echo "$as_me: error: Solaris must be configured little endian" >&2;}
4275 { (exit 1); exit 1; }; }
79500683
AM
4276 fi ;;
4277 ppc-*-rtems*) fmt=elf ;;
4278 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
4279 ppc-*-netware*) fmt=elf em=ppcnw ;;
59bc061d 4280 ppc-**-nto*) fmt=elf ;;
42b5d0ea 4281 ppc-*-kaos*) fmt=elf ;;
79500683
AM
4282
4283 s390x-*-linux-gnu*) fmt=elf em=linux ;;
4284 s390-*-linux-gnu*) fmt=elf em=linux ;;
4285
4286 sh*-*-linux*) fmt=elf em=linux
4287 case ${cpu} in
4288 sh*eb) endian=big ;;
4289 *) endian=little ;;
4290 esac ;;
4291 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
4292 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
4293 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
4294 sh-*-elf*) fmt=elf ;;
4295 sh-*-coff*) fmt=coff ;;
ed71e111
NC
4296 sh-*-nto*) fmt=elf ;;
4297 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
79500683
AM
4298 sh-*-rtemself*) fmt=elf ;;
4299 sh-*-rtems*) fmt=coff ;;
42b5d0ea
NC
4300 sh-*-kaos*) fmt=elf ;;
4301 shle*-*-kaos*) fmt=elf ;;
79500683
AM
4302 sh64-*-elf*) fmt=elf ;;
4303
4304 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
4305 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
4306 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
4307 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
4308
4309 sparc-*-rtemsaout*) fmt=aout ;;
4310 sparc-*-rtemself*) fmt=elf ;;
4311 sparc-*-rtems*) fmt=elf ;;
4312 sparc-*-sunos4*) fmt=aout em=sun3 ;;
4313 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4314 sparc-*-coff) fmt=coff ;;
4315 sparc-*-linux*aout*) fmt=aout em=linux ;;
4316 sparc-*-linux-gnu*) fmt=elf em=linux ;;
4317 sparc-*-lynxos*) fmt=coff em=lynx ;;
4318 sparc-fujitsu-none) fmt=aout ;;
4319 sparc-*-elf) fmt=elf ;;
4320 sparc-*-sysv4*) fmt=elf ;;
4321 sparc-*-solaris*) fmt=elf ;;
4322 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
4323 sparc-*-*n*bsd*) case ${cpu} in
4324 sparc64) fmt=elf em=nbsd ;;
4325 *) fmt=aout em=nbsd ;;
4326 esac ;;
4327 strongarm-*-coff) fmt=coff ;;
4328 strongarm-*-elf) fmt=elf ;;
42b5d0ea 4329 strongarm-*-kaos*) fmt=elf ;;
79500683
AM
4330 xscale-*-coff) fmt=coff ;;
4331 xscale-*-elf) fmt=elf ;;
4332
4333 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
4334 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
026df7c5 4335 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
79500683
AM
4336 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
4337 tic80-*-*) fmt=coff ;;
4338
4339 v850-*-*) fmt=elf ;;
4340 v850e-*-*) fmt=elf ;;
4341 v850ea-*-*) fmt=elf ;;
4342
4343 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
4344 vax-*-netbsd*) fmt=aout em=nbsd ;;
4345 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
4346 vax-*-vms) fmt=vms ;;
4347
4348 w65-*-*) fmt=coff ;;
4349
4350 xstormy16-*-*) fmt=elf ;;
4351
e0001a05
NC
4352 xtensa-*-*) fmt=elf ;;
4353
79500683
AM
4354 z8k-*-coff | z8k-*-sim) fmt=coff ;;
4355
4356 *-*-aout | *-*-scout) fmt=aout ;;
13dfd2d0 4357 *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
79500683
AM
4358 *-*-nindy*) fmt=bout ;;
4359 *-*-bsd*) fmt=aout em=sun3 ;;
4360 *-*-generic) fmt=generic ;;
4361 *-*-xray | *-*-hms) fmt=coff ;;
4362 *-*-sim) fmt=coff ;;
4363 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
0379c688
NC
4364 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
4365 *-*-vxworks | *-*-windiss) fmt=elf ;;
79500683 4366 *-*-netware) fmt=elf ;;
252b5132
RH
4367 esac
4368
4369 if test ${this_target} = $target ; then
4370 endian_def=
4371 if test x${endian} = xbig; then
4372 endian_def=1
4373 elif test x${endian} = xlittle; then
4374 endian_def=0
4375 fi
4376 if test x${endian_def} != x; then
13b2be9c
DJ
4377
4378cat >>confdefs.h <<_ACEOF
252b5132 4379#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4380_ACEOF
252b5132
RH
4381
4382 fi
4383 fi
4384
4385 case ${cpu_type}-${fmt} in
79500683
AM
4386 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4387 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4388 | *-elf | *-ecoff | *-som)
4389 bfd_gas=yes ;;
252b5132
RH
4390 esac
4391
4392# Other random stuff.
4393
316f5878
RS
4394 case ${cpu_type} in
4395 mips)
4396 # Set mips_cpu to the name of the default CPU.
4397 case ${target_cpu} in
4398 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4399 mips_cpu=from-abi
4400 ;;
4401 mipsisa32 | mipsisa32el)
4402 mips_cpu=mips32
4403 ;;
af7ee8bf
CD
4404 mipsisa32r2 | mipsisa32r2el)
4405 mips_cpu=mips32r2
4406 ;;
316f5878
RS
4407 mipsisa64 | mipsisa64el)
4408 mips_cpu=mips64
4409 ;;
5f74bc13
CD
4410 mipsisa64r2 | mipsisa64r2el)
4411 mips_cpu=mips64r2
4412 ;;
316f5878
RS
4413 mipstx39 | mipstx39el)
4414 mips_cpu=r3900
4415 ;;
8f6847cb
RS
4416 mips64vr | mips64vrel)
4417 mips_cpu=vr4100
4418 ;;
5f74bc13 4419 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4420 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4421 ;;
316f5878
RS
4422 mips64* | mipsisa64* | mipsisa32*)
4423 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4424 ;;
4425 *)
13b2be9c
DJ
4426 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4427echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4428 { (exit 1); exit 1; }; }
316f5878
RS
4429 ;;
4430 esac
4431 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4432 # binaries. It's a GNU extension that some OSes don't understand.
4433 # The value only matters on ELF targets.
4434 case ${target} in
4435 *-*-irix*)
4436 use_e_mips_abi_o32=0
4437 ;;
4438 *)
4439 use_e_mips_abi_o32=1
4440 ;;
4441 esac
4442 # Decide whether to generate 32-bit or 64-bit code by default.
4443 # Used to resolve -march=from-abi when an embedded ABI is selected.
4444 case ${target} in
4445 mips64*-*-* | mipsisa64*-*-*)
4446 mips_default_64bit=1
4447 ;;
4448 *)
4449 mips_default_64bit=0
4450 ;;
4451 esac
cac012d6
AO
4452 # Decide which ABI to target by default.
4453 case ${target} in
4454 mips64*-linux* | mips-sgi-irix6*)
4455 mips_default_abi=N32_ABI
4456 ;;
4457 mips*-linux*)
4458 mips_default_abi=O32_ABI
4459 ;;
4460 *)
4461 mips_default_abi=NO_ABI
4462 ;;
4463 esac
13b2be9c
DJ
4464
4465cat >>confdefs.h <<_ACEOF
316f5878 4466#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4467_ACEOF
316f5878 4468
13b2be9c
DJ
4469
4470cat >>confdefs.h <<_ACEOF
316f5878 4471#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4472_ACEOF
316f5878 4473
13b2be9c
DJ
4474
4475cat >>confdefs.h <<_ACEOF
316f5878 4476#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4477_ACEOF
cac012d6 4478
13b2be9c
DJ
4479
4480cat >>confdefs.h <<_ACEOF
cac012d6 4481#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4482_ACEOF
316f5878
RS
4483
4484 ;;
4485 esac
4486
252b5132
RH
4487 # Do we need the opcodes library?
4488 case ${cpu_type} in
4489 vax | i386 | tic30)
4490 ;;
4491
4492 *)
4493 need_opcodes=yes
4494
4495 case "${enable_shared}" in
4496 yes) shared_opcodes=true ;;
4497 *opcodes*) shared_opcodes=true ;;
4498 *) shared_opcodes=false ;;
4499 esac
4500 if test "${shared_opcodes}" = "true"; then
4501 # A shared libopcodes must be linked against libbfd.
4502 need_bfd=yes
4503 fi
4504 ;;
4505 esac
4506
4507 # Any other special object files needed ?
4508 case ${cpu_type} in
1c53c80d 4509 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4510 using_cgen=yes
4511 ;;
4512
0ebb9a87
DB
4513 frv)
4514 using_cgen=yes
4515 ;;
252b5132
RH
4516 m68k)
4517 case ${extra_objects} in
4518 *m68k-parse.o*) ;;
4519 *) extra_objects="$extra_objects m68k-parse.o" ;;
4520 esac
4521 ;;
4522
4523 mips)
13b2be9c 4524 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4525 if test $? -ne 0 ; then
4526 extra_objects="$extra_objects itbl-parse.o"
4527 fi
4528
13b2be9c 4529 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4530 if test $? -ne 0 ; then
4531 extra_objects="$extra_objects itbl-lex.o"
4532 fi
4533
13b2be9c 4534 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4535 if test $? -ne 0 ; then
4536 extra_objects="$extra_objects itbl-ops.o"
4537 fi
4538 ;;
4539
c1e4eef7 4540 i386 | s390 | sparc)
252b5132 4541 if test $this_target = $target ; then
13b2be9c
DJ
4542
4543cat >>confdefs.h <<_ACEOF
252b5132 4544#define DEFAULT_ARCH "${arch}"
13b2be9c 4545_ACEOF
252b5132
RH
4546
4547 fi
4548 ;;
93fbbb04
GK
4549
4550 xstormy16)
4551 using_cgen=yes
4552 ;;
4553
e0001a05
NC
4554 xtensa)
4555 echo ${extra_objects} | grep -s "xtensa-relax.o"
4556 if test $? -ne 0 ; then
4557 extra_objects="$extra_objects xtensa-relax.o"
4558 fi
4559 ;;
4560
252b5132
RH
4561 *)
4562 ;;
4563 esac
4564
4565 if test $using_cgen = yes ; then
4566 case "x${extra_objects}" in
4567 *cgen.o*) ;;
4568 *) extra_objects="$extra_objects cgen.o" ;;
4569 esac
4570 fi
4571
4572# See if we really can support this configuration with the emulation code.
4573
4574 if test $this_target = $target ; then
4575 primary_bfd_gas=$bfd_gas
4576 obj_format=$fmt
4577 te_file=$em
4578
4579 if test $bfd_gas = no ; then
4580 # Can't support other configurations this way.
4581 break
4582 fi
4583 elif test $bfd_gas = no ; then
4584 # Can't support this configuration.
4585 break
4586 fi
4587
4588# From target name and format, produce a list of supported emulations.
4589
4590 case ${generic_target}-${fmt} in
4591 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4592 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4593 big) emulation="mipsbelf mipslelf mipself" ;;
4594 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4595 esac ;;
4596 mips-*-lnews*-ecoff) ;;
4597 mips-*-*-ecoff) case "$endian" in
4598 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4599 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4600 esac ;;
4601 mips-*-*-elf) case "$endian" in
4602 big) emulation="mipsbelf mipslelf mipself" ;;
4603 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4604 esac ;;
906fac54 4605 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4606 # i386-pc-pe-coff != i386-pc-coff.
4607 i386-*-pe-coff) ;;
4c63da97
AM
4608 # Uncommenting the next line will turn on support for i386 AOUT
4609 # for the default linux configuration
4610 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4611 #
4612 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4613 i386-*-coff) emulation="i386coff" ;;
4c63da97 4614 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4615
f9c19112
HPN
4616 # Always all formats. The first stated emulation becomes the default.
4617 cris-*-*aout*) emulation="crisaout criself" ;;
4618 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4619 esac
4620
4621 emulations="$emulations $emulation"
4622
4623done
4624
15886821
L
4625# Turn on all targets if possible
4626if test ${all_targets} = "yes"; then
4627 case ${target_cpu_type} in
4628 i386)
4629 case ${obj_format} in
4630 aout)
4631 emulations="$emulations i386coff i386elf"
4632 ;;
4633 coff)
4634 emulations="$emulations i386aout i386elf"
4635 ;;
4636 elf)
4637 emulations="$emulations i386aout i386coff"
4638 ;;
4639 esac
4640 ;;
4641 esac
4642fi
4643
252b5132
RH
4644# Assign floating point type. Most processors with FP support
4645# IEEE FP. On those that don't support FP at all, usually IEEE
4646# is emulated.
4647case ${target_cpu} in
4648 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4649 pdp11) atof=vax ;;
252b5132
RH
4650 *) atof=ieee ;;
4651esac
4652
4653case "${obj_format}" in
13b2be9c
DJ
4654 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4655echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4656 { (exit 1); exit 1; }; } ;;
252b5132
RH
4657esac
4658
4659# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4660cgen_cpu_prefix=""
4661if test $using_cgen = yes ; then
4662 case ${target_cpu} in
4663 *) cgen_cpu_prefix=${target_cpu} ;;
4664 esac
13b2be9c
DJ
4665
4666
4667cat >>confdefs.h <<\_ACEOF
252b5132 4668#define USING_CGEN 1
13b2be9c 4669_ACEOF
252b5132
RH
4670
4671fi
4672
d6d788bd 4673
252b5132 4674if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4675 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4676echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4677 { (exit 1); exit 1; }; }
252b5132
RH
4678fi
4679
4680if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4681 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4682echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4683 { (exit 1); exit 1; }; }
252b5132
RH
4684fi
4685
4686case ${user_bfd_gas}-${primary_bfd_gas} in
4687 yes-yes | no-no)
4688 # We didn't override user's choice.
4689 ;;
4690 no-yes)
13b2be9c
DJ
4691 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4692echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4693 ;;
4694 no-preferred)
4695 primary_bfd_gas=no
4696 ;;
4697 *-preferred)
4698 primary_bfd_gas=yes
4699 ;;
4700 yes-*)
4701 primary_bfd_gas=yes
4702 ;;
4703 -*)
4704 # User specified nothing.
4705 ;;
4706esac
4707
4708# Some COFF configurations want these random other flags set.
4709case ${obj_format} in
4710 coff)
4711 case ${target_cpu_type} in
13b2be9c
DJ
4712 i386)
4713cat >>confdefs.h <<\_ACEOF
252b5132 4714#define I386COFF 1
13b2be9c 4715_ACEOF
252b5132 4716 ;;
13b2be9c
DJ
4717 m68k)
4718cat >>confdefs.h <<\_ACEOF
252b5132 4719#define M68KCOFF 1
13b2be9c 4720_ACEOF
252b5132 4721 ;;
13b2be9c
DJ
4722 m88k)
4723cat >>confdefs.h <<\_ACEOF
252b5132 4724#define M88KCOFF 1
13b2be9c 4725_ACEOF
252b5132
RH
4726 ;;
4727 esac
4728 ;;
4729esac
4730
4731# Getting this done right is going to be a bitch. Each configuration specified
4732# with --enable-targets=... should be checked for environment, format, cpu, and
4733# bfd_gas setting.
4734#
4735# For each configuration, the necessary object file support code must be linked
4736# in. This might be only one, it might be up to four. The necessary emulation
4737# code needs to be provided, too.
4738#
4739# And then there's "--enable-targets=all"....
4740#
4741# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4742
4743formats="${obj_format}"
4744emfiles=""
4745EMULATIONS=""
4746_gas_uniq_list="$emulations"
4747_gas_uniq_newlist=""
4748for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4749 case $_gas_uniq_i in
4750 _gas_uniq_dummy) ;;
4751 *) case " $_gas_uniq_newlist " in
4752 *" $_gas_uniq_i "*) ;;
4753 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4754 esac ;;
4755 esac
4756done
4757emulations=$_gas_uniq_newlist
4758
4759for em in . $emulations ; do
4760 case $em in
4761 .) continue ;;
97238fbd 4762 mipsbelf | mipslelf | mipself)
252b5132 4763 fmt=elf file=mipself ;;
97238fbd 4764 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4765 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4766 *coff)
4767 fmt=coff file=$em ;;
4768 *aout)
4769 fmt=aout file=$em ;;
4770 *elf)
4771 fmt=elf file=$em ;;
252b5132
RH
4772 esac
4773 formats="$formats $fmt"
4774 emfiles="$emfiles e-$file.o"
4775 EMULATIONS="$EMULATIONS &$em,"
4776done
4777_gas_uniq_list="$formats"
4778_gas_uniq_newlist=""
4779for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4780 case $_gas_uniq_i in
4781 _gas_uniq_dummy) ;;
4782 *) case " $_gas_uniq_newlist " in
4783 *" $_gas_uniq_i "*) ;;
4784 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4785 esac ;;
4786 esac
4787done
4788formats=$_gas_uniq_newlist
4789
4790_gas_uniq_list="$emfiles"
4791_gas_uniq_newlist=""
4792for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4793 case $_gas_uniq_i in
4794 _gas_uniq_dummy) ;;
4795 *) case " $_gas_uniq_newlist " in
4796 *" $_gas_uniq_i "*) ;;
4797 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4798 esac ;;
4799 esac
4800done
4801emfiles=$_gas_uniq_newlist
4802
4803if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4804 for fmt in $formats ; do
4805 case $fmt in
13b2be9c
DJ
4806 aout)
4807cat >>confdefs.h <<\_ACEOF
252b5132 4808#define OBJ_MAYBE_AOUT 1
13b2be9c 4809_ACEOF
252b5132 4810 ;;
13b2be9c
DJ
4811 bout)
4812cat >>confdefs.h <<\_ACEOF
252b5132 4813#define OBJ_MAYBE_BOUT 1
13b2be9c 4814_ACEOF
252b5132 4815 ;;
13b2be9c
DJ
4816 coff)
4817cat >>confdefs.h <<\_ACEOF
252b5132 4818#define OBJ_MAYBE_COFF 1
13b2be9c 4819_ACEOF
252b5132 4820 ;;
13b2be9c
DJ
4821 ecoff)
4822cat >>confdefs.h <<\_ACEOF
252b5132 4823#define OBJ_MAYBE_ECOFF 1
13b2be9c 4824_ACEOF
252b5132 4825 ;;
13b2be9c
DJ
4826 elf)
4827cat >>confdefs.h <<\_ACEOF
252b5132 4828#define OBJ_MAYBE_ELF 1
13b2be9c 4829_ACEOF
252b5132 4830 ;;
13b2be9c
DJ
4831 generic)
4832cat >>confdefs.h <<\_ACEOF
252b5132 4833#define OBJ_MAYBE_GENERIC 1
13b2be9c 4834_ACEOF
252b5132 4835 ;;
13b2be9c
DJ
4836 hp300)
4837cat >>confdefs.h <<\_ACEOF
252b5132 4838#define OBJ_MAYBE_HP300 1
13b2be9c 4839_ACEOF
252b5132 4840 ;;
13b2be9c
DJ
4841 ieee)
4842cat >>confdefs.h <<\_ACEOF
252b5132 4843#define OBJ_MAYBE_IEEE 1
13b2be9c 4844_ACEOF
252b5132 4845 ;;
13b2be9c
DJ
4846 som)
4847cat >>confdefs.h <<\_ACEOF
252b5132 4848#define OBJ_MAYBE_SOM 1
13b2be9c 4849_ACEOF
252b5132 4850 ;;
13b2be9c
DJ
4851 vms)
4852cat >>confdefs.h <<\_ACEOF
252b5132 4853#define OBJ_MAYBE_VMS 1
13b2be9c 4854_ACEOF
252b5132
RH
4855 ;;
4856 esac
4857 extra_objects="$extra_objects obj-$fmt.o"
4858 done
4859 obj_format=multi
4860fi
4861if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 4862 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
4863 # e-mips* has more than one emulation per file, e-i386* has just one at the
4864 # moment. If only one emulation is specified, then don't define
4865 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4866 case "${obj_format}${emfiles}" in
4867 multi* | *mips*)
4ca72d38 4868 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
4869
4870cat >>confdefs.h <<\_ACEOF
252b5132 4871#define USE_EMULATIONS 1
13b2be9c 4872_ACEOF
4ca72d38
AM
4873 ;;
4874 esac
252b5132
RH
4875fi
4876
13b2be9c
DJ
4877
4878cat >>confdefs.h <<_ACEOF
252b5132 4879#define EMULATIONS $EMULATIONS
13b2be9c
DJ
4880_ACEOF
4881
252b5132 4882
13b2be9c 4883cat >>confdefs.h <<_ACEOF
252b5132 4884#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 4885_ACEOF
252b5132 4886
d6d788bd 4887
252b5132
RH
4888case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4889 yes-*-coff) need_bfd=yes ;;
4890 no-*-coff) need_bfd=yes
13b2be9c
DJ
4891
4892cat >>confdefs.h <<\_ACEOF
252b5132 4893#define MANY_SEGMENTS 1
13b2be9c 4894_ACEOF
252b5132
RH
4895 ;;
4896esac
4897
4898reject_dev_configs=yes
4899
4900case ${reject_dev_configs}-${dev} in
4901 yes-yes) # Oops.
13b2be9c
DJ
4902 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4903echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4904 { (exit 1); exit 1; }; }
252b5132
RH
4905 ;;
4906esac
4907
d6d788bd
L
4908
4909
4910
4911
4912
4913
252b5132 4914case "${primary_bfd_gas}" in
13b2be9c
DJ
4915 yes)
4916cat >>confdefs.h <<\_ACEOF
252b5132 4917#define BFD_ASSEMBLER 1
13b2be9c 4918_ACEOF
252b5132
RH
4919
4920 need_bfd=yes ;;
4921esac
4922
4923# do we need the opcodes library?
4924case "${need_opcodes}" in
4925yes)
4926 OPCODES_LIB=../opcodes/libopcodes.la
4927 ;;
4928esac
4929
4930case "${need_bfd}" in
4931yes)
4932 BFDLIB=../bfd/libbfd.la
4001ad8c 4933 BFDVER_H=../bfd/bfdver.h
29589b0c 4934 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
252b5132
RH
4935 ;;
4936esac
4937
d6d788bd
L
4938
4939
4940
4941
4942
4001ad8c 4943
13b2be9c
DJ
4944
4945cat >>confdefs.h <<_ACEOF
252b5132 4946#define TARGET_ALIAS "${target_alias}"
13b2be9c 4947_ACEOF
9b2b7d69 4948
13b2be9c
DJ
4949
4950cat >>confdefs.h <<_ACEOF
252b5132 4951#define TARGET_CANONICAL "${target}"
13b2be9c 4952_ACEOF
9b2b7d69 4953
13b2be9c
DJ
4954
4955cat >>confdefs.h <<_ACEOF
252b5132 4956#define TARGET_CPU "${target_cpu}"
13b2be9c 4957_ACEOF
9b2b7d69 4958
13b2be9c
DJ
4959
4960cat >>confdefs.h <<_ACEOF
252b5132 4961#define TARGET_VENDOR "${target_vendor}"
13b2be9c 4962_ACEOF
9b2b7d69 4963
13b2be9c
DJ
4964
4965cat >>confdefs.h <<_ACEOF
252b5132 4966#define TARGET_OS "${target_os}"
13b2be9c
DJ
4967_ACEOF
4968
4969
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4977set dummy ${ac_tool_prefix}gcc; ac_word=$2
4978echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980if test "${ac_cv_prog_CC+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998done
252b5132 4999
13b2be9c
DJ
5000fi
5001fi
5002CC=$ac_cv_prog_CC
5003if test -n "$CC"; then
5004 echo "$as_me:$LINENO: result: $CC" >&5
5005echo "${ECHO_T}$CC" >&6
5006else
5007 echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
5009fi
252b5132 5010
13b2be9c
DJ
5011fi
5012if test -z "$ac_cv_prog_CC"; then
5013 ac_ct_CC=$CC
5014 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5015set dummy gcc; ac_word=$2
13b2be9c
DJ
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 if test -n "$ac_ct_CC"; then
5022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_CC="gcc"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035done
5036done
5037
5038fi
5039fi
5040ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041if test -n "$ac_ct_CC"; then
5042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043echo "${ECHO_T}$ac_ct_CC" >&6
5044else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049 CC=$ac_ct_CC
5050else
5051 CC="$ac_cv_prog_CC"
5052fi
5053
5054if test -z "$CC"; then
5055 if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5057set dummy ${ac_tool_prefix}cc; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_CC+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5062else
5063 if test -n "$CC"; then
5064 ac_cv_prog_CC="$CC" # Let the user override the test.
5065else
13b2be9c
DJ
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CC="${ac_tool_prefix}cc"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078done
5079
252b5132
RH
5080fi
5081fi
13b2be9c 5082CC=$ac_cv_prog_CC
252b5132 5083if test -n "$CC"; then
13b2be9c
DJ
5084 echo "$as_me:$LINENO: result: $CC" >&5
5085echo "${ECHO_T}$CC" >&6
5086else
5087 echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091fi
5092if test -z "$ac_cv_prog_CC"; then
5093 ac_ct_CC=$CC
5094 # Extract the first word of "cc", so it can be a program name with args.
5095set dummy cc; ac_word=$2
5096echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5100else
13b2be9c
DJ
5101 if test -n "$ac_ct_CC"; then
5102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_CC="cc"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115done
5116done
5117
5118fi
5119fi
5120ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121if test -n "$ac_ct_CC"; then
5122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123echo "${ECHO_T}$ac_ct_CC" >&6
5124else
5125 echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
5127fi
5128
5129 CC=$ac_ct_CC
5130else
5131 CC="$ac_cv_prog_CC"
6840198f
NC
5132fi
5133
13b2be9c 5134fi
252b5132
RH
5135if test -z "$CC"; then
5136 # Extract the first word of "cc", so it can be a program name with args.
5137set dummy cc; ac_word=$2
13b2be9c
DJ
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_CC+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5142else
5143 if test -n "$CC"; then
5144 ac_cv_prog_CC="$CC" # Let the user override the test.
5145else
252b5132 5146 ac_prog_rejected=no
13b2be9c
DJ
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5155 ac_prog_rejected=yes
5156 continue
5157 fi
5158 ac_cv_prog_CC="cc"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
252b5132
RH
5165if test $ac_prog_rejected = yes; then
5166 # We found a bogon in the path, so make sure we never use it.
5167 set dummy $ac_cv_prog_CC
5168 shift
13b2be9c 5169 if test $# != 0; then
252b5132
RH
5170 # We chose a different compiler from the bogus one.
5171 # However, it has the same basename, so the bogon will be chosen
5172 # first if we set CC to just the basename; use the full file name.
5173 shift
13b2be9c 5174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5175 fi
5176fi
5177fi
5178fi
13b2be9c 5179CC=$ac_cv_prog_CC
252b5132 5180if test -n "$CC"; then
13b2be9c
DJ
5181 echo "$as_me:$LINENO: result: $CC" >&5
5182echo "${ECHO_T}$CC" >&6
252b5132 5183else
13b2be9c
DJ
5184 echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
252b5132
RH
5186fi
5187
13b2be9c
DJ
5188fi
5189if test -z "$CC"; then
5190 if test -n "$ac_tool_prefix"; then
5191 for ac_prog in cl
5192 do
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
c8615825 5223else
13b2be9c
DJ
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
c8615825 5226fi
6840198f 5227
13b2be9c
DJ
5228 test -n "$CC" && break
5229 done
5230fi
5231if test -z "$CC"; then
5232 ac_ct_CC=$CC
5233 for ac_prog in cl
5234do
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236set dummy $ac_prog; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5241else
13b2be9c
DJ
5242 if test -n "$ac_ct_CC"; then
5243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5244else
13b2be9c
DJ
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_CC="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257done
5258
c8615825
AM
5259fi
5260fi
13b2be9c
DJ
5261ac_ct_CC=$ac_cv_prog_ac_ct_CC
5262if test -n "$ac_ct_CC"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5264echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5265else
13b2be9c
DJ
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
c8615825 5268fi
252b5132 5269
13b2be9c
DJ
5270 test -n "$ac_ct_CC" && break
5271done
5272
5273 CC=$ac_ct_CC
5274fi
5275
5276fi
5277
5278
5279test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5280See \`config.log' for more details." >&5
5281echo "$as_me: error: no acceptable C compiler found in \$PATH
5282See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5284
5285# Provide some information about the compiler.
5286echo "$as_me:$LINENO:" \
5287 "checking for C compiler version" >&5
5288ac_compiler=`set X $ac_compile; echo $2`
5289{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5290 (eval $ac_compiler --version </dev/null >&5) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5295 (eval $ac_compiler -v </dev/null >&5) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }
5299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5300 (eval $ac_compiler -V </dev/null >&5) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304
5305echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5306echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5307if test "${ac_cv_c_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 cat >conftest.$ac_ext <<_ACEOF
5311#line $LINENO "configure"
5312/* confdefs.h. */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h. */
5317
5318int
5319main ()
5320{
5321#ifndef __GNUC__
5322 choke me
5323#endif
5324
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_compiler_gnu=yes
5342else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346ac_compiler_gnu=no
5347fi
5348rm -f conftest.$ac_objext conftest.$ac_ext
5349ac_cv_c_compiler_gnu=$ac_compiler_gnu
5350
5351fi
5352echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5353echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5354GCC=`test $ac_compiler_gnu = yes && echo yes`
5355ac_test_CFLAGS=${CFLAGS+set}
5356ac_save_CFLAGS=$CFLAGS
5357CFLAGS="-g"
5358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5360if test "${ac_cv_prog_cc_g+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363 cat >conftest.$ac_ext <<_ACEOF
5364#line $LINENO "configure"
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext
5380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
252b5132
RH
5391 ac_cv_prog_cc_g=yes
5392else
13b2be9c
DJ
5393 echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5395
13b2be9c 5396ac_cv_prog_cc_g=no
252b5132 5397fi
13b2be9c
DJ
5398rm -f conftest.$ac_objext conftest.$ac_ext
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5401echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5402if test "$ac_test_CFLAGS" = set; then
13b2be9c 5403 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5404elif test $ac_cv_prog_cc_g = yes; then
5405 if test "$GCC" = yes; then
5406 CFLAGS="-g -O2"
5407 else
5408 CFLAGS="-g"
5409 fi
5410else
9b2b7d69
MM
5411 if test "$GCC" = yes; then
5412 CFLAGS="-O2"
5413 else
5414 CFLAGS=
5415 fi
5416fi
13b2be9c
DJ
5417echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5418echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5419if test "${ac_cv_prog_cc_stdc+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 ac_cv_prog_cc_stdc=no
5423ac_save_CC=$CC
5424cat >conftest.$ac_ext <<_ACEOF
5425#line $LINENO "configure"
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431#include <stdarg.h>
5432#include <stdio.h>
5433#include <sys/types.h>
5434#include <sys/stat.h>
5435/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5436struct buf { int x; };
5437FILE * (*rcsopen) (struct buf *, struct stat *, int);
5438static char *e (p, i)
5439 char **p;
5440 int i;
5441{
5442 return p[i];
5443}
5444static char *f (char * (*g) (char **, int), char **p, ...)
5445{
5446 char *s;
5447 va_list v;
5448 va_start (v,p);
5449 s = g (p, va_arg (v,int));
5450 va_end (v);
5451 return s;
5452}
5453int test (int i, double x);
5454struct s1 {int (*f) (int a);};
5455struct s2 {int (*f) (double a);};
5456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5457int argc;
5458char **argv;
5459int
5460main ()
5461{
5462return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5463 ;
5464 return 0;
5465}
5466_ACEOF
5467# Don't try gcc -ansi; that turns off useful extensions and
5468# breaks some systems' header files.
5469# AIX -qlanglvl=ansi
5470# Ultrix and OSF/1 -std1
5471# HP-UX 10.20 and later -Ae
5472# HP-UX older versions -Aa -D_HPUX_SOURCE
5473# SVR4 -Xc -D__EXTENSIONS__
5474for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5475do
5476 CC="$ac_save_CC $ac_arg"
5477 rm -f conftest.$ac_objext
5478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_prog_cc_stdc=$ac_arg
5490break
5491else
5492 echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
5495fi
5496rm -f conftest.$ac_objext
5497done
5498rm -f conftest.$ac_ext conftest.$ac_objext
5499CC=$ac_save_CC
5500
5501fi
5502
5503case "x$ac_cv_prog_cc_stdc" in
5504 x|xno)
5505 echo "$as_me:$LINENO: result: none needed" >&5
5506echo "${ECHO_T}none needed" >&6 ;;
5507 *)
5508 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5509echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5510 CC="$CC $ac_cv_prog_cc_stdc" ;;
5511esac
5512
5513# Some people use a C++ compiler to compile C. Since we use `exit',
5514# in C++ we need to declare it. In case someone uses the same compiler
5515# for both compiling C and C++ we need to have the C++ compiler decide
5516# the declaration of exit, since it's the most demanding environment.
5517cat >conftest.$ac_ext <<_ACEOF
5518#ifndef __cplusplus
5519 choke me
5520#endif
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 for ac_declaration in \
13dfd2d0
NC
5535 ''\
5536 '#include <stdlib.h>' \
13b2be9c
DJ
5537 'extern "C" void std::exit (int) throw (); using std::exit;' \
5538 'extern "C" void std::exit (int); using std::exit;' \
5539 'extern "C" void exit (int) throw ();' \
5540 'extern "C" void exit (int);' \
5541 'void exit (int);'
5542do
5543 cat >conftest.$ac_ext <<_ACEOF
5544#line $LINENO "configure"
5545/* confdefs.h. */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h. */
13b2be9c 5550#include <stdlib.h>
13dfd2d0 5551$ac_declaration
13b2be9c
DJ
5552int
5553main ()
5554{
5555exit (42);
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
5561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 :
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577continue
5578fi
5579rm -f conftest.$ac_objext conftest.$ac_ext
5580 cat >conftest.$ac_ext <<_ACEOF
5581#line $LINENO "configure"
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h. */
5587$ac_declaration
5588int
5589main ()
5590{
5591exit (42);
5592 ;
5593 return 0;
5594}
5595_ACEOF
5596rm -f conftest.$ac_objext
5597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 break
5609else
5610 echo "$as_me: failed program was:" >&5
5611sed 's/^/| /' conftest.$ac_ext >&5
5612
5613fi
5614rm -f conftest.$ac_objext conftest.$ac_ext
5615done
5616rm -f conftest*
5617if test -n "$ac_declaration"; then
5618 echo '#ifdef __cplusplus' >>confdefs.h
5619 echo $ac_declaration >>confdefs.h
5620 echo '#endif' >>confdefs.h
5621fi
5622
5623else
5624 echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627fi
5628rm -f conftest.$ac_objext conftest.$ac_ext
5629ac_ext=c
5630ac_cpp='$CPP $CPPFLAGS'
5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5634
5635
5636for ac_prog in 'bison -y' byacc
9b2b7d69 5637do
13b2be9c 5638 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5639set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5640echo "$as_me:$LINENO: checking for $ac_word" >&5
5641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5642if test "${ac_cv_prog_YACC+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5644else
5645 if test -n "$YACC"; then
5646 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5647else
13b2be9c
DJ
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_YACC="$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659done
5660done
5661
c8615825
AM
5662fi
5663fi
13b2be9c 5664YACC=$ac_cv_prog_YACC
c8615825 5665if test -n "$YACC"; then
13b2be9c
DJ
5666 echo "$as_me:$LINENO: result: $YACC" >&5
5667echo "${ECHO_T}$YACC" >&6
c8615825 5668else
13b2be9c
DJ
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
c8615825
AM
5671fi
5672
13b2be9c 5673 test -n "$YACC" && break
c8615825
AM
5674done
5675test -n "$YACC" || YACC="yacc"
5676
13b2be9c
DJ
5677for ac_prog in flex lex
5678do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
5681echo "$as_me:$LINENO: checking for $ac_word" >&5
5682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683if test "${ac_cv_prog_LEX+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5685else
13b2be9c
DJ
5686 if test -n "$LEX"; then
5687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5688else
13b2be9c
DJ
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_LEX="$ac_prog"
5697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701done
5702
5703fi
5704fi
5705LEX=$ac_cv_prog_LEX
5706if test -n "$LEX"; then
5707 echo "$as_me:$LINENO: result: $LEX" >&5
5708echo "${ECHO_T}$LEX" >&6
c8615825 5709else
13b2be9c
DJ
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712fi
5713
5714 test -n "$LEX" && break
5715done
5716test -n "$LEX" || LEX=":"
5717
5718if test -z "$LEXLIB"
5719then
5720 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5721echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5722if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725 ac_check_lib_save_LIBS=$LIBS
5726LIBS="-lfl $LIBS"
5727cat >conftest.$ac_ext <<_ACEOF
5728#line $LINENO "configure"
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734
5735/* Override any gcc2 internal prototype to avoid an error. */
5736#ifdef __cplusplus
5737extern "C"
5738#endif
5739/* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5741char yywrap ();
5742int
5743main ()
5744{
5745yywrap ();
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750rm -f conftest.$ac_objext conftest$ac_exeext
5751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752 (eval $ac_link) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -s conftest$ac_exeext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_lib_fl_yywrap=yes
5763else
5764 echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767ac_cv_lib_fl_yywrap=no
5768fi
5769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5770LIBS=$ac_check_lib_save_LIBS
5771fi
5772echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5773echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5774if test $ac_cv_lib_fl_yywrap = yes; then
5775 LEXLIB="-lfl"
5776else
5777 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5778echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5779if test "${ac_cv_lib_l_yywrap+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 ac_check_lib_save_LIBS=$LIBS
5783LIBS="-ll $LIBS"
5784cat >conftest.$ac_ext <<_ACEOF
5785#line $LINENO "configure"
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791
5792/* Override any gcc2 internal prototype to avoid an error. */
5793#ifdef __cplusplus
5794extern "C"
5795#endif
5796/* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5798char yywrap ();
5799int
5800main ()
5801{
5802yywrap ();
5803 ;
5804 return 0;
5805}
5806_ACEOF
5807rm -f conftest.$ac_objext conftest$ac_exeext
5808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_lib_l_yywrap=yes
9b2b7d69 5820else
13b2be9c
DJ
5821 echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824ac_cv_lib_l_yywrap=no
9b2b7d69 5825fi
13b2be9c
DJ
5826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5827LIBS=$ac_check_lib_save_LIBS
9b2b7d69 5828fi
13b2be9c
DJ
5829echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5830echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5831if test $ac_cv_lib_l_yywrap = yes; then
5832 LEXLIB="-ll"
252b5132 5833fi
13b2be9c
DJ
5834
5835fi
5836
252b5132 5837fi
13b2be9c
DJ
5838
5839if test "x$LEX" != "x:"; then
5840 echo "$as_me:$LINENO: checking lex output file root" >&5
5841echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5842if test "${ac_cv_prog_lex_root+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 # The minimal lex program is just a single line: %%. But some broken lexes
5846# (Solaris, I think it was) want two %% lines, so accommodate them.
5847cat >conftest.l <<_ACEOF
5848%%
5849%%
5850_ACEOF
5851{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5852 (eval $LEX conftest.l) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }
5856if test -f lex.yy.c; then
5857 ac_cv_prog_lex_root=lex.yy
5858elif test -f lexyy.c; then
5859 ac_cv_prog_lex_root=lexyy
252b5132 5860else
13b2be9c
DJ
5861 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5862echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5863 { (exit 1); exit 1; }; }
252b5132 5864fi
13b2be9c
DJ
5865fi
5866echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5867echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5868rm -f conftest.l
5869LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 5870
13b2be9c
DJ
5871echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5872echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5873if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5875else
13b2be9c
DJ
5876 # POSIX says lex can declare yytext either as a pointer or an array; the
5877# default is implementation-dependent. Figure out which it is, since
5878# not all implementations provide the %pointer and %array declarations.
5879ac_cv_prog_lex_yytext_pointer=no
5880echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5881ac_save_LIBS=$LIBS
5882LIBS="$LIBS $LEXLIB"
5883cat >conftest.$ac_ext <<_ACEOF
5884`cat $LEX_OUTPUT_ROOT.c`
5885_ACEOF
5886rm -f conftest.$ac_objext conftest$ac_exeext
5887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888 (eval $ac_link) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_prog_lex_yytext_pointer=yes
252b5132 5899else
13b2be9c
DJ
5900 echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
252b5132 5903fi
13b2be9c
DJ
5904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5905LIBS=$ac_save_LIBS
5906rm -f "${LEX_OUTPUT_ROOT}.c"
5907
252b5132 5908fi
13b2be9c
DJ
5909echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5910echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5911if test $ac_cv_prog_lex_yytext_pointer = yes; then
5912
5913cat >>confdefs.h <<\_ACEOF
5914#define YYTEXT_POINTER 1
5915_ACEOF
5916
5917fi
5918
5919fi
5920if test "$LEX" = :; then
5921 LEX=${am_missing_run}flex
5922fi
5923
5924ALL_LINGUAS="fr tr es"
5925if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5928echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930if test "${ac_cv_prog_RANLIB+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 if test -n "$RANLIB"; then
5934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948done
5949
5950fi
5951fi
5952RANLIB=$ac_cv_prog_RANLIB
5953if test -n "$RANLIB"; then
5954 echo "$as_me:$LINENO: result: $RANLIB" >&5
5955echo "${ECHO_T}$RANLIB" >&6
252b5132 5956else
13b2be9c
DJ
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
252b5132
RH
5959fi
5960
13b2be9c
DJ
5961fi
5962if test -z "$ac_cv_prog_RANLIB"; then
5963 ac_ct_RANLIB=$RANLIB
5964 # Extract the first word of "ranlib", so it can be a program name with args.
5965set dummy ranlib; ac_word=$2
5966echo "$as_me:$LINENO: checking for $ac_word" >&5
5967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 if test -n "$ac_ct_RANLIB"; then
5972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_RANLIB="ranlib"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985done
6840198f 5986done
d6d788bd 5987
13b2be9c
DJ
5988 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5989fi
5990fi
5991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5992if test -n "$ac_ct_RANLIB"; then
5993 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5994echo "${ECHO_T}$ac_ct_RANLIB" >&6
d6d788bd 5995else
13b2be9c
DJ
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998fi
5999
6000 RANLIB=$ac_ct_RANLIB
d6d788bd 6001else
13b2be9c
DJ
6002 RANLIB="$ac_cv_prog_RANLIB"
6003fi
6004
6005ac_ext=c
6006ac_cpp='$CPP $CPPFLAGS'
6007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6011echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6012# On Suns, sometimes $CPP names a directory.
6013if test -n "$CPP" && test -d "$CPP"; then
6014 CPP=
d6d788bd 6015fi
13b2be9c
DJ
6016if test -z "$CPP"; then
6017 if test "${ac_cv_prog_CPP+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020 # Double quotes because CPP needs to be expanded
6021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6022 do
6023 ac_preproc_ok=false
6024for ac_c_preproc_warn_flag in '' yes
6025do
6026 # Use a header file that comes with gcc, so configuring glibc
6027 # with a fresh cross-compiler works.
6028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6029 # <limits.h> exists even on freestanding compilers.
6030 # On the NeXT, cc -E runs the code through the compiler's parser,
6031 # not just through cpp. "Syntax error" is here to catch this case.
6032 cat >conftest.$ac_ext <<_ACEOF
6033#line $LINENO "configure"
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
6039#ifdef __STDC__
6040# include <limits.h>
6041#else
6042# include <assert.h>
6043#endif
6044 Syntax error
6045_ACEOF
6046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null; then
6054 if test -s conftest.err; then
6055 ac_cpp_err=$ac_c_preproc_warn_flag
6056 else
6057 ac_cpp_err=
6058 fi
6059else
6060 ac_cpp_err=yes
d6d788bd 6061fi
13b2be9c
DJ
6062if test -z "$ac_cpp_err"; then
6063 :
6064else
6065 echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 # Broken: fails on valid input.
6069continue
6070fi
6071rm -f conftest.err conftest.$ac_ext
6072
6073 # OK, works on sane cases. Now check whether non-existent headers
6074 # can be detected and how.
6075 cat >conftest.$ac_ext <<_ACEOF
6076#line $LINENO "configure"
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082#include <ac_nonexistent.h>
6083_ACEOF
6084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null; then
6092 if test -s conftest.err; then
6093 ac_cpp_err=$ac_c_preproc_warn_flag
6094 else
6095 ac_cpp_err=
6096 fi
d6d788bd 6097else
13b2be9c 6098 ac_cpp_err=yes
d6d788bd 6099fi
13b2be9c
DJ
6100if test -z "$ac_cpp_err"; then
6101 # Broken: success on invalid input.
6102continue
6103else
6104 echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6106
13b2be9c
DJ
6107 # Passes both tests.
6108ac_preproc_ok=:
6109break
6110fi
6111rm -f conftest.err conftest.$ac_ext
252b5132 6112
13b2be9c
DJ
6113done
6114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115rm -f conftest.err conftest.$ac_ext
6116if $ac_preproc_ok; then
6117 break
9b2b7d69 6118fi
13b2be9c
DJ
6119
6120 done
6121 ac_cv_prog_CPP=$CPP
9b2b7d69 6122
d6d788bd 6123fi
13b2be9c 6124 CPP=$ac_cv_prog_CPP
c8615825 6125else
13b2be9c 6126 ac_cv_prog_CPP=$CPP
c8615825 6127fi
13b2be9c
DJ
6128echo "$as_me:$LINENO: result: $CPP" >&5
6129echo "${ECHO_T}$CPP" >&6
6130ac_preproc_ok=false
6131for ac_c_preproc_warn_flag in '' yes
6132do
6133 # Use a header file that comes with gcc, so configuring glibc
6134 # with a fresh cross-compiler works.
6135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6136 # <limits.h> exists even on freestanding compilers.
6137 # On the NeXT, cc -E runs the code through the compiler's parser,
6138 # not just through cpp. "Syntax error" is here to catch this case.
6139 cat >conftest.$ac_ext <<_ACEOF
6140#line $LINENO "configure"
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146#ifdef __STDC__
6147# include <limits.h>
6148#else
6149# include <assert.h>
6150#endif
6151 Syntax error
6152_ACEOF
6153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 else
6164 ac_cpp_err=
6165 fi
6166else
6167 ac_cpp_err=yes
252b5132 6168fi
13b2be9c
DJ
6169if test -z "$ac_cpp_err"; then
6170 :
252b5132 6171else
13b2be9c
DJ
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 # Broken: fails on valid input.
6176continue
6177fi
6178rm -f conftest.err conftest.$ac_ext
6179
6180 # OK, works on sane cases. Now check whether non-existent headers
6181 # can be detected and how.
6182 cat >conftest.$ac_ext <<_ACEOF
6183#line $LINENO "configure"
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
6189#include <ac_nonexistent.h>
6190_ACEOF
6191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null; then
6199 if test -s conftest.err; then
6200 ac_cpp_err=$ac_c_preproc_warn_flag
6201 else
6202 ac_cpp_err=
6203 fi
252b5132 6204else
13b2be9c 6205 ac_cpp_err=yes
252b5132 6206fi
13b2be9c
DJ
6207if test -z "$ac_cpp_err"; then
6208 # Broken: success on invalid input.
6209continue
252b5132 6210else
13b2be9c
DJ
6211 echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6213
13b2be9c
DJ
6214 # Passes both tests.
6215ac_preproc_ok=:
6216break
252b5132 6217fi
13b2be9c 6218rm -f conftest.err conftest.$ac_ext
252b5132 6219
13b2be9c
DJ
6220done
6221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6222rm -f conftest.err conftest.$ac_ext
6223if $ac_preproc_ok; then
6224 :
6225else
6226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6227See \`config.log' for more details." >&5
6228echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6229See \`config.log' for more details." >&2;}
6230 { (exit 1); exit 1; }; }
252b5132 6231fi
9b2b7d69 6232
13b2be9c
DJ
6233ac_ext=c
6234ac_cpp='$CPP $CPPFLAGS'
6235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6238
6239
13b2be9c
DJ
6240echo "$as_me:$LINENO: checking for egrep" >&5
6241echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6242if test "${ac_cv_prog_egrep+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6244else
13b2be9c
DJ
6245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6246 then ac_cv_prog_egrep='grep -E'
6247 else ac_cv_prog_egrep='egrep'
c8615825 6248 fi
6840198f 6249fi
13b2be9c
DJ
6250echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6251echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6252 EGREP=$ac_cv_prog_egrep
6840198f 6253
13b2be9c
DJ
6254
6255echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6256echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6257if test "${ac_cv_header_stdc+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6259else
13b2be9c
DJ
6260 cat >conftest.$ac_ext <<_ACEOF
6261#line $LINENO "configure"
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
252b5132
RH
6267#include <stdlib.h>
6268#include <stdarg.h>
6269#include <string.h>
6270#include <float.h>
13b2be9c
DJ
6271
6272int
6273main ()
6274{
6275
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext
6281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
252b5132
RH
6292 ac_cv_header_stdc=yes
6293else
13b2be9c
DJ
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297ac_cv_header_stdc=no
252b5132 6298fi
13b2be9c 6299rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6300
6301if test $ac_cv_header_stdc = yes; then
6302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13b2be9c
DJ
6303 cat >conftest.$ac_ext <<_ACEOF
6304#line $LINENO "configure"
6305/* confdefs.h. */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h. */
252b5132 6310#include <string.h>
13b2be9c
DJ
6311
6312_ACEOF
252b5132 6313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6314 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
6315 :
6316else
252b5132
RH
6317 ac_cv_header_stdc=no
6318fi
6319rm -f conftest*
6320
6321fi
6322
6323if test $ac_cv_header_stdc = yes; then
6324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13b2be9c
DJ
6325 cat >conftest.$ac_ext <<_ACEOF
6326#line $LINENO "configure"
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
252b5132 6332#include <stdlib.h>
13b2be9c
DJ
6333
6334_ACEOF
252b5132 6335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6336 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
6337 :
6338else
252b5132
RH
6339 ac_cv_header_stdc=no
6340fi
6341rm -f conftest*
6342
6343fi
6344
6345if test $ac_cv_header_stdc = yes; then
6346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13b2be9c 6347 if test "$cross_compiling" = yes; then
252b5132
RH
6348 :
6349else
13b2be9c
DJ
6350 cat >conftest.$ac_ext <<_ACEOF
6351#line $LINENO "configure"
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
252b5132 6357#include <ctype.h>
13b2be9c
DJ
6358#if ((' ' & 0x0FF) == 0x020)
6359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6361#else
6362# define ISLOWER(c) \
6363 (('a' <= (c) && (c) <= 'i') \
6364 || ('j' <= (c) && (c) <= 'r') \
6365 || ('s' <= (c) && (c) <= 'z'))
6366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6367#endif
c8615825 6368
13b2be9c
DJ
6369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6370int
6371main ()
6372{
6373 int i;
6374 for (i = 0; i < 256; i++)
6375 if (XOR (islower (i), ISLOWER (i))
6376 || toupper (i) != TOUPPER (i))
6377 exit(2);
6378 exit (0);
6379}
6380_ACEOF
6381rm -f conftest$ac_exeext
6382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383 (eval $ac_link) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
c8615825
AM
6392 :
6393else
13b2be9c
DJ
6394 echo "$as_me: program exited with status $ac_status" >&5
6395echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398( exit $ac_status )
6399ac_cv_header_stdc=no
c8615825 6400fi
13dfd2d0 6401rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c8615825 6402fi
c8615825 6403fi
9b2b7d69 6404fi
13b2be9c
DJ
6405echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6406echo "${ECHO_T}$ac_cv_header_stdc" >&6
c8615825 6407if test $ac_cv_header_stdc = yes; then
13b2be9c
DJ
6408
6409cat >>confdefs.h <<\_ACEOF
c8615825 6410#define STDC_HEADERS 1
13b2be9c 6411_ACEOF
9b2b7d69 6412
c8615825
AM
6413fi
6414
13b2be9c
DJ
6415echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6416echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6417if test "${ac_cv_c_const+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420 cat >conftest.$ac_ext <<_ACEOF
6421#line $LINENO "configure"
6422/* confdefs.h. */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h. */
c8615825 6427
13b2be9c
DJ
6428int
6429main ()
6430{
6431/* FIXME: Include the comments suggested by Paul. */
6432#ifndef __cplusplus
6433 /* Ultrix mips cc rejects this. */
6434 typedef int charset[2];
6435 const charset x;
6436 /* SunOS 4.1.1 cc rejects this. */
6437 char const *const *ccp;
6438 char **p;
6439 /* NEC SVR4.0.2 mips cc rejects this. */
6440 struct point {int x, y;};
6441 static struct point const zero = {0,0};
6442 /* AIX XL C 1.02.0.0 rejects this.
6443 It does not let you subtract one const X* pointer from another in
6444 an arm of an if-expression whose if-part is not a constant
6445 expression */
6446 const char *g = "string";
6447 ccp = &g + (g ? g-g : 0);
6448 /* HPUX 7.0 cc rejects these. */
6449 ++ccp;
6450 p = (char**) ccp;
6451 ccp = (char const *const *) p;
6452 { /* SCO 3.2v4 cc rejects this. */
6453 char *t;
6454 char const *s = 0 ? (char *) 0 : (char const *) 0;
6455
6456 *t++ = 0;
6457 }
6458 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6459 int x[] = {25, 17};
6460 const int *foo = &x[0];
6461 ++foo;
6462 }
6463 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6464 typedef const int *iptr;
6465 iptr p = 0;
6466 ++p;
6467 }
6468 { /* AIX XL C 1.02.0.0 rejects this saying
6469 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6470 struct s { int j; const int *ap[3]; };
6471 struct s *b; b->j = 5;
6472 }
6473 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6474 const int foo = 10;
6475 }
6476#endif
6477
6478 ;
6479 return 0;
6480}
6481_ACEOF
6482rm -f conftest.$ac_objext
6483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
252b5132
RH
6494 ac_cv_c_const=yes
6495else
13b2be9c
DJ
6496 echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499ac_cv_c_const=no
252b5132 6500fi
13b2be9c 6501rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 6502fi
13b2be9c
DJ
6503echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6504echo "${ECHO_T}$ac_cv_c_const" >&6
c8615825 6505if test $ac_cv_c_const = no; then
13b2be9c
DJ
6506
6507cat >>confdefs.h <<\_ACEOF
6508#define const
6509_ACEOF
252b5132
RH
6510
6511fi
6512
13b2be9c
DJ
6513echo "$as_me:$LINENO: checking for inline" >&5
6514echo $ECHO_N "checking for inline... $ECHO_C" >&6
6515if test "${ac_cv_c_inline+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6517else
6518 ac_cv_c_inline=no
6519for ac_kw in inline __inline__ __inline; do
13b2be9c
DJ
6520 cat >conftest.$ac_ext <<_ACEOF
6521#line $LINENO "configure"
6522/* confdefs.h. */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h. */
6527#ifndef __cplusplus
6528typedef int foo_t;
6529static $ac_kw foo_t static_foo () {return 0; }
6530$ac_kw foo_t foo () {return 0; }
6531#endif
252b5132 6532
13b2be9c
DJ
6533_ACEOF
6534rm -f conftest.$ac_objext
6535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
d6d788bd 6546 ac_cv_c_inline=$ac_kw; break
6840198f 6547else
13b2be9c
DJ
6548 echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6840198f 6551fi
13b2be9c 6552rm -f conftest.$ac_objext conftest.$ac_ext
d6d788bd 6553done
6840198f
NC
6554
6555fi
13b2be9c
DJ
6556echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6557echo "${ECHO_T}$ac_cv_c_inline" >&6
6558case $ac_cv_c_inline in
d6d788bd 6559 inline | yes) ;;
13b2be9c
DJ
6560 no)
6561cat >>confdefs.h <<\_ACEOF
6562#define inline
6563_ACEOF
d6d788bd 6564 ;;
13b2be9c 6565 *) cat >>confdefs.h <<_ACEOF
d6d788bd 6566#define inline $ac_cv_c_inline
13b2be9c 6567_ACEOF
d6d788bd
L
6568 ;;
6569esac
6570
13b2be9c
DJ
6571# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6582 inttypes.h stdint.h unistd.h
6583do
6584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585echo "$as_me:$LINENO: checking for $ac_header" >&5
6586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6587if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589else
6590 cat >conftest.$ac_ext <<_ACEOF
6591#line $LINENO "configure"
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
6597$ac_includes_default
6598
6599#include <$ac_header>
6600_ACEOF
6601rm -f conftest.$ac_objext
6602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 eval "$as_ac_Header=yes"
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618eval "$as_ac_Header=no"
6619fi
6620rm -f conftest.$ac_objext conftest.$ac_ext
6621fi
6622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6624if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627_ACEOF
6628
6629fi
6630
6631done
6632
6633
6634echo "$as_me:$LINENO: checking for off_t" >&5
6635echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6636if test "${ac_cv_type_off_t+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6638else
13b2be9c
DJ
6639 cat >conftest.$ac_ext <<_ACEOF
6640#line $LINENO "configure"
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
6646$ac_includes_default
6647int
6648main ()
6649{
6650if ((off_t *) 0)
6651 return 0;
6652if (sizeof (off_t))
6653 return 0;
6654 ;
6655 return 0;
6656}
6657_ACEOF
6658rm -f conftest.$ac_objext
6659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } &&
6664 { ac_try='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
a2d91340 6670 ac_cv_type_off_t=yes
252b5132 6671else
13b2be9c
DJ
6672 echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6674
13b2be9c 6675ac_cv_type_off_t=no
c8615825 6676fi
13b2be9c
DJ
6677rm -f conftest.$ac_objext conftest.$ac_ext
6678fi
6679echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6680echo "${ECHO_T}$ac_cv_type_off_t" >&6
6681if test $ac_cv_type_off_t = yes; then
6682 :
6683else
6684
6685cat >>confdefs.h <<_ACEOF
252b5132 6686#define off_t long
13b2be9c 6687_ACEOF
252b5132
RH
6688
6689fi
6690
13b2be9c
DJ
6691echo "$as_me:$LINENO: checking for size_t" >&5
6692echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6693if test "${ac_cv_type_size_t+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6695else
13b2be9c
DJ
6696 cat >conftest.$ac_ext <<_ACEOF
6697#line $LINENO "configure"
6698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
6703$ac_includes_default
6704int
6705main ()
6706{
6707if ((size_t *) 0)
6708 return 0;
6709if (sizeof (size_t))
6710 return 0;
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715rm -f conftest.$ac_objext
6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
a2d91340 6727 ac_cv_type_size_t=yes
252b5132 6728else
13b2be9c
DJ
6729 echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6731
13b2be9c
DJ
6732ac_cv_type_size_t=no
6733fi
6734rm -f conftest.$ac_objext conftest.$ac_ext
c8615825 6735fi
13b2be9c
DJ
6736echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6737echo "${ECHO_T}$ac_cv_type_size_t" >&6
6738if test $ac_cv_type_size_t = yes; then
6739 :
6740else
6741
6742cat >>confdefs.h <<_ACEOF
252b5132 6743#define size_t unsigned
13b2be9c 6744_ACEOF
252b5132
RH
6745
6746fi
6747
6748# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6749# for constant arguments. Useless!
13b2be9c
DJ
6750echo "$as_me:$LINENO: checking for working alloca.h" >&5
6751echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6752if test "${ac_cv_working_alloca_h+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755 cat >conftest.$ac_ext <<_ACEOF
6756#line $LINENO "configure"
6757/* confdefs.h. */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h. */
252b5132 6762#include <alloca.h>
13b2be9c
DJ
6763int
6764main ()
6765{
6766char *p = (char *) alloca (2 * sizeof (int));
6767 ;
6768 return 0;
6769}
6770_ACEOF
6771rm -f conftest.$ac_objext conftest$ac_exeext
6772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_working_alloca_h=yes
6784else
6785 echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788ac_cv_working_alloca_h=no
6789fi
6790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6791fi
6792echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6793echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6794if test $ac_cv_working_alloca_h = yes; then
6795
6796cat >>confdefs.h <<\_ACEOF
252b5132 6797#define HAVE_ALLOCA_H 1
13b2be9c 6798_ACEOF
252b5132
RH
6799
6800fi
6801
13b2be9c
DJ
6802echo "$as_me:$LINENO: checking for alloca" >&5
6803echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6804if test "${ac_cv_func_alloca_works+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6806else
13b2be9c
DJ
6807 cat >conftest.$ac_ext <<_ACEOF
6808#line $LINENO "configure"
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
252b5132
RH
6814#ifdef __GNUC__
6815# define alloca __builtin_alloca
6816#else
6817# ifdef _MSC_VER
6818# include <malloc.h>
6819# define alloca _alloca
6820# else
6821# if HAVE_ALLOCA_H
6822# include <alloca.h>
6823# else
6824# ifdef _AIX
6825 #pragma alloca
6826# else
6827# ifndef alloca /* predefined by HP cc +Olibcalls */
6828char *alloca ();
6829# endif
6830# endif
6831# endif
6832# endif
6833#endif
6834
13b2be9c
DJ
6835int
6836main ()
6837{
6838char *p = (char *) alloca (1);
6839 ;
6840 return 0;
6841}
6842_ACEOF
6843rm -f conftest.$ac_objext conftest$ac_exeext
6844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
252b5132
RH
6855 ac_cv_func_alloca_works=yes
6856else
13b2be9c
DJ
6857 echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860ac_cv_func_alloca_works=no
252b5132 6861fi
13b2be9c 6862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 6863fi
13b2be9c
DJ
6864echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6865echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6866
252b5132 6867if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 6868
13b2be9c
DJ
6869cat >>confdefs.h <<\_ACEOF
6870#define HAVE_ALLOCA 1
6871_ACEOF
9b2b7d69 6872
13b2be9c 6873else
c8615825 6874 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
6875# that cause trouble. Some versions do not even contain alloca or
6876# contain a buggy version. If you still want to use their alloca,
6877# use ar to extract alloca.o from them instead of compiling alloca.c.
6878
6879ALLOCA=alloca.$ac_objext
6880
6881cat >>confdefs.h <<\_ACEOF
252b5132 6882#define C_ALLOCA 1
13b2be9c 6883_ACEOF
252b5132 6884
d6d788bd 6885
13b2be9c
DJ
6886echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6887echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6888if test "${ac_cv_os_cray+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6890else
13b2be9c
DJ
6891 cat >conftest.$ac_ext <<_ACEOF
6892#line $LINENO "configure"
6893/* confdefs.h. */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h. */
252b5132
RH
6898#if defined(CRAY) && ! defined(CRAY2)
6899webecray
6900#else
6901wenotbecray
6902#endif
6903
13b2be9c 6904_ACEOF
252b5132 6905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6906 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6907 ac_cv_os_cray=yes
6908else
252b5132
RH
6909 ac_cv_os_cray=no
6910fi
6911rm -f conftest*
6912
6913fi
13b2be9c
DJ
6914echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6915echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6916if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
6917 for ac_func in _getb67 GETB67 getb67; do
6918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6919echo "$as_me:$LINENO: checking for $ac_func" >&5
6920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6921if eval "test \"\${$as_ac_var+set}\" = set"; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 cat >conftest.$ac_ext <<_ACEOF
6925#line $LINENO "configure"
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
252b5132 6931/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
6932 which can conflict with char $ac_func (); below.
6933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 <limits.h> exists even on freestanding compilers. */
6935#ifdef __STDC__
6936# include <limits.h>
6937#else
6938# include <assert.h>
6939#endif
252b5132 6940/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
6941#ifdef __cplusplus
6942extern "C"
6943{
6944#endif
252b5132 6945/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
6946 builtin and then its argument prototype would still apply. */
6947char $ac_func ();
252b5132
RH
6948/* The GNU C library defines this for functions which it implements
6949 to always fail with ENOSYS. Some functions are actually named
6950 something starting with __ and the normal name is an alias. */
6951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6952choke me
6953#else
13b2be9c
DJ
6954char (*f) () = $ac_func;
6955#endif
6956#ifdef __cplusplus
6957}
252b5132
RH
6958#endif
6959
13b2be9c
DJ
6960int
6961main ()
6962{
6963return f != $ac_func;
6964 ;
6965 return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
6969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest$ac_exeext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 eval "$as_ac_var=yes"
6981else
6982 echo "$as_me: failed program was:" >&5
6983sed 's/^/| /' conftest.$ac_ext >&5
6984
6985eval "$as_ac_var=no"
6986fi
6987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6988fi
6989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6991if test `eval echo '${'$as_ac_var'}'` = yes; then
6992
6993cat >>confdefs.h <<_ACEOF
252b5132 6994#define CRAY_STACKSEG_END $ac_func
13b2be9c 6995_ACEOF
252b5132 6996
13b2be9c 6997 break
252b5132
RH
6998fi
6999
13b2be9c 7000 done
252b5132
RH
7001fi
7002
13b2be9c
DJ
7003echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7004echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7005if test "${ac_cv_c_stack_direction+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7007else
7008 if test "$cross_compiling" = yes; then
7009 ac_cv_c_stack_direction=0
7010else
13b2be9c
DJ
7011 cat >conftest.$ac_ext <<_ACEOF
7012#line $LINENO "configure"
7013/* confdefs.h. */
7014_ACEOF
7015cat confdefs.h >>conftest.$ac_ext
7016cat >>conftest.$ac_ext <<_ACEOF
7017/* end confdefs.h. */
7018int
252b5132
RH
7019find_stack_direction ()
7020{
7021 static char *addr = 0;
7022 auto char dummy;
7023 if (addr == 0)
7024 {
7025 addr = &dummy;
7026 return find_stack_direction ();
7027 }
7028 else
7029 return (&dummy > addr) ? 1 : -1;
7030}
13b2be9c
DJ
7031
7032int
252b5132
RH
7033main ()
7034{
13b2be9c 7035 exit (find_stack_direction () < 0);
252b5132 7036}
13b2be9c
DJ
7037_ACEOF
7038rm -f conftest$ac_exeext
7039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
252b5132
RH
7049 ac_cv_c_stack_direction=1
7050else
13b2be9c
DJ
7051 echo "$as_me: program exited with status $ac_status" >&5
7052echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055( exit $ac_status )
7056ac_cv_c_stack_direction=-1
252b5132 7057fi
13dfd2d0 7058rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7059fi
252b5132 7060fi
13b2be9c
DJ
7061echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7062echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7063
13b2be9c 7064cat >>confdefs.h <<_ACEOF
252b5132 7065#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7066_ACEOF
7067
252b5132
RH
7068
7069fi
7070
13b2be9c
DJ
7071
7072
7073for ac_header in stdlib.h unistd.h
252b5132 7074do
13b2be9c
DJ
7075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076if eval "test \"\${$as_ac_Header+set}\" = set"; then
7077 echo "$as_me:$LINENO: checking for $ac_header" >&5
7078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081fi
7082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084else
7085 # Is the header compilable?
7086echo "$as_me:$LINENO: checking $ac_header usability" >&5
7087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7088cat >conftest.$ac_ext <<_ACEOF
7089#line $LINENO "configure"
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
7095$ac_includes_default
7096#include <$ac_header>
7097_ACEOF
7098rm -f conftest.$ac_objext
7099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest.$ac_objext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_header_compiler=yes
7111else
7112 echo "$as_me: failed program was:" >&5
7113sed 's/^/| /' conftest.$ac_ext >&5
7114
7115ac_header_compiler=no
7116fi
7117rm -f conftest.$ac_objext conftest.$ac_ext
7118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7119echo "${ECHO_T}$ac_header_compiler" >&6
7120
7121# Is the header present?
7122echo "$as_me:$LINENO: checking $ac_header presence" >&5
7123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7124cat >conftest.$ac_ext <<_ACEOF
7125#line $LINENO "configure"
7126/* confdefs.h. */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h. */
7131#include <$ac_header>
7132_ACEOF
7133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } >/dev/null; then
7141 if test -s conftest.err; then
7142 ac_cpp_err=$ac_c_preproc_warn_flag
7143 else
7144 ac_cpp_err=
7145 fi
252b5132 7146else
13b2be9c
DJ
7147 ac_cpp_err=yes
7148fi
7149if test -z "$ac_cpp_err"; then
7150 ac_header_preproc=yes
7151else
7152 echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 ac_header_preproc=no
7156fi
7157rm -f conftest.err conftest.$ac_ext
7158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7159echo "${ECHO_T}$ac_header_preproc" >&6
7160
7161# So? What about this header?
7162case $ac_header_compiler:$ac_header_preproc in
7163 yes:no )
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7168 (
7169 cat <<\_ASBOX
7170## ------------------------------------ ##
7171## Report this to bug-autoconf@gnu.org. ##
7172## ------------------------------------ ##
7173_ASBOX
7174 ) |
7175 sed "s/^/$as_me: WARNING: /" >&2
7176 ;;
7177 no:yes )
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7184 (
7185 cat <<\_ASBOX
7186## ------------------------------------ ##
7187## Report this to bug-autoconf@gnu.org. ##
7188## ------------------------------------ ##
7189_ASBOX
7190 ) |
7191 sed "s/^/$as_me: WARNING: /" >&2
7192 ;;
7193esac
7194echo "$as_me:$LINENO: checking for $ac_header" >&5
7195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 eval "$as_ac_Header=$ac_header_preproc"
252b5132 7200fi
13b2be9c
DJ
7201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7203
252b5132 7204fi
13b2be9c
DJ
7205if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208_ACEOF
7209
252b5132 7210fi
13b2be9c 7211
252b5132
RH
7212done
7213
13b2be9c 7214
252b5132
RH
7215for ac_func in getpagesize
7216do
13b2be9c
DJ
7217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7218echo "$as_me:$LINENO: checking for $ac_func" >&5
7219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7220if eval "test \"\${$as_ac_var+set}\" = set"; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 cat >conftest.$ac_ext <<_ACEOF
7224#line $LINENO "configure"
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
252b5132 7230/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7231 which can conflict with char $ac_func (); below.
7232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 <limits.h> exists even on freestanding compilers. */
7234#ifdef __STDC__
7235# include <limits.h>
7236#else
7237# include <assert.h>
7238#endif
252b5132 7239/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7240#ifdef __cplusplus
7241extern "C"
7242{
7243#endif
252b5132 7244/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7245 builtin and then its argument prototype would still apply. */
7246char $ac_func ();
252b5132
RH
7247/* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7251choke me
7252#else
13b2be9c
DJ
7253char (*f) () = $ac_func;
7254#endif
7255#ifdef __cplusplus
7256}
252b5132
RH
7257#endif
7258
13b2be9c
DJ
7259int
7260main ()
7261{
7262return f != $ac_func;
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267rm -f conftest.$ac_objext conftest$ac_exeext
7268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 eval "$as_ac_var=yes"
7280else
7281 echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284eval "$as_ac_var=no"
7285fi
7286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7287fi
7288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7290if test `eval echo '${'$as_ac_var'}'` = yes; then
7291 cat >>confdefs.h <<_ACEOF
7292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7293_ACEOF
252b5132 7294
252b5132
RH
7295fi
7296done
7297
13b2be9c
DJ
7298echo "$as_me:$LINENO: checking for working mmap" >&5
7299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7302else
7303 if test "$cross_compiling" = yes; then
7304 ac_cv_func_mmap_fixed_mapped=no
7305else
13b2be9c
DJ
7306 cat >conftest.$ac_ext <<_ACEOF
7307#line $LINENO "configure"
7308/* confdefs.h. */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */
7313$ac_includes_default
7314/* malloc might have been renamed as rpl_malloc. */
7315#undef malloc
d6d788bd 7316
252b5132
RH
7317/* Thanks to Mike Haertel and Jim Avera for this test.
7318 Here is a matrix of mmap possibilities:
7319 mmap private not fixed
7320 mmap private fixed at somewhere currently unmapped
7321 mmap private fixed at somewhere already mapped
7322 mmap shared not fixed
7323 mmap shared fixed at somewhere currently unmapped
7324 mmap shared fixed at somewhere already mapped
7325 For private mappings, we should verify that changes cannot be read()
7326 back from the file, nor mmap's back from the file at a different
7327 address. (There have been systems where private was not correctly
7328 implemented like the infamous i386 svr4.0, and systems where the
13b2be9c 7329 VM page cache was not coherent with the file system buffer cache
252b5132
RH
7330 like early versions of FreeBSD and possibly contemporary NetBSD.)
7331 For shared mappings, we should conversely verify that changes get
13b2be9c 7332 propagated back to all the places they're supposed to be.
252b5132
RH
7333
7334 Grep wants private fixed already mapped.
7335 The main things grep needs to know about mmap are:
7336 * does it exist and is it safe to write into the mmap'd area
7337 * how to use it (BSD variants) */
13b2be9c 7338
252b5132
RH
7339#include <fcntl.h>
7340#include <sys/mman.h>
7341
13b2be9c
DJ
7342#if !STDC_HEADERS && !HAVE_STDLIB_H
7343char *malloc ();
7344#endif
c8615825 7345
13b2be9c
DJ
7346/* This mess was copied from the GNU getpagesize.h. */
7347#if !HAVE_GETPAGESIZE
252b5132 7348/* Assume that all systems that can run configure have sys/param.h. */
13b2be9c 7349# if !HAVE_SYS_PARAM_H
252b5132
RH
7350# define HAVE_SYS_PARAM_H 1
7351# endif
7352
7353# ifdef _SC_PAGESIZE
7354# define getpagesize() sysconf(_SC_PAGESIZE)
7355# else /* no _SC_PAGESIZE */
13b2be9c 7356# if HAVE_SYS_PARAM_H
252b5132
RH
7357# include <sys/param.h>
7358# ifdef EXEC_PAGESIZE
7359# define getpagesize() EXEC_PAGESIZE
7360# else /* no EXEC_PAGESIZE */
7361# ifdef NBPG
7362# define getpagesize() NBPG * CLSIZE
7363# ifndef CLSIZE
7364# define CLSIZE 1
7365# endif /* no CLSIZE */
7366# else /* no NBPG */
7367# ifdef NBPC
7368# define getpagesize() NBPC
7369# else /* no NBPC */
7370# ifdef PAGESIZE
7371# define getpagesize() PAGESIZE
7372# endif /* PAGESIZE */
7373# endif /* no NBPC */
7374# endif /* no NBPG */
7375# endif /* no EXEC_PAGESIZE */
7376# else /* no HAVE_SYS_PARAM_H */
7377# define getpagesize() 8192 /* punt totally */
7378# endif /* no HAVE_SYS_PARAM_H */
7379# endif /* no _SC_PAGESIZE */
7380
7381#endif /* no HAVE_GETPAGESIZE */
7382
252b5132 7383int
13b2be9c 7384main ()
252b5132 7385{
13b2be9c
DJ
7386 char *data, *data2, *data3;
7387 int i, pagesize;
7388 int fd;
7389
7390 pagesize = getpagesize ();
7391
7392 /* First, make a file with some known garbage in it. */
7393 data = (char *) malloc (pagesize);
7394 if (!data)
7395 exit (1);
7396 for (i = 0; i < pagesize; ++i)
7397 *(data + i) = rand ();
7398 umask (0);
7399 fd = creat ("conftest.mmap", 0600);
7400 if (fd < 0)
7401 exit (1);
7402 if (write (fd, data, pagesize) != pagesize)
7403 exit (1);
7404 close (fd);
7405
7406 /* Next, try to mmap the file at a fixed address which already has
7407 something else allocated at it. If we can, also make sure that
7408 we see the same garbage. */
7409 fd = open ("conftest.mmap", O_RDWR);
7410 if (fd < 0)
7411 exit (1);
7412 data2 = (char *) malloc (2 * pagesize);
7413 if (!data2)
7414 exit (1);
7415 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7416 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7417 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7418 exit (1);
7419 for (i = 0; i < pagesize; ++i)
7420 if (*(data + i) != *(data2 + i))
7421 exit (1);
7422
7423 /* Finally, make sure that changes to the mapped area do not
7424 percolate back to the file as seen by read(). (This is a bug on
7425 some variants of i386 svr4.0.) */
7426 for (i = 0; i < pagesize; ++i)
7427 *(data2 + i) = *(data2 + i) + 1;
7428 data3 = (char *) malloc (pagesize);
7429 if (!data3)
7430 exit (1);
7431 if (read (fd, data3, pagesize) != pagesize)
7432 exit (1);
7433 for (i = 0; i < pagesize; ++i)
7434 if (*(data + i) != *(data3 + i))
7435 exit (1);
7436 close (fd);
7437 exit (0);
252b5132 7438}
13b2be9c
DJ
7439_ACEOF
7440rm -f conftest$ac_exeext
7441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7442 (eval $ac_link) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
252b5132
RH
7451 ac_cv_func_mmap_fixed_mapped=yes
7452else
13b2be9c
DJ
7453 echo "$as_me: program exited with status $ac_status" >&5
7454echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457( exit $ac_status )
7458ac_cv_func_mmap_fixed_mapped=no
9b2b7d69 7459fi
13dfd2d0 7460rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7461fi
252b5132 7462fi
13b2be9c
DJ
7463echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7464echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c8615825 7465if test $ac_cv_func_mmap_fixed_mapped = yes; then
13b2be9c
DJ
7466
7467cat >>confdefs.h <<\_ACEOF
9b2b7d69 7468#define HAVE_MMAP 1
13b2be9c 7469_ACEOF
9b2b7d69
MM
7470
7471fi
13b2be9c
DJ
7472rm -f conftest.mmap
7473
7474
7475
7476
7477
7478
7479
6840198f 7480
13b2be9c
DJ
7481
7482
7483
7484for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
7485unistd.h values.h sys/param.h
7486do
13b2be9c
DJ
7487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488if eval "test \"\${$as_ac_Header+set}\" = set"; then
7489 echo "$as_me:$LINENO: checking for $ac_header" >&5
7490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7491if eval "test \"\${$as_ac_Header+set}\" = set"; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493fi
7494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7496else
7497 # Is the header compilable?
7498echo "$as_me:$LINENO: checking $ac_header usability" >&5
7499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7500cat >conftest.$ac_ext <<_ACEOF
7501#line $LINENO "configure"
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
7507$ac_includes_default
7508#include <$ac_header>
7509_ACEOF
7510rm -f conftest.$ac_objext
7511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -s conftest.$ac_objext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_header_compiler=yes
7523else
7524 echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
7527ac_header_compiler=no
7528fi
7529rm -f conftest.$ac_objext conftest.$ac_ext
7530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531echo "${ECHO_T}$ac_header_compiler" >&6
7532
7533# Is the header present?
7534echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7536cat >conftest.$ac_ext <<_ACEOF
7537#line $LINENO "configure"
7538/* confdefs.h. */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h. */
7543#include <$ac_header>
7544_ACEOF
7545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } >/dev/null; then
7553 if test -s conftest.err; then
7554 ac_cpp_err=$ac_c_preproc_warn_flag
7555 else
7556 ac_cpp_err=
7557 fi
9b2b7d69 7558else
13b2be9c
DJ
7559 ac_cpp_err=yes
7560fi
7561if test -z "$ac_cpp_err"; then
7562 ac_header_preproc=yes
7563else
7564 echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_header_preproc=no
7568fi
7569rm -f conftest.err conftest.$ac_ext
7570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7571echo "${ECHO_T}$ac_header_preproc" >&6
7572
7573# So? What about this header?
7574case $ac_header_compiler:$ac_header_preproc in
7575 yes:no )
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7580 (
7581 cat <<\_ASBOX
7582## ------------------------------------ ##
7583## Report this to bug-autoconf@gnu.org. ##
7584## ------------------------------------ ##
7585_ASBOX
7586 ) |
7587 sed "s/^/$as_me: WARNING: /" >&2
7588 ;;
7589 no:yes )
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7596 (
7597 cat <<\_ASBOX
7598## ------------------------------------ ##
7599## Report this to bug-autoconf@gnu.org. ##
7600## ------------------------------------ ##
7601_ASBOX
7602 ) |
7603 sed "s/^/$as_me: WARNING: /" >&2
7604 ;;
7605esac
7606echo "$as_me:$LINENO: checking for $ac_header" >&5
7607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611 eval "$as_ac_Header=$ac_header_preproc"
252b5132 7612fi
13b2be9c
DJ
7613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7615
252b5132 7616fi
13b2be9c
DJ
7617if test `eval echo '${'$as_ac_Header'}'` = yes; then
7618 cat >>confdefs.h <<_ACEOF
7619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620_ACEOF
7621
252b5132 7622fi
13b2be9c 7623
252b5132
RH
7624done
7625
13b2be9c
DJ
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7637__argz_count __argz_stringify __argz_next
7638do
13b2be9c
DJ
7639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7640echo "$as_me:$LINENO: checking for $ac_func" >&5
7641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7642if eval "test \"\${$as_ac_var+set}\" = set"; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645 cat >conftest.$ac_ext <<_ACEOF
7646#line $LINENO "configure"
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
252b5132 7652/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7653 which can conflict with char $ac_func (); below.
7654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7655 <limits.h> exists even on freestanding compilers. */
7656#ifdef __STDC__
7657# include <limits.h>
7658#else
7659# include <assert.h>
7660#endif
252b5132 7661/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7662#ifdef __cplusplus
7663extern "C"
7664{
7665#endif
252b5132 7666/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7667 builtin and then its argument prototype would still apply. */
7668char $ac_func ();
252b5132
RH
7669/* The GNU C library defines this for functions which it implements
7670 to always fail with ENOSYS. Some functions are actually named
7671 something starting with __ and the normal name is an alias. */
7672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7673choke me
7674#else
13b2be9c
DJ
7675char (*f) () = $ac_func;
7676#endif
7677#ifdef __cplusplus
7678}
252b5132
RH
7679#endif
7680
13b2be9c
DJ
7681int
7682main ()
7683{
7684return f != $ac_func;
7685 ;
7686 return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext conftest$ac_exeext
7690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 eval "$as_ac_var=yes"
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706eval "$as_ac_var=no"
7707fi
7708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7709fi
7710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7712if test `eval echo '${'$as_ac_var'}'` = yes; then
7713 cat >>confdefs.h <<_ACEOF
7714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715_ACEOF
252b5132 7716
252b5132
RH
7717fi
7718done
7719
6840198f 7720
d6d788bd 7721 if test "${ac_cv_func_stpcpy+set}" != "set"; then
13b2be9c
DJ
7722
7723for ac_func in stpcpy
252b5132 7724do
13b2be9c
DJ
7725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7726echo "$as_me:$LINENO: checking for $ac_func" >&5
7727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7728if eval "test \"\${$as_ac_var+set}\" = set"; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732#line $LINENO "configure"
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
252b5132 7738/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7739 which can conflict with char $ac_func (); below.
7740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7741 <limits.h> exists even on freestanding compilers. */
7742#ifdef __STDC__
7743# include <limits.h>
7744#else
7745# include <assert.h>
7746#endif
252b5132 7747/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7748#ifdef __cplusplus
7749extern "C"
7750{
7751#endif
252b5132 7752/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7753 builtin and then its argument prototype would still apply. */
7754char $ac_func ();
252b5132
RH
7755/* The GNU C library defines this for functions which it implements
7756 to always fail with ENOSYS. Some functions are actually named
7757 something starting with __ and the normal name is an alias. */
7758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759choke me
7760#else
13b2be9c
DJ
7761char (*f) () = $ac_func;
7762#endif
7763#ifdef __cplusplus
7764}
252b5132
RH
7765#endif
7766
13b2be9c
DJ
7767int
7768main ()
7769{
7770return f != $ac_func;
7771 ;
7772 return 0;
7773}
7774_ACEOF
7775rm -f conftest.$ac_objext conftest$ac_exeext
7776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 eval "$as_ac_var=yes"
7788else
7789 echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792eval "$as_ac_var=no"
7793fi
7794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7795fi
7796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7798if test `eval echo '${'$as_ac_var'}'` = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7801_ACEOF
252b5132 7802
252b5132
RH
7803fi
7804done
7805
7806 fi
7807 if test "${ac_cv_func_stpcpy}" = "yes"; then
13b2be9c
DJ
7808
7809cat >>confdefs.h <<\_ACEOF
252b5132 7810#define HAVE_STPCPY 1
13b2be9c 7811_ACEOF
252b5132
RH
7812
7813 fi
7814
7815 if test $ac_cv_header_locale_h = yes; then
13b2be9c
DJ
7816 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7817echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7818if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821 cat >conftest.$ac_ext <<_ACEOF
7822#line $LINENO "configure"
7823/* confdefs.h. */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */
252b5132 7828#include <locale.h>
13b2be9c
DJ
7829int
7830main ()
7831{
252b5132 7832return LC_MESSAGES
13b2be9c
DJ
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest.$ac_objext conftest$ac_exeext
7838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
252b5132
RH
7849 am_cv_val_LC_MESSAGES=yes
7850else
13b2be9c
DJ
7851 echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854am_cv_val_LC_MESSAGES=no
252b5132 7855fi
13b2be9c 7856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 7857fi
13b2be9c
DJ
7858echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7859echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c8615825 7860 if test $am_cv_val_LC_MESSAGES = yes; then
13b2be9c
DJ
7861
7862cat >>confdefs.h <<\_ACEOF
252b5132 7863#define HAVE_LC_MESSAGES 1
13b2be9c 7864_ACEOF
252b5132
RH
7865
7866 fi
7867 fi
13b2be9c
DJ
7868 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7869echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7870 # Check whether --enable-nls or --disable-nls was given.
7871if test "${enable_nls+set}" = set; then
7872 enableval="$enable_nls"
7873 USE_NLS=$enableval
7874else
7875 USE_NLS=yes
13b2be9c
DJ
7876fi;
7877 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7878echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 7879
252b5132
RH
7880
7881 USE_INCLUDED_LIBINTL=no
7882
7883 if test "$USE_NLS" = "yes"; then
13b2be9c
DJ
7884
7885cat >>confdefs.h <<\_ACEOF
252b5132 7886#define ENABLE_NLS 1
13b2be9c 7887_ACEOF
252b5132 7888
13b2be9c
DJ
7889 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7890echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7891
7892# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7893if test "${with_included_gettext+set}" = set; then
7894 withval="$with_included_gettext"
7895 nls_cv_force_use_gnu_gettext=$withval
7896else
7897 nls_cv_force_use_gnu_gettext=no
13b2be9c
DJ
7898fi;
7899 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7900echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7901
7902 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7903 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7904 nls_cv_header_intl=
7905 nls_cv_header_libgt=
7906 CATOBJEXT=NONE
7907
13b2be9c
DJ
7908 if test "${ac_cv_header_libintl_h+set}" = set; then
7909 echo "$as_me:$LINENO: checking for libintl.h" >&5
7910echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7911if test "${ac_cv_header_libintl_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7915echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7916else
7917 # Is the header compilable?
7918echo "$as_me:$LINENO: checking libintl.h usability" >&5
7919echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7920cat >conftest.$ac_ext <<_ACEOF
7921#line $LINENO "configure"
7922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
7927$ac_includes_default
9b2b7d69 7928#include <libintl.h>
13b2be9c
DJ
7929_ACEOF
7930rm -f conftest.$ac_objext
7931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7932 (eval $ac_compile) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_header_compiler=yes
7943else
7944 echo "$as_me: failed program was:" >&5
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947ac_header_compiler=no
7948fi
7949rm -f conftest.$ac_objext conftest.$ac_ext
7950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951echo "${ECHO_T}$ac_header_compiler" >&6
7952
7953# Is the header present?
7954echo "$as_me:$LINENO: checking libintl.h presence" >&5
7955echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7956cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958/* confdefs.h. */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h. */
7963#include <libintl.h>
7964_ACEOF
7965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } >/dev/null; then
7973 if test -s conftest.err; then
7974 ac_cpp_err=$ac_c_preproc_warn_flag
7975 else
7976 ac_cpp_err=
7977 fi
252b5132 7978else
13b2be9c
DJ
7979 ac_cpp_err=yes
7980fi
7981if test -z "$ac_cpp_err"; then
7982 ac_header_preproc=yes
7983else
7984 echo "$as_me: failed program was:" >&5
7985sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_header_preproc=no
7988fi
7989rm -f conftest.err conftest.$ac_ext
7990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7991echo "${ECHO_T}$ac_header_preproc" >&6
7992
7993# So? What about this header?
7994case $ac_header_compiler:$ac_header_preproc in
7995 yes:no )
7996 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7997echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7999echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8000 (
8001 cat <<\_ASBOX
8002## ------------------------------------ ##
8003## Report this to bug-autoconf@gnu.org. ##
8004## ------------------------------------ ##
8005_ASBOX
8006 ) |
8007 sed "s/^/$as_me: WARNING: /" >&2
8008 ;;
8009 no:yes )
8010 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8011echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8013echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8015echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8016 (
8017 cat <<\_ASBOX
8018## ------------------------------------ ##
8019## Report this to bug-autoconf@gnu.org. ##
8020## ------------------------------------ ##
8021_ASBOX
8022 ) |
8023 sed "s/^/$as_me: WARNING: /" >&2
8024 ;;
8025esac
8026echo "$as_me:$LINENO: checking for libintl.h" >&5
8027echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8028if test "${ac_cv_header_libintl_h+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031 ac_cv_header_libintl_h=$ac_header_preproc
8032fi
8033echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8034echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8035
8036fi
8037if test $ac_cv_header_libintl_h = yes; then
8038 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8039echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8040if test "${gt_cv_func_gettext_libc+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043 cat >conftest.$ac_ext <<_ACEOF
8044#line $LINENO "configure"
8045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h. */
252b5132 8050#include <libintl.h>
13b2be9c
DJ
8051int
8052main ()
8053{
252b5132 8054return (int) gettext ("")
13b2be9c
DJ
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
8060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -s conftest$ac_exeext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
252b5132
RH
8071 gt_cv_func_gettext_libc=yes
8072else
13b2be9c
DJ
8073 echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076gt_cv_func_gettext_libc=no
252b5132 8077fi
13b2be9c 8078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8079fi
13b2be9c
DJ
8080echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8081echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
8082
8083 if test "$gt_cv_func_gettext_libc" != "yes"; then
13b2be9c
DJ
8084 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8085echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8086if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8088else
13b2be9c 8089 ac_check_lib_save_LIBS=$LIBS
252b5132 8090LIBS="-lintl $LIBS"
13b2be9c
DJ
8091cat >conftest.$ac_ext <<_ACEOF
8092#line $LINENO "configure"
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098
252b5132 8099/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8100#ifdef __cplusplus
8101extern "C"
8102#endif
252b5132 8103/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8104 builtin and then its argument prototype would still apply. */
8105char bindtextdomain ();
8106int
8107main ()
8108{
8109bindtextdomain ();
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116 (eval $ac_link) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 ac_cv_lib_intl_bindtextdomain=yes
8127else
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131ac_cv_lib_intl_bindtextdomain=no
8132fi
8133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8134LIBS=$ac_check_lib_save_LIBS
8135fi
8136echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8137echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8138if test $ac_cv_lib_intl_bindtextdomain = yes; then
8139 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8140echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8141if test "${gt_cv_func_gettext_libintl+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 cat >conftest.$ac_ext <<_ACEOF
8145#line $LINENO "configure"
8146/* confdefs.h. */
8147_ACEOF
8148cat confdefs.h >>conftest.$ac_ext
8149cat >>conftest.$ac_ext <<_ACEOF
8150/* end confdefs.h. */
d6d788bd 8151
13b2be9c
DJ
8152int
8153main ()
8154{
252b5132 8155return (int) gettext ("")
13b2be9c
DJ
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
252b5132
RH
8172 gt_cv_func_gettext_libintl=yes
8173else
13b2be9c
DJ
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177gt_cv_func_gettext_libintl=no
252b5132 8178fi
13b2be9c 8179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8180fi
13b2be9c
DJ
8181echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8182echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
8183fi
8184
8185 fi
8186
8187 if test "$gt_cv_func_gettext_libc" = "yes" \
8188 || test "$gt_cv_func_gettext_libintl" = "yes"; then
13b2be9c
DJ
8189
8190cat >>confdefs.h <<\_ACEOF
252b5132 8191#define HAVE_GETTEXT 1
13b2be9c 8192_ACEOF
252b5132
RH
8193
8194 # Extract the first word of "msgfmt", so it can be a program name with args.
8195set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8196echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198if test "${ac_cv_path_MSGFMT+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8200else
8201 case "$MSGFMT" in
8202 /*)
8203 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8207 for ac_dir in $PATH; do
8208 test -z "$ac_dir" && ac_dir=.
8209 if test -f $ac_dir/$ac_word; then
8210 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8211 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8212 break
8213 fi
8214 fi
8215 done
8216 IFS="$ac_save_ifs"
8217 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8218 ;;
8219esac
8220fi
8221MSGFMT="$ac_cv_path_MSGFMT"
8222if test -n "$MSGFMT"; then
13b2be9c
DJ
8223 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8224echo "${ECHO_T}$MSGFMT" >&6
252b5132 8225else
13b2be9c
DJ
8226 echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6
252b5132
RH
8228fi
8229 if test "$MSGFMT" != "no"; then
13b2be9c
DJ
8230
8231for ac_func in dcgettext
252b5132 8232do
13b2be9c
DJ
8233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8234echo "$as_me:$LINENO: checking for $ac_func" >&5
8235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8236if eval "test \"\${$as_ac_var+set}\" = set"; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 cat >conftest.$ac_ext <<_ACEOF
8240#line $LINENO "configure"
8241/* confdefs.h. */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
8245/* end confdefs.h. */
252b5132 8246/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8247 which can conflict with char $ac_func (); below.
8248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 <limits.h> exists even on freestanding compilers. */
8250#ifdef __STDC__
8251# include <limits.h>
8252#else
8253# include <assert.h>
8254#endif
252b5132 8255/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8256#ifdef __cplusplus
8257extern "C"
8258{
8259#endif
252b5132 8260/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8261 builtin and then its argument prototype would still apply. */
8262char $ac_func ();
252b5132
RH
8263/* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8267choke me
8268#else
13b2be9c
DJ
8269char (*f) () = $ac_func;
8270#endif
8271#ifdef __cplusplus
8272}
252b5132
RH
8273#endif
8274
13b2be9c
DJ
8275int
8276main ()
8277{
8278return f != $ac_func;
8279 ;
8280 return 0;
8281}
8282_ACEOF
8283rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 eval "$as_ac_var=yes"
8296else
8297 echo "$as_me: failed program was:" >&5
8298sed 's/^/| /' conftest.$ac_ext >&5
8299
8300eval "$as_ac_var=no"
8301fi
8302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303fi
8304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8306if test `eval echo '${'$as_ac_var'}'` = yes; then
8307 cat >>confdefs.h <<_ACEOF
8308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8309_ACEOF
252b5132 8310
252b5132
RH
8311fi
8312done
8313
8314 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8315set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8316echo "$as_me:$LINENO: checking for $ac_word" >&5
8317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8318if test "${ac_cv_path_GMSGFMT+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8320else
13b2be9c
DJ
8321 case $GMSGFMT in
8322 [\\/]* | ?:[\\/]*)
252b5132
RH
8323 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8324 ;;
252b5132 8325 *)
13b2be9c
DJ
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339
252b5132
RH
8340 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8341 ;;
8342esac
8343fi
13b2be9c
DJ
8344GMSGFMT=$ac_cv_path_GMSGFMT
8345
252b5132 8346if test -n "$GMSGFMT"; then
13b2be9c
DJ
8347 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8348echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8349else
13b2be9c
DJ
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
252b5132
RH
8352fi
8353
8354 # Extract the first word of "xgettext", so it can be a program name with args.
8355set dummy xgettext; ac_word=$2
13b2be9c
DJ
8356echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8358if test "${ac_cv_path_XGETTEXT+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8360else
8361 case "$XGETTEXT" in
8362 /*)
8363 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8364 ;;
8365 *)
8366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8367 for ac_dir in $PATH; do
8368 test -z "$ac_dir" && ac_dir=.
8369 if test -f $ac_dir/$ac_word; then
8370 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8371 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8372 break
8373 fi
8374 fi
8375 done
8376 IFS="$ac_save_ifs"
8377 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8378 ;;
8379esac
8380fi
8381XGETTEXT="$ac_cv_path_XGETTEXT"
8382if test -n "$XGETTEXT"; then
13b2be9c
DJ
8383 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8384echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8385else
13b2be9c
DJ
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
252b5132
RH
8388fi
8389
13b2be9c
DJ
8390 cat >conftest.$ac_ext <<_ACEOF
8391#line $LINENO "configure"
8392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
252b5132 8397
13b2be9c
DJ
8398int
8399main ()
8400{
252b5132
RH
8401extern int _nl_msg_cat_cntr;
8402 return _nl_msg_cat_cntr
13b2be9c
DJ
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
252b5132
RH
8419 CATOBJEXT=.gmo
8420 DATADIRNAME=share
8421else
13b2be9c
DJ
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425CATOBJEXT=.mo
252b5132
RH
8426 DATADIRNAME=lib
8427fi
13b2be9c 8428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8429 INSTOBJEXT=.mo
8430 fi
8431 fi
13b2be9c 8432
6840198f 8433fi
252b5132 8434
d6d788bd 8435
13b2be9c
DJ
8436
8437
252b5132
RH
8438 if test "$CATOBJEXT" = "NONE"; then
8439 nls_cv_use_gnu_gettext=yes
8440 fi
8441 fi
8442
8443 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8444 INTLOBJS="\$(GETTOBJS)"
8445 # Extract the first word of "msgfmt", so it can be a program name with args.
8446set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8447echo "$as_me:$LINENO: checking for $ac_word" >&5
8448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8449if test "${ac_cv_path_MSGFMT+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8451else
8452 case "$MSGFMT" in
8453 /*)
8454 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8455 ;;
8456 *)
8457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8458 for ac_dir in $PATH; do
8459 test -z "$ac_dir" && ac_dir=.
8460 if test -f $ac_dir/$ac_word; then
8461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8462 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8463 break
8464 fi
8465 fi
8466 done
8467 IFS="$ac_save_ifs"
8468 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8469 ;;
8470esac
8471fi
8472MSGFMT="$ac_cv_path_MSGFMT"
8473if test -n "$MSGFMT"; then
13b2be9c
DJ
8474 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8475echo "${ECHO_T}$MSGFMT" >&6
252b5132 8476else
13b2be9c
DJ
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
252b5132
RH
8479fi
8480
8481 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8482set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8483echo "$as_me:$LINENO: checking for $ac_word" >&5
8484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485if test "${ac_cv_path_GMSGFMT+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8487else
13b2be9c
DJ
8488 case $GMSGFMT in
8489 [\\/]* | ?:[\\/]*)
252b5132
RH
8490 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8491 ;;
252b5132 8492 *)
13b2be9c
DJ
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504done
8505done
8506
252b5132
RH
8507 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8508 ;;
8509esac
8510fi
13b2be9c
DJ
8511GMSGFMT=$ac_cv_path_GMSGFMT
8512
252b5132 8513if test -n "$GMSGFMT"; then
13b2be9c
DJ
8514 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8515echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8516else
13b2be9c
DJ
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
252b5132
RH
8519fi
8520
8521 # Extract the first word of "xgettext", so it can be a program name with args.
8522set dummy xgettext; ac_word=$2
13b2be9c
DJ
8523echo "$as_me:$LINENO: checking for $ac_word" >&5
8524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8525if test "${ac_cv_path_XGETTEXT+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8527else
8528 case "$XGETTEXT" in
8529 /*)
8530 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8531 ;;
8532 *)
8533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8534 for ac_dir in $PATH; do
8535 test -z "$ac_dir" && ac_dir=.
8536 if test -f $ac_dir/$ac_word; then
8537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8538 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8539 break
8540 fi
8541 fi
8542 done
8543 IFS="$ac_save_ifs"
8544 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8545 ;;
8546esac
8547fi
8548XGETTEXT="$ac_cv_path_XGETTEXT"
8549if test -n "$XGETTEXT"; then
13b2be9c
DJ
8550 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8551echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8552else
13b2be9c
DJ
8553 echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6
252b5132
RH
8555fi
8556
13b2be9c 8557
252b5132
RH
8558 USE_INCLUDED_LIBINTL=yes
8559 CATOBJEXT=.gmo
8560 INSTOBJEXT=.mo
8561 DATADIRNAME=share
8562 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8563 INTLLIBS=$INTLDEPS
8564 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8565 nls_cv_header_intl=libintl.h
8566 nls_cv_header_libgt=libgettext.h
8567 fi
8568
8569 if test "$XGETTEXT" != ":"; then
8570 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8571 : ;
8572 else
13b2be9c
DJ
8573 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8574echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8575 XGETTEXT=":"
8576 fi
8577 fi
8578
8579 # We need to process the po/ directory.
8580 POSUB=po
8581 else
8582 DATADIRNAME=share
8583 nls_cv_header_intl=libintl.h
8584 nls_cv_header_libgt=libgettext.h
8585 fi
8586
8587 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8588 # because some of the sources are only built for this goal.
8589 if test "$PACKAGE" = gettext; then
8590 USE_NLS=yes
8591 USE_INCLUDED_LIBINTL=yes
8592 fi
8593
8594 for lang in $ALL_LINGUAS; do
8595 GMOFILES="$GMOFILES $lang.gmo"
8596 POFILES="$POFILES $lang.po"
8597 done
8598
13b2be9c
DJ
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
d6d788bd 8611
252b5132
RH
8612 if test "x$CATOBJEXT" != "x"; then
8613 if test "x$ALL_LINGUAS" = "x"; then
8614 LINGUAS=
8615 else
13b2be9c
DJ
8616 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8617echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8618 NEW_LINGUAS=
8619 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8620 case "$ALL_LINGUAS" in
8621 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8622 esac
8623 done
8624 LINGUAS=$NEW_LINGUAS
13b2be9c
DJ
8625 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8626echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8627 fi
8628
8629 if test -n "$LINGUAS"; then
8630 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8631 fi
8632 fi
8633
8634 if test $ac_cv_header_locale_h = yes; then
8635 INCLUDE_LOCALE_H="#include <locale.h>"
8636 else
8637 INCLUDE_LOCALE_H="\
8638/* The system does not provide the header <locale.h>. Take care yourself. */"
8639 fi
13b2be9c 8640
252b5132
RH
8641
8642 if test -f $srcdir/po2tbl.sed.in; then
8643 if test "$CATOBJEXT" = ".cat"; then
13b2be9c
DJ
8644 if test "${ac_cv_header_linux_version_h+set}" = set; then
8645 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8646echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8647if test "${ac_cv_header_linux_version_h+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649fi
8650echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8651echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8652else
8653 # Is the header compilable?
8654echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8655echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8656cat >conftest.$ac_ext <<_ACEOF
8657#line $LINENO "configure"
8658/* confdefs.h. */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h. */
8663$ac_includes_default
9b2b7d69 8664#include <linux/version.h>
13b2be9c
DJ
8665_ACEOF
8666rm -f conftest.$ac_objext
8667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668 (eval $ac_compile) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_header_compiler=yes
8679else
8680 echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
8683ac_header_compiler=no
8684fi
8685rm -f conftest.$ac_objext conftest.$ac_ext
8686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8687echo "${ECHO_T}$ac_header_compiler" >&6
8688
8689# Is the header present?
8690echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8691echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8692cat >conftest.$ac_ext <<_ACEOF
8693#line $LINENO "configure"
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699#include <linux/version.h>
8700_ACEOF
8701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } >/dev/null; then
8709 if test -s conftest.err; then
8710 ac_cpp_err=$ac_c_preproc_warn_flag
8711 else
8712 ac_cpp_err=
8713 fi
252b5132 8714else
13b2be9c
DJ
8715 ac_cpp_err=yes
8716fi
8717if test -z "$ac_cpp_err"; then
8718 ac_header_preproc=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_header_preproc=no
8724fi
8725rm -f conftest.err conftest.$ac_ext
8726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8727echo "${ECHO_T}$ac_header_preproc" >&6
8728
8729# So? What about this header?
8730case $ac_header_compiler:$ac_header_preproc in
8731 yes:no )
8732 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8733echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8735echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8736 (
8737 cat <<\_ASBOX
8738## ------------------------------------ ##
8739## Report this to bug-autoconf@gnu.org. ##
8740## ------------------------------------ ##
8741_ASBOX
8742 ) |
8743 sed "s/^/$as_me: WARNING: /" >&2
8744 ;;
8745 no:yes )
8746 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8747echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8749echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8751echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8752 (
8753 cat <<\_ASBOX
8754## ------------------------------------ ##
8755## Report this to bug-autoconf@gnu.org. ##
8756## ------------------------------------ ##
8757_ASBOX
8758 ) |
8759 sed "s/^/$as_me: WARNING: /" >&2
8760 ;;
8761esac
8762echo "$as_me:$LINENO: checking for linux/version.h" >&5
8763echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8764if test "${ac_cv_header_linux_version_h+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 8768fi
13b2be9c
DJ
8769echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8770echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8771
252b5132 8772fi
13b2be9c 8773if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8774 msgformat=linux
8775else
13b2be9c 8776 msgformat=xopen
252b5132
RH
8777fi
8778
d6d788bd 8779
13b2be9c 8780
252b5132
RH
8781 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8782 fi
8783 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8784 $srcdir/po2tbl.sed.in > po2tbl.sed
8785 fi
8786
8787 if test "$PACKAGE" = "gettext"; then
8788 GT_NO="#NO#"
8789 GT_YES=
8790 else
8791 GT_NO=
8792 GT_YES="#YES#"
8793 fi
13b2be9c
DJ
8794
8795
252b5132
RH
8796
8797 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
13b2be9c 8798
252b5132
RH
8799
8800 l=
13b2be9c 8801
252b5132 8802
fcd8210c 8803 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8804 test -d po || mkdir po
8805 if test "x$srcdir" != "x."; then
8806 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8807 posrcprefix="$srcdir/"
8808 else
8809 posrcprefix="../$srcdir/"
8810 fi
8811 else
8812 posrcprefix="../"
8813 fi
8814 rm -f po/POTFILES
8815 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8816 < $srcdir/po/POTFILES.in > po/POTFILES
8817 fi
252b5132 8818
13b2be9c
DJ
8819
8820echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8821echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8822 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8823if test "${enable_maintainer_mode+set}" = set; then
8824 enableval="$enable_maintainer_mode"
8825 USE_MAINTAINER_MODE=$enableval
8826else
8827 USE_MAINTAINER_MODE=no
13b2be9c
DJ
8828fi;
8829 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8830echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 8831
252b5132
RH
8832
8833if test $USE_MAINTAINER_MODE = yes; then
8834 MAINTAINER_MODE_TRUE=
c8615825
AM
8835 MAINTAINER_MODE_FALSE='#'
8836else
8837 MAINTAINER_MODE_TRUE='#'
8838 MAINTAINER_MODE_FALSE=
8839fi
13b2be9c 8840
c8615825 8841 MAINT=$MAINTAINER_MODE_TRUE
9b2b7d69
MM
8842
8843
8844
8845
8846
8847
13b2be9c
DJ
8848
8849
8850
8851
8852
8853
8854
8855for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 8856do
13b2be9c
DJ
8857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8858if eval "test \"\${$as_ac_Header+set}\" = set"; then
8859 echo "$as_me:$LINENO: checking for $ac_header" >&5
8860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8861if eval "test \"\${$as_ac_Header+set}\" = set"; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863fi
8864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8866else
8867 # Is the header compilable?
8868echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8870cat >conftest.$ac_ext <<_ACEOF
8871#line $LINENO "configure"
8872/* confdefs.h. */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h. */
8877$ac_includes_default
8878#include <$ac_header>
8879_ACEOF
8880rm -f conftest.$ac_objext
8881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882 (eval $ac_compile) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -s conftest.$ac_objext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_header_compiler=yes
8893else
8894 echo "$as_me: failed program was:" >&5
8895sed 's/^/| /' conftest.$ac_ext >&5
8896
8897ac_header_compiler=no
8898fi
8899rm -f conftest.$ac_objext conftest.$ac_ext
8900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8901echo "${ECHO_T}$ac_header_compiler" >&6
8902
8903# Is the header present?
8904echo "$as_me:$LINENO: checking $ac_header presence" >&5
8905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8906cat >conftest.$ac_ext <<_ACEOF
8907#line $LINENO "configure"
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
8913#include <$ac_header>
8914_ACEOF
8915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } >/dev/null; then
8923 if test -s conftest.err; then
8924 ac_cpp_err=$ac_c_preproc_warn_flag
8925 else
8926 ac_cpp_err=
8927 fi
9b2b7d69 8928else
13b2be9c
DJ
8929 ac_cpp_err=yes
8930fi
8931if test -z "$ac_cpp_err"; then
8932 ac_header_preproc=yes
8933else
8934 echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 ac_header_preproc=no
8938fi
8939rm -f conftest.err conftest.$ac_ext
8940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8941echo "${ECHO_T}$ac_header_preproc" >&6
8942
8943# So? What about this header?
8944case $ac_header_compiler:$ac_header_preproc in
8945 yes:no )
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8950 (
8951 cat <<\_ASBOX
8952## ------------------------------------ ##
8953## Report this to bug-autoconf@gnu.org. ##
8954## ------------------------------------ ##
8955_ASBOX
8956 ) |
8957 sed "s/^/$as_me: WARNING: /" >&2
8958 ;;
8959 no:yes )
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8966 (
8967 cat <<\_ASBOX
8968## ------------------------------------ ##
8969## Report this to bug-autoconf@gnu.org. ##
8970## ------------------------------------ ##
8971_ASBOX
8972 ) |
8973 sed "s/^/$as_me: WARNING: /" >&2
8974 ;;
8975esac
8976echo "$as_me:$LINENO: checking for $ac_header" >&5
8977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8978if eval "test \"\${$as_ac_Header+set}\" = set"; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980else
8981 eval "$as_ac_Header=$ac_header_preproc"
252b5132 8982fi
13b2be9c
DJ
8983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8985
252b5132 8986fi
13b2be9c
DJ
8987if test `eval echo '${'$as_ac_Header'}'` = yes; then
8988 cat >>confdefs.h <<_ACEOF
8989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8990_ACEOF
8991
252b5132 8992fi
13b2be9c 8993
252b5132
RH
8994done
8995
d6d788bd 8996
252b5132
RH
8997# Put this here so that autoconf's "cross-compiling" message doesn't confuse
8998# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
8999echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9000echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
9001if test "${host}" = "${target}"; then
9002 cross_gas=no
9003else
9004 cross_gas=yes
13b2be9c
DJ
9005
9006cat >>confdefs.h <<\_ACEOF
252b5132 9007#define CROSS_COMPILE 1
13b2be9c 9008_ACEOF
252b5132
RH
9009
9010fi
13b2be9c
DJ
9011echo "$as_me:$LINENO: result: $cross_gas" >&5
9012echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
9013
9014# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9015# for constant arguments. Useless!
13b2be9c
DJ
9016echo "$as_me:$LINENO: checking for working alloca.h" >&5
9017echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9018if test "${ac_cv_working_alloca_h+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 cat >conftest.$ac_ext <<_ACEOF
9022#line $LINENO "configure"
9023/* confdefs.h. */
9024_ACEOF
9025cat confdefs.h >>conftest.$ac_ext
9026cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h. */
252b5132 9028#include <alloca.h>
13b2be9c
DJ
9029int
9030main ()
9031{
9032char *p = (char *) alloca (2 * sizeof (int));
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_working_alloca_h=yes
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054ac_cv_working_alloca_h=no
9055fi
9056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9057fi
9058echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9059echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9060if test $ac_cv_working_alloca_h = yes; then
9061
9062cat >>confdefs.h <<\_ACEOF
252b5132 9063#define HAVE_ALLOCA_H 1
13b2be9c 9064_ACEOF
252b5132
RH
9065
9066fi
9067
13b2be9c
DJ
9068echo "$as_me:$LINENO: checking for alloca" >&5
9069echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9070if test "${ac_cv_func_alloca_works+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9072else
13b2be9c
DJ
9073 cat >conftest.$ac_ext <<_ACEOF
9074#line $LINENO "configure"
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
252b5132
RH
9080#ifdef __GNUC__
9081# define alloca __builtin_alloca
9082#else
9083# ifdef _MSC_VER
9084# include <malloc.h>
9085# define alloca _alloca
9086# else
9087# if HAVE_ALLOCA_H
9088# include <alloca.h>
9089# else
9090# ifdef _AIX
9091 #pragma alloca
9092# else
9093# ifndef alloca /* predefined by HP cc +Olibcalls */
9094char *alloca ();
9095# endif
9096# endif
9097# endif
9098# endif
9099#endif
9100
13b2be9c
DJ
9101int
9102main ()
9103{
9104char *p = (char *) alloca (1);
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext conftest$ac_exeext
9110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
252b5132
RH
9121 ac_cv_func_alloca_works=yes
9122else
13b2be9c
DJ
9123 echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_cv_func_alloca_works=no
252b5132 9127fi
13b2be9c 9128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9129fi
13b2be9c
DJ
9130echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9131echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9132
252b5132 9133if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 9134
13b2be9c
DJ
9135cat >>confdefs.h <<\_ACEOF
9136#define HAVE_ALLOCA 1
9137_ACEOF
9b2b7d69 9138
13b2be9c 9139else
c8615825 9140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
9141# that cause trouble. Some versions do not even contain alloca or
9142# contain a buggy version. If you still want to use their alloca,
9143# use ar to extract alloca.o from them instead of compiling alloca.c.
9144
9145ALLOCA=alloca.$ac_objext
9146
9147cat >>confdefs.h <<\_ACEOF
252b5132 9148#define C_ALLOCA 1
13b2be9c 9149_ACEOF
252b5132 9150
d6d788bd 9151
13b2be9c
DJ
9152echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9153echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9154if test "${ac_cv_os_cray+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9156else
13b2be9c
DJ
9157 cat >conftest.$ac_ext <<_ACEOF
9158#line $LINENO "configure"
9159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
252b5132
RH
9164#if defined(CRAY) && ! defined(CRAY2)
9165webecray
9166#else
9167wenotbecray
9168#endif
9169
13b2be9c 9170_ACEOF
252b5132 9171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 9172 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9173 ac_cv_os_cray=yes
9174else
252b5132
RH
9175 ac_cv_os_cray=no
9176fi
9177rm -f conftest*
9178
9179fi
13b2be9c
DJ
9180echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9181echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 9182if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
9183 for ac_func in _getb67 GETB67 getb67; do
9184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185echo "$as_me:$LINENO: checking for $ac_func" >&5
9186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9187if eval "test \"\${$as_ac_var+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 cat >conftest.$ac_ext <<_ACEOF
9191#line $LINENO "configure"
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
252b5132 9197/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9198 which can conflict with char $ac_func (); below.
9199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9200 <limits.h> exists even on freestanding compilers. */
9201#ifdef __STDC__
9202# include <limits.h>
9203#else
9204# include <assert.h>
9205#endif
252b5132 9206/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9207#ifdef __cplusplus
9208extern "C"
9209{
9210#endif
252b5132 9211/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9212 builtin and then its argument prototype would still apply. */
9213char $ac_func ();
252b5132
RH
9214/* The GNU C library defines this for functions which it implements
9215 to always fail with ENOSYS. Some functions are actually named
9216 something starting with __ and the normal name is an alias. */
9217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218choke me
9219#else
13b2be9c
DJ
9220char (*f) () = $ac_func;
9221#endif
9222#ifdef __cplusplus
9223}
252b5132
RH
9224#endif
9225
13b2be9c
DJ
9226int
9227main ()
9228{
9229return f != $ac_func;
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_var=yes"
9247else
9248 echo "$as_me: failed program was:" >&5
9249sed 's/^/| /' conftest.$ac_ext >&5
9250
9251eval "$as_ac_var=no"
9252fi
9253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9254fi
9255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9257if test `eval echo '${'$as_ac_var'}'` = yes; then
9258
9259cat >>confdefs.h <<_ACEOF
252b5132 9260#define CRAY_STACKSEG_END $ac_func
13b2be9c 9261_ACEOF
252b5132 9262
13b2be9c 9263 break
252b5132
RH
9264fi
9265
13b2be9c 9266 done
252b5132
RH
9267fi
9268
13b2be9c
DJ
9269echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9270echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9271if test "${ac_cv_c_stack_direction+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9273else
9274 if test "$cross_compiling" = yes; then
9275 ac_cv_c_stack_direction=0
9276else
13b2be9c
DJ
9277 cat >conftest.$ac_ext <<_ACEOF
9278#line $LINENO "configure"
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284int
252b5132
RH
9285find_stack_direction ()
9286{
9287 static char *addr = 0;
9288 auto char dummy;
9289 if (addr == 0)
9290 {
9291 addr = &dummy;
9292 return find_stack_direction ();
9293 }
9294 else
9295 return (&dummy > addr) ? 1 : -1;
9296}
13b2be9c
DJ
9297
9298int
252b5132
RH
9299main ()
9300{
13b2be9c 9301 exit (find_stack_direction () < 0);
252b5132 9302}
13b2be9c
DJ
9303_ACEOF
9304rm -f conftest$ac_exeext
9305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
252b5132
RH
9315 ac_cv_c_stack_direction=1
9316else
13b2be9c
DJ
9317 echo "$as_me: program exited with status $ac_status" >&5
9318echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321( exit $ac_status )
9322ac_cv_c_stack_direction=-1
252b5132 9323fi
13dfd2d0 9324rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9325fi
252b5132 9326fi
13b2be9c
DJ
9327echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9328echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9329
13b2be9c 9330cat >>confdefs.h <<_ACEOF
252b5132 9331#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
9332_ACEOF
9333
252b5132
RH
9334
9335fi
9336
13b2be9c
DJ
9337echo "$as_me:$LINENO: checking for inline" >&5
9338echo $ECHO_N "checking for inline... $ECHO_C" >&6
9339if test "${ac_cv_c_inline+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9341else
9342 ac_cv_c_inline=no
9343for ac_kw in inline __inline__ __inline; do
13b2be9c
DJ
9344 cat >conftest.$ac_ext <<_ACEOF
9345#line $LINENO "configure"
9346/* confdefs.h. */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h. */
9351#ifndef __cplusplus
9352typedef int foo_t;
9353static $ac_kw foo_t static_foo () {return 0; }
9354$ac_kw foo_t foo () {return 0; }
9355#endif
252b5132 9356
13b2be9c
DJ
9357_ACEOF
9358rm -f conftest.$ac_objext
9359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
252b5132
RH
9370 ac_cv_c_inline=$ac_kw; break
9371else
13b2be9c
DJ
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
252b5132 9375fi
13b2be9c 9376rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9377done
9378
9379fi
13b2be9c
DJ
9380echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9381echo "${ECHO_T}$ac_cv_c_inline" >&6
9382case $ac_cv_c_inline in
252b5132 9383 inline | yes) ;;
13b2be9c
DJ
9384 no)
9385cat >>confdefs.h <<\_ACEOF
9386#define inline
9387_ACEOF
252b5132 9388 ;;
13b2be9c 9389 *) cat >>confdefs.h <<_ACEOF
252b5132 9390#define inline $ac_cv_c_inline
13b2be9c 9391_ACEOF
252b5132
RH
9392 ;;
9393esac
9394
6840198f 9395
d6d788bd 9396# VMS doesn't have unlink.
13b2be9c
DJ
9397
9398
252b5132
RH
9399for ac_func in unlink remove
9400do
13b2be9c
DJ
9401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9402echo "$as_me:$LINENO: checking for $ac_func" >&5
9403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9404if eval "test \"\${$as_ac_var+set}\" = set"; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407 cat >conftest.$ac_ext <<_ACEOF
9408#line $LINENO "configure"
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
252b5132 9414/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9415 which can conflict with char $ac_func (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9418#ifdef __STDC__
9419# include <limits.h>
9420#else
9421# include <assert.h>
9422#endif
252b5132 9423/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9424#ifdef __cplusplus
9425extern "C"
9426{
9427#endif
252b5132 9428/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9429 builtin and then its argument prototype would still apply. */
9430char $ac_func ();
252b5132
RH
9431/* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9435choke me
9436#else
13b2be9c
DJ
9437char (*f) () = $ac_func;
9438#endif
9439#ifdef __cplusplus
9440}
252b5132
RH
9441#endif
9442
13b2be9c
DJ
9443int
9444main ()
9445{
9446return f != $ac_func;
9447 ;
9448 return 0;
9449}
9450_ACEOF
9451rm -f conftest.$ac_objext conftest$ac_exeext
9452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 eval "$as_ac_var=yes"
9464else
9465 echo "$as_me: failed program was:" >&5
9466sed 's/^/| /' conftest.$ac_ext >&5
9467
9468eval "$as_ac_var=no"
9469fi
9470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9471fi
9472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9474if test `eval echo '${'$as_ac_var'}'` = yes; then
9475 cat >>confdefs.h <<_ACEOF
9476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9477_ACEOF
252b5132 9478 break
252b5132
RH
9479fi
9480done
9481
6840198f 9482
d6d788bd 9483# Some systems don't have sbrk().
13b2be9c 9484
252b5132
RH
9485for ac_func in sbrk
9486do
13b2be9c
DJ
9487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9488echo "$as_me:$LINENO: checking for $ac_func" >&5
9489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9490if eval "test \"\${$as_ac_var+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492else
9493 cat >conftest.$ac_ext <<_ACEOF
9494#line $LINENO "configure"
9495/* confdefs.h. */
9496_ACEOF
9497cat confdefs.h >>conftest.$ac_ext
9498cat >>conftest.$ac_ext <<_ACEOF
9499/* end confdefs.h. */
252b5132 9500/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9501 which can conflict with char $ac_func (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
252b5132 9509/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9510#ifdef __cplusplus
9511extern "C"
9512{
9513#endif
252b5132 9514/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9515 builtin and then its argument prototype would still apply. */
9516char $ac_func ();
252b5132
RH
9517/* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9521choke me
9522#else
13b2be9c
DJ
9523char (*f) () = $ac_func;
9524#endif
9525#ifdef __cplusplus
9526}
252b5132
RH
9527#endif
9528
13b2be9c
DJ
9529int
9530main ()
9531{
9532return f != $ac_func;
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext conftest$ac_exeext
9538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 eval "$as_ac_var=yes"
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554eval "$as_ac_var=no"
9555fi
9556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557fi
9558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9560if test `eval echo '${'$as_ac_var'}'` = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9563_ACEOF
252b5132 9564
252b5132
RH
9565fi
9566done
9567
d6d788bd 9568
39bec121
TW
9569# do we need the math library?
9570case "${need_libm}" in
13b2be9c 9571yes)
39bec121 9572 LIBM=
f9c19112 9573case $host in
d64552c5 9574*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
9575 # These system don't have libm
9576 ;;
9577*-ncr-sysv4.3*)
13b2be9c
DJ
9578 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
9579echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
9580if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9582else
13b2be9c 9583 ac_check_lib_save_LIBS=$LIBS
39bec121 9584LIBS="-lmw $LIBS"
13b2be9c
DJ
9585cat >conftest.$ac_ext <<_ACEOF
9586#line $LINENO "configure"
9587/* confdefs.h. */
9588_ACEOF
9589cat confdefs.h >>conftest.$ac_ext
9590cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */
9592
39bec121 9593/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9594#ifdef __cplusplus
9595extern "C"
9596#endif
39bec121 9597/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9598 builtin and then its argument prototype would still apply. */
9599char _mwvalidcheckl ();
9600int
9601main ()
9602{
9603_mwvalidcheckl ();
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608rm -f conftest.$ac_objext conftest$ac_exeext
9609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_cv_lib_mw__mwvalidcheckl=yes
9621else
9622 echo "$as_me: failed program was:" >&5
9623sed 's/^/| /' conftest.$ac_ext >&5
9624
9625ac_cv_lib_mw__mwvalidcheckl=no
9626fi
9627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9628LIBS=$ac_check_lib_save_LIBS
9629fi
9630echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9631echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
9632if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 9633 LIBM="-lmw"
39bec121
TW
9634fi
9635
13b2be9c
DJ
9636 echo "$as_me:$LINENO: checking for main in -lm" >&5
9637echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9638if test "${ac_cv_lib_m_main+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9640else
13b2be9c 9641 ac_check_lib_save_LIBS=$LIBS
39bec121 9642LIBS="-lm $LIBS"
13b2be9c
DJ
9643cat >conftest.$ac_ext <<_ACEOF
9644#line $LINENO "configure"
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
39bec121 9650
d6d788bd 9651
13b2be9c
DJ
9652int
9653main ()
9654{
9655main ();
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_lib_m_main=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677ac_cv_lib_m_main=no
9678fi
9679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9680LIBS=$ac_check_lib_save_LIBS
9681fi
9682echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9683echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9684if test $ac_cv_lib_m_main = yes; then
39bec121 9685 LIBM="$LIBM -lm"
39bec121
TW
9686fi
9687
9688 ;;
9689*)
13b2be9c
DJ
9690 echo "$as_me:$LINENO: checking for main in -lm" >&5
9691echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9692if test "${ac_cv_lib_m_main+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9694else
13b2be9c 9695 ac_check_lib_save_LIBS=$LIBS
39bec121 9696LIBS="-lm $LIBS"
13b2be9c
DJ
9697cat >conftest.$ac_ext <<_ACEOF
9698#line $LINENO "configure"
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
39bec121 9704
d6d788bd 9705
13b2be9c
DJ
9706int
9707main ()
9708{
9709main ();
9710 ;
9711 return 0;
9712}
9713_ACEOF
9714rm -f conftest.$ac_objext conftest$ac_exeext
9715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_m_main=yes
9727else
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731ac_cv_lib_m_main=no
9732fi
9733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9734LIBS=$ac_check_lib_save_LIBS
9735fi
9736echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9737echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9738if test $ac_cv_lib_m_main = yes; then
39bec121 9739 LIBM="-lm"
39bec121
TW
9740fi
9741
9742 ;;
9743esac
9744
13b2be9c 9745
39bec121
TW
9746 ;;
9747esac
9748
252b5132
RH
9749# Some non-ANSI preprocessors botch requoting inside strings. That's bad
9750# enough, but on some of those systems, the assert macro relies on requoting
9751# working properly!
13b2be9c
DJ
9752echo "$as_me:$LINENO: checking for working assert macro" >&5
9753echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
9754if test "${gas_cv_assert_ok+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757 cat >conftest.$ac_ext <<_ACEOF
9758#line $LINENO "configure"
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
252b5132
RH
9764#include <assert.h>
9765#include <stdio.h>
13b2be9c
DJ
9766int
9767main ()
9768{
252b5132
RH
9769
9770/* check for requoting problems */
9771static int a, b, c, d;
9772static char *s;
9773assert (!strcmp(s, "foo bar baz quux"));
9774/* check for newline handling */
9775assert (a == b
9776 || c == d);
9777
13b2be9c
DJ
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
252b5132
RH
9794 gas_cv_assert_ok=yes
9795else
13b2be9c
DJ
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
9799gas_cv_assert_ok=no
252b5132 9800fi
13b2be9c 9801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9802fi
13b2be9c
DJ
9803echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
9804echo "${ECHO_T}$gas_cv_assert_ok" >&6
9805test $gas_cv_assert_ok = yes ||
9806cat >>confdefs.h <<\_ACEOF
252b5132 9807#define BROKEN_ASSERT 1
13b2be9c 9808_ACEOF
252b5132 9809
d6d788bd
L
9810
9811
252b5132
RH
9812# On some systems, the system header files may not declare malloc, realloc,
9813# and free. There are places where gas needs these functions to have been
9814# declared -- such as when taking their addresses.
9815gas_test_headers="
9816#ifdef HAVE_MEMORY_H
9817#include <memory.h>
9818#endif
9819#ifdef HAVE_STRING_H
9820#include <string.h>
9821#else
9822#ifdef HAVE_STRINGS_H
9823#include <strings.h>
9824#endif
9825#endif
9826#ifdef HAVE_STDLIB_H
9827#include <stdlib.h>
9828#endif
9829#ifdef HAVE_UNISTD_H
9830#include <unistd.h>
9831#endif
9832"
9833
13b2be9c
DJ
9834echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9835echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9836if test "${gas_cv_decl_needed_strstr+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839 cat >conftest.$ac_ext <<_ACEOF
9840#line $LINENO "configure"
9841/* confdefs.h. */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h. */
252b5132 9846$gas_test_headers
13b2be9c
DJ
9847int
9848main ()
9849{
252b5132
RH
9850
9851typedef char *(*f)();
9852f x;
9853x = (f) strstr;
9854
13b2be9c
DJ
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext conftest$ac_exeext
9860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
252b5132
RH
9871 gas_cv_decl_needed_strstr=no
9872else
13b2be9c
DJ
9873 echo "$as_me: failed program was:" >&5
9874sed 's/^/| /' conftest.$ac_ext >&5
9875
9876gas_cv_decl_needed_strstr=yes
252b5132 9877fi
13b2be9c 9878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9879fi
13b2be9c
DJ
9880echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9881echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
252b5132 9882if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
9883
9884cat >>confdefs.h <<\_ACEOF
252b5132 9885#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
9886_ACEOF
9887
9888fi
9889
9890
9891echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9892echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9893if test "${gas_cv_decl_needed_malloc+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895else
9896 cat >conftest.$ac_ext <<_ACEOF
9897#line $LINENO "configure"
9898/* confdefs.h. */
9899_ACEOF
9900cat confdefs.h >>conftest.$ac_ext
9901cat >>conftest.$ac_ext <<_ACEOF
9902/* end confdefs.h. */
9903$gas_test_headers
9904int
9905main ()
9906{
9907
9908typedef char *(*f)();
9909f x;
9910x = (f) malloc;
9911
9912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
9917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918 (eval $ac_link) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 gas_cv_decl_needed_malloc=no
9929else
9930 echo "$as_me: failed program was:" >&5
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
9933gas_cv_decl_needed_malloc=yes
9934fi
9935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9936fi
9937echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9938echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9939if test $gas_cv_decl_needed_malloc = yes; then
9940
9941cat >>confdefs.h <<\_ACEOF
9942#define NEED_DECLARATION_MALLOC 1
9943_ACEOF
9944
9945fi
9946
9947
9948echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9949echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9950if test "${gas_cv_decl_needed_free+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953 cat >conftest.$ac_ext <<_ACEOF
9954#line $LINENO "configure"
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960$gas_test_headers
9961int
9962main ()
9963{
9964
9965typedef void (*f)();
9966f x;
9967x = (f) free;
9968
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 gas_cv_decl_needed_free=no
9986else
9987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990gas_cv_decl_needed_free=yes
9991fi
9992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9993fi
9994echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9995echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
9996if test $gas_cv_decl_needed_free = yes; then
9997
9998cat >>confdefs.h <<\_ACEOF
9999#define NEED_DECLARATION_FREE 1
10000_ACEOF
10001
10002fi
10003
10004
10005echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10006echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10007if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 cat >conftest.$ac_ext <<_ACEOF
10011#line $LINENO "configure"
10012/* confdefs.h. */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */
10017$gas_test_headers
10018int
10019main ()
10020{
10021
10022typedef char *(*f)();
10023f x;
10024x = (f) sbrk;
10025
10026 ;
10027 return 0;
10028}
10029_ACEOF
10030rm -f conftest.$ac_objext conftest$ac_exeext
10031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 gas_cv_decl_needed_sbrk=no
10043else
10044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047gas_cv_decl_needed_sbrk=yes
10048fi
10049rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10050fi
10051echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10052echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10053if test $gas_cv_decl_needed_sbrk = yes; then
10054
10055cat >>confdefs.h <<\_ACEOF
10056#define NEED_DECLARATION_SBRK 1
10057_ACEOF
10058
10059fi
10060
10061
10062echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10063echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10064if test "${gas_cv_decl_needed_environ+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 cat >conftest.$ac_ext <<_ACEOF
10068#line $LINENO "configure"
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
10074$gas_test_headers
10075int
10076main ()
10077{
10078
10079typedef char **f;
10080f x;
10081x = (f) environ;
10082
10083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 gas_cv_decl_needed_environ=no
10100else
10101 echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104gas_cv_decl_needed_environ=yes
10105fi
10106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10107fi
10108echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10109echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10110if test $gas_cv_decl_needed_environ = yes; then
10111
10112cat >>confdefs.h <<\_ACEOF
10113#define NEED_DECLARATION_ENVIRON 1
10114_ACEOF
10115
10116fi
10117
10118
10119# Does errno.h declare errno, or do we have to add a separate declaration
10120# for it?
10121
10122echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10123echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10124if test "${gas_cv_decl_needed_errno+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127 cat >conftest.$ac_ext <<_ACEOF
10128#line $LINENO "configure"
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134
10135#ifdef HAVE_ERRNO_H
10136#include <errno.h>
10137#endif
10138
10139int
10140main ()
10141{
10142
10143typedef int f;
10144f x;
10145x = (f) errno;
10146
10147 ;
10148 return 0;
10149}
10150_ACEOF
10151rm -f conftest.$ac_objext conftest$ac_exeext
10152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 gas_cv_decl_needed_errno=no
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168gas_cv_decl_needed_errno=yes
10169fi
10170rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10171fi
10172echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10173echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10174if test $gas_cv_decl_needed_errno = yes; then
10175
10176cat >>confdefs.h <<\_ACEOF
10177#define NEED_DECLARATION_ERRNO 1
10178_ACEOF
10179
10180fi
10181
10182
10183
10184
10185 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10186
10187 ac_config_commands="$ac_config_commands default"
10188
10189
10190cat >confcache <<\_ACEOF
10191# This file is a shell script that caches the results of configure
10192# tests run on this system so they can be shared between configure
10193# scripts and configure runs, see configure's option --config-cache.
10194# It is not useful on other systems. If it contains results you don't
10195# want to keep, you may remove or edit it.
10196#
10197# config.status only pays attention to the cache file if you give it
10198# the --recheck option to rerun configure.
10199#
10200# `ac_cv_env_foo' variables (set or unset) will be overridden when
10201# loading this file, other *unset* `ac_cv_foo' will be assigned the
10202# following values.
10203
10204_ACEOF
10205
10206# The following way of writing the cache mishandles newlines in values,
10207# but we know of no workaround that is simple, portable, and efficient.
10208# So, don't put newlines in cache variables' values.
10209# Ultrix sh set writes to stderr and can't be redirected directly,
10210# and sets the high bit in the cache file unless we assign to the vars.
10211{
10212 (set) 2>&1 |
10213 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10214 *ac_space=\ *)
10215 # `set' does not quote correctly, so add quotes (double-quote
10216 # substitution turns \\\\ into \\, and sed turns \\ into \).
10217 sed -n \
10218 "s/'/'\\\\''/g;
10219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10220 ;;
10221 *)
10222 # `set' quotes correctly as required by POSIX, so do not add quotes.
10223 sed -n \
10224 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10225 ;;
10226 esac;
10227} |
10228 sed '
10229 t clear
10230 : clear
10231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10232 t end
10233 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10234 : end' >>confcache
10235if diff $cache_file confcache >/dev/null 2>&1; then :; else
10236 if test -w $cache_file; then
10237 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10238 cat confcache >$cache_file
10239 else
10240 echo "not updating unwritable cache $cache_file"
10241 fi
10242fi
10243rm -f confcache
10244
10245test "x$prefix" = xNONE && prefix=$ac_default_prefix
10246# Let make expand exec_prefix.
10247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10248
10249# VPATH may cause trouble with some makes, so we remove $(srcdir),
10250# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10251# trailing colons and then remove the whole line if VPATH becomes empty
10252# (actually we leave an empty line to preserve line numbers).
10253if test "x$srcdir" = x.; then
10254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10255s/:*\$(srcdir):*/:/;
10256s/:*\${srcdir}:*/:/;
10257s/:*@srcdir@:*/:/;
10258s/^\([^=]*=[ ]*\):*/\1/;
10259s/:*$//;
10260s/^[^=]*=[ ]*$//;
10261}'
10262fi
10263
10264DEFS=-DHAVE_CONFIG_H
10265
10266ac_libobjs=
10267ac_ltlibobjs=
10268for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10269 # 1. Remove the extension, and $U if already installed.
10270 ac_i=`echo "$ac_i" |
10271 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10272 # 2. Add them.
10273 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10274 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10275done
10276LIBOBJS=$ac_libobjs
10277
10278LTLIBOBJS=$ac_ltlibobjs
10279
10280
10281if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10282 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10283Usually this means the macro was only invoked conditionally." >&5
10284echo "$as_me: error: conditional \"AMDEP\" was never defined.
10285Usually this means the macro was only invoked conditionally." >&2;}
10286 { (exit 1); exit 1; }; }
10287fi
10288if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10289 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10290Usually this means the macro was only invoked conditionally." >&5
10291echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10292Usually this means the macro was only invoked conditionally." >&2;}
10293 { (exit 1); exit 1; }; }
10294fi
10295if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10296 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10297Usually this means the macro was only invoked conditionally." >&5
10298echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10299Usually this means the macro was only invoked conditionally." >&2;}
10300 { (exit 1); exit 1; }; }
10301fi
10302
10303: ${CONFIG_STATUS=./config.status}
10304ac_clean_files_save=$ac_clean_files
10305ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10306{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10307echo "$as_me: creating $CONFIG_STATUS" >&6;}
10308cat >$CONFIG_STATUS <<_ACEOF
10309#! $SHELL
10310# Generated by $as_me.
10311# Run this file to recreate the current configuration.
10312# Compiler output produced by configure, useful for debugging
10313# configure, is in config.log if it exists.
10314
10315debug=false
10316ac_cs_recheck=false
10317ac_cs_silent=false
10318SHELL=\${CONFIG_SHELL-$SHELL}
10319_ACEOF
10320
10321cat >>$CONFIG_STATUS <<\_ACEOF
10322## --------------------- ##
10323## M4sh Initialization. ##
10324## --------------------- ##
10325
10326# Be Bourne compatible
10327if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10328 emulate sh
10329 NULLCMD=:
10330 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10331 # is contrary to our usage. Disable this feature.
10332 alias -g '${1+"$@"}'='"$@"'
10333elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10334 set -o posix
10335fi
10336
10337# Support unset when possible.
10338if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10339 as_unset=unset
10340else
10341 as_unset=false
10342fi
10343
10344
10345# Work around bugs in pre-3.0 UWIN ksh.
10346$as_unset ENV MAIL MAILPATH
10347PS1='$ '
10348PS2='> '
10349PS4='+ '
10350
10351# NLS nuisances.
10352for as_var in \
10353 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10354 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10355 LC_TELEPHONE LC_TIME
10356do
10357 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10358 eval $as_var=C; export $as_var
10359 else
10360 $as_unset $as_var
10361 fi
10362done
10363
10364# Required to use basename.
10365if expr a : '\(a\)' >/dev/null 2>&1; then
10366 as_expr=expr
10367else
10368 as_expr=false
10369fi
10370
10371if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10372 as_basename=basename
10373else
10374 as_basename=false
10375fi
10376
10377
10378# Name of the executable.
10379as_me=`$as_basename "$0" ||
10380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10381 X"$0" : 'X\(//\)$' \| \
10382 X"$0" : 'X\(/\)$' \| \
10383 . : '\(.\)' 2>/dev/null ||
10384echo X/"$0" |
10385 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10386 /^X\/\(\/\/\)$/{ s//\1/; q; }
10387 /^X\/\(\/\).*/{ s//\1/; q; }
10388 s/.*/./; q'`
10389
10390
10391# PATH needs CR, and LINENO needs CR and PATH.
10392# Avoid depending upon Character Ranges.
10393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10396as_cr_digits='0123456789'
10397as_cr_alnum=$as_cr_Letters$as_cr_digits
10398
10399# The user is always right.
10400if test "${PATH_SEPARATOR+set}" != set; then
10401 echo "#! /bin/sh" >conf$$.sh
10402 echo "exit 0" >>conf$$.sh
10403 chmod +x conf$$.sh
10404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10405 PATH_SEPARATOR=';'
10406 else
10407 PATH_SEPARATOR=:
10408 fi
10409 rm -f conf$$.sh
10410fi
10411
10412
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10416 test "x$as_lineno_1" != "x$as_lineno_2" &&
10417 test "x$as_lineno_3" = "x$as_lineno_2" || {
10418 # Find who we are. Look in the path if we contain no path at all
10419 # relative or not.
10420 case $0 in
10421 *[\\/]* ) as_myself=$0 ;;
10422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10428done
252b5132 10429
13b2be9c
DJ
10430 ;;
10431 esac
10432 # We did not find ourselves, most probably we were run as `sh COMMAND'
10433 # in which case we are not to be found in the path.
10434 if test "x$as_myself" = x; then
10435 as_myself=$0
10436 fi
10437 if test ! -f "$as_myself"; then
10438 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10439echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10440 { (exit 1); exit 1; }; }
10441 fi
10442 case $CONFIG_SHELL in
10443 '')
10444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for as_base in sh bash ksh sh5; do
10450 case $as_dir in
10451 /*)
10452 if ("$as_dir/$as_base" -c '
10453 as_lineno_1=$LINENO
10454 as_lineno_2=$LINENO
10455 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10456 test "x$as_lineno_1" != "x$as_lineno_2" &&
10457 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10458 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10459 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10460 CONFIG_SHELL=$as_dir/$as_base
10461 export CONFIG_SHELL
10462 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10463 fi;;
10464 esac
10465 done
10466done
10467;;
10468 esac
252b5132 10469
13b2be9c
DJ
10470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10471 # uniformly replaced by the line number. The first 'sed' inserts a
10472 # line-number line before each line; the second 'sed' does the real
10473 # work. The second script uses 'N' to pair each line-number line
10474 # with the numbered line, and appends trailing '-' during
10475 # substitution so that $LINENO is not a special case at line end.
10476 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10477 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10478 sed '=' <$as_myself |
10479 sed '
10480 N
10481 s,$,-,
10482 : loop
10483 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10484 t loop
10485 s,-$,,
10486 s,^['$as_cr_digits']*\n,,
10487 ' >$as_me.lineno &&
10488 chmod +x $as_me.lineno ||
10489 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10490echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10491 { (exit 1); exit 1; }; }
10492
10493 # Don't try to exec as it changes $[0], causing all sort of problems
10494 # (the dirname of $[0] is not the place where we might find the
10495 # original and so on. Autoconf is especially sensible to this).
10496 . ./$as_me.lineno
10497 # Exit status is that of the last command.
10498 exit
10499}
d6d788bd 10500
252b5132 10501
13b2be9c
DJ
10502case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10503 *c*,-n*) ECHO_N= ECHO_C='
10504' ECHO_T=' ' ;;
10505 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10506 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10507esac
252b5132 10508
13b2be9c
DJ
10509if expr a : '\(a\)' >/dev/null 2>&1; then
10510 as_expr=expr
252b5132 10511else
13b2be9c 10512 as_expr=false
252b5132 10513fi
252b5132 10514
13b2be9c
DJ
10515rm -f conf$$ conf$$.exe conf$$.file
10516echo >conf$$.file
10517if ln -s conf$$.file conf$$ 2>/dev/null; then
10518 # We could just check for DJGPP; but this test a) works b) is more generic
10519 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10520 if test -f conf$$.exe; then
10521 # Don't use ln at all; we don't have any links
10522 as_ln_s='cp -p'
10523 else
10524 as_ln_s='ln -s'
10525 fi
10526elif ln conf$$.file conf$$ 2>/dev/null; then
10527 as_ln_s=ln
10528else
10529 as_ln_s='cp -p'
252b5132 10530fi
13b2be9c 10531rm -f conf$$ conf$$.exe conf$$.file
252b5132 10532
13b2be9c
DJ
10533if mkdir -p . 2>/dev/null; then
10534 as_mkdir_p=:
252b5132 10535else
13b2be9c
DJ
10536 as_mkdir_p=false
10537fi
252b5132 10538
13b2be9c 10539as_executable_p="test -f"
252b5132 10540
13b2be9c
DJ
10541# Sed expression to map a string onto a valid CPP name.
10542as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
252b5132 10543
13b2be9c
DJ
10544# Sed expression to map a string onto a valid variable name.
10545as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
252b5132 10546
d6d788bd 10547
13b2be9c
DJ
10548# IFS
10549# We need space, tab and new line, in precisely that order.
10550as_nl='
10551'
10552IFS=" $as_nl"
252b5132 10553
13b2be9c
DJ
10554# CDPATH.
10555$as_unset CDPATH
252b5132 10556
13b2be9c 10557exec 6>&1
252b5132 10558
13b2be9c
DJ
10559# Open the log real soon, to keep \$[0] and so on meaningful, and to
10560# report actual input values of CONFIG_FILES etc. instead of their
10561# values after options handling. Logging --version etc. is OK.
10562exec 5>>config.log
10563{
10564 echo
10565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10566## Running $as_me. ##
10567_ASBOX
10568} >&5
10569cat >&5 <<_CSEOF
252b5132 10570
13b2be9c
DJ
10571This file was extended by $as_me, which was
10572generated by GNU Autoconf 2.57. Invocation command line was
d6d788bd 10573
13b2be9c
DJ
10574 CONFIG_FILES = $CONFIG_FILES
10575 CONFIG_HEADERS = $CONFIG_HEADERS
10576 CONFIG_LINKS = $CONFIG_LINKS
10577 CONFIG_COMMANDS = $CONFIG_COMMANDS
10578 $ $0 $@
252b5132 10579
13b2be9c
DJ
10580_CSEOF
10581echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10582echo >&5
10583_ACEOF
252b5132 10584
13b2be9c
DJ
10585# Files that config.status was made for.
10586if test -n "$ac_config_files"; then
10587 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 10588fi
13b2be9c
DJ
10589
10590if test -n "$ac_config_headers"; then
10591 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 10592fi
252b5132 10593
13b2be9c
DJ
10594if test -n "$ac_config_links"; then
10595 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
10596fi
10597
13b2be9c
DJ
10598if test -n "$ac_config_commands"; then
10599 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10600fi
d6d788bd 10601
13b2be9c 10602cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10603
13b2be9c
DJ
10604ac_cs_usage="\
10605\`$as_me' instantiates files from templates according to the
10606current configuration.
252b5132 10607
13b2be9c 10608Usage: $0 [OPTIONS] [FILE]...
252b5132 10609
13b2be9c
DJ
10610 -h, --help print this help, then exit
10611 -V, --version print version number, then exit
10612 -q, --quiet do not print progress messages
10613 -d, --debug don't remove temporary files
10614 --recheck update $as_me by reconfiguring in the same conditions
10615 --file=FILE[:TEMPLATE]
10616 instantiate the configuration file FILE
10617 --header=FILE[:TEMPLATE]
10618 instantiate the configuration header FILE
252b5132 10619
13b2be9c
DJ
10620Configuration files:
10621$config_files
252b5132 10622
13b2be9c
DJ
10623Configuration headers:
10624$config_headers
252b5132 10625
13b2be9c
DJ
10626Configuration commands:
10627$config_commands
252b5132 10628
13b2be9c
DJ
10629Report bugs to <bug-autoconf@gnu.org>."
10630_ACEOF
d6d788bd 10631
13b2be9c
DJ
10632cat >>$CONFIG_STATUS <<_ACEOF
10633ac_cs_version="\\
10634config.status
10635configured by $0, generated by GNU Autoconf 2.57,
10636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 10637
13b2be9c
DJ
10638Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10639Free Software Foundation, Inc.
10640This config.status script is free software; the Free Software Foundation
10641gives unlimited permission to copy, distribute and modify it."
10642srcdir=$srcdir
10643INSTALL="$INSTALL"
10644_ACEOF
d6d788bd 10645
13b2be9c
DJ
10646cat >>$CONFIG_STATUS <<\_ACEOF
10647# If no file are specified by the user, then we need to provide default
10648# value. By we need to know if files were specified by the user.
10649ac_need_defaults=:
10650while test $# != 0
10651do
10652 case $1 in
10653 --*=*)
10654 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10655 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10656 ac_shift=:
c8615825 10657 ;;
13b2be9c
DJ
10658 -*)
10659 ac_option=$1
10660 ac_optarg=$2
10661 ac_shift=shift
c8615825 10662 ;;
13b2be9c
DJ
10663 *) # This is not an option, so the user has probably given explicit
10664 # arguments.
10665 ac_option=$1
10666 ac_need_defaults=false;;
10667 esac
252b5132 10668
13b2be9c
DJ
10669 case $ac_option in
10670 # Handling of the options.
10671_ACEOF
10672cat >>$CONFIG_STATUS <<\_ACEOF
10673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10674 ac_cs_recheck=: ;;
10675 --version | --vers* | -V )
10676 echo "$ac_cs_version"; exit 0 ;;
10677 --he | --h)
10678 # Conflict between --help and --header
10679 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10680Try \`$0 --help' for more information." >&5
10681echo "$as_me: error: ambiguous option: $1
10682Try \`$0 --help' for more information." >&2;}
10683 { (exit 1); exit 1; }; };;
10684 --help | --hel | -h )
10685 echo "$ac_cs_usage"; exit 0 ;;
10686 --debug | --d* | -d )
10687 debug=: ;;
10688 --file | --fil | --fi | --f )
10689 $ac_shift
10690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10691 ac_need_defaults=false;;
10692 --header | --heade | --head | --hea )
10693 $ac_shift
10694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10695 ac_need_defaults=false;;
10696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10698 ac_cs_silent=: ;;
c8615825 10699
13b2be9c
DJ
10700 # This is an error.
10701 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10702Try \`$0 --help' for more information." >&5
10703echo "$as_me: error: unrecognized option: $1
10704Try \`$0 --help' for more information." >&2;}
10705 { (exit 1); exit 1; }; } ;;
252b5132 10706
13b2be9c 10707 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 10708
13b2be9c
DJ
10709 esac
10710 shift
10711done
252b5132 10712
13b2be9c 10713ac_configure_extra_args=
d6d788bd 10714
13b2be9c
DJ
10715if $ac_cs_silent; then
10716 exec 6>/dev/null
10717 ac_configure_extra_args="$ac_configure_extra_args --silent"
10718fi
9b2b7d69 10719
13b2be9c
DJ
10720_ACEOF
10721cat >>$CONFIG_STATUS <<_ACEOF
10722if \$ac_cs_recheck; then
10723 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10724 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10725fi
10726
10727_ACEOF
10728
10729cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 10730#
13b2be9c 10731# INIT-COMMANDS section.
9b2b7d69
MM
10732#
10733
13b2be9c
DJ
10734AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10735target_cpu_type=${target_cpu_type}
10736 cgen_cpu_prefix=${cgen_cpu_prefix}
10737 obj_format=${obj_format}
10738 te_file=${te_file}
10739
10740_ACEOF
10741
10742
10743
10744cat >>$CONFIG_STATUS <<\_ACEOF
10745for ac_config_target in $ac_config_targets
9b2b7d69 10746do
13b2be9c
DJ
10747 case "$ac_config_target" in
10748 # Handling of arguments.
10749 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
10750 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
10751 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10752 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10753 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10754 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10755 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10756 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10758echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10759 { (exit 1); exit 1; }; };;
9b2b7d69
MM
10760 esac
10761done
10762
13b2be9c
DJ
10763# If the user did not use the arguments to specify the items to instantiate,
10764# then the envvar interface is used. Set only those that are not.
10765# We use the long form for the default assignment because of an extremely
10766# bizarre bug on SunOS 4.1.3.
10767if $ac_need_defaults; then
10768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10771fi
10772
10773# Have a temporary directory for convenience. Make it in the build tree
10774# simply because there is no reason to put it here, and in addition,
10775# creating and moving files from /tmp can sometimes cause problems.
10776# Create a temporary directory, and hook for its removal unless debugging.
10777$debug ||
10778{
10779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10780 trap '{ (exit 1); exit 1; }' 1 2 13 15
10781}
9b2b7d69 10782
13b2be9c 10783# Create a (secure) tmp directory for tmp files.
9b2b7d69 10784
13b2be9c
DJ
10785{
10786 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10787 test -n "$tmp" && test -d "$tmp"
10788} ||
10789{
10790 tmp=./confstat$$-$RANDOM
10791 (umask 077 && mkdir $tmp)
10792} ||
10793{
10794 echo "$me: cannot create a temporary directory in ." >&2
10795 { (exit 1); exit 1; }
10796}
9b2b7d69 10797
13b2be9c
DJ
10798_ACEOF
10799
10800cat >>$CONFIG_STATUS <<_ACEOF
10801
10802#
10803# CONFIG_FILES section.
10804#
10805
10806# No need to generate the scripts if there are no CONFIG_FILES.
10807# This happens for instance when ./config.status config.h
10808if test -n "\$CONFIG_FILES"; then
10809 # Protect against being on the right side of a sed subst in config.status.
10810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10812s,@SHELL@,$SHELL,;t t
10813s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10814s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10815s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10816s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10817s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10818s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10819s,@exec_prefix@,$exec_prefix,;t t
10820s,@prefix@,$prefix,;t t
10821s,@program_transform_name@,$program_transform_name,;t t
10822s,@bindir@,$bindir,;t t
10823s,@sbindir@,$sbindir,;t t
10824s,@libexecdir@,$libexecdir,;t t
10825s,@datadir@,$datadir,;t t
10826s,@sysconfdir@,$sysconfdir,;t t
10827s,@sharedstatedir@,$sharedstatedir,;t t
10828s,@localstatedir@,$localstatedir,;t t
10829s,@libdir@,$libdir,;t t
10830s,@includedir@,$includedir,;t t
10831s,@oldincludedir@,$oldincludedir,;t t
10832s,@infodir@,$infodir,;t t
10833s,@mandir@,$mandir,;t t
10834s,@build_alias@,$build_alias,;t t
10835s,@host_alias@,$host_alias,;t t
10836s,@target_alias@,$target_alias,;t t
10837s,@DEFS@,$DEFS,;t t
10838s,@ECHO_C@,$ECHO_C,;t t
10839s,@ECHO_N@,$ECHO_N,;t t
10840s,@ECHO_T@,$ECHO_T,;t t
10841s,@LIBS@,$LIBS,;t t
10842s,@build@,$build,;t t
10843s,@build_cpu@,$build_cpu,;t t
10844s,@build_vendor@,$build_vendor,;t t
10845s,@build_os@,$build_os,;t t
10846s,@host@,$host,;t t
10847s,@host_cpu@,$host_cpu,;t t
10848s,@host_vendor@,$host_vendor,;t t
10849s,@host_os@,$host_os,;t t
10850s,@target@,$target,;t t
10851s,@target_cpu@,$target_cpu,;t t
10852s,@target_vendor@,$target_vendor,;t t
10853s,@target_os@,$target_os,;t t
10854s,@CC@,$CC,;t t
10855s,@CFLAGS@,$CFLAGS,;t t
10856s,@LDFLAGS@,$LDFLAGS,;t t
10857s,@CPPFLAGS@,$CPPFLAGS,;t t
10858s,@ac_ct_CC@,$ac_ct_CC,;t t
10859s,@EXEEXT@,$EXEEXT,;t t
10860s,@OBJEXT@,$OBJEXT,;t t
10861s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10862s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10863s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10864s,@CYGPATH_W@,$CYGPATH_W,;t t
10865s,@PACKAGE@,$PACKAGE,;t t
10866s,@VERSION@,$VERSION,;t t
10867s,@ACLOCAL@,$ACLOCAL,;t t
10868s,@AUTOCONF@,$AUTOCONF,;t t
10869s,@AUTOMAKE@,$AUTOMAKE,;t t
10870s,@AUTOHEADER@,$AUTOHEADER,;t t
10871s,@MAKEINFO@,$MAKEINFO,;t t
10872s,@AMTAR@,$AMTAR,;t t
10873s,@install_sh@,$install_sh,;t t
10874s,@STRIP@,$STRIP,;t t
10875s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10876s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10877s,@AWK@,$AWK,;t t
10878s,@SET_MAKE@,$SET_MAKE,;t t
10879s,@am__leading_dot@,$am__leading_dot,;t t
10880s,@DEPDIR@,$DEPDIR,;t t
10881s,@am__include@,$am__include,;t t
10882s,@am__quote@,$am__quote,;t t
10883s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10884s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10885s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10886s,@CCDEPMODE@,$CCDEPMODE,;t t
10887s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10888s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10889s,@LN_S@,$LN_S,;t t
10890s,@RANLIB@,$RANLIB,;t t
10891s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10892s,@LIBTOOL@,$LIBTOOL,;t t
10893s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10894s,@GDBINIT@,$GDBINIT,;t t
10895s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
10896s,@extra_objects@,$extra_objects,;t t
10897s,@target_cpu_type@,$target_cpu_type,;t t
10898s,@obj_format@,$obj_format,;t t
10899s,@te_file@,$te_file,;t t
10900s,@install_tooldir@,$install_tooldir,;t t
10901s,@atof@,$atof,;t t
10902s,@BFDLIB@,$BFDLIB,;t t
10903s,@OPCODES_LIB@,$OPCODES_LIB,;t t
10904s,@BFDVER_H@,$BFDVER_H,;t t
10905s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
10906s,@YACC@,$YACC,;t t
10907s,@LEX@,$LEX,;t t
10908s,@LEXLIB@,$LEXLIB,;t t
10909s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10910s,@CPP@,$CPP,;t t
10911s,@EGREP@,$EGREP,;t t
10912s,@ALLOCA@,$ALLOCA,;t t
10913s,@USE_NLS@,$USE_NLS,;t t
10914s,@MSGFMT@,$MSGFMT,;t t
10915s,@GMSGFMT@,$GMSGFMT,;t t
10916s,@XGETTEXT@,$XGETTEXT,;t t
10917s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10918s,@CATALOGS@,$CATALOGS,;t t
10919s,@CATOBJEXT@,$CATOBJEXT,;t t
10920s,@DATADIRNAME@,$DATADIRNAME,;t t
10921s,@GMOFILES@,$GMOFILES,;t t
10922s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10923s,@INTLDEPS@,$INTLDEPS,;t t
10924s,@INTLLIBS@,$INTLLIBS,;t t
10925s,@INTLOBJS@,$INTLOBJS,;t t
10926s,@POFILES@,$POFILES,;t t
10927s,@POSUB@,$POSUB,;t t
10928s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10929s,@GT_NO@,$GT_NO,;t t
10930s,@GT_YES@,$GT_YES,;t t
10931s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10932s,@l@,$l,;t t
10933s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10934s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10935s,@MAINT@,$MAINT,;t t
10936s,@LIBM@,$LIBM,;t t
10937s,@LIBOBJS@,$LIBOBJS,;t t
10938s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
10939CEOF
10940
13b2be9c
DJ
10941_ACEOF
10942
10943 cat >>$CONFIG_STATUS <<\_ACEOF
10944 # Split the substitutions into bite-sized pieces for seds with
10945 # small command number limits, like on Digital OSF/1 and HP-UX.
10946 ac_max_sed_lines=48
10947 ac_sed_frag=1 # Number of current file.
10948 ac_beg=1 # First line for current file.
10949 ac_end=$ac_max_sed_lines # Line after last line for current file.
10950 ac_more_lines=:
10951 ac_sed_cmds=
10952 while $ac_more_lines; do
10953 if test $ac_beg -gt 1; then
10954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10955 else
10956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10957 fi
10958 if test ! -s $tmp/subs.frag; then
10959 ac_more_lines=false
9b2b7d69 10960 else
13b2be9c
DJ
10961 # The purpose of the label and of the branching condition is to
10962 # speed up the sed processing (if there are no `@' at all, there
10963 # is no need to browse any of the substitutions).
10964 # These are the two extra sed commands mentioned above.
10965 (echo ':t
10966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10967 if test -z "$ac_sed_cmds"; then
10968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10969 else
10970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10971 fi
10972 ac_sed_frag=`expr $ac_sed_frag + 1`
10973 ac_beg=$ac_end
10974 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 10975 fi
13b2be9c
DJ
10976 done
10977 if test -z "$ac_sed_cmds"; then
10978 ac_sed_cmds=cat
252b5132 10979 fi
13b2be9c 10980fi # test -n "$CONFIG_FILES"
252b5132 10981
13b2be9c
DJ
10982_ACEOF
10983cat >>$CONFIG_STATUS <<\_ACEOF
10984for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 10985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
10986 case $ac_file in
10987 - | *:- | *:-:* ) # input from stdin
10988 cat >$tmp/stdin
10989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10993 * ) ac_file_in=$ac_file.in ;;
252b5132 10994 esac
9b2b7d69 10995
13b2be9c
DJ
10996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10999 X"$ac_file" : 'X\(//\)[^/]' \| \
11000 X"$ac_file" : 'X\(//\)$' \| \
11001 X"$ac_file" : 'X\(/\)' \| \
11002 . : '\(.\)' 2>/dev/null ||
11003echo X"$ac_file" |
11004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11006 /^X\(\/\/\)$/{ s//\1/; q; }
11007 /^X\(\/\).*/{ s//\1/; q; }
11008 s/.*/./; q'`
11009 { if $as_mkdir_p; then
11010 mkdir -p "$ac_dir"
c8615825 11011 else
13b2be9c
DJ
11012 as_dir="$ac_dir"
11013 as_dirs=
11014 while test ! -d "$as_dir"; do
11015 as_dirs="$as_dir $as_dirs"
11016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11018 X"$as_dir" : 'X\(//\)[^/]' \| \
11019 X"$as_dir" : 'X\(//\)$' \| \
11020 X"$as_dir" : 'X\(/\)' \| \
11021 . : '\(.\)' 2>/dev/null ||
11022echo X"$as_dir" |
11023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11025 /^X\(\/\/\)$/{ s//\1/; q; }
11026 /^X\(\/\).*/{ s//\1/; q; }
11027 s/.*/./; q'`
11028 done
11029 test ! -n "$as_dirs" || mkdir $as_dirs
11030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11032 { (exit 1); exit 1; }; }; }
11033
11034 ac_builddir=.
11035
11036if test "$ac_dir" != .; then
11037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11038 # A "../" for each directory in $ac_dir_suffix.
11039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11040else
11041 ac_dir_suffix= ac_top_builddir=
11042fi
9b2b7d69 11043
13b2be9c
DJ
11044case $srcdir in
11045 .) # No --srcdir option. We are building in place.
11046 ac_srcdir=.
11047 if test -z "$ac_top_builddir"; then
11048 ac_top_srcdir=.
11049 else
11050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11051 fi ;;
11052 [\\/]* | ?:[\\/]* ) # Absolute path.
11053 ac_srcdir=$srcdir$ac_dir_suffix;
11054 ac_top_srcdir=$srcdir ;;
9b2b7d69 11055 *) # Relative path.
13b2be9c
DJ
11056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11058esac
11059# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11060# absolute.
11061ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11062ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11063ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11064ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
252b5132 11065
9b2b7d69 11066
13b2be9c
DJ
11067 case $INSTALL in
11068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 11070 esac
9b2b7d69 11071
13b2be9c
DJ
11072 if test x"$ac_file" != x-; then
11073 { echo "$as_me:$LINENO: creating $ac_file" >&5
11074echo "$as_me: creating $ac_file" >&6;}
11075 rm -f "$ac_file"
11076 fi
11077 # Let's still pretend it is `configure' which instantiates (i.e., don't
11078 # use $as_me), people would be surprised to read:
11079 # /* config.h. Generated by config.status. */
11080 if test x"$ac_file" = x-; then
11081 configure_input=
11082 else
11083 configure_input="$ac_file. "
11084 fi
11085 configure_input=$configure_input"Generated from `echo $ac_file_in |
11086 sed 's,.*/,,'` by configure."
11087
11088 # First look for the input files in the build tree, otherwise in the
11089 # src tree.
11090 ac_file_inputs=`IFS=:
11091 for f in $ac_file_in; do
11092 case $f in
11093 -) echo $tmp/stdin ;;
11094 [\\/$]*)
11095 # Absolute (can't be DOS-style, as IFS=:)
11096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11097echo "$as_me: error: cannot find input file: $f" >&2;}
11098 { (exit 1); exit 1; }; }
11099 echo $f;;
11100 *) # Relative
11101 if test -f "$f"; then
11102 # Build tree
11103 echo $f
11104 elif test -f "$srcdir/$f"; then
11105 # Source tree
11106 echo $srcdir/$f
11107 else
11108 # /dev/null tree
11109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11110echo "$as_me: error: cannot find input file: $f" >&2;}
11111 { (exit 1); exit 1; }; }
11112 fi;;
11113 esac
11114 done` || { (exit 1); exit 1; }
11115_ACEOF
11116cat >>$CONFIG_STATUS <<_ACEOF
11117 sed "$ac_vpsub
11118$extrasub
11119_ACEOF
11120cat >>$CONFIG_STATUS <<\_ACEOF
11121:t
11122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11123s,@configure_input@,$configure_input,;t t
11124s,@srcdir@,$ac_srcdir,;t t
11125s,@abs_srcdir@,$ac_abs_srcdir,;t t
11126s,@top_srcdir@,$ac_top_srcdir,;t t
11127s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11128s,@builddir@,$ac_builddir,;t t
11129s,@abs_builddir@,$ac_abs_builddir,;t t
11130s,@top_builddir@,$ac_top_builddir,;t t
11131s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11132s,@INSTALL@,$ac_INSTALL,;t t
11133" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11134 rm -f $tmp/stdin
11135 if test x"$ac_file" != x-; then
11136 mv $tmp/out $ac_file
11137 else
11138 cat $tmp/out
11139 rm -f $tmp/out
11140 fi
11141
11142done
11143_ACEOF
11144cat >>$CONFIG_STATUS <<\_ACEOF
11145
11146#
11147# CONFIG_HEADER section.
11148#
252b5132
RH
11149
11150# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11151# NAME is the cpp macro being defined and VALUE is the value it is being given.
11152#
11153# ac_d sets the value in "#define NAME VALUE" lines.
13b2be9c
DJ
11154ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11155ac_dB='[ ].*$,\1#\2'
11156ac_dC=' '
11157ac_dD=',;t'
11158# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11159ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11160ac_uB='$,\1#\2define\3'
252b5132 11161ac_uC=' '
13b2be9c
DJ
11162ac_uD=',;t'
11163
11164for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11166 case $ac_file in
11167 - | *:- | *:-:* ) # input from stdin
11168 cat >$tmp/stdin
11169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11173 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11174 esac
11175
13b2be9c
DJ
11176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11177echo "$as_me: creating $ac_file" >&6;}
11178
11179 # First look for the input files in the build tree, otherwise in the
11180 # src tree.
11181 ac_file_inputs=`IFS=:
11182 for f in $ac_file_in; do
11183 case $f in
11184 -) echo $tmp/stdin ;;
11185 [\\/$]*)
11186 # Absolute (can't be DOS-style, as IFS=:)
11187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11188echo "$as_me: error: cannot find input file: $f" >&2;}
11189 { (exit 1); exit 1; }; }
11190 echo $f;;
11191 *) # Relative
11192 if test -f "$f"; then
11193 # Build tree
11194 echo $f
11195 elif test -f "$srcdir/$f"; then
11196 # Source tree
11197 echo $srcdir/$f
11198 else
11199 # /dev/null tree
11200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11201echo "$as_me: error: cannot find input file: $f" >&2;}
11202 { (exit 1); exit 1; }; }
11203 fi;;
11204 esac
11205 done` || { (exit 1); exit 1; }
11206 # Remove the trailing spaces.
11207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11208
11209_ACEOF
11210
11211# Transform confdefs.h into two sed scripts, `conftest.defines' and
11212# `conftest.undefs', that substitutes the proper values into
11213# config.h.in to produce config.h. The first handles `#define'
11214# templates, and the second `#undef' templates.
11215# And first: Protect against being on the right side of a sed subst in
11216# config.status. Protect against being in an unquoted here document
11217# in config.status.
11218rm -f conftest.defines conftest.undefs
11219# Using a here document instead of a string reduces the quoting nightmare.
11220# Putting comments in sed scripts is not portable.
11221#
11222# `end' is used to avoid that the second main sed command (meant for
11223# 0-ary CPP macros) applies to n-ary macro definitions.
11224# See the Autoconf documentation for `clear'.
11225cat >confdef2sed.sed <<\_ACEOF
11226s/[\\&,]/\\&/g
11227s,[\\$`],\\&,g
11228t clear
11229: clear
11230s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11231t end
11232s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11233: end
11234_ACEOF
11235# If some macros were called several times there might be several times
11236# the same #defines, which is useless. Nevertheless, we may not want to
11237# sort them, since we want the *last* AC-DEFINE to be honored.
11238uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11239sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11240rm -f confdef2sed.sed
252b5132
RH
11241
11242# This sed command replaces #undef with comments. This is necessary, for
11243# example, in the case of _POSIX_SOURCE, which is predefined and required
11244# on some systems where configure will not decide to define it.
13b2be9c
DJ
11245cat >>conftest.undefs <<\_ACEOF
11246s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11247_ACEOF
11248
11249# Break up conftest.defines because some shells have a limit on the size
11250# of here documents, and old seds have small limits too (100 cmds).
11251echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11252echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11253echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11254echo ' :' >>$CONFIG_STATUS
11255rm -f conftest.tail
11256while grep . conftest.defines >/dev/null
11257do
11258 # Write a limited-size here document to $tmp/defines.sed.
11259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11260 # Speed up: don't consider the non `#define' lines.
11261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11262 # Work around the forget-to-reset-the-flag bug.
11263 echo 't clr' >>$CONFIG_STATUS
11264 echo ': clr' >>$CONFIG_STATUS
11265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11266 echo 'CEOF
11267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11268 rm -f $tmp/in
11269 mv $tmp/out $tmp/in
11270' >>$CONFIG_STATUS
11271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11272 rm -f conftest.defines
11273 mv conftest.tail conftest.defines
11274done
11275rm -f conftest.defines
11276echo ' fi # grep' >>$CONFIG_STATUS
11277echo >>$CONFIG_STATUS
252b5132 11278
13b2be9c
DJ
11279# Break up conftest.undefs because some shells have a limit on the size
11280# of here documents, and old seds have small limits too (100 cmds).
11281echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11282rm -f conftest.tail
13b2be9c 11283while grep . conftest.undefs >/dev/null
252b5132 11284do
13b2be9c
DJ
11285 # Write a limited-size here document to $tmp/undefs.sed.
11286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11287 # Speed up: don't consider the non `#undef'
11288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11289 # Work around the forget-to-reset-the-flag bug.
11290 echo 't clr' >>$CONFIG_STATUS
11291 echo ': clr' >>$CONFIG_STATUS
11292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11293 echo 'CEOF
13b2be9c
DJ
11294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11295 rm -f $tmp/in
11296 mv $tmp/out $tmp/in
11297' >>$CONFIG_STATUS
11298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11299 rm -f conftest.undefs
11300 mv conftest.tail conftest.undefs
252b5132 11301done
13b2be9c
DJ
11302rm -f conftest.undefs
11303
11304cat >>$CONFIG_STATUS <<\_ACEOF
11305 # Let's still pretend it is `configure' which instantiates (i.e., don't
11306 # use $as_me), people would be surprised to read:
11307 # /* config.h. Generated by config.status. */
11308 if test x"$ac_file" = x-; then
11309 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 11310 else
13b2be9c
DJ
11311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11312 fi
11313 cat $tmp/in >>$tmp/config.h
11314 rm -f $tmp/in
11315 if test x"$ac_file" != x-; then
11316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11318echo "$as_me: $ac_file is unchanged" >&6;}
11319 else
11320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11322 X"$ac_file" : 'X\(//\)[^/]' \| \
11323 X"$ac_file" : 'X\(//\)$' \| \
11324 X"$ac_file" : 'X\(/\)' \| \
11325 . : '\(.\)' 2>/dev/null ||
11326echo X"$ac_file" |
11327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11329 /^X\(\/\/\)$/{ s//\1/; q; }
11330 /^X\(\/\).*/{ s//\1/; q; }
11331 s/.*/./; q'`
11332 { if $as_mkdir_p; then
11333 mkdir -p "$ac_dir"
11334 else
11335 as_dir="$ac_dir"
11336 as_dirs=
11337 while test ! -d "$as_dir"; do
11338 as_dirs="$as_dir $as_dirs"
11339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11341 X"$as_dir" : 'X\(//\)[^/]' \| \
11342 X"$as_dir" : 'X\(//\)$' \| \
11343 X"$as_dir" : 'X\(/\)' \| \
11344 . : '\(.\)' 2>/dev/null ||
11345echo X"$as_dir" |
11346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11348 /^X\(\/\/\)$/{ s//\1/; q; }
11349 /^X\(\/\).*/{ s//\1/; q; }
11350 s/.*/./; q'`
11351 done
11352 test ! -n "$as_dirs" || mkdir $as_dirs
11353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11355 { (exit 1); exit 1; }; }; }
11356
11357 rm -f $ac_file
11358 mv $tmp/config.h $ac_file
9b2b7d69 11359 fi
13b2be9c
DJ
11360 else
11361 cat $tmp/config.h
11362 rm -f $tmp/config.h
9b2b7d69 11363 fi
13b2be9c
DJ
11364# Compute $ac_file's index in $config_headers.
11365_am_stamp_count=1
11366for _am_header in $config_headers :; do
11367 case $_am_header in
11368 $ac_file | $ac_file:* )
11369 break ;;
11370 * )
11371 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11372 esac
11373done
11374echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11375$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11376 X$ac_file : 'X\(//\)[^/]' \| \
11377 X$ac_file : 'X\(//\)$' \| \
11378 X$ac_file : 'X\(/\)' \| \
11379 . : '\(.\)' 2>/dev/null ||
11380echo X$ac_file |
11381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11383 /^X\(\/\/\)$/{ s//\1/; q; }
11384 /^X\(\/\).*/{ s//\1/; q; }
11385 s/.*/./; q'`/stamp-h$_am_stamp_count
11386done
11387_ACEOF
11388cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 11389
13b2be9c
DJ
11390#
11391# CONFIG_COMMANDS section.
11392#
11393for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11394 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11395 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11396 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11397$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11398 X"$ac_dest" : 'X\(//\)[^/]' \| \
11399 X"$ac_dest" : 'X\(//\)$' \| \
11400 X"$ac_dest" : 'X\(/\)' \| \
11401 . : '\(.\)' 2>/dev/null ||
11402echo X"$ac_dest" |
11403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11405 /^X\(\/\/\)$/{ s//\1/; q; }
11406 /^X\(\/\).*/{ s//\1/; q; }
11407 s/.*/./; q'`
11408 ac_builddir=.
11409
11410if test "$ac_dir" != .; then
11411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11412 # A "../" for each directory in $ac_dir_suffix.
11413 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11414else
11415 ac_dir_suffix= ac_top_builddir=
11416fi
11417
11418case $srcdir in
11419 .) # No --srcdir option. We are building in place.
11420 ac_srcdir=.
11421 if test -z "$ac_top_builddir"; then
11422 ac_top_srcdir=.
11423 else
11424 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11425 fi ;;
11426 [\\/]* | ?:[\\/]* ) # Absolute path.
11427 ac_srcdir=$srcdir$ac_dir_suffix;
11428 ac_top_srcdir=$srcdir ;;
11429 *) # Relative path.
11430 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11431 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11432esac
11433# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11434# absolute.
11435ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11436ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11437ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11438ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11439
11440
11441 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11442echo "$as_me: executing $ac_dest commands" >&6;}
11443 case $ac_dest in
11444 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11445 # Strip MF so we end up with the name of the file.
11446 mf=`echo "$mf" | sed -e 's/:.*$//'`
11447 # Check whether this is an Automake generated Makefile or not.
11448 # We used to match only the files named `Makefile.in', but
11449 # some people rename them; so instead we look at the file content.
11450 # Grep'ing the first line is not enough: some people post-process
11451 # each Makefile.in and add a new line on top of each file to say so.
11452 # So let's grep whole file.
11453 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11454 dirpart=`(dirname "$mf") 2>/dev/null ||
11455$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11456 X"$mf" : 'X\(//\)[^/]' \| \
11457 X"$mf" : 'X\(//\)$' \| \
11458 X"$mf" : 'X\(/\)' \| \
11459 . : '\(.\)' 2>/dev/null ||
11460echo X"$mf" |
11461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11463 /^X\(\/\/\)$/{ s//\1/; q; }
11464 /^X\(\/\).*/{ s//\1/; q; }
11465 s/.*/./; q'`
11466 else
11467 continue
11468 fi
11469 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11470 # Extract the definition of DEP_FILES from the Makefile without
11471 # running `make'.
11472 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11473 test -z "$DEPDIR" && continue
11474 # When using ansi2knr, U may be empty or an underscore; expand it
11475 U=`sed -n -e '/^U = / s///p' < "$mf"`
11476 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11477 # We invoke sed twice because it is the simplest approach to
11478 # changing $(DEPDIR) to its actual value in the expansion.
11479 for file in `sed -n -e '
11480 /^DEP_FILES = .*\\\\$/ {
11481 s/^DEP_FILES = //
11482 :loop
11483 s/\\\\$//
11484 p
11485 n
11486 /\\\\$/ b loop
11487 p
11488 }
11489 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11491 # Make sure the directory exists.
11492 test -f "$dirpart/$file" && continue
11493 fdir=`(dirname "$file") 2>/dev/null ||
11494$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11495 X"$file" : 'X\(//\)[^/]' \| \
11496 X"$file" : 'X\(//\)$' \| \
11497 X"$file" : 'X\(/\)' \| \
11498 . : '\(.\)' 2>/dev/null ||
11499echo X"$file" |
11500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11502 /^X\(\/\/\)$/{ s//\1/; q; }
11503 /^X\(\/\).*/{ s//\1/; q; }
11504 s/.*/./; q'`
11505 { if $as_mkdir_p; then
11506 mkdir -p $dirpart/$fdir
11507 else
11508 as_dir=$dirpart/$fdir
11509 as_dirs=
11510 while test ! -d "$as_dir"; do
11511 as_dirs="$as_dir $as_dirs"
11512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11514 X"$as_dir" : 'X\(//\)[^/]' \| \
11515 X"$as_dir" : 'X\(//\)$' \| \
11516 X"$as_dir" : 'X\(/\)' \| \
11517 . : '\(.\)' 2>/dev/null ||
11518echo X"$as_dir" |
11519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11521 /^X\(\/\/\)$/{ s//\1/; q; }
11522 /^X\(\/\).*/{ s//\1/; q; }
11523 s/.*/./; q'`
11524 done
11525 test ! -n "$as_dirs" || mkdir $as_dirs
11526 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11527echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11528 { (exit 1); exit 1; }; }; }
c8615825 11529
13b2be9c
DJ
11530 # echo "creating $dirpart/$file"
11531 echo '# dummy' > "$dirpart/$file"
11532 done
11533done
11534 ;;
11535 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
11536 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
11537 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
11538 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
11539 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
11540 if test "x$cgen_cpu_prefix" != x ; then
11541 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
11542 fi
11543
13b2be9c
DJ
11544 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11545 esac
11546done
11547_ACEOF
11548
11549cat >>$CONFIG_STATUS <<\_ACEOF
11550
11551{ (exit 0); exit 0; }
11552_ACEOF
252b5132 11553chmod +x $CONFIG_STATUS
13b2be9c
DJ
11554ac_clean_files=$ac_clean_files_save
11555
11556
11557# configure is writing to config.log, and then calls config.status.
11558# config.status does its own redirection, appending to config.log.
11559# Unfortunately, on DOS this fails, as config.log is still kept open
11560# by configure, so config.status won't be able to write to it; its
11561# output is simply discarded. So we exec the FD to /dev/null,
11562# effectively closing config.log, so it can be properly (re)opened and
11563# appended to by config.status. When coming back to configure, we
11564# need to make the FD available again.
11565if test "$no_create" != yes; then
11566 ac_cs_success=:
11567 ac_config_status_args=
11568 test "$silent" = yes &&
11569 ac_config_status_args="$ac_config_status_args --quiet"
11570 exec 5>/dev/null
11571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11572 exec 5>>config.log
11573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11574 # would make configure fail if this is the last instruction.
11575 $ac_cs_success || { (exit 1); exit 1; }
11576fi
252b5132 11577
This page took 0.885319 seconds and 4 git commands to generate.