Use bfd_map_over_sections to walk section chain.
[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
940 cd "$ac_popdir"
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
1137 rm -f core *.core &&
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 \
2164 '' \
2165 'extern "C" void std::exit (int) throw (); using std::exit;' \
2166 'extern "C" void std::exit (int); using std::exit;' \
2167 'extern "C" void exit (int) throw ();' \
2168 'extern "C" void exit (int);' \
2169 'void exit (int);'
2170do
2171 cat >conftest.$ac_ext <<_ACEOF
2172#line $LINENO "configure"
2173/* confdefs.h. */
2174_ACEOF
2175cat confdefs.h >>conftest.$ac_ext
2176cat >>conftest.$ac_ext <<_ACEOF
2177/* end confdefs.h. */
2178$ac_declaration
2179#include <stdlib.h>
2180int
2181main ()
2182{
2183exit (42);
2184 ;
2185 return 0;
2186}
2187_ACEOF
2188rm -f conftest.$ac_objext
2189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 :
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205continue
2206fi
2207rm -f conftest.$ac_objext conftest.$ac_ext
2208 cat >conftest.$ac_ext <<_ACEOF
2209#line $LINENO "configure"
2210/* confdefs.h. */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h. */
2215$ac_declaration
2216int
2217main ()
2218{
2219exit (42);
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 break
2237else
2238 echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241fi
2242rm -f conftest.$ac_objext conftest.$ac_ext
2243done
2244rm -f conftest*
2245if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo $ac_declaration >>confdefs.h
2248 echo '#endif' >>confdefs.h
2249fi
2250
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255fi
2256rm -f conftest.$ac_objext conftest.$ac_ext
2257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264
2265 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2266echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2267if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270 ac_check_lib_save_LIBS=$LIBS
2271LIBS="-lcposix $LIBS"
2272cat >conftest.$ac_ext <<_ACEOF
2273#line $LINENO "configure"
2274/* confdefs.h. */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h. */
2279
2280/* Override any gcc2 internal prototype to avoid an error. */
2281#ifdef __cplusplus
2282extern "C"
2283#endif
2284/* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286char strerror ();
2287int
2288main ()
2289{
2290strerror ();
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295rm -f conftest.$ac_objext conftest$ac_exeext
2296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297 (eval $ac_link) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -s conftest$ac_exeext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 ac_cv_lib_cposix_strerror=yes
2308else
2309 echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312ac_cv_lib_cposix_strerror=no
2313fi
2314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2315LIBS=$ac_check_lib_save_LIBS
2316fi
2317echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2318echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2319if test $ac_cv_lib_cposix_strerror = yes; then
2320 LIBS="$LIBS -lcposix"
2321fi
2322
2323
2324
2325
2326BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2327am__api_version="1.7"
2328# Find a good install program. We prefer a C program (faster),
2329# so one script is as good as another. But avoid the broken or
2330# incompatible versions:
2331# SysV /etc/install, /usr/sbin/install
2332# SunOS /usr/etc/install
2333# IRIX /sbin/install
2334# AIX /bin/install
2335# AmigaOS /C/install, which installs bootblocks on floppy discs
2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339# ./install, which can be erroneously created by make from ./install.sh.
2340echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2341echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2342if test -z "$INSTALL"; then
2343if test "${ac_cv_path_install+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in
2353 ./ | .// | /cC/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 /usr/ucb/* ) ;;
2356 *)
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2359 # by default.
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2366 :
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2370 :
2371 else
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373 break 3
2374 fi
2375 fi
2376 done
2377 done
2378 ;;
2379esac
2380done
2381
252b5132
RH
2382
2383fi
2384 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2385 INSTALL=$ac_cv_path_install
252b5132
RH
2386 else
2387 # As a last resort, use the slow shell script. We don't cache a
2388 # path for INSTALL within a source directory, because that will
2389 # break other packages using the cache if that directory is
2390 # removed, or if the path is relative.
13b2be9c 2391 INSTALL=$ac_install_sh
252b5132
RH
2392 fi
2393fi
13b2be9c
DJ
2394echo "$as_me:$LINENO: result: $INSTALL" >&5
2395echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2396
2397# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2398# It thinks the first close brace ends the variable substitution.
2399test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2400
13b2be9c 2401test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2402
2403test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2404
13b2be9c
DJ
2405echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2406echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2407# Just in case
2408sleep 1
13b2be9c 2409echo timestamp > conftest.file
252b5132
RH
2410# Do `set' in a subshell so we don't clobber the current shell's
2411# arguments. Must try -L first in case configure is actually a
2412# symlink; some systems play weird games with the mod time of symlinks
2413# (eg FreeBSD returns the mod time of the symlink's containing
2414# directory).
2415if (
13b2be9c 2416 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2417 if test "$*" = "X"; then
2418 # -L didn't work.
13b2be9c 2419 set X `ls -t $srcdir/configure conftest.file`
252b5132 2420 fi
13b2be9c
DJ
2421 rm -f conftest.file
2422 if test "$*" != "X $srcdir/configure conftest.file" \
2423 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2424
2425 # If neither matched, then we have a broken ls. This can happen
2426 # if, for instance, CONFIG_SHELL is bash and it inherits a
2427 # broken ls alias from the environment. This has actually
2428 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2429 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2430alias in your environment" >&5
2431echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2432alias in your environment" >&2;}
2433 { (exit 1); exit 1; }; }
252b5132
RH
2434 fi
2435
13b2be9c
DJ
2436 test "$2" = conftest.file
2437 )
2438then
2439 # Ok.
2440 :
2441else
2442 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2443Check your system clock" >&5
2444echo "$as_me: error: newly created file is older than distributed files!
2445Check your system clock" >&2;}
2446 { (exit 1); exit 1; }; }
2447fi
2448echo "$as_me:$LINENO: result: yes" >&5
2449echo "${ECHO_T}yes" >&6
2450test "$program_prefix" != NONE &&
2451 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2452# Use a double $ so make ignores it.
2453test "$program_suffix" != NONE &&
2454 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2455# Double any \ or $. echo might interpret backslashes.
2456# By default was `s,x,x', remove it if useless.
2457cat <<\_ACEOF >conftest.sed
2458s/[\\$]/&&/g;s/;s,x,x,$//
2459_ACEOF
2460program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2461rm conftest.sed
2462
2463
2464# expand $ac_aux_dir to an absolute path
2465am_aux_dir=`cd $ac_aux_dir && pwd`
2466
2467test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2468# Use eval to expand $SHELL
2469if eval "$MISSING --run true"; then
2470 am_missing_run="$MISSING --run "
2471else
2472 am_missing_run=
2473 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2474echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2475fi
2476
2477for ac_prog in gawk mawk nawk awk
2478do
2479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2480set dummy $ac_prog; ac_word=$2
2481echo "$as_me:$LINENO: checking for $ac_word" >&5
2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483if test "${ac_cv_prog_AWK+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2485else
2486 if test -n "$AWK"; then
2487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_AWK="$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500done
2501done
2502
2503fi
2504fi
2505AWK=$ac_cv_prog_AWK
2506if test -n "$AWK"; then
2507 echo "$as_me:$LINENO: result: $AWK" >&5
2508echo "${ECHO_T}$AWK" >&6
2509else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512fi
2513
2514 test -n "$AWK" && break
2515done
2516
2517echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2518echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2519set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2520if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523 cat >conftest.make <<\_ACEOF
2524all:
2525 @echo 'ac_maketemp="$(MAKE)"'
2526_ACEOF
2527# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2528eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2529if test -n "$ac_maketemp"; then
2530 eval ac_cv_prog_make_${ac_make}_set=yes
2531else
2532 eval ac_cv_prog_make_${ac_make}_set=no
2533fi
2534rm -f conftest.make
2535fi
2536if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 SET_MAKE=
2540else
2541 echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543 SET_MAKE="MAKE=${MAKE-make}"
2544fi
2545
2546rm -rf .tst 2>/dev/null
2547mkdir .tst 2>/dev/null
2548if test -d .tst; then
2549 am__leading_dot=.
2550else
2551 am__leading_dot=_
2552fi
2553rmdir .tst 2>/dev/null
2554
2555DEPDIR="${am__leading_dot}deps"
2556
2557 ac_config_commands="$ac_config_commands depfiles"
2558
2559
2560am_make=${MAKE-make}
2561cat > confinc << 'END'
2562am__doit:
2563 @echo done
2564.PHONY: am__doit
2565END
2566# If we don't find an include directive, just comment out the code.
2567echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2568echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2569am__include="#"
2570am__quote=
2571_am_result=none
2572# First try GNU make style include.
2573echo "include confinc" > confmf
2574# We grep out `Entering directory' and `Leaving directory'
2575# messages which can occur if `w' ends up in MAKEFLAGS.
2576# In particular we don't look at `^make:' because GNU make might
2577# be invoked under some other name (usually "gmake"), in which
2578# case it prints its new name instead of `make'.
2579if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2580 am__include=include
2581 am__quote=
2582 _am_result=GNU
2583fi
2584# Now try BSD make style include.
2585if test "$am__include" = "#"; then
2586 echo '.include "confinc"' > confmf
2587 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2588 am__include=.include
2589 am__quote="\""
2590 _am_result=BSD
2591 fi
2592fi
2593
2594
2595echo "$as_me:$LINENO: result: $_am_result" >&5
2596echo "${ECHO_T}$_am_result" >&6
2597rm -f confinc confmf
2598
2599# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2600if test "${enable_dependency_tracking+set}" = set; then
2601 enableval="$enable_dependency_tracking"
2602
2603fi;
2604if test "x$enable_dependency_tracking" != xno; then
2605 am_depcomp="$ac_aux_dir/depcomp"
2606 AMDEPBACKSLASH='\'
2607fi
2608
2609
2610if test "x$enable_dependency_tracking" != xno; then
2611 AMDEP_TRUE=
2612 AMDEP_FALSE='#'
2613else
2614 AMDEP_TRUE='#'
2615 AMDEP_FALSE=
2616fi
2617
2618
2619
2620 # test to see if srcdir already configured
2621if test "`cd $srcdir && pwd`" != "`pwd`" &&
2622 test -f $srcdir/config.status; then
2623 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2624echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2625 { (exit 1); exit 1; }; }
2626fi
2627
2628# test whether we have cygpath
2629if test -z "$CYGPATH_W"; then
2630 if (cygpath --version) >/dev/null 2>/dev/null; then
2631 CYGPATH_W='cygpath -w'
2632 else
2633 CYGPATH_W=echo
2634 fi
2635fi
2636
2637
2638# Define the identity of the package.
2639 PACKAGE=gas
2640 VERSION=${BFD_VERSION}
2641
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE "$PACKAGE"
2645_ACEOF
2646
2647
2648cat >>confdefs.h <<_ACEOF
2649#define VERSION "$VERSION"
2650_ACEOF
2651
2652# Some tools Automake needs.
2653
2654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668
2669AMTAR=${AMTAR-"${am_missing_run}tar"}
2670
2671install_sh=${install_sh-"$am_aux_dir/install-sh"}
2672
2673# Installed binaries are usually stripped using `strip' when the user
2674# run `make install-strip'. However `strip' might not be the right
2675# tool to use in cross-compilation environments, therefore Automake
2676# will honor the `STRIP' environment variable to overrule this program.
2677if test "$cross_compiling" != no; then
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}strip; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_STRIP+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686 if test -n "$STRIP"; then
2687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2688else
13b2be9c
DJ
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700done
2701done
2702
252b5132 2703fi
13b2be9c
DJ
2704fi
2705STRIP=$ac_cv_prog_STRIP
2706if test -n "$STRIP"; then
2707 echo "$as_me:$LINENO: result: $STRIP" >&5
2708echo "${ECHO_T}$STRIP" >&6
c8615825 2709else
13b2be9c
DJ
2710 echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
c8615825 2712fi
c8615825 2713
13b2be9c
DJ
2714fi
2715if test -z "$ac_cv_prog_STRIP"; then
2716 ac_ct_STRIP=$STRIP
2717 # Extract the first word of "strip", so it can be a program name with args.
2718set dummy strip; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2723else
13b2be9c
DJ
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2726else
13b2be9c
DJ
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_ac_ct_STRIP="strip"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738done
2739done
2740
2741 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2742fi
252b5132 2743fi
13b2be9c
DJ
2744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745if test -n "$ac_ct_STRIP"; then
2746 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2747echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2748else
13b2be9c
DJ
2749 echo "$as_me:$LINENO: result: no" >&5
2750echo "${ECHO_T}no" >&6
252b5132
RH
2751fi
2752
13b2be9c
DJ
2753 STRIP=$ac_ct_STRIP
2754else
2755 STRIP="$ac_cv_prog_STRIP"
2756fi
d6d788bd 2757
252b5132 2758fi
13b2be9c 2759INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2760
13b2be9c
DJ
2761# We need awk for the "check" target. The system "awk" is bad on
2762# some platforms.
252b5132 2763
d6d788bd 2764
13b2be9c 2765depcc="$CC" am_compiler_list=
d6d788bd 2766
13b2be9c
DJ
2767echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2768echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2771else
13b2be9c
DJ
2772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2773 # We make a subdir and do the tests there. Otherwise we can end up
2774 # making bogus files that we don't know about and never remove. For
2775 # instance it was reported that on HP-UX the gcc test will end up
2776 # making a dummy file named `D' -- because `-MD' means `put the output
2777 # in D'.
2778 mkdir conftest.dir
2779 # Copy depcomp to subdir because otherwise we won't find it if we're
2780 # using a relative directory.
2781 cp "$am_depcomp" conftest.dir
2782 cd conftest.dir
2783 # We will build objects and dependencies in a subdirectory because
2784 # it helps to detect inapplicable dependency modes. For instance
2785 # both Tru64's cc and ICC support -MD to output dependencies as a
2786 # side effect of compilation, but ICC will put the dependencies in
2787 # the current directory while Tru64 will put them in the object
2788 # directory.
2789 mkdir sub
252b5132 2790
13b2be9c
DJ
2791 am_cv_CC_dependencies_compiler_type=none
2792 if test "$am_compiler_list" = ""; then
2793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2794 fi
2795 for depmode in $am_compiler_list; do
2796 # Setup a source with many dependencies, because some compilers
2797 # like to wrap large dependency lists on column 80 (with \), and
2798 # we should not choose a depcomp mode which is confused by this.
2799 #
2800 # We need to recreate these files for each test, as the compiler may
2801 # overwrite some of them when testing with obscure command lines.
2802 # This happens at least with the AIX C compiler.
2803 : > sub/conftest.c
2804 for i in 1 2 3 4 5 6; do
2805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2806 : > sub/conftst$i.h
2807 done
2808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2809
2810 case $depmode in
2811 nosideeffect)
2812 # after this tag, mechanisms are not by side-effect, so they'll
2813 # only be used when explicitly requested
2814 if test "x$enable_dependency_tracking" = xyes; then
2815 continue
2816 else
2817 break
2818 fi
2819 ;;
2820 none) break ;;
2821 esac
2822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2823 # mode. It turns out that the SunPro C++ compiler does not properly
2824 # handle `-M -o', and we need to detect this.
2825 if depmode=$depmode \
2826 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2828 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2829 >/dev/null 2>conftest.err &&
2830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2831 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2833 # icc doesn't choke on unknown options, it will just issue warnings
2834 # (even with -Werror). So we grep stderr for any message
2835 # that says an option was ignored.
2836 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2837 am_cv_CC_dependencies_compiler_type=$depmode
2838 break
2839 fi
2840 fi
2841 done
252b5132 2842
13b2be9c
DJ
2843 cd ..
2844 rm -rf conftest.dir
252b5132 2845else
13b2be9c 2846 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
2847fi
2848
252b5132 2849fi
13b2be9c
DJ
2850echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2851echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2852CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 2853
13b2be9c
DJ
2854
2855
2856if
2857 test "x$enable_dependency_tracking" != xno \
2858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2859 am__fastdepCC_TRUE=
2860 am__fastdepCC_FALSE='#'
252b5132 2861else
13b2be9c
DJ
2862 am__fastdepCC_TRUE='#'
2863 am__fastdepCC_FALSE=
252b5132
RH
2864fi
2865
d6d788bd
L
2866
2867
13b2be9c 2868
252b5132
RH
2869# Check whether --enable-shared or --disable-shared was given.
2870if test "${enable_shared+set}" = set; then
2871 enableval="$enable_shared"
2872 p=${PACKAGE-default}
f9c19112 2873case $enableval in
252b5132
RH
2874yes) enable_shared=yes ;;
2875no) enable_shared=no ;;
2876*)
2877 enable_shared=no
2878 # Look at the argument we got. We use all the common list separators.
2879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2880 for pkg in $enableval; do
2881 if test "X$pkg" = "X$p"; then
2882 enable_shared=yes
2883 fi
2884 done
2885 IFS="$ac_save_ifs"
2886 ;;
2887esac
2888else
2889 enable_shared=yes
13b2be9c 2890fi;
252b5132
RH
2891# Check whether --enable-static or --disable-static was given.
2892if test "${enable_static+set}" = set; then
2893 enableval="$enable_static"
2894 p=${PACKAGE-default}
f9c19112 2895case $enableval in
252b5132
RH
2896yes) enable_static=yes ;;
2897no) enable_static=no ;;
2898*)
2899 enable_static=no
2900 # Look at the argument we got. We use all the common list separators.
2901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2902 for pkg in $enableval; do
2903 if test "X$pkg" = "X$p"; then
2904 enable_static=yes
2905 fi
2906 done
2907 IFS="$ac_save_ifs"
2908 ;;
2909esac
2910else
2911 enable_static=yes
13b2be9c 2912fi;
bedf545c
ILT
2913# Check whether --enable-fast-install or --disable-fast-install was given.
2914if test "${enable_fast_install+set}" = set; then
2915 enableval="$enable_fast_install"
2916 p=${PACKAGE-default}
f9c19112 2917case $enableval in
bedf545c
ILT
2918yes) enable_fast_install=yes ;;
2919no) enable_fast_install=no ;;
2920*)
2921 enable_fast_install=no
2922 # Look at the argument we got. We use all the common list separators.
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2924 for pkg in $enableval; do
2925 if test "X$pkg" = "X$p"; then
2926 enable_fast_install=yes
2927 fi
2928 done
2929 IFS="$ac_save_ifs"
2930 ;;
2931esac
2932else
2933 enable_fast_install=yes
13b2be9c 2934fi;
87ccc1b0 2935
6840198f
NC
2936# Check whether --with-gnu-ld or --without-gnu-ld was given.
2937if test "${with_gnu_ld+set}" = set; then
2938 withval="$with_gnu_ld"
2939 test "$withval" = no || with_gnu_ld=yes
27b7e12d 2940else
6840198f 2941 with_gnu_ld=no
13b2be9c 2942fi;
6840198f
NC
2943ac_prog=ld
2944if test "$GCC" = yes; then
2945 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
2946 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2947echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
2948 case $host in
2949 *-*-mingw*)
2950 # gcc leaves a trailing carriage return which upsets mingw
2951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2952 *)
2953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2954 esac
2955 case $ac_prog in
2956 # Accept absolute paths.
2957 [\\/]* | [A-Za-z]:[\\/]*)
2958 re_direlt='/[^/][^/]*/\.\./'
2959 # Canonicalize the path of ld
2960 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2961 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2962 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2963 done
2964 test -z "$LD" && LD="$ac_prog"
2965 ;;
2966 "")
2967 # If it fails, then pretend we aren't using GCC.
2968 ac_prog=ld
2969 ;;
2970 *)
2971 # If it is relative, then search for the first ld in PATH.
2972 with_gnu_ld=unknown
2973 ;;
2974 esac
2975elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
2976 echo "$as_me:$LINENO: checking for GNU ld" >&5
2977echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 2978else
13b2be9c
DJ
2979 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2980echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 2981fi
13b2be9c
DJ
2982if test "${lt_cv_path_LD+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2984else
2985 if test -z "$LD"; then
a74801ba 2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2987 for ac_dir in $PATH; do
2988 test -z "$ac_dir" && ac_dir=.
a74801ba 2989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 2990 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2991 # Check to see if the program is GNU ld. I'd rather use --version,
2992 # but apparently some GNU ld's only accept -v.
2993 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 2994 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2995 test "$with_gnu_ld" != no && break
2996 else
bedf545c 2997 test "$with_gnu_ld" != yes && break
252b5132
RH
2998 fi
2999 fi
3000 done
3001 IFS="$ac_save_ifs"
3002else
f9c19112 3003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3004fi
3005fi
3006
f9c19112 3007LD="$lt_cv_path_LD"
252b5132 3008if test -n "$LD"; then
13b2be9c
DJ
3009 echo "$as_me:$LINENO: result: $LD" >&5
3010echo "${ECHO_T}$LD" >&6
252b5132 3011else
13b2be9c
DJ
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
252b5132 3014fi
13b2be9c
DJ
3015test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3016echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3017 { (exit 1); exit 1; }; }
3018echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3019echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3020if test "${lt_cv_prog_gnu_ld+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3022else
3023 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3024if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3025 lt_cv_prog_gnu_ld=yes
252b5132 3026else
f9c19112 3027 lt_cv_prog_gnu_ld=no
252b5132
RH
3028fi
3029fi
13b2be9c
DJ
3030echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3031echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3032with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3033
d6d788bd 3034
13b2be9c
DJ
3035echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3036echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3037if test "${lt_cv_ld_reload_flag+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3039else
3040 lt_cv_ld_reload_flag='-r'
3041fi
13b2be9c
DJ
3042echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3043echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3044reload_flag=$lt_cv_ld_reload_flag
3045test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3046
13b2be9c
DJ
3047echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3048echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3049if test "${lt_cv_path_NM+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3051else
3052 if test -n "$NM"; then
3053 # Let the user override the test.
f9c19112 3054 lt_cv_path_NM="$NM"
252b5132 3055else
a74801ba 3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3057 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3058 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3059 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3060 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3061 # Check to see if the nm accepts a BSD-compat flag.
3062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3063 # nm: unknown option "B" ignored
58cccadb
AO
3064 # Tru64's nm complains that /dev/null is an invalid object file
3065 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3066 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3067 break
ac48eca1 3068 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3069 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3070 break
252b5132 3071 else
f9c19112 3072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3073 continue # so that we can try to find one that supports BSD flags
252b5132 3074 fi
252b5132
RH
3075 fi
3076 done
3077 IFS="$ac_save_ifs"
f9c19112 3078 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3079fi
3080fi
3081
f9c19112 3082NM="$lt_cv_path_NM"
13b2be9c
DJ
3083echo "$as_me:$LINENO: result: $NM" >&5
3084echo "${ECHO_T}$NM" >&6
252b5132 3085
13b2be9c
DJ
3086echo "$as_me:$LINENO: checking whether ln -s works" >&5
3087echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3088LN_S=$as_ln_s
3089if test "$LN_S" = "ln -s"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091echo "${ECHO_T}yes" >&6
252b5132 3092else
13b2be9c
DJ
3093 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3094echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3095fi
3096
13b2be9c
DJ
3097echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3098echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3099if test "${lt_cv_deplibs_check_method+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3101else
d64552c5 3102 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3103lt_cv_file_magic_test_file=
3104lt_cv_deplibs_check_method='unknown'
3105# Need to set the preceding variable on all platforms that support
3106# interlibrary dependencies.
3107# 'none' -- dependencies not supported.
3108# `unknown' -- same as none, but documents that we really don't know.
3109# 'pass_all' -- all dependencies passed with no checks.
3110# 'test_compile' -- check by making test program.
3111# 'file_magic [regex]' -- check by looking for files in library path
3112# which responds to the $file_magic_cmd with a given egrep regex.
3113# If you have `file' or equivalent on your system and you're not sure
3114# whether `pass_all' will *always* work, you probably want this one.
3115
f9c19112
HPN
3116case $host_os in
3117aix*)
ac48eca1
AO
3118 lt_cv_deplibs_check_method=pass_all
3119 ;;
3120
3121beos*)
3122 lt_cv_deplibs_check_method=pass_all
3123 ;;
3124
3125bsdi4*)
f9c19112
HPN
3126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3127 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3128 lt_cv_file_magic_test_file=/shlib/libc.so
3129 ;;
3130
d64552c5 3131cygwin* | mingw* |pw32*)
ac48eca1 3132 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3133 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3134 ;;
3135
f9c19112
HPN
3136darwin* | rhapsody*)
3137 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3138 lt_cv_file_magic_cmd='/usr/bin/file -L'
3139 case "$host_os" in
3140 rhapsody* | darwin1.012)
3141 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3142 ;;
3143 *) # Darwin 1.3 on
3144 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3145 ;;
3146 esac
f9c19112
HPN
3147 ;;
3148
ac48eca1
AO
3149freebsd* )
3150 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3151 case $host_cpu in
ac48eca1 3152 i*86 )
58cccadb
AO
3153 # Not sure whether the presence of OpenBSD here was a mistake.
3154 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3155 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3156 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3158 ;;
3159 esac
3160 else
3161 lt_cv_deplibs_check_method=pass_all
3162 fi
3163 ;;
3164
3165gnu*)
3166 lt_cv_deplibs_check_method=pass_all
3167 ;;
3168
f9c19112 3169hpux10.20*|hpux11*)
4867be41
DJ
3170 case $host_cpu in
3171 hppa*)
3172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3173 lt_cv_file_magic_cmd=/usr/bin/file
3174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3175 ;;
3176 ia64*)
3177 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3178 lt_cv_file_magic_cmd=/usr/bin/file
3179 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3180 ;;
3181 esac
ac48eca1
AO
3182 ;;
3183
3184irix5* | irix6*)
f9c19112 3185 case $host_os in
ac48eca1
AO
3186 irix5*)
3187 # this will be overridden with pass_all, but let us keep it just in case
3188 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3189 ;;
3190 *)
f9c19112 3191 case $LD in
ac48eca1
AO
3192 *-32|*"-32 ") libmagic=32-bit;;
3193 *-n32|*"-n32 ") libmagic=N32;;
3194 *-64|*"-64 ") libmagic=64-bit;;
3195 *) libmagic=never-match;;
3196 esac
3197 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3198 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3199 ;;
ac48eca1
AO
3200 esac
3201 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3202 lt_cv_deplibs_check_method=pass_all
3203 ;;
3204
3205# This must be Linux ELF.
58cccadb 3206linux-gnu*)
f9c19112 3207 case $host_cpu in
dbeba5e5 3208 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3209 lt_cv_deplibs_check_method=pass_all ;;
3210 *)
3211 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
3212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3213 esac
ac48eca1
AO
3214 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3215 ;;
3216
3217netbsd*)
f9c19112 3218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3219 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3220 else
6840198f 3221 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3222 fi
f9c19112
HPN
3223 ;;
3224
3225newsos6)
3226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3227 lt_cv_file_magic_cmd=/usr/bin/file
3228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3229 ;;
3230
3231osf3* | osf4* | osf5*)
3232 # this will be overridden with pass_all, but let us keep it just in case
3233 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3234 lt_cv_file_magic_test_file=/shlib/libc.so
3235 lt_cv_deplibs_check_method=pass_all
3236 ;;
3237
3238sco3.2v5*)
3239 lt_cv_deplibs_check_method=pass_all
3240 ;;
3241
3242solaris*)
3243 lt_cv_deplibs_check_method=pass_all
3244 lt_cv_file_magic_test_file=/lib/libc.so
3245 ;;
3246
6be7c12c
AO
3247sysv5uw[78]* | sysv4*uw2*)
3248 lt_cv_deplibs_check_method=pass_all
3249 ;;
3250
ac48eca1 3251sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3252 case $host_vendor in
ac48eca1
AO
3253 ncr)
3254 lt_cv_deplibs_check_method=pass_all
3255 ;;
3256 motorola)
f9c19112
HPN
3257 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]'
3258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3259 ;;
3260 esac
3261 ;;
3262esac
3263
3264fi
13b2be9c
DJ
3265echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3266echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3267file_magic_cmd=$lt_cv_file_magic_cmd
3268deplibs_check_method=$lt_cv_deplibs_check_method
3269
c8615825 3270
c8615825 3271
c8615825 3272
ac48eca1
AO
3273# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3274
3275# Only perform the check for file, if the check method requires it
f9c19112 3276case $deplibs_check_method in
ac48eca1 3277file_magic*)
d64552c5 3278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3279 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3280echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3281if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3283else
f9c19112 3284 case $MAGIC_CMD in
ac48eca1 3285 /*)
d64552c5 3286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3287 ;;
3288 ?:/*)
d64552c5 3289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3290 ;;
3291 *)
d64552c5 3292 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3294 ac_dummy="/usr/bin:$PATH"
3295 for ac_dir in $ac_dummy; do
3296 test -z "$ac_dir" && ac_dir=.
3297 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3298 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3299 if test -n "$file_magic_test_file"; then
f9c19112 3300 case $deplibs_check_method in
ac48eca1
AO
3301 "file_magic "*)
3302 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3305 egrep "$file_magic_regex" > /dev/null; then
3306 :
3307 else
3308 cat <<EOF 1>&2
3309
3310*** Warning: the command libtool uses to detect shared libraries,
3311*** $file_magic_cmd, produces output that libtool cannot recognize.
3312*** The result is that libtool may fail to recognize shared libraries
3313*** as such. This will affect the creation of libtool libraries that
3314*** depend on shared libraries, but programs linked with such libtool
3315*** libraries will work regardless of this problem. Nevertheless, you
3316*** may want to report the problem to your system manager and/or to
3317*** bug-libtool@gnu.org
3318
3319EOF
3320 fi ;;
3321 esac
3322 fi
3323 break
3324 fi
3325 done
3326 IFS="$ac_save_ifs"
d64552c5 3327 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3328 ;;
3329esac
3330fi
3331
d64552c5
AO
3332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3333if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3334 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3335echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3336else
13b2be9c
DJ
3337 echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
ac48eca1
AO
3339fi
3340
d64552c5 3341if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3342 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3343 echo "$as_me:$LINENO: checking for file" >&5
3344echo $ECHO_N "checking for file... $ECHO_C" >&6
3345if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3347else
f9c19112 3348 case $MAGIC_CMD in
ac48eca1 3349 /*)
d64552c5 3350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3351 ;;
3352 ?:/*)
d64552c5 3353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3354 ;;
3355 *)
d64552c5 3356 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 ac_dummy="/usr/bin:$PATH"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/file; then
d64552c5 3362 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3363 if test -n "$file_magic_test_file"; then
f9c19112 3364 case $deplibs_check_method in
ac48eca1
AO
3365 "file_magic "*)
3366 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3369 egrep "$file_magic_regex" > /dev/null; then
3370 :
3371 else
3372 cat <<EOF 1>&2
3373
3374*** Warning: the command libtool uses to detect shared libraries,
3375*** $file_magic_cmd, produces output that libtool cannot recognize.
3376*** The result is that libtool may fail to recognize shared libraries
3377*** as such. This will affect the creation of libtool libraries that
3378*** depend on shared libraries, but programs linked with such libtool
3379*** libraries will work regardless of this problem. Nevertheless, you
3380*** may want to report the problem to your system manager and/or to
3381*** bug-libtool@gnu.org
3382
3383EOF
3384 fi ;;
3385 esac
3386 fi
3387 break
3388 fi
3389 done
3390 IFS="$ac_save_ifs"
d64552c5 3391 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3392 ;;
3393esac
3394fi
3395
d64552c5
AO
3396MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3397if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3398 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3399echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3400else
13b2be9c
DJ
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
ac48eca1
AO
3403fi
3404
3405 else
d64552c5 3406 MAGIC_CMD=:
ac48eca1
AO
3407 fi
3408fi
3409
3410 fi
3411 ;;
3412esac
3413
13b2be9c
DJ
3414if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3416set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3417echo "$as_me:$LINENO: checking for $ac_word" >&5
3418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419if test "${ac_cv_prog_RANLIB+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3421else
3422 if test -n "$RANLIB"; then
3423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3424else
13b2be9c
DJ
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436done
3437done
3438
ac48eca1
AO
3439fi
3440fi
13b2be9c 3441RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3442if test -n "$RANLIB"; then
13b2be9c
DJ
3443 echo "$as_me:$LINENO: result: $RANLIB" >&5
3444echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3445else
13b2be9c
DJ
3446 echo "$as_me:$LINENO: result: no" >&5
3447echo "${ECHO_T}no" >&6
ac48eca1
AO
3448fi
3449
13b2be9c 3450fi
ac48eca1 3451if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3452 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3453 # Extract the first word of "ranlib", so it can be a program name with args.
3454set dummy ranlib; ac_word=$2
13b2be9c
DJ
3455echo "$as_me:$LINENO: checking for $ac_word" >&5
3456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3459else
13b2be9c
DJ
3460 if test -n "$ac_ct_RANLIB"; then
3461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3462else
13b2be9c
DJ
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_ac_ct_RANLIB="ranlib"
3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474done
3475done
3476
3477 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3478fi
3479fi
13b2be9c
DJ
3480ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3481if test -n "$ac_ct_RANLIB"; then
3482 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3483echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3484else
13b2be9c
DJ
3485 echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
ac48eca1
AO
3487fi
3488
13b2be9c 3489 RANLIB=$ac_ct_RANLIB
ac48eca1 3490else
13b2be9c 3491 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3492fi
3493
13b2be9c
DJ
3494if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3496set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3497echo "$as_me:$LINENO: checking for $ac_word" >&5
3498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499if test "${ac_cv_prog_STRIP+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3501else
3502 if test -n "$STRIP"; then
3503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3504else
13b2be9c
DJ
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517done
3518
ac48eca1
AO
3519fi
3520fi
13b2be9c 3521STRIP=$ac_cv_prog_STRIP
ac48eca1 3522if test -n "$STRIP"; then
13b2be9c
DJ
3523 echo "$as_me:$LINENO: result: $STRIP" >&5
3524echo "${ECHO_T}$STRIP" >&6
ac48eca1 3525else
13b2be9c
DJ
3526 echo "$as_me:$LINENO: result: no" >&5
3527echo "${ECHO_T}no" >&6
ac48eca1
AO
3528fi
3529
13b2be9c 3530fi
ac48eca1 3531if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3532 ac_ct_STRIP=$STRIP
ac48eca1
AO
3533 # Extract the first word of "strip", so it can be a program name with args.
3534set dummy strip; ac_word=$2
13b2be9c
DJ
3535echo "$as_me:$LINENO: checking for $ac_word" >&5
3536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3539else
13b2be9c
DJ
3540 if test -n "$ac_ct_STRIP"; then
3541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3542else
13b2be9c
DJ
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_STRIP="strip"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554done
3555done
3556
3557 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3558fi
3559fi
13b2be9c
DJ
3560ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3561if test -n "$ac_ct_STRIP"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3563echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3564else
13b2be9c
DJ
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
d6d788bd
L
3567fi
3568
13b2be9c 3569 STRIP=$ac_ct_STRIP
d6d788bd 3570else
13b2be9c 3571 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3572fi
3573
252b5132 3574
252b5132 3575# Check for any special flags to pass to ltconfig.
bedf545c 3576libtool_flags="--cache-file=$cache_file"
252b5132
RH
3577test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3578test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3579test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3580test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3581test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3582
d6d788bd 3583
a74801ba
ILT
3584# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585if test "${enable_libtool_lock+set}" = set; then
3586 enableval="$enable_libtool_lock"
a74801ba 3587
13b2be9c 3588fi;
a74801ba
ILT
3589test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3590test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3591
13b2be9c 3592
ac48eca1
AO
3593# Check whether --with-pic or --without-pic was given.
3594if test "${with_pic+set}" = set; then
3595 withval="$with_pic"
3596 pic_mode="$withval"
3597else
3598 pic_mode=default
13b2be9c 3599fi;
ac48eca1
AO
3600test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3601test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3602
252b5132
RH
3603# Some flags need to be propagated to the compiler or linker for good
3604# libtool support.
f9c19112 3605case $host in
252b5132
RH
3606*-*-irix6*)
3607 # Find out which ABI we are using.
13b2be9c
DJ
3608 echo '#line 3608 "configure"' > conftest.$ac_ext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; then
e0001a05
NC
3614 if test "$lt_cv_prog_gnu_ld" = yes; then
3615 case `/usr/bin/file conftest.$ac_objext` in
3616 *32-bit*)
3617 LD="${LD-ld} -melf32bsmip"
3618 ;;
3619 *N32*)
3620 LD="${LD-ld} -melf32bmipn32"
3621 ;;
3622 *64-bit*)
3623 LD="${LD-ld} -melf64bmip"
3624 ;;
3625 esac
3626 else
f9c19112 3627 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3628 *32-bit*)
3629 LD="${LD-ld} -32"
3630 ;;
3631 *N32*)
3632 LD="${LD-ld} -n32"
3633 ;;
3634 *64-bit*)
3635 LD="${LD-ld} -64"
3636 ;;
3637 esac
e0001a05 3638 fi
252b5132
RH
3639 fi
3640 rm -rf conftest*
3641 ;;
3642
4867be41
DJ
3643ia64-*-hpux*)
3644 # Find out which ABI we are using.
3645 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; then
4867be41
DJ
3651 case "`/usr/bin/file conftest.o`" in
3652 *ELF-32*)
3653 HPUX_IA64_MODE="32"
3654 ;;
3655 *ELF-64*)
3656 HPUX_IA64_MODE="64"
3657 ;;
3658 esac
3659 fi
3660 rm -rf conftest*
3661 ;;
3662
252b5132
RH
3663*-*-sco3.2v5*)
3664 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3665 SAVE_CFLAGS="$CFLAGS"
252b5132 3666 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3667 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3668echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3669if test "${lt_cv_cc_needs_belf+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3671else
13b2be9c
DJ
3672
3673
ac48eca1 3674 ac_ext=c
ac48eca1 3675ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680 cat >conftest.$ac_ext <<_ACEOF
3681#line $LINENO "configure"
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
bedf545c 3687
13b2be9c
DJ
3688int
3689main ()
3690{
6840198f 3691
13b2be9c
DJ
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
3697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -s conftest$ac_exeext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
bedf545c
ILT
3708 lt_cv_cc_needs_belf=yes
3709else
13b2be9c
DJ
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713lt_cv_cc_needs_belf=no
bedf545c 3714fi
13b2be9c 3715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ac48eca1 3716 ac_ext=c
ac48eca1 3717ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3721
bedf545c 3722fi
13b2be9c
DJ
3723echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3724echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3727 CFLAGS="$SAVE_CFLAGS"
3728 fi
252b5132
RH
3729 ;;
3730
d6d788bd 3731
252b5132
RH
3732esac
3733
d6d788bd 3734
bedf545c 3735# Save cache, so that ltconfig can load it
13b2be9c 3736cat >confcache <<\_ACEOF
bedf545c
ILT
3737# This file is a shell script that caches the results of configure
3738# tests run on this system so they can be shared between configure
13b2be9c
DJ
3739# scripts and configure runs, see configure's option --config-cache.
3740# It is not useful on other systems. If it contains results you don't
3741# want to keep, you may remove or edit it.
bedf545c 3742#
13b2be9c
DJ
3743# config.status only pays attention to the cache file if you give it
3744# the --recheck option to rerun configure.
bedf545c 3745#
13b2be9c
DJ
3746# `ac_cv_env_foo' variables (set or unset) will be overridden when
3747# loading this file, other *unset* `ac_cv_foo' will be assigned the
3748# following values.
3749
3750_ACEOF
3751
bedf545c 3752# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3753# but we know of no workaround that is simple, portable, and efficient.
3754# So, don't put newlines in cache variables' values.
3755# Ultrix sh set writes to stderr and can't be redirected directly,
3756# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
3757{
3758 (set) 2>&1 |
3759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3760 *ac_space=\ *)
3761 # `set' does not quote correctly, so add quotes (double-quote
3762 # substitution turns \\\\ into \\, and sed turns \\ into \).
3763 sed -n \
3764 "s/'/'\\\\''/g;
3765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3766 ;;
3767 *)
3768 # `set' quotes correctly as required by POSIX, so do not add quotes.
3769 sed -n \
3770 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3771 ;;
3772 esac;
3773} |
3774 sed '
3775 t clear
3776 : clear
3777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3778 t end
3779 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3780 : end' >>confcache
3781if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 3782 if test -w $cache_file; then
13b2be9c
DJ
3783 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3784 cat confcache >$cache_file
bedf545c
ILT
3785 else
3786 echo "not updating unwritable cache $cache_file"
3787 fi
3788fi
3789rm -f confcache
3790
252b5132 3791# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3792AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3793MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3794LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3795AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3796objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3797deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3798${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3799$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
3800|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3801echo "$as_me: error: libtool configure failed" >&2;}
3802 { (exit 1); exit 1; }; }
252b5132 3803
bedf545c
ILT
3804# Reload cache, that may have been modified by ltconfig
3805if test -r "$cache_file"; then
13b2be9c
DJ
3806 # Some versions of bash will fail to source /dev/null (special
3807 # files actually), so we avoid doing that.
3808 if test -f "$cache_file"; then
3809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3810echo "$as_me: loading cache $cache_file" >&6;}
3811 case $cache_file in
3812 [\\/]* | ?:[\\/]* ) . $cache_file;;
3813 *) . ./$cache_file;;
3814 esac
3815 fi
bedf545c 3816else
13b2be9c
DJ
3817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3818echo "$as_me: creating cache $cache_file" >&6;}
3819 >$cache_file
bedf545c
ILT
3820fi
3821
d6d788bd 3822
bedf545c 3823# This can be used to rebuild libtool when needed
ac48eca1 3824LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
3825
3826# Always use our own libtool.
3827LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3828
252b5132
RH
3829# Redirect the config.log output again, so that the ltconfig log is not
3830# clobbered by the next message.
3831exec 5>>./config.log
3832
d6d788bd 3833
13b2be9c
DJ
3834
3835
3836
3837
d6d788bd 3838
252b5132
RH
3839user_bfd_gas=
3840# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3841if test "${enable_bfd_assembler+set}" = set; then
3842 enableval="$enable_bfd_assembler"
3843 case "${enableval}" in
3844 yes) need_bfd=yes user_bfd_gas=yes ;;
3845 no) user_bfd_gas=no ;;
13b2be9c
DJ
3846 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3847echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3848 { (exit 1); exit 1; }; } ;;
252b5132 3849esac
13b2be9c 3850fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3851if test "${enable_targets+set}" = set; then
3852 enableval="$enable_targets"
3853 case "${enableval}" in
13b2be9c
DJ
3854 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3855echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3856 { (exit 1); exit 1; }; }
252b5132
RH
3857 ;;
3858 no) enable_targets= ;;
3859 *) enable_targets=$enableval ;;
3860esac
13b2be9c 3861fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3862if test "${enable_commonbfdlib+set}" = set; then
3863 enableval="$enable_commonbfdlib"
3864 case "${enableval}" in
3865 yes) commonbfdlib=true ;;
3866 no) commonbfdlib=false ;;
13b2be9c
DJ
3867 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3868echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3869 { (exit 1); exit 1; }; } ;;
252b5132 3870esac
13b2be9c 3871fi;
252b5132
RH
3872using_cgen=no
3873
0218d1e4 3874build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3875# Check whether --enable-build-warnings or --disable-build-warnings was given.
3876if test "${enable_build_warnings+set}" = set; then
3877 enableval="$enable_build_warnings"
3878 case "${enableval}" in
3879 yes) ;;
3880 no) build_warnings="-w";;
3881 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3882 build_warnings="${build_warnings} ${t}";;
3883 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3884 build_warnings="${t} ${build_warnings}";;
3885 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3886esac
3887if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3888 echo "Setting warning flags = $build_warnings" 6>&1
3889fi
13b2be9c 3890fi; WARN_CFLAGS=""
a2d91340
AC
3891if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3892 WARN_CFLAGS="${build_warnings}"
3893fi
3894
d6d788bd 3895
252b5132 3896# Generate a header file
13b2be9c 3897 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 3898
252b5132 3899
76a27922
ILT
3900# If we are on a DOS filesystem, we must use gdb.ini rather than
3901# .gdbinit.
76a27922 3902case "${host}" in
591d4689 3903 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 3904 GDBINIT="gdb.ini"
13b2be9c
DJ
3905 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
3906
3907 ;;
3908 *)
3909 GDBINIT=".gdbinit"
3910 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
3911
76a27922
ILT
3912 ;;
3913esac
3914
d6d788bd 3915
252b5132
RH
3916te_file=generic
3917
3918# Makefile target for installing gas in $(tooldir)/bin.
3919install_tooldir=install-exec-tooldir
3920
3921canon_targets=""
15886821 3922all_targets=no
252b5132
RH
3923if test -n "$enable_targets" ; then
3924 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
3925 if test $t = "all"; then
3926 all_targets=yes
3927 continue
3928 fi
6d83c84b 3929 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
3930 if test -n "$result" ; then
3931 canon_targets="$canon_targets $result"
3932# else
3933# # Permit "all", etc. We don't support it yet though.
3934# canon_targets="$canon_targets $t"
3935 fi
3936 done
3937 _gas_uniq_list="$canon_targets"
3938_gas_uniq_newlist=""
3939for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3940 case $_gas_uniq_i in
3941 _gas_uniq_dummy) ;;
3942 *) case " $_gas_uniq_newlist " in
3943 *" $_gas_uniq_i "*) ;;
3944 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3945 esac ;;
3946 esac
3947done
3948canon_targets=$_gas_uniq_newlist
3949
3950fi
3951
3952emulations=""
3953
3954for this_target in $target $canon_targets ; do
3955
3956 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3957
3958 # check for architecture variants
3959 arch=
3960 endian=
3961 case ${cpu} in
2ce28d43 3962 am33_2.0) cpu_type=mn10300 endian=little ;;
252b5132 3963 alpha*) cpu_type=alpha ;;
54847c76
DJ
3964 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
3965 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
2fe04c57 3966 c4x*) cpu_type=tic4x ;;
252b5132 3967 hppa*) cpu_type=hppa ;;
80c7c40a 3968 i[3-7]86) cpu_type=i386 arch=i386;;
a735d1cd 3969 x86_64) cpu_type=i386 arch=x86_64;;
800eeca4 3970 ia64) cpu_type=ia64 ;;
13b2be9c
DJ
3971 ip2k) cpu_type=ip2k endian=big ;;
3972 iq2000) cpu_type=iq2000 endian=big ;;
6f6ef0fa 3973 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
252b5132
RH
3974 m680[012346]0) cpu_type=m68k ;;
3975 m68008) cpu_type=m68k ;;
3976 m683??) cpu_type=m68k ;;
3977 m5200) cpu_type=m68k ;;
3978 m8*) cpu_type=m88k ;;
3979 mips*el) cpu_type=mips endian=little ;;
3980 mips*) cpu_type=mips endian=big ;;
3b16e843 3981 or32*) cpu_type=or32 endian=big ;;
041dd5a9
ILT
3982 pjl*) cpu_type=pj endian=little ;;
3983 pj*) cpu_type=pj endian=big ;;
0baf16f2 3984 powerpc*le*) cpu_type=ppc endian=little ;;
252b5132
RH
3985 powerpc*) cpu_type=ppc endian=big ;;
3986 rs6000*) cpu_type=ppc ;;
a85d7ed0
NC
3987 s390x*) cpu_type=s390 arch=s390x ;;
3988 s390*) cpu_type=s390 arch=s390 ;;
5b0e55b6
JT
3989 sh5*) cpu_type=sh64 endian=big ;;
3990 sh5le*) cpu_type=sh64 endian=little ;;
3991 sh64*) cpu_type=sh64 endian=big ;;
3992 sh64le*) cpu_type=sh64 endian=little ;;
8d05742f 3993 sh*le) cpu_type=sh endian=little ;;
05982cac 3994 sh*) cpu_type=sh endian=big ;;
252b5132
RH
3995 sparclite*) cpu_type=sparc arch=sparclite ;;
3996 sparclet*) cpu_type=sparc arch=sparclet ;;
3997 sparc64*) cpu_type=sparc arch=v9-64 ;;
3998 sparc86x*) cpu_type=sparc arch=sparc86x ;;
3999 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4000 v850*) cpu_type=v850 ;;
e0001a05 4001 xtensa*) cpu_type=xtensa arch=xtensa ;;
252b5132
RH
4002 *) cpu_type=${cpu} ;;
4003 esac
4004
4005 if test ${this_target} = $target ; then
4006 target_cpu_type=${cpu_type}
4007 elif test ${target_cpu_type} != ${cpu_type} ; then
4008 continue
4009 fi
4010
4011 generic_target=${cpu_type}-$vendor-$os
4012 dev=no
4013 bfd_gas=no
4014 em=generic
4015
4016 # assign object format
4017 case ${generic_target} in
79500683
AM
4018 a29k-*-coff) fmt=coff ;;
4019 a29k-amd-udi) fmt=coff ;;
4020 a29k-amd-ebmon) fmt=coff ;;
4021 a29k-nyu-sym1) fmt=coff ;;
4022 a29k-*-rtems*) fmt=coff ;;
4023 a29k-*-vxworks*) fmt=coff ;;
4024
4025 alpha*-*-*vms*) fmt=evax ;;
4026 alpha*-*-netware*) fmt=ecoff ;;
4027 alpha*-*-osf*) fmt=ecoff ;;
4028 alpha*-*-linuxecoff*) fmt=ecoff ;;
4029 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
4030 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
4031 alpha*-*-openbsd*) fmt=elf em=obsd ;;
4032
2ce28d43
AO
4033 # cpu_type for am33_2.0 is set to mn10300
4034 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;;
4035
79500683
AM
4036 arc-*-elf*) fmt=elf ;;
4037
4038 arm-*-aout) fmt=aout ;;
4039 arm-*-coff | thumb-*-coff) fmt=coff ;;
4040 arm-*-rtems | thumb-*-rtems) fmt=elf ;;
4041 arm-*-elf | thumb-*-elf) fmt=elf ;;
42b5d0ea 4042 arm-*-kaos*) fmt=elf ;;
0decc840 4043 arm*-*-conix*) fmt=elf ;;
79500683
AM
4044 arm-*-linux*aout*) fmt=aout em=linux ;;
4045 arm*-*-linux-gnu*) fmt=elf em=linux ;;
4046 arm*-*-uclinux*) fmt=elf em=linux ;;
8bdcf8ca 4047 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
79500683
AM
4048 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
4049 arm-**-nto*) fmt=elf ;;
4050 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
4051 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
c1e73230 4052 arm-*-wince) fmt=coff em=wince-pe ;;
79500683
AM
4053 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
4054 arm-*-riscix*) fmt=aout em=riscix ;;
4055 arm-*-vxworks) fmt=coff ;;
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 ;;
a06a29f2 4105 i386-*-netbsd*-gnu*) fmt=elf em=nbsd ;;
79500683
AM
4106 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
4107 i386-*-*n*bsd*) case ${cpu} in
4108 x86_64) fmt=elf em=nbsd ;;
4109 *) fmt=aout em=nbsd ;;
4110 esac ;;
4111 i386-*-linux*aout*) fmt=aout em=linux ;;
4112 i386-*-linux*oldld) fmt=aout em=linux ;;
4113 i386-*-linux*coff*) fmt=coff em=linux ;;
4114 i386-*-linux-gnu*) fmt=elf em=linux ;;
4115 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
4116 i386-*-lynxos*) fmt=coff em=lynx ;;
4117 i386-*-sysv[45]*) fmt=elf ;;
4118 i386-*-solaris*) fmt=elf ;;
4119 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
4120 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
4121 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
a197c351 4122 i386-*-freebsd*) fmt=elf em=freebsd ;;
79500683
AM
4123 i386-*-sysv*) fmt=coff ;;
4124 i386-*-sco3.2v5*coff) fmt=coff ;;
4125 i386-*-isc*) fmt=coff ;;
4126 i386-*-sco3.2v5*) fmt=elf
4127 if test ${this_target} = $target; then
13b2be9c
DJ
4128
4129cat >>confdefs.h <<\_ACEOF
252b5132 4130#define SCO_ELF 1
13b2be9c 4131_ACEOF
252b5132 4132
79500683
AM
4133 fi ;;
4134 i386-*-sco3.2*) fmt=coff ;;
4135 i386-*-vsta) fmt=aout ;;
4136 i386-*-msdosdjgpp* \
4137 | i386-*-go32* \
4138 | i386-go32-rtems*) fmt=coff em=go32
13b2be9c
DJ
4139
4140cat >>confdefs.h <<\_ACEOF
56385375 4141#define STRICTCOFF 1
13b2be9c 4142_ACEOF
79500683
AM
4143 ;;
4144 i386-*-rtemself*) fmt=elf ;;
4145 i386-*-rtemscoff*) fmt=coff ;;
4146 i386-*-rtems*) fmt=elf ;;
4147 i386-*-gnu*) fmt=elf ;;
4148 i386-*-mach*) fmt=aout em=mach ;;
4149 i386-*-msdos*) fmt=aout ;;
4150 i386-*-moss*) fmt=elf ;;
4151 i386-*-pe) fmt=coff em=pe ;;
4152 i386-*-cygwin*) fmt=coff em=pe ;;
4153 i386-*-interix*) fmt=coff em=interix ;;
4154 i386-*-mingw32*) fmt=coff em=pe ;;
4155 i386-*-nto-qnx*) fmt=elf ;;
4156 i386-*-*nt*) fmt=coff em=pe ;;
4157 i386-*-vxworks*) fmt=aout ;;
4158 i386-*-chaos) fmt=elf ;;
4159
4160 i860-*-*) fmt=elf endian=little
13b2be9c
DJ
4161 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4162echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
79500683
AM
4163 i960-*-bout) fmt=bout ;;
4164 i960-*-coff) fmt=coff em=ic960 ;;
4165 i960-*-rtems*) fmt=coff em=ic960 ;;
4166 i960-*-nindy*) fmt=bout ;;
4167 i960-*-vxworks5.0) fmt=bout ;;
4168 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
4169 i960-*-vxworks*) fmt=bout ;;
4170 i960-*-elf*) fmt=elf ;;
4171
4172 ia64-*-elf*) fmt=elf ;;
4173 ia64-*-aix*) fmt=elf em=ia64aix ;;
4174 ia64-*-linux-gnu*) fmt=elf em=linux ;;
4175 ia64-*-hpux*) fmt=elf em=hpux ;;
4176 ia64-*-netbsd*) fmt=elf em=nbsd ;;
4177
4178 ip2k-*-*) fmt=elf ;;
4179
da896d3f 4180 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
1c53c80d 4181
79500683
AM
4182 m32r-*-*) fmt=elf ;;
4183
4184 m68hc11-*-* | m6811-*-*) fmt=elf ;;
4185 m68hc12-*-* | m6812-*-*) fmt=elf ;;
4186
4187 m68k-*-vxworks*) fmt=aout em=sun3 ;;
4188 m68k-ericsson-ose) fmt=aout em=sun3 ;;
4189 m68k-*-sunos*) fmt=aout em=sun3 ;;
4190 m68k-motorola-sysv*) fmt=coff em=delta ;;
4191 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
4192 m68k-apollo-*) fmt=coff em=apollo ;;
4193 m68k-*-elf*) fmt=elf ;;
4194 m68k-*-sysv4*) fmt=elf em=svr4 ;;
4195 m68k-*-sysv*) fmt=coff ;;
4196 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
4197 m68k-*-rtems*) fmt=elf ;;
4198 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
4199 m68k-*-linux*aout*) fmt=aout em=linux ;;
4200 m68k-*-linux-gnu*) fmt=elf em=linux ;;
4201 m68k-*-gnu*) fmt=elf ;;
4202 m68k-*-lynxos*) fmt=coff em=lynx ;;
4203 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
4204 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4205 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4206 m68k-apple-aux*) fmt=coff em=aux ;;
4207 m68k-*-psos*) fmt=elf em=psos;;
4208
4209 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
4210 m88k-*-coff*) fmt=coff ;;
4211
4212 mcore-*-elf) fmt=elf ;;
4213 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
252b5132
RH
4214
4215 # don't change em like *-*-bsd does
79500683
AM
4216 mips-dec-openbsd*) fmt=elf endian=little ;;
4217 mips-dec-bsd*) fmt=aout endian=little ;;
4218 mips-sony-bsd*) fmt=ecoff ;;
4219 mips-*-bsd*)
13b2be9c
DJ
4220 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4221echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4222 { (exit 1); exit 1; }; } ;;
79500683
AM
4223 mips-*-ultrix*) fmt=ecoff endian=little ;;
4224 mips-*-osf*) fmt=ecoff endian=little ;;
4225 mips-*-ecoff*) fmt=ecoff ;;
4226 mips-*-pe*) fmt=coff endian=little em=pe ;;
1de5b6a1
AO
4227 mips-*-irix6*) fmt=elf em=irix ;;
4228 mips-*-irix5*) fmt=elf em=irix ;;
4229 mips-*-irix*) fmt=ecoff em=irix ;;
79500683
AM
4230 mips-*-lnews*) fmt=ecoff em=lnews ;;
4231 mips-*-riscos*) fmt=ecoff ;;
4232 mips*-*-linux*) fmt=elf em=tmips ;;
4233 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
4234 mips-*-sysv*) fmt=ecoff ;;
4235 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
dbeba5e5
CD
4236 mips-*-netbsd*) fmt=elf ;;
4237 mips-*-openbsd*) fmt=elf ;;
79500683
AM
4238 mips-*-vxworks*) fmt=elf ;;
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 ;;
4257 ppc-*-linux-gnu*) fmt=elf
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 ;;
79500683
AM
4281 ppc-*-vxworks*) fmt=elf ;;
4282 ppc-*-windiss*) fmt=elf ;;
42b5d0ea 4283 ppc-*-kaos*) fmt=elf ;;
79500683
AM
4284
4285 s390x-*-linux-gnu*) fmt=elf em=linux ;;
4286 s390-*-linux-gnu*) fmt=elf em=linux ;;
4287
4288 sh*-*-linux*) fmt=elf em=linux
4289 case ${cpu} in
4290 sh*eb) endian=big ;;
4291 *) endian=little ;;
4292 esac ;;
4293 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
4294 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
4295 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
4296 sh-*-elf*) fmt=elf ;;
4297 sh-*-coff*) fmt=coff ;;
ed71e111
NC
4298 sh-*-nto*) fmt=elf ;;
4299 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
79500683
AM
4300 sh-*-rtemself*) fmt=elf ;;
4301 sh-*-rtems*) fmt=coff ;;
42b5d0ea
NC
4302 sh-*-kaos*) fmt=elf ;;
4303 shle*-*-kaos*) fmt=elf ;;
79500683
AM
4304 sh64-*-elf*) fmt=elf ;;
4305
4306 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
4307 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
4308 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
4309 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
4310
4311 sparc-*-rtemsaout*) fmt=aout ;;
4312 sparc-*-rtemself*) fmt=elf ;;
4313 sparc-*-rtems*) fmt=elf ;;
4314 sparc-*-sunos4*) fmt=aout em=sun3 ;;
4315 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4316 sparc-*-coff) fmt=coff ;;
4317 sparc-*-linux*aout*) fmt=aout em=linux ;;
4318 sparc-*-linux-gnu*) fmt=elf em=linux ;;
4319 sparc-*-lynxos*) fmt=coff em=lynx ;;
4320 sparc-fujitsu-none) fmt=aout ;;
4321 sparc-*-elf) fmt=elf ;;
4322 sparc-*-sysv4*) fmt=elf ;;
4323 sparc-*-solaris*) fmt=elf ;;
4324 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
4325 sparc-*-*n*bsd*) case ${cpu} in
4326 sparc64) fmt=elf em=nbsd ;;
4327 *) fmt=aout em=nbsd ;;
4328 esac ;;
4329 strongarm-*-coff) fmt=coff ;;
4330 strongarm-*-elf) fmt=elf ;;
42b5d0ea 4331 strongarm-*-kaos*) fmt=elf ;;
79500683
AM
4332 xscale-*-coff) fmt=coff ;;
4333 xscale-*-elf) fmt=elf ;;
4334
4335 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
4336 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
026df7c5 4337 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
79500683
AM
4338 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
4339 tic80-*-*) fmt=coff ;;
4340
4341 v850-*-*) fmt=elf ;;
4342 v850e-*-*) fmt=elf ;;
4343 v850ea-*-*) fmt=elf ;;
4344
4345 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
4346 vax-*-netbsd*) fmt=aout em=nbsd ;;
4347 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
4348 vax-*-vms) fmt=vms ;;
4349
4350 w65-*-*) fmt=coff ;;
4351
4352 xstormy16-*-*) fmt=elf ;;
4353
e0001a05
NC
4354 xtensa-*-*) fmt=elf ;;
4355
79500683
AM
4356 z8k-*-coff | z8k-*-sim) fmt=coff ;;
4357
4358 *-*-aout | *-*-scout) fmt=aout ;;
4359 *-*-freebsd*) fmt=elf em=freebsd ;;
4360 *-*-nindy*) fmt=bout ;;
4361 *-*-bsd*) fmt=aout em=sun3 ;;
4362 *-*-generic) fmt=generic ;;
4363 *-*-xray | *-*-hms) fmt=coff ;;
4364 *-*-sim) fmt=coff ;;
4365 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
da896d3f 4366 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
79500683
AM
4367 *-*-vxworks) fmt=aout ;;
4368 *-*-netware) fmt=elf ;;
252b5132
RH
4369 esac
4370
4371 if test ${this_target} = $target ; then
4372 endian_def=
4373 if test x${endian} = xbig; then
4374 endian_def=1
4375 elif test x${endian} = xlittle; then
4376 endian_def=0
4377 fi
4378 if test x${endian_def} != x; then
13b2be9c
DJ
4379
4380cat >>confdefs.h <<_ACEOF
252b5132 4381#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4382_ACEOF
252b5132
RH
4383
4384 fi
4385 fi
4386
4387 case ${cpu_type}-${fmt} in
79500683
AM
4388 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4389 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4390 | *-elf | *-ecoff | *-som)
4391 bfd_gas=yes ;;
252b5132
RH
4392 esac
4393
4394# Other random stuff.
4395
316f5878
RS
4396 case ${cpu_type} in
4397 mips)
4398 # Set mips_cpu to the name of the default CPU.
4399 case ${target_cpu} in
4400 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4401 mips_cpu=from-abi
4402 ;;
4403 mipsisa32 | mipsisa32el)
4404 mips_cpu=mips32
4405 ;;
af7ee8bf
CD
4406 mipsisa32r2 | mipsisa32r2el)
4407 mips_cpu=mips32r2
4408 ;;
316f5878
RS
4409 mipsisa64 | mipsisa64el)
4410 mips_cpu=mips64
4411 ;;
4412 mipstx39 | mipstx39el)
4413 mips_cpu=r3900
4414 ;;
8f6847cb
RS
4415 mips64vr | mips64vrel)
4416 mips_cpu=vr4100
4417 ;;
af7ee8bf
CD
4418 mipsisa32r2*)
4419 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4420 ;;
316f5878
RS
4421 mips64* | mipsisa64* | mipsisa32*)
4422 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4423 ;;
4424 *)
13b2be9c
DJ
4425 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4426echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4427 { (exit 1); exit 1; }; }
316f5878
RS
4428 ;;
4429 esac
4430 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4431 # binaries. It's a GNU extension that some OSes don't understand.
4432 # The value only matters on ELF targets.
4433 case ${target} in
4434 *-*-irix*)
4435 use_e_mips_abi_o32=0
4436 ;;
4437 *)
4438 use_e_mips_abi_o32=1
4439 ;;
4440 esac
4441 # Decide whether to generate 32-bit or 64-bit code by default.
4442 # Used to resolve -march=from-abi when an embedded ABI is selected.
4443 case ${target} in
4444 mips64*-*-* | mipsisa64*-*-*)
4445 mips_default_64bit=1
4446 ;;
4447 *)
4448 mips_default_64bit=0
4449 ;;
4450 esac
cac012d6
AO
4451 # Decide which ABI to target by default.
4452 case ${target} in
4453 mips64*-linux* | mips-sgi-irix6*)
4454 mips_default_abi=N32_ABI
4455 ;;
4456 mips*-linux*)
4457 mips_default_abi=O32_ABI
4458 ;;
4459 *)
4460 mips_default_abi=NO_ABI
4461 ;;
4462 esac
13b2be9c
DJ
4463
4464cat >>confdefs.h <<_ACEOF
316f5878 4465#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4466_ACEOF
316f5878 4467
13b2be9c
DJ
4468
4469cat >>confdefs.h <<_ACEOF
316f5878 4470#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4471_ACEOF
316f5878 4472
13b2be9c
DJ
4473
4474cat >>confdefs.h <<_ACEOF
316f5878 4475#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4476_ACEOF
cac012d6 4477
13b2be9c
DJ
4478
4479cat >>confdefs.h <<_ACEOF
cac012d6 4480#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4481_ACEOF
316f5878
RS
4482
4483 ;;
4484 esac
4485
252b5132
RH
4486 # Do we need the opcodes library?
4487 case ${cpu_type} in
4488 vax | i386 | tic30)
4489 ;;
4490
4491 *)
4492 need_opcodes=yes
4493
4494 case "${enable_shared}" in
4495 yes) shared_opcodes=true ;;
4496 *opcodes*) shared_opcodes=true ;;
4497 *) shared_opcodes=false ;;
4498 esac
4499 if test "${shared_opcodes}" = "true"; then
4500 # A shared libopcodes must be linked against libbfd.
4501 need_bfd=yes
4502 fi
4503 ;;
4504 esac
4505
4506 # Any other special object files needed ?
4507 case ${cpu_type} in
1c53c80d 4508 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4509 using_cgen=yes
4510 ;;
4511
0ebb9a87
DB
4512 frv)
4513 using_cgen=yes
4514 ;;
252b5132
RH
4515 m68k)
4516 case ${extra_objects} in
4517 *m68k-parse.o*) ;;
4518 *) extra_objects="$extra_objects m68k-parse.o" ;;
4519 esac
4520 ;;
4521
4522 mips)
13b2be9c 4523 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4524 if test $? -ne 0 ; then
4525 extra_objects="$extra_objects itbl-parse.o"
4526 fi
4527
13b2be9c 4528 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4529 if test $? -ne 0 ; then
4530 extra_objects="$extra_objects itbl-lex.o"
4531 fi
4532
13b2be9c 4533 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4534 if test $? -ne 0 ; then
4535 extra_objects="$extra_objects itbl-ops.o"
4536 fi
4537 ;;
4538
c1e4eef7 4539 i386 | s390 | sparc)
252b5132 4540 if test $this_target = $target ; then
13b2be9c
DJ
4541
4542cat >>confdefs.h <<_ACEOF
252b5132 4543#define DEFAULT_ARCH "${arch}"
13b2be9c 4544_ACEOF
252b5132
RH
4545
4546 fi
4547 ;;
93fbbb04
GK
4548
4549 xstormy16)
4550 using_cgen=yes
4551 ;;
4552
e0001a05
NC
4553 xtensa)
4554 echo ${extra_objects} | grep -s "xtensa-relax.o"
4555 if test $? -ne 0 ; then
4556 extra_objects="$extra_objects xtensa-relax.o"
4557 fi
4558 ;;
4559
252b5132
RH
4560 *)
4561 ;;
4562 esac
4563
4564 if test $using_cgen = yes ; then
4565 case "x${extra_objects}" in
4566 *cgen.o*) ;;
4567 *) extra_objects="$extra_objects cgen.o" ;;
4568 esac
4569 fi
4570
4571# See if we really can support this configuration with the emulation code.
4572
4573 if test $this_target = $target ; then
4574 primary_bfd_gas=$bfd_gas
4575 obj_format=$fmt
4576 te_file=$em
4577
4578 if test $bfd_gas = no ; then
4579 # Can't support other configurations this way.
4580 break
4581 fi
4582 elif test $bfd_gas = no ; then
4583 # Can't support this configuration.
4584 break
4585 fi
4586
4587# From target name and format, produce a list of supported emulations.
4588
4589 case ${generic_target}-${fmt} in
4590 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4591 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4592 big) emulation="mipsbelf mipslelf mipself" ;;
4593 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4594 esac ;;
4595 mips-*-lnews*-ecoff) ;;
4596 mips-*-*-ecoff) case "$endian" in
4597 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4598 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4599 esac ;;
4600 mips-*-*-elf) case "$endian" in
4601 big) emulation="mipsbelf mipslelf mipself" ;;
4602 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4603 esac ;;
906fac54 4604 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4605 # i386-pc-pe-coff != i386-pc-coff.
4606 i386-*-pe-coff) ;;
4c63da97
AM
4607 # Uncommenting the next line will turn on support for i386 AOUT
4608 # for the default linux configuration
4609 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4610 #
4611 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4612 i386-*-coff) emulation="i386coff" ;;
4c63da97 4613 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4614
f9c19112
HPN
4615 # Always all formats. The first stated emulation becomes the default.
4616 cris-*-*aout*) emulation="crisaout criself" ;;
4617 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4618 esac
4619
4620 emulations="$emulations $emulation"
4621
4622done
4623
15886821
L
4624# Turn on all targets if possible
4625if test ${all_targets} = "yes"; then
4626 case ${target_cpu_type} in
4627 i386)
4628 case ${obj_format} in
4629 aout)
4630 emulations="$emulations i386coff i386elf"
4631 ;;
4632 coff)
4633 emulations="$emulations i386aout i386elf"
4634 ;;
4635 elf)
4636 emulations="$emulations i386aout i386coff"
4637 ;;
4638 esac
4639 ;;
4640 esac
4641fi
4642
252b5132
RH
4643# Assign floating point type. Most processors with FP support
4644# IEEE FP. On those that don't support FP at all, usually IEEE
4645# is emulated.
4646case ${target_cpu} in
4647 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4648 pdp11) atof=vax ;;
252b5132
RH
4649 *) atof=ieee ;;
4650esac
4651
4652case "${obj_format}" in
13b2be9c
DJ
4653 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4654echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4655 { (exit 1); exit 1; }; } ;;
252b5132
RH
4656esac
4657
4658# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4659cgen_cpu_prefix=""
4660if test $using_cgen = yes ; then
4661 case ${target_cpu} in
4662 *) cgen_cpu_prefix=${target_cpu} ;;
4663 esac
13b2be9c
DJ
4664
4665
4666cat >>confdefs.h <<\_ACEOF
252b5132 4667#define USING_CGEN 1
13b2be9c 4668_ACEOF
252b5132
RH
4669
4670fi
4671
d6d788bd 4672
252b5132 4673if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4674 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4675echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4676 { (exit 1); exit 1; }; }
252b5132
RH
4677fi
4678
4679if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4680 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4681echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4682 { (exit 1); exit 1; }; }
252b5132
RH
4683fi
4684
4685case ${user_bfd_gas}-${primary_bfd_gas} in
4686 yes-yes | no-no)
4687 # We didn't override user's choice.
4688 ;;
4689 no-yes)
13b2be9c
DJ
4690 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4691echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4692 ;;
4693 no-preferred)
4694 primary_bfd_gas=no
4695 ;;
4696 *-preferred)
4697 primary_bfd_gas=yes
4698 ;;
4699 yes-*)
4700 primary_bfd_gas=yes
4701 ;;
4702 -*)
4703 # User specified nothing.
4704 ;;
4705esac
4706
4707# Some COFF configurations want these random other flags set.
4708case ${obj_format} in
4709 coff)
4710 case ${target_cpu_type} in
13b2be9c
DJ
4711 i386)
4712cat >>confdefs.h <<\_ACEOF
252b5132 4713#define I386COFF 1
13b2be9c 4714_ACEOF
252b5132 4715 ;;
13b2be9c
DJ
4716 m68k)
4717cat >>confdefs.h <<\_ACEOF
252b5132 4718#define M68KCOFF 1
13b2be9c 4719_ACEOF
252b5132 4720 ;;
13b2be9c
DJ
4721 m88k)
4722cat >>confdefs.h <<\_ACEOF
252b5132 4723#define M88KCOFF 1
13b2be9c 4724_ACEOF
252b5132
RH
4725 ;;
4726 esac
4727 ;;
4728esac
4729
4730# Getting this done right is going to be a bitch. Each configuration specified
4731# with --enable-targets=... should be checked for environment, format, cpu, and
4732# bfd_gas setting.
4733#
4734# For each configuration, the necessary object file support code must be linked
4735# in. This might be only one, it might be up to four. The necessary emulation
4736# code needs to be provided, too.
4737#
4738# And then there's "--enable-targets=all"....
4739#
4740# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4741
4742formats="${obj_format}"
4743emfiles=""
4744EMULATIONS=""
4745_gas_uniq_list="$emulations"
4746_gas_uniq_newlist=""
4747for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4748 case $_gas_uniq_i in
4749 _gas_uniq_dummy) ;;
4750 *) case " $_gas_uniq_newlist " in
4751 *" $_gas_uniq_i "*) ;;
4752 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4753 esac ;;
4754 esac
4755done
4756emulations=$_gas_uniq_newlist
4757
4758for em in . $emulations ; do
4759 case $em in
4760 .) continue ;;
97238fbd 4761 mipsbelf | mipslelf | mipself)
252b5132 4762 fmt=elf file=mipself ;;
97238fbd 4763 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4764 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4765 *coff)
4766 fmt=coff file=$em ;;
4767 *aout)
4768 fmt=aout file=$em ;;
4769 *elf)
4770 fmt=elf file=$em ;;
252b5132
RH
4771 esac
4772 formats="$formats $fmt"
4773 emfiles="$emfiles e-$file.o"
4774 EMULATIONS="$EMULATIONS &$em,"
4775done
4776_gas_uniq_list="$formats"
4777_gas_uniq_newlist=""
4778for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4779 case $_gas_uniq_i in
4780 _gas_uniq_dummy) ;;
4781 *) case " $_gas_uniq_newlist " in
4782 *" $_gas_uniq_i "*) ;;
4783 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4784 esac ;;
4785 esac
4786done
4787formats=$_gas_uniq_newlist
4788
4789_gas_uniq_list="$emfiles"
4790_gas_uniq_newlist=""
4791for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4792 case $_gas_uniq_i in
4793 _gas_uniq_dummy) ;;
4794 *) case " $_gas_uniq_newlist " in
4795 *" $_gas_uniq_i "*) ;;
4796 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4797 esac ;;
4798 esac
4799done
4800emfiles=$_gas_uniq_newlist
4801
4802if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4803 for fmt in $formats ; do
4804 case $fmt in
13b2be9c
DJ
4805 aout)
4806cat >>confdefs.h <<\_ACEOF
252b5132 4807#define OBJ_MAYBE_AOUT 1
13b2be9c 4808_ACEOF
252b5132 4809 ;;
13b2be9c
DJ
4810 bout)
4811cat >>confdefs.h <<\_ACEOF
252b5132 4812#define OBJ_MAYBE_BOUT 1
13b2be9c 4813_ACEOF
252b5132 4814 ;;
13b2be9c
DJ
4815 coff)
4816cat >>confdefs.h <<\_ACEOF
252b5132 4817#define OBJ_MAYBE_COFF 1
13b2be9c 4818_ACEOF
252b5132 4819 ;;
13b2be9c
DJ
4820 ecoff)
4821cat >>confdefs.h <<\_ACEOF
252b5132 4822#define OBJ_MAYBE_ECOFF 1
13b2be9c 4823_ACEOF
252b5132 4824 ;;
13b2be9c
DJ
4825 elf)
4826cat >>confdefs.h <<\_ACEOF
252b5132 4827#define OBJ_MAYBE_ELF 1
13b2be9c 4828_ACEOF
252b5132 4829 ;;
13b2be9c
DJ
4830 generic)
4831cat >>confdefs.h <<\_ACEOF
252b5132 4832#define OBJ_MAYBE_GENERIC 1
13b2be9c 4833_ACEOF
252b5132 4834 ;;
13b2be9c
DJ
4835 hp300)
4836cat >>confdefs.h <<\_ACEOF
252b5132 4837#define OBJ_MAYBE_HP300 1
13b2be9c 4838_ACEOF
252b5132 4839 ;;
13b2be9c
DJ
4840 ieee)
4841cat >>confdefs.h <<\_ACEOF
252b5132 4842#define OBJ_MAYBE_IEEE 1
13b2be9c 4843_ACEOF
252b5132 4844 ;;
13b2be9c
DJ
4845 som)
4846cat >>confdefs.h <<\_ACEOF
252b5132 4847#define OBJ_MAYBE_SOM 1
13b2be9c 4848_ACEOF
252b5132 4849 ;;
13b2be9c
DJ
4850 vms)
4851cat >>confdefs.h <<\_ACEOF
252b5132 4852#define OBJ_MAYBE_VMS 1
13b2be9c 4853_ACEOF
252b5132
RH
4854 ;;
4855 esac
4856 extra_objects="$extra_objects obj-$fmt.o"
4857 done
4858 obj_format=multi
4859fi
4860if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 4861 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
4862 # e-mips* has more than one emulation per file, e-i386* has just one at the
4863 # moment. If only one emulation is specified, then don't define
4864 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4865 case "${obj_format}${emfiles}" in
4866 multi* | *mips*)
4ca72d38 4867 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
4868
4869cat >>confdefs.h <<\_ACEOF
252b5132 4870#define USE_EMULATIONS 1
13b2be9c 4871_ACEOF
4ca72d38
AM
4872 ;;
4873 esac
252b5132
RH
4874fi
4875
13b2be9c
DJ
4876
4877cat >>confdefs.h <<_ACEOF
252b5132 4878#define EMULATIONS $EMULATIONS
13b2be9c
DJ
4879_ACEOF
4880
252b5132 4881
13b2be9c 4882cat >>confdefs.h <<_ACEOF
252b5132 4883#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 4884_ACEOF
252b5132 4885
d6d788bd 4886
252b5132
RH
4887case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4888 yes-*-coff) need_bfd=yes ;;
4889 no-*-coff) need_bfd=yes
13b2be9c
DJ
4890
4891cat >>confdefs.h <<\_ACEOF
252b5132 4892#define MANY_SEGMENTS 1
13b2be9c 4893_ACEOF
252b5132
RH
4894 ;;
4895esac
4896
4897reject_dev_configs=yes
4898
4899case ${reject_dev_configs}-${dev} in
4900 yes-yes) # Oops.
13b2be9c
DJ
4901 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4902echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4903 { (exit 1); exit 1; }; }
252b5132
RH
4904 ;;
4905esac
4906
d6d788bd
L
4907
4908
4909
4910
4911
4912
252b5132 4913case "${primary_bfd_gas}" in
13b2be9c
DJ
4914 yes)
4915cat >>confdefs.h <<\_ACEOF
252b5132 4916#define BFD_ASSEMBLER 1
13b2be9c 4917_ACEOF
252b5132
RH
4918
4919 need_bfd=yes ;;
4920esac
4921
4922# do we need the opcodes library?
4923case "${need_opcodes}" in
4924yes)
4925 OPCODES_LIB=../opcodes/libopcodes.la
4926 ;;
4927esac
4928
4929case "${need_bfd}" in
4930yes)
4931 BFDLIB=../bfd/libbfd.la
4001ad8c 4932 BFDVER_H=../bfd/bfdver.h
29589b0c 4933 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
252b5132
RH
4934 ;;
4935esac
4936
d6d788bd
L
4937
4938
4939
4940
4941
4001ad8c 4942
13b2be9c
DJ
4943
4944cat >>confdefs.h <<_ACEOF
252b5132 4945#define TARGET_ALIAS "${target_alias}"
13b2be9c 4946_ACEOF
9b2b7d69 4947
13b2be9c
DJ
4948
4949cat >>confdefs.h <<_ACEOF
252b5132 4950#define TARGET_CANONICAL "${target}"
13b2be9c 4951_ACEOF
9b2b7d69 4952
13b2be9c
DJ
4953
4954cat >>confdefs.h <<_ACEOF
252b5132 4955#define TARGET_CPU "${target_cpu}"
13b2be9c 4956_ACEOF
9b2b7d69 4957
13b2be9c
DJ
4958
4959cat >>confdefs.h <<_ACEOF
252b5132 4960#define TARGET_VENDOR "${target_vendor}"
13b2be9c 4961_ACEOF
9b2b7d69 4962
13b2be9c
DJ
4963
4964cat >>confdefs.h <<_ACEOF
252b5132 4965#define TARGET_OS "${target_os}"
13b2be9c
DJ
4966_ACEOF
4967
4968
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974if test -n "$ac_tool_prefix"; then
4975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4976set dummy ${ac_tool_prefix}gcc; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_CC+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 if test -n "$CC"; then
4983 ac_cv_prog_CC="$CC" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
252b5132 4998
13b2be9c
DJ
4999fi
5000fi
5001CC=$ac_cv_prog_CC
5002if test -n "$CC"; then
5003 echo "$as_me:$LINENO: result: $CC" >&5
5004echo "${ECHO_T}$CC" >&6
5005else
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
252b5132 5009
13b2be9c
DJ
5010fi
5011if test -z "$ac_cv_prog_CC"; then
5012 ac_ct_CC=$CC
5013 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5014set dummy gcc; ac_word=$2
13b2be9c
DJ
5015echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_CC="gcc"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035done
5036
5037fi
5038fi
5039ac_ct_CC=$ac_cv_prog_ac_ct_CC
5040if test -n "$ac_ct_CC"; then
5041 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5042echo "${ECHO_T}$ac_ct_CC" >&6
5043else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048 CC=$ac_ct_CC
5049else
5050 CC="$ac_cv_prog_CC"
5051fi
5052
5053if test -z "$CC"; then
5054 if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5056set dummy ${ac_tool_prefix}cc; ac_word=$2
5057echo "$as_me:$LINENO: checking for $ac_word" >&5
5058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059if test "${ac_cv_prog_CC+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5061else
5062 if test -n "$CC"; then
5063 ac_cv_prog_CC="$CC" # Let the user override the test.
5064else
13b2be9c
DJ
5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_CC="${ac_tool_prefix}cc"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076done
5077done
5078
252b5132
RH
5079fi
5080fi
13b2be9c 5081CC=$ac_cv_prog_CC
252b5132 5082if test -n "$CC"; then
13b2be9c
DJ
5083 echo "$as_me:$LINENO: result: $CC" >&5
5084echo "${ECHO_T}$CC" >&6
5085else
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
5088fi
5089
5090fi
5091if test -z "$ac_cv_prog_CC"; then
5092 ac_ct_CC=$CC
5093 # Extract the first word of "cc", so it can be a program name with args.
5094set dummy cc; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5099else
13b2be9c
DJ
5100 if test -n "$ac_ct_CC"; then
5101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_CC="cc"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114done
5115done
5116
5117fi
5118fi
5119ac_ct_CC=$ac_cv_prog_ac_ct_CC
5120if test -n "$ac_ct_CC"; then
5121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5122echo "${ECHO_T}$ac_ct_CC" >&6
5123else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128 CC=$ac_ct_CC
5129else
5130 CC="$ac_cv_prog_CC"
6840198f
NC
5131fi
5132
13b2be9c 5133fi
252b5132
RH
5134if test -z "$CC"; then
5135 # Extract the first word of "cc", so it can be a program name with args.
5136set dummy cc; ac_word=$2
13b2be9c
DJ
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_prog_CC+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5141else
5142 if test -n "$CC"; then
5143 ac_cv_prog_CC="$CC" # Let the user override the test.
5144else
252b5132 5145 ac_prog_rejected=no
13b2be9c
DJ
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5154 ac_prog_rejected=yes
5155 continue
5156 fi
5157 ac_cv_prog_CC="cc"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162done
5163
252b5132
RH
5164if test $ac_prog_rejected = yes; then
5165 # We found a bogon in the path, so make sure we never use it.
5166 set dummy $ac_cv_prog_CC
5167 shift
13b2be9c 5168 if test $# != 0; then
252b5132
RH
5169 # We chose a different compiler from the bogus one.
5170 # However, it has the same basename, so the bogon will be chosen
5171 # first if we set CC to just the basename; use the full file name.
5172 shift
13b2be9c 5173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5174 fi
5175fi
5176fi
5177fi
13b2be9c 5178CC=$ac_cv_prog_CC
252b5132 5179if test -n "$CC"; then
13b2be9c
DJ
5180 echo "$as_me:$LINENO: result: $CC" >&5
5181echo "${ECHO_T}$CC" >&6
252b5132 5182else
13b2be9c
DJ
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
252b5132
RH
5185fi
5186
13b2be9c
DJ
5187fi
5188if test -z "$CC"; then
5189 if test -n "$ac_tool_prefix"; then
5190 for ac_prog in cl
5191 do
5192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_prog_CC+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5198else
5199 if test -n "$CC"; then
5200 ac_cv_prog_CC="$CC" # Let the user override the test.
5201else
13b2be9c
DJ
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
252b5132
RH
5216fi
5217fi
13b2be9c 5218CC=$ac_cv_prog_CC
252b5132 5219if test -n "$CC"; then
13b2be9c
DJ
5220 echo "$as_me:$LINENO: result: $CC" >&5
5221echo "${ECHO_T}$CC" >&6
c8615825 5222else
13b2be9c
DJ
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
c8615825 5225fi
6840198f 5226
13b2be9c
DJ
5227 test -n "$CC" && break
5228 done
5229fi
5230if test -z "$CC"; then
5231 ac_ct_CC=$CC
5232 for ac_prog in cl
5233do
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235set dummy $ac_prog; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5240else
13b2be9c
DJ
5241 if test -n "$ac_ct_CC"; then
5242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5243else
13b2be9c
DJ
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_CC="$ac_prog"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
c8615825
AM
5258fi
5259fi
13b2be9c
DJ
5260ac_ct_CC=$ac_cv_prog_ac_ct_CC
5261if test -n "$ac_ct_CC"; then
5262 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5263echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5264else
13b2be9c
DJ
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
c8615825 5267fi
252b5132 5268
13b2be9c
DJ
5269 test -n "$ac_ct_CC" && break
5270done
5271
5272 CC=$ac_ct_CC
5273fi
5274
5275fi
5276
5277
5278test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5279See \`config.log' for more details." >&5
5280echo "$as_me: error: no acceptable C compiler found in \$PATH
5281See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }
5283
5284# Provide some information about the compiler.
5285echo "$as_me:$LINENO:" \
5286 "checking for C compiler version" >&5
5287ac_compiler=`set X $ac_compile; echo $2`
5288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5289 (eval $ac_compiler --version </dev/null >&5) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5294 (eval $ac_compiler -v </dev/null >&5) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5299 (eval $ac_compiler -V </dev/null >&5) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303
5304echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5305echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5306if test "${ac_cv_c_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 cat >conftest.$ac_ext <<_ACEOF
5310#line $LINENO "configure"
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316
5317int
5318main ()
5319{
5320#ifndef __GNUC__
5321 choke me
5322#endif
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5328rm -f conftest.$ac_objext
5329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_compiler_gnu=yes
5341else
5342 echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345ac_compiler_gnu=no
5346fi
5347rm -f conftest.$ac_objext conftest.$ac_ext
5348ac_cv_c_compiler_gnu=$ac_compiler_gnu
5349
5350fi
5351echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5352echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5353GCC=`test $ac_compiler_gnu = yes && echo yes`
5354ac_test_CFLAGS=${CFLAGS+set}
5355ac_save_CFLAGS=$CFLAGS
5356CFLAGS="-g"
5357echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5358echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5359if test "${ac_cv_prog_cc_g+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 cat >conftest.$ac_ext <<_ACEOF
5363#line $LINENO "configure"
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369
5370int
5371main ()
5372{
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
252b5132
RH
5390 ac_cv_prog_cc_g=yes
5391else
13b2be9c
DJ
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5394
13b2be9c 5395ac_cv_prog_cc_g=no
252b5132 5396fi
13b2be9c
DJ
5397rm -f conftest.$ac_objext conftest.$ac_ext
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5400echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5401if test "$ac_test_CFLAGS" = set; then
13b2be9c 5402 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5403elif test $ac_cv_prog_cc_g = yes; then
5404 if test "$GCC" = yes; then
5405 CFLAGS="-g -O2"
5406 else
5407 CFLAGS="-g"
5408 fi
5409else
9b2b7d69
MM
5410 if test "$GCC" = yes; then
5411 CFLAGS="-O2"
5412 else
5413 CFLAGS=
5414 fi
5415fi
13b2be9c
DJ
5416echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5417echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5418if test "${ac_cv_prog_cc_stdc+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 ac_cv_prog_cc_stdc=no
5422ac_save_CC=$CC
5423cat >conftest.$ac_ext <<_ACEOF
5424#line $LINENO "configure"
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430#include <stdarg.h>
5431#include <stdio.h>
5432#include <sys/types.h>
5433#include <sys/stat.h>
5434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5435struct buf { int x; };
5436FILE * (*rcsopen) (struct buf *, struct stat *, int);
5437static char *e (p, i)
5438 char **p;
5439 int i;
5440{
5441 return p[i];
5442}
5443static char *f (char * (*g) (char **, int), char **p, ...)
5444{
5445 char *s;
5446 va_list v;
5447 va_start (v,p);
5448 s = g (p, va_arg (v,int));
5449 va_end (v);
5450 return s;
5451}
5452int test (int i, double x);
5453struct s1 {int (*f) (int a);};
5454struct s2 {int (*f) (double a);};
5455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5456int argc;
5457char **argv;
5458int
5459main ()
5460{
5461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466# Don't try gcc -ansi; that turns off useful extensions and
5467# breaks some systems' header files.
5468# AIX -qlanglvl=ansi
5469# Ultrix and OSF/1 -std1
5470# HP-UX 10.20 and later -Ae
5471# HP-UX older versions -Aa -D_HPUX_SOURCE
5472# SVR4 -Xc -D__EXTENSIONS__
5473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5474do
5475 CC="$ac_save_CC $ac_arg"
5476 rm -f conftest.$ac_objext
5477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_cv_prog_cc_stdc=$ac_arg
5489break
5490else
5491 echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494fi
5495rm -f conftest.$ac_objext
5496done
5497rm -f conftest.$ac_ext conftest.$ac_objext
5498CC=$ac_save_CC
5499
5500fi
5501
5502case "x$ac_cv_prog_cc_stdc" in
5503 x|xno)
5504 echo "$as_me:$LINENO: result: none needed" >&5
5505echo "${ECHO_T}none needed" >&6 ;;
5506 *)
5507 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5508echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5509 CC="$CC $ac_cv_prog_cc_stdc" ;;
5510esac
5511
5512# Some people use a C++ compiler to compile C. Since we use `exit',
5513# in C++ we need to declare it. In case someone uses the same compiler
5514# for both compiling C and C++ we need to have the C++ compiler decide
5515# the declaration of exit, since it's the most demanding environment.
5516cat >conftest.$ac_ext <<_ACEOF
5517#ifndef __cplusplus
5518 choke me
5519#endif
5520_ACEOF
5521rm -f conftest.$ac_objext
5522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 for ac_declaration in \
5534 '' \
5535 'extern "C" void std::exit (int) throw (); using std::exit;' \
5536 'extern "C" void std::exit (int); using std::exit;' \
5537 'extern "C" void exit (int) throw ();' \
5538 'extern "C" void exit (int);' \
5539 'void exit (int);'
5540do
5541 cat >conftest.$ac_ext <<_ACEOF
5542#line $LINENO "configure"
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h. */
5548$ac_declaration
5549#include <stdlib.h>
5550int
5551main ()
5552{
5553exit (42);
5554 ;
5555 return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext
5559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -s conftest.$ac_objext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 (eval $ac_try) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 :
5571else
5572 echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575continue
5576fi
5577rm -f conftest.$ac_objext conftest.$ac_ext
5578 cat >conftest.$ac_ext <<_ACEOF
5579#line $LINENO "configure"
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585$ac_declaration
5586int
5587main ()
5588{
5589exit (42);
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 break
5607else
5608 echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611fi
5612rm -f conftest.$ac_objext conftest.$ac_ext
5613done
5614rm -f conftest*
5615if test -n "$ac_declaration"; then
5616 echo '#ifdef __cplusplus' >>confdefs.h
5617 echo $ac_declaration >>confdefs.h
5618 echo '#endif' >>confdefs.h
5619fi
5620
5621else
5622 echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
5625fi
5626rm -f conftest.$ac_objext conftest.$ac_ext
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5632
5633
5634for ac_prog in 'bison -y' byacc
9b2b7d69 5635do
13b2be9c 5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5637set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5638echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640if test "${ac_cv_prog_YACC+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5642else
5643 if test -n "$YACC"; then
5644 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5645else
13b2be9c
DJ
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_YACC="$ac_prog"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659
c8615825
AM
5660fi
5661fi
13b2be9c 5662YACC=$ac_cv_prog_YACC
c8615825 5663if test -n "$YACC"; then
13b2be9c
DJ
5664 echo "$as_me:$LINENO: result: $YACC" >&5
5665echo "${ECHO_T}$YACC" >&6
c8615825 5666else
13b2be9c
DJ
5667 echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
c8615825
AM
5669fi
5670
13b2be9c 5671 test -n "$YACC" && break
c8615825
AM
5672done
5673test -n "$YACC" || YACC="yacc"
5674
13b2be9c
DJ
5675for ac_prog in flex lex
5676do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678set dummy $ac_prog; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_LEX+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5683else
13b2be9c
DJ
5684 if test -n "$LEX"; then
5685 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5686else
13b2be9c
DJ
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_LEX="$ac_prog"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699done
5700
5701fi
5702fi
5703LEX=$ac_cv_prog_LEX
5704if test -n "$LEX"; then
5705 echo "$as_me:$LINENO: result: $LEX" >&5
5706echo "${ECHO_T}$LEX" >&6
c8615825 5707else
13b2be9c
DJ
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712 test -n "$LEX" && break
5713done
5714test -n "$LEX" || LEX=":"
5715
5716if test -z "$LEXLIB"
5717then
5718 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5719echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5720if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723 ac_check_lib_save_LIBS=$LIBS
5724LIBS="-lfl $LIBS"
5725cat >conftest.$ac_ext <<_ACEOF
5726#line $LINENO "configure"
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
5732
5733/* Override any gcc2 internal prototype to avoid an error. */
5734#ifdef __cplusplus
5735extern "C"
5736#endif
5737/* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5739char yywrap ();
5740int
5741main ()
5742{
5743yywrap ();
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
5749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -s conftest$ac_exeext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_lib_fl_yywrap=yes
5761else
5762 echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765ac_cv_lib_fl_yywrap=no
5766fi
5767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5768LIBS=$ac_check_lib_save_LIBS
5769fi
5770echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5771echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5772if test $ac_cv_lib_fl_yywrap = yes; then
5773 LEXLIB="-lfl"
5774else
5775 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5776echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5777if test "${ac_cv_lib_l_yywrap+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 ac_check_lib_save_LIBS=$LIBS
5781LIBS="-ll $LIBS"
5782cat >conftest.$ac_ext <<_ACEOF
5783#line $LINENO "configure"
5784/* confdefs.h. */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h. */
5789
5790/* Override any gcc2 internal prototype to avoid an error. */
5791#ifdef __cplusplus
5792extern "C"
5793#endif
5794/* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */
5796char yywrap ();
5797int
5798main ()
5799{
5800yywrap ();
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext conftest$ac_exeext
5806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_lib_l_yywrap=yes
9b2b7d69 5818else
13b2be9c
DJ
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822ac_cv_lib_l_yywrap=no
9b2b7d69 5823fi
13b2be9c
DJ
5824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825LIBS=$ac_check_lib_save_LIBS
9b2b7d69 5826fi
13b2be9c
DJ
5827echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5828echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5829if test $ac_cv_lib_l_yywrap = yes; then
5830 LEXLIB="-ll"
252b5132 5831fi
13b2be9c
DJ
5832
5833fi
5834
252b5132 5835fi
13b2be9c
DJ
5836
5837if test "x$LEX" != "x:"; then
5838 echo "$as_me:$LINENO: checking lex output file root" >&5
5839echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5840if test "${ac_cv_prog_lex_root+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 # The minimal lex program is just a single line: %%. But some broken lexes
5844# (Solaris, I think it was) want two %% lines, so accommodate them.
5845cat >conftest.l <<_ACEOF
5846%%
5847%%
5848_ACEOF
5849{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5850 (eval $LEX conftest.l) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }
5854if test -f lex.yy.c; then
5855 ac_cv_prog_lex_root=lex.yy
5856elif test -f lexyy.c; then
5857 ac_cv_prog_lex_root=lexyy
252b5132 5858else
13b2be9c
DJ
5859 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5860echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5861 { (exit 1); exit 1; }; }
252b5132 5862fi
13b2be9c
DJ
5863fi
5864echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5865echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5866rm -f conftest.l
5867LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 5868
13b2be9c
DJ
5869echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5870echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5871if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5873else
13b2be9c
DJ
5874 # POSIX says lex can declare yytext either as a pointer or an array; the
5875# default is implementation-dependent. Figure out which it is, since
5876# not all implementations provide the %pointer and %array declarations.
5877ac_cv_prog_lex_yytext_pointer=no
5878echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5879ac_save_LIBS=$LIBS
5880LIBS="$LIBS $LEXLIB"
5881cat >conftest.$ac_ext <<_ACEOF
5882`cat $LEX_OUTPUT_ROOT.c`
5883_ACEOF
5884rm -f conftest.$ac_objext conftest$ac_exeext
5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -s conftest$ac_exeext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_cv_prog_lex_yytext_pointer=yes
252b5132 5897else
13b2be9c
DJ
5898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
252b5132 5901fi
13b2be9c
DJ
5902rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5903LIBS=$ac_save_LIBS
5904rm -f "${LEX_OUTPUT_ROOT}.c"
5905
252b5132 5906fi
13b2be9c
DJ
5907echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5908echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5909if test $ac_cv_prog_lex_yytext_pointer = yes; then
5910
5911cat >>confdefs.h <<\_ACEOF
5912#define YYTEXT_POINTER 1
5913_ACEOF
5914
5915fi
5916
5917fi
5918if test "$LEX" = :; then
5919 LEX=${am_missing_run}flex
5920fi
5921
5922ALL_LINGUAS="fr tr es"
5923if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5925set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928if test "${ac_cv_prog_RANLIB+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 if test -n "$RANLIB"; then
5932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945done
5946done
5947
5948fi
5949fi
5950RANLIB=$ac_cv_prog_RANLIB
5951if test -n "$RANLIB"; then
5952 echo "$as_me:$LINENO: result: $RANLIB" >&5
5953echo "${ECHO_T}$RANLIB" >&6
252b5132 5954else
13b2be9c
DJ
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
252b5132
RH
5957fi
5958
13b2be9c
DJ
5959fi
5960if test -z "$ac_cv_prog_RANLIB"; then
5961 ac_ct_RANLIB=$RANLIB
5962 # Extract the first word of "ranlib", so it can be a program name with args.
5963set dummy ranlib; ac_word=$2
5964echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$ac_ct_RANLIB"; then
5970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_RANLIB="ranlib"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
6840198f 5984done
d6d788bd 5985
13b2be9c
DJ
5986 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5987fi
5988fi
5989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5990if test -n "$ac_ct_RANLIB"; then
5991 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5992echo "${ECHO_T}$ac_ct_RANLIB" >&6
d6d788bd 5993else
13b2be9c
DJ
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996fi
5997
5998 RANLIB=$ac_ct_RANLIB
d6d788bd 5999else
13b2be9c
DJ
6000 RANLIB="$ac_cv_prog_RANLIB"
6001fi
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6009echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6010# On Suns, sometimes $CPP names a directory.
6011if test -n "$CPP" && test -d "$CPP"; then
6012 CPP=
d6d788bd 6013fi
13b2be9c
DJ
6014if test -z "$CPP"; then
6015 if test "${ac_cv_prog_CPP+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018 # Double quotes because CPP needs to be expanded
6019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6020 do
6021 ac_preproc_ok=false
6022for ac_c_preproc_warn_flag in '' yes
6023do
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat >conftest.$ac_ext <<_ACEOF
6031#line $LINENO "configure"
6032/* confdefs.h. */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h. */
6037#ifdef __STDC__
6038# include <limits.h>
6039#else
6040# include <assert.h>
6041#endif
6042 Syntax error
6043_ACEOF
6044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 else
6055 ac_cpp_err=
6056 fi
6057else
6058 ac_cpp_err=yes
d6d788bd 6059fi
13b2be9c
DJ
6060if test -z "$ac_cpp_err"; then
6061 :
6062else
6063 echo "$as_me: failed program was:" >&5
6064sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 # Broken: fails on valid input.
6067continue
6068fi
6069rm -f conftest.err conftest.$ac_ext
6070
6071 # OK, works on sane cases. Now check whether non-existent headers
6072 # can be detected and how.
6073 cat >conftest.$ac_ext <<_ACEOF
6074#line $LINENO "configure"
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
6080#include <ac_nonexistent.h>
6081_ACEOF
6082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null; then
6090 if test -s conftest.err; then
6091 ac_cpp_err=$ac_c_preproc_warn_flag
6092 else
6093 ac_cpp_err=
6094 fi
d6d788bd 6095else
13b2be9c 6096 ac_cpp_err=yes
d6d788bd 6097fi
13b2be9c
DJ
6098if test -z "$ac_cpp_err"; then
6099 # Broken: success on invalid input.
6100continue
6101else
6102 echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6104
13b2be9c
DJ
6105 # Passes both tests.
6106ac_preproc_ok=:
6107break
6108fi
6109rm -f conftest.err conftest.$ac_ext
252b5132 6110
13b2be9c
DJ
6111done
6112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6113rm -f conftest.err conftest.$ac_ext
6114if $ac_preproc_ok; then
6115 break
9b2b7d69 6116fi
13b2be9c
DJ
6117
6118 done
6119 ac_cv_prog_CPP=$CPP
9b2b7d69 6120
d6d788bd 6121fi
13b2be9c 6122 CPP=$ac_cv_prog_CPP
c8615825 6123else
13b2be9c 6124 ac_cv_prog_CPP=$CPP
c8615825 6125fi
13b2be9c
DJ
6126echo "$as_me:$LINENO: result: $CPP" >&5
6127echo "${ECHO_T}$CPP" >&6
6128ac_preproc_ok=false
6129for ac_c_preproc_warn_flag in '' yes
6130do
6131 # Use a header file that comes with gcc, so configuring glibc
6132 # with a fresh cross-compiler works.
6133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134 # <limits.h> exists even on freestanding compilers.
6135 # On the NeXT, cc -E runs the code through the compiler's parser,
6136 # not just through cpp. "Syntax error" is here to catch this case.
6137 cat >conftest.$ac_ext <<_ACEOF
6138#line $LINENO "configure"
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144#ifdef __STDC__
6145# include <limits.h>
6146#else
6147# include <assert.h>
6148#endif
6149 Syntax error
6150_ACEOF
6151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_c_preproc_warn_flag
6161 else
6162 ac_cpp_err=
6163 fi
6164else
6165 ac_cpp_err=yes
252b5132 6166fi
13b2be9c
DJ
6167if test -z "$ac_cpp_err"; then
6168 :
252b5132 6169else
13b2be9c
DJ
6170 echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 # Broken: fails on valid input.
6174continue
6175fi
6176rm -f conftest.err conftest.$ac_ext
6177
6178 # OK, works on sane cases. Now check whether non-existent headers
6179 # can be detected and how.
6180 cat >conftest.$ac_ext <<_ACEOF
6181#line $LINENO "configure"
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
6187#include <ac_nonexistent.h>
6188_ACEOF
6189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_c_preproc_warn_flag
6199 else
6200 ac_cpp_err=
6201 fi
252b5132 6202else
13b2be9c 6203 ac_cpp_err=yes
252b5132 6204fi
13b2be9c
DJ
6205if test -z "$ac_cpp_err"; then
6206 # Broken: success on invalid input.
6207continue
252b5132 6208else
13b2be9c
DJ
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6211
13b2be9c
DJ
6212 # Passes both tests.
6213ac_preproc_ok=:
6214break
252b5132 6215fi
13b2be9c 6216rm -f conftest.err conftest.$ac_ext
252b5132 6217
13b2be9c
DJ
6218done
6219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6220rm -f conftest.err conftest.$ac_ext
6221if $ac_preproc_ok; then
6222 :
6223else
6224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6225See \`config.log' for more details." >&5
6226echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6227See \`config.log' for more details." >&2;}
6228 { (exit 1); exit 1; }; }
252b5132 6229fi
9b2b7d69 6230
13b2be9c
DJ
6231ac_ext=c
6232ac_cpp='$CPP $CPPFLAGS'
6233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6236
6237
13b2be9c
DJ
6238echo "$as_me:$LINENO: checking for egrep" >&5
6239echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6240if test "${ac_cv_prog_egrep+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6242else
13b2be9c
DJ
6243 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6244 then ac_cv_prog_egrep='grep -E'
6245 else ac_cv_prog_egrep='egrep'
c8615825 6246 fi
6840198f 6247fi
13b2be9c
DJ
6248echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6249echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6250 EGREP=$ac_cv_prog_egrep
6840198f 6251
13b2be9c
DJ
6252
6253echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6254echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6255if test "${ac_cv_header_stdc+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6257else
13b2be9c
DJ
6258 cat >conftest.$ac_ext <<_ACEOF
6259#line $LINENO "configure"
6260/* confdefs.h. */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h. */
252b5132
RH
6265#include <stdlib.h>
6266#include <stdarg.h>
6267#include <string.h>
6268#include <float.h>
13b2be9c
DJ
6269
6270int
6271main ()
6272{
6273
6274 ;
6275 return 0;
6276}
6277_ACEOF
6278rm -f conftest.$ac_objext
6279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest.$ac_objext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
252b5132
RH
6290 ac_cv_header_stdc=yes
6291else
13b2be9c
DJ
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295ac_cv_header_stdc=no
252b5132 6296fi
13b2be9c 6297rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6298
6299if test $ac_cv_header_stdc = yes; then
6300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13b2be9c
DJ
6301 cat >conftest.$ac_ext <<_ACEOF
6302#line $LINENO "configure"
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
252b5132 6308#include <string.h>
13b2be9c
DJ
6309
6310_ACEOF
252b5132 6311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6312 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
6313 :
6314else
252b5132
RH
6315 ac_cv_header_stdc=no
6316fi
6317rm -f conftest*
6318
6319fi
6320
6321if test $ac_cv_header_stdc = yes; then
6322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13b2be9c
DJ
6323 cat >conftest.$ac_ext <<_ACEOF
6324#line $LINENO "configure"
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
252b5132 6330#include <stdlib.h>
13b2be9c
DJ
6331
6332_ACEOF
252b5132 6333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6334 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
6335 :
6336else
252b5132
RH
6337 ac_cv_header_stdc=no
6338fi
6339rm -f conftest*
6340
6341fi
6342
6343if test $ac_cv_header_stdc = yes; then
6344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13b2be9c 6345 if test "$cross_compiling" = yes; then
252b5132
RH
6346 :
6347else
13b2be9c
DJ
6348 cat >conftest.$ac_ext <<_ACEOF
6349#line $LINENO "configure"
6350/* confdefs.h. */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h. */
252b5132 6355#include <ctype.h>
13b2be9c
DJ
6356#if ((' ' & 0x0FF) == 0x020)
6357# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6358# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6359#else
6360# define ISLOWER(c) \
6361 (('a' <= (c) && (c) <= 'i') \
6362 || ('j' <= (c) && (c) <= 'r') \
6363 || ('s' <= (c) && (c) <= 'z'))
6364# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6365#endif
c8615825 6366
13b2be9c
DJ
6367#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6368int
6369main ()
6370{
6371 int i;
6372 for (i = 0; i < 256; i++)
6373 if (XOR (islower (i), ISLOWER (i))
6374 || toupper (i) != TOUPPER (i))
6375 exit(2);
6376 exit (0);
6377}
6378_ACEOF
6379rm -f conftest$ac_exeext
6380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
c8615825
AM
6390 :
6391else
13b2be9c
DJ
6392 echo "$as_me: program exited with status $ac_status" >&5
6393echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
6396( exit $ac_status )
6397ac_cv_header_stdc=no
c8615825 6398fi
13b2be9c 6399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c8615825 6400fi
c8615825 6401fi
9b2b7d69 6402fi
13b2be9c
DJ
6403echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6404echo "${ECHO_T}$ac_cv_header_stdc" >&6
c8615825 6405if test $ac_cv_header_stdc = yes; then
13b2be9c
DJ
6406
6407cat >>confdefs.h <<\_ACEOF
c8615825 6408#define STDC_HEADERS 1
13b2be9c 6409_ACEOF
9b2b7d69 6410
c8615825
AM
6411fi
6412
13b2be9c
DJ
6413echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6414echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6415if test "${ac_cv_c_const+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 cat >conftest.$ac_ext <<_ACEOF
6419#line $LINENO "configure"
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
c8615825 6425
13b2be9c
DJ
6426int
6427main ()
6428{
6429/* FIXME: Include the comments suggested by Paul. */
6430#ifndef __cplusplus
6431 /* Ultrix mips cc rejects this. */
6432 typedef int charset[2];
6433 const charset x;
6434 /* SunOS 4.1.1 cc rejects this. */
6435 char const *const *ccp;
6436 char **p;
6437 /* NEC SVR4.0.2 mips cc rejects this. */
6438 struct point {int x, y;};
6439 static struct point const zero = {0,0};
6440 /* AIX XL C 1.02.0.0 rejects this.
6441 It does not let you subtract one const X* pointer from another in
6442 an arm of an if-expression whose if-part is not a constant
6443 expression */
6444 const char *g = "string";
6445 ccp = &g + (g ? g-g : 0);
6446 /* HPUX 7.0 cc rejects these. */
6447 ++ccp;
6448 p = (char**) ccp;
6449 ccp = (char const *const *) p;
6450 { /* SCO 3.2v4 cc rejects this. */
6451 char *t;
6452 char const *s = 0 ? (char *) 0 : (char const *) 0;
6453
6454 *t++ = 0;
6455 }
6456 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6457 int x[] = {25, 17};
6458 const int *foo = &x[0];
6459 ++foo;
6460 }
6461 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6462 typedef const int *iptr;
6463 iptr p = 0;
6464 ++p;
6465 }
6466 { /* AIX XL C 1.02.0.0 rejects this saying
6467 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6468 struct s { int j; const int *ap[3]; };
6469 struct s *b; b->j = 5;
6470 }
6471 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6472 const int foo = 10;
6473 }
6474#endif
6475
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
252b5132
RH
6492 ac_cv_c_const=yes
6493else
13b2be9c
DJ
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_cv_c_const=no
252b5132 6498fi
13b2be9c 6499rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 6500fi
13b2be9c
DJ
6501echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6502echo "${ECHO_T}$ac_cv_c_const" >&6
c8615825 6503if test $ac_cv_c_const = no; then
13b2be9c
DJ
6504
6505cat >>confdefs.h <<\_ACEOF
6506#define const
6507_ACEOF
252b5132
RH
6508
6509fi
6510
13b2be9c
DJ
6511echo "$as_me:$LINENO: checking for inline" >&5
6512echo $ECHO_N "checking for inline... $ECHO_C" >&6
6513if test "${ac_cv_c_inline+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6515else
6516 ac_cv_c_inline=no
6517for ac_kw in inline __inline__ __inline; do
13b2be9c
DJ
6518 cat >conftest.$ac_ext <<_ACEOF
6519#line $LINENO "configure"
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525#ifndef __cplusplus
6526typedef int foo_t;
6527static $ac_kw foo_t static_foo () {return 0; }
6528$ac_kw foo_t foo () {return 0; }
6529#endif
252b5132 6530
13b2be9c
DJ
6531_ACEOF
6532rm -f conftest.$ac_objext
6533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6534 (eval $ac_compile) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
d6d788bd 6544 ac_cv_c_inline=$ac_kw; break
6840198f 6545else
13b2be9c
DJ
6546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6840198f 6549fi
13b2be9c 6550rm -f conftest.$ac_objext conftest.$ac_ext
d6d788bd 6551done
6840198f
NC
6552
6553fi
13b2be9c
DJ
6554echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6555echo "${ECHO_T}$ac_cv_c_inline" >&6
6556case $ac_cv_c_inline in
d6d788bd 6557 inline | yes) ;;
13b2be9c
DJ
6558 no)
6559cat >>confdefs.h <<\_ACEOF
6560#define inline
6561_ACEOF
d6d788bd 6562 ;;
13b2be9c 6563 *) cat >>confdefs.h <<_ACEOF
d6d788bd 6564#define inline $ac_cv_c_inline
13b2be9c 6565_ACEOF
d6d788bd
L
6566 ;;
6567esac
6568
13b2be9c
DJ
6569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6580 inttypes.h stdint.h unistd.h
6581do
6582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6583echo "$as_me:$LINENO: checking for $ac_header" >&5
6584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 cat >conftest.$ac_ext <<_ACEOF
6589#line $LINENO "configure"
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
6595$ac_includes_default
6596
6597#include <$ac_header>
6598_ACEOF
6599rm -f conftest.$ac_objext
6600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 eval "$as_ac_Header=yes"
6612else
6613 echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616eval "$as_ac_Header=no"
6617fi
6618rm -f conftest.$ac_objext conftest.$ac_ext
6619fi
6620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622if test `eval echo '${'$as_ac_Header'}'` = yes; then
6623 cat >>confdefs.h <<_ACEOF
6624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625_ACEOF
6626
6627fi
6628
6629done
6630
6631
6632echo "$as_me:$LINENO: checking for off_t" >&5
6633echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6634if test "${ac_cv_type_off_t+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6636else
13b2be9c
DJ
6637 cat >conftest.$ac_ext <<_ACEOF
6638#line $LINENO "configure"
6639/* confdefs.h. */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h. */
6644$ac_includes_default
6645int
6646main ()
6647{
6648if ((off_t *) 0)
6649 return 0;
6650if (sizeof (off_t))
6651 return 0;
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext
6657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
a2d91340 6668 ac_cv_type_off_t=yes
252b5132 6669else
13b2be9c
DJ
6670 echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6672
13b2be9c 6673ac_cv_type_off_t=no
c8615825 6674fi
13b2be9c
DJ
6675rm -f conftest.$ac_objext conftest.$ac_ext
6676fi
6677echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6678echo "${ECHO_T}$ac_cv_type_off_t" >&6
6679if test $ac_cv_type_off_t = yes; then
6680 :
6681else
6682
6683cat >>confdefs.h <<_ACEOF
252b5132 6684#define off_t long
13b2be9c 6685_ACEOF
252b5132
RH
6686
6687fi
6688
13b2be9c
DJ
6689echo "$as_me:$LINENO: checking for size_t" >&5
6690echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6691if test "${ac_cv_type_size_t+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6693else
13b2be9c
DJ
6694 cat >conftest.$ac_ext <<_ACEOF
6695#line $LINENO "configure"
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701$ac_includes_default
6702int
6703main ()
6704{
6705if ((size_t *) 0)
6706 return 0;
6707if (sizeof (size_t))
6708 return 0;
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713rm -f conftest.$ac_objext
6714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
a2d91340 6725 ac_cv_type_size_t=yes
252b5132 6726else
13b2be9c
DJ
6727 echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6729
13b2be9c
DJ
6730ac_cv_type_size_t=no
6731fi
6732rm -f conftest.$ac_objext conftest.$ac_ext
c8615825 6733fi
13b2be9c
DJ
6734echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6735echo "${ECHO_T}$ac_cv_type_size_t" >&6
6736if test $ac_cv_type_size_t = yes; then
6737 :
6738else
6739
6740cat >>confdefs.h <<_ACEOF
252b5132 6741#define size_t unsigned
13b2be9c 6742_ACEOF
252b5132
RH
6743
6744fi
6745
6746# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6747# for constant arguments. Useless!
13b2be9c
DJ
6748echo "$as_me:$LINENO: checking for working alloca.h" >&5
6749echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6750if test "${ac_cv_working_alloca_h+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 cat >conftest.$ac_ext <<_ACEOF
6754#line $LINENO "configure"
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
252b5132 6760#include <alloca.h>
13b2be9c
DJ
6761int
6762main ()
6763{
6764char *p = (char *) alloca (2 * sizeof (int));
6765 ;
6766 return 0;
6767}
6768_ACEOF
6769rm -f conftest.$ac_objext conftest$ac_exeext
6770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_working_alloca_h=yes
6782else
6783 echo "$as_me: failed program was:" >&5
6784sed 's/^/| /' conftest.$ac_ext >&5
6785
6786ac_cv_working_alloca_h=no
6787fi
6788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6789fi
6790echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6791echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6792if test $ac_cv_working_alloca_h = yes; then
6793
6794cat >>confdefs.h <<\_ACEOF
252b5132 6795#define HAVE_ALLOCA_H 1
13b2be9c 6796_ACEOF
252b5132
RH
6797
6798fi
6799
13b2be9c
DJ
6800echo "$as_me:$LINENO: checking for alloca" >&5
6801echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6802if test "${ac_cv_func_alloca_works+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6804else
13b2be9c
DJ
6805 cat >conftest.$ac_ext <<_ACEOF
6806#line $LINENO "configure"
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
252b5132
RH
6812#ifdef __GNUC__
6813# define alloca __builtin_alloca
6814#else
6815# ifdef _MSC_VER
6816# include <malloc.h>
6817# define alloca _alloca
6818# else
6819# if HAVE_ALLOCA_H
6820# include <alloca.h>
6821# else
6822# ifdef _AIX
6823 #pragma alloca
6824# else
6825# ifndef alloca /* predefined by HP cc +Olibcalls */
6826char *alloca ();
6827# endif
6828# endif
6829# endif
6830# endif
6831#endif
6832
13b2be9c
DJ
6833int
6834main ()
6835{
6836char *p = (char *) alloca (1);
6837 ;
6838 return 0;
6839}
6840_ACEOF
6841rm -f conftest.$ac_objext conftest$ac_exeext
6842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -s conftest$ac_exeext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
252b5132
RH
6853 ac_cv_func_alloca_works=yes
6854else
13b2be9c
DJ
6855 echo "$as_me: failed program was:" >&5
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858ac_cv_func_alloca_works=no
252b5132 6859fi
13b2be9c 6860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 6861fi
13b2be9c
DJ
6862echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6863echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6864
252b5132 6865if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 6866
13b2be9c
DJ
6867cat >>confdefs.h <<\_ACEOF
6868#define HAVE_ALLOCA 1
6869_ACEOF
9b2b7d69 6870
13b2be9c 6871else
c8615825 6872 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
6873# that cause trouble. Some versions do not even contain alloca or
6874# contain a buggy version. If you still want to use their alloca,
6875# use ar to extract alloca.o from them instead of compiling alloca.c.
6876
6877ALLOCA=alloca.$ac_objext
6878
6879cat >>confdefs.h <<\_ACEOF
252b5132 6880#define C_ALLOCA 1
13b2be9c 6881_ACEOF
252b5132 6882
d6d788bd 6883
13b2be9c
DJ
6884echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6885echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6886if test "${ac_cv_os_cray+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6888else
13b2be9c
DJ
6889 cat >conftest.$ac_ext <<_ACEOF
6890#line $LINENO "configure"
6891/* confdefs.h. */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h. */
252b5132
RH
6896#if defined(CRAY) && ! defined(CRAY2)
6897webecray
6898#else
6899wenotbecray
6900#endif
6901
13b2be9c 6902_ACEOF
252b5132 6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6904 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6905 ac_cv_os_cray=yes
6906else
252b5132
RH
6907 ac_cv_os_cray=no
6908fi
6909rm -f conftest*
6910
6911fi
13b2be9c
DJ
6912echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6913echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6914if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
6915 for ac_func in _getb67 GETB67 getb67; do
6916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6917echo "$as_me:$LINENO: checking for $ac_func" >&5
6918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6919if eval "test \"\${$as_ac_var+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922 cat >conftest.$ac_ext <<_ACEOF
6923#line $LINENO "configure"
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
252b5132 6929/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
6930 which can conflict with char $ac_func (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6933#ifdef __STDC__
6934# include <limits.h>
6935#else
6936# include <assert.h>
6937#endif
252b5132 6938/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
6939#ifdef __cplusplus
6940extern "C"
6941{
6942#endif
252b5132 6943/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
6944 builtin and then its argument prototype would still apply. */
6945char $ac_func ();
252b5132
RH
6946/* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950choke me
6951#else
13b2be9c
DJ
6952char (*f) () = $ac_func;
6953#endif
6954#ifdef __cplusplus
6955}
252b5132
RH
6956#endif
6957
13b2be9c
DJ
6958int
6959main ()
6960{
6961return f != $ac_func;
6962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6979else
6980 echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983eval "$as_ac_var=no"
6984fi
6985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986fi
6987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6989if test `eval echo '${'$as_ac_var'}'` = yes; then
6990
6991cat >>confdefs.h <<_ACEOF
252b5132 6992#define CRAY_STACKSEG_END $ac_func
13b2be9c 6993_ACEOF
252b5132 6994
13b2be9c 6995 break
252b5132
RH
6996fi
6997
13b2be9c 6998 done
252b5132
RH
6999fi
7000
13b2be9c
DJ
7001echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7002echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7003if test "${ac_cv_c_stack_direction+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7005else
7006 if test "$cross_compiling" = yes; then
7007 ac_cv_c_stack_direction=0
7008else
13b2be9c
DJ
7009 cat >conftest.$ac_ext <<_ACEOF
7010#line $LINENO "configure"
7011/* confdefs.h. */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h. */
7016int
252b5132
RH
7017find_stack_direction ()
7018{
7019 static char *addr = 0;
7020 auto char dummy;
7021 if (addr == 0)
7022 {
7023 addr = &dummy;
7024 return find_stack_direction ();
7025 }
7026 else
7027 return (&dummy > addr) ? 1 : -1;
7028}
13b2be9c
DJ
7029
7030int
252b5132
RH
7031main ()
7032{
13b2be9c 7033 exit (find_stack_direction () < 0);
252b5132 7034}
13b2be9c
DJ
7035_ACEOF
7036rm -f conftest$ac_exeext
7037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
252b5132
RH
7047 ac_cv_c_stack_direction=1
7048else
13b2be9c
DJ
7049 echo "$as_me: program exited with status $ac_status" >&5
7050echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
7052
7053( exit $ac_status )
7054ac_cv_c_stack_direction=-1
252b5132 7055fi
13b2be9c 7056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7057fi
252b5132 7058fi
13b2be9c
DJ
7059echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7060echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7061
13b2be9c 7062cat >>confdefs.h <<_ACEOF
252b5132 7063#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7064_ACEOF
7065
252b5132
RH
7066
7067fi
7068
13b2be9c
DJ
7069
7070
7071for ac_header in stdlib.h unistd.h
252b5132 7072do
13b2be9c
DJ
7073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7074if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075 echo "$as_me:$LINENO: checking for $ac_header" >&5
7076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7077if eval "test \"\${$as_ac_Header+set}\" = set"; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079fi
7080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7082else
7083 # Is the header compilable?
7084echo "$as_me:$LINENO: checking $ac_header usability" >&5
7085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7086cat >conftest.$ac_ext <<_ACEOF
7087#line $LINENO "configure"
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093$ac_includes_default
7094#include <$ac_header>
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_header_compiler=yes
7109else
7110 echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
7112
7113ac_header_compiler=no
7114fi
7115rm -f conftest.$ac_objext conftest.$ac_ext
7116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7117echo "${ECHO_T}$ac_header_compiler" >&6
7118
7119# Is the header present?
7120echo "$as_me:$LINENO: checking $ac_header presence" >&5
7121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7122cat >conftest.$ac_ext <<_ACEOF
7123#line $LINENO "configure"
7124/* confdefs.h. */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h. */
7129#include <$ac_header>
7130_ACEOF
7131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } >/dev/null; then
7139 if test -s conftest.err; then
7140 ac_cpp_err=$ac_c_preproc_warn_flag
7141 else
7142 ac_cpp_err=
7143 fi
252b5132 7144else
13b2be9c
DJ
7145 ac_cpp_err=yes
7146fi
7147if test -z "$ac_cpp_err"; then
7148 ac_header_preproc=yes
7149else
7150 echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153 ac_header_preproc=no
7154fi
7155rm -f conftest.err conftest.$ac_ext
7156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7157echo "${ECHO_T}$ac_header_preproc" >&6
7158
7159# So? What about this header?
7160case $ac_header_compiler:$ac_header_preproc in
7161 yes:no )
7162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7166 (
7167 cat <<\_ASBOX
7168## ------------------------------------ ##
7169## Report this to bug-autoconf@gnu.org. ##
7170## ------------------------------------ ##
7171_ASBOX
7172 ) |
7173 sed "s/^/$as_me: WARNING: /" >&2
7174 ;;
7175 no:yes )
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7182 (
7183 cat <<\_ASBOX
7184## ------------------------------------ ##
7185## Report this to bug-autoconf@gnu.org. ##
7186## ------------------------------------ ##
7187_ASBOX
7188 ) |
7189 sed "s/^/$as_me: WARNING: /" >&2
7190 ;;
7191esac
7192echo "$as_me:$LINENO: checking for $ac_header" >&5
7193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194if eval "test \"\${$as_ac_Header+set}\" = set"; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 eval "$as_ac_Header=$ac_header_preproc"
252b5132 7198fi
13b2be9c
DJ
7199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7201
252b5132 7202fi
13b2be9c
DJ
7203if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF
7207
252b5132 7208fi
13b2be9c 7209
252b5132
RH
7210done
7211
13b2be9c 7212
252b5132
RH
7213for ac_func in getpagesize
7214do
13b2be9c
DJ
7215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7216echo "$as_me:$LINENO: checking for $ac_func" >&5
7217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7218if eval "test \"\${$as_ac_var+set}\" = set"; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221 cat >conftest.$ac_ext <<_ACEOF
7222#line $LINENO "configure"
7223/* confdefs.h. */
7224_ACEOF
7225cat confdefs.h >>conftest.$ac_ext
7226cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h. */
252b5132 7228/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7229 which can conflict with char $ac_func (); below.
7230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 <limits.h> exists even on freestanding compilers. */
7232#ifdef __STDC__
7233# include <limits.h>
7234#else
7235# include <assert.h>
7236#endif
252b5132 7237/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7238#ifdef __cplusplus
7239extern "C"
7240{
7241#endif
252b5132 7242/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7243 builtin and then its argument prototype would still apply. */
7244char $ac_func ();
252b5132
RH
7245/* The GNU C library defines this for functions which it implements
7246 to always fail with ENOSYS. Some functions are actually named
7247 something starting with __ and the normal name is an alias. */
7248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7249choke me
7250#else
13b2be9c
DJ
7251char (*f) () = $ac_func;
7252#endif
7253#ifdef __cplusplus
7254}
252b5132
RH
7255#endif
7256
13b2be9c
DJ
7257int
7258main ()
7259{
7260return f != $ac_func;
7261 ;
7262 return 0;
7263}
7264_ACEOF
7265rm -f conftest.$ac_objext conftest$ac_exeext
7266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 eval "$as_ac_var=yes"
7278else
7279 echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282eval "$as_ac_var=no"
7283fi
7284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7285fi
7286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7288if test `eval echo '${'$as_ac_var'}'` = yes; then
7289 cat >>confdefs.h <<_ACEOF
7290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7291_ACEOF
252b5132 7292
252b5132
RH
7293fi
7294done
7295
13b2be9c
DJ
7296echo "$as_me:$LINENO: checking for working mmap" >&5
7297echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7298if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7300else
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_func_mmap_fixed_mapped=no
7303else
13b2be9c
DJ
7304 cat >conftest.$ac_ext <<_ACEOF
7305#line $LINENO "configure"
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311$ac_includes_default
7312/* malloc might have been renamed as rpl_malloc. */
7313#undef malloc
d6d788bd 7314
252b5132
RH
7315/* Thanks to Mike Haertel and Jim Avera for this test.
7316 Here is a matrix of mmap possibilities:
7317 mmap private not fixed
7318 mmap private fixed at somewhere currently unmapped
7319 mmap private fixed at somewhere already mapped
7320 mmap shared not fixed
7321 mmap shared fixed at somewhere currently unmapped
7322 mmap shared fixed at somewhere already mapped
7323 For private mappings, we should verify that changes cannot be read()
7324 back from the file, nor mmap's back from the file at a different
7325 address. (There have been systems where private was not correctly
7326 implemented like the infamous i386 svr4.0, and systems where the
13b2be9c 7327 VM page cache was not coherent with the file system buffer cache
252b5132
RH
7328 like early versions of FreeBSD and possibly contemporary NetBSD.)
7329 For shared mappings, we should conversely verify that changes get
13b2be9c 7330 propagated back to all the places they're supposed to be.
252b5132
RH
7331
7332 Grep wants private fixed already mapped.
7333 The main things grep needs to know about mmap are:
7334 * does it exist and is it safe to write into the mmap'd area
7335 * how to use it (BSD variants) */
13b2be9c 7336
252b5132
RH
7337#include <fcntl.h>
7338#include <sys/mman.h>
7339
13b2be9c
DJ
7340#if !STDC_HEADERS && !HAVE_STDLIB_H
7341char *malloc ();
7342#endif
c8615825 7343
13b2be9c
DJ
7344/* This mess was copied from the GNU getpagesize.h. */
7345#if !HAVE_GETPAGESIZE
252b5132 7346/* Assume that all systems that can run configure have sys/param.h. */
13b2be9c 7347# if !HAVE_SYS_PARAM_H
252b5132
RH
7348# define HAVE_SYS_PARAM_H 1
7349# endif
7350
7351# ifdef _SC_PAGESIZE
7352# define getpagesize() sysconf(_SC_PAGESIZE)
7353# else /* no _SC_PAGESIZE */
13b2be9c 7354# if HAVE_SYS_PARAM_H
252b5132
RH
7355# include <sys/param.h>
7356# ifdef EXEC_PAGESIZE
7357# define getpagesize() EXEC_PAGESIZE
7358# else /* no EXEC_PAGESIZE */
7359# ifdef NBPG
7360# define getpagesize() NBPG * CLSIZE
7361# ifndef CLSIZE
7362# define CLSIZE 1
7363# endif /* no CLSIZE */
7364# else /* no NBPG */
7365# ifdef NBPC
7366# define getpagesize() NBPC
7367# else /* no NBPC */
7368# ifdef PAGESIZE
7369# define getpagesize() PAGESIZE
7370# endif /* PAGESIZE */
7371# endif /* no NBPC */
7372# endif /* no NBPG */
7373# endif /* no EXEC_PAGESIZE */
7374# else /* no HAVE_SYS_PARAM_H */
7375# define getpagesize() 8192 /* punt totally */
7376# endif /* no HAVE_SYS_PARAM_H */
7377# endif /* no _SC_PAGESIZE */
7378
7379#endif /* no HAVE_GETPAGESIZE */
7380
252b5132 7381int
13b2be9c 7382main ()
252b5132 7383{
13b2be9c
DJ
7384 char *data, *data2, *data3;
7385 int i, pagesize;
7386 int fd;
7387
7388 pagesize = getpagesize ();
7389
7390 /* First, make a file with some known garbage in it. */
7391 data = (char *) malloc (pagesize);
7392 if (!data)
7393 exit (1);
7394 for (i = 0; i < pagesize; ++i)
7395 *(data + i) = rand ();
7396 umask (0);
7397 fd = creat ("conftest.mmap", 0600);
7398 if (fd < 0)
7399 exit (1);
7400 if (write (fd, data, pagesize) != pagesize)
7401 exit (1);
7402 close (fd);
7403
7404 /* Next, try to mmap the file at a fixed address which already has
7405 something else allocated at it. If we can, also make sure that
7406 we see the same garbage. */
7407 fd = open ("conftest.mmap", O_RDWR);
7408 if (fd < 0)
7409 exit (1);
7410 data2 = (char *) malloc (2 * pagesize);
7411 if (!data2)
7412 exit (1);
7413 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7414 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7415 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7416 exit (1);
7417 for (i = 0; i < pagesize; ++i)
7418 if (*(data + i) != *(data2 + i))
7419 exit (1);
7420
7421 /* Finally, make sure that changes to the mapped area do not
7422 percolate back to the file as seen by read(). (This is a bug on
7423 some variants of i386 svr4.0.) */
7424 for (i = 0; i < pagesize; ++i)
7425 *(data2 + i) = *(data2 + i) + 1;
7426 data3 = (char *) malloc (pagesize);
7427 if (!data3)
7428 exit (1);
7429 if (read (fd, data3, pagesize) != pagesize)
7430 exit (1);
7431 for (i = 0; i < pagesize; ++i)
7432 if (*(data + i) != *(data3 + i))
7433 exit (1);
7434 close (fd);
7435 exit (0);
252b5132 7436}
13b2be9c
DJ
7437_ACEOF
7438rm -f conftest$ac_exeext
7439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440 (eval $ac_link) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
252b5132
RH
7449 ac_cv_func_mmap_fixed_mapped=yes
7450else
13b2be9c
DJ
7451 echo "$as_me: program exited with status $ac_status" >&5
7452echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455( exit $ac_status )
7456ac_cv_func_mmap_fixed_mapped=no
9b2b7d69 7457fi
13b2be9c 7458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7459fi
252b5132 7460fi
13b2be9c
DJ
7461echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7462echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c8615825 7463if test $ac_cv_func_mmap_fixed_mapped = yes; then
13b2be9c
DJ
7464
7465cat >>confdefs.h <<\_ACEOF
9b2b7d69 7466#define HAVE_MMAP 1
13b2be9c 7467_ACEOF
9b2b7d69
MM
7468
7469fi
13b2be9c
DJ
7470rm -f conftest.mmap
7471
7472
7473
7474
7475
7476
7477
6840198f 7478
13b2be9c
DJ
7479
7480
7481
7482for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
7483unistd.h values.h sys/param.h
7484do
13b2be9c
DJ
7485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487 echo "$as_me:$LINENO: checking for $ac_header" >&5
7488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491fi
7492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7494else
7495 # Is the header compilable?
7496echo "$as_me:$LINENO: checking $ac_header usability" >&5
7497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7498cat >conftest.$ac_ext <<_ACEOF
7499#line $LINENO "configure"
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
7505$ac_includes_default
7506#include <$ac_header>
7507_ACEOF
7508rm -f conftest.$ac_objext
7509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_header_compiler=yes
7521else
7522 echo "$as_me: failed program was:" >&5
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525ac_header_compiler=no
7526fi
7527rm -f conftest.$ac_objext conftest.$ac_ext
7528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7529echo "${ECHO_T}$ac_header_compiler" >&6
7530
7531# Is the header present?
7532echo "$as_me:$LINENO: checking $ac_header presence" >&5
7533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7534cat >conftest.$ac_ext <<_ACEOF
7535#line $LINENO "configure"
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541#include <$ac_header>
7542_ACEOF
7543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } >/dev/null; then
7551 if test -s conftest.err; then
7552 ac_cpp_err=$ac_c_preproc_warn_flag
7553 else
7554 ac_cpp_err=
7555 fi
9b2b7d69 7556else
13b2be9c
DJ
7557 ac_cpp_err=yes
7558fi
7559if test -z "$ac_cpp_err"; then
7560 ac_header_preproc=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_header_preproc=no
7566fi
7567rm -f conftest.err conftest.$ac_ext
7568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7569echo "${ECHO_T}$ac_header_preproc" >&6
7570
7571# So? What about this header?
7572case $ac_header_compiler:$ac_header_preproc in
7573 yes:no )
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7578 (
7579 cat <<\_ASBOX
7580## ------------------------------------ ##
7581## Report this to bug-autoconf@gnu.org. ##
7582## ------------------------------------ ##
7583_ASBOX
7584 ) |
7585 sed "s/^/$as_me: WARNING: /" >&2
7586 ;;
7587 no:yes )
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7594 (
7595 cat <<\_ASBOX
7596## ------------------------------------ ##
7597## Report this to bug-autoconf@gnu.org. ##
7598## ------------------------------------ ##
7599_ASBOX
7600 ) |
7601 sed "s/^/$as_me: WARNING: /" >&2
7602 ;;
7603esac
7604echo "$as_me:$LINENO: checking for $ac_header" >&5
7605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7606if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 eval "$as_ac_Header=$ac_header_preproc"
252b5132 7610fi
13b2be9c
DJ
7611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613
252b5132 7614fi
13b2be9c
DJ
7615if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618_ACEOF
7619
252b5132 7620fi
13b2be9c 7621
252b5132
RH
7622done
7623
13b2be9c
DJ
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7635__argz_count __argz_stringify __argz_next
7636do
13b2be9c
DJ
7637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7638echo "$as_me:$LINENO: checking for $ac_func" >&5
7639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7640if eval "test \"\${$as_ac_var+set}\" = set"; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643 cat >conftest.$ac_ext <<_ACEOF
7644#line $LINENO "configure"
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
252b5132 7650/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7651 which can conflict with char $ac_func (); below.
7652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 <limits.h> exists even on freestanding compilers. */
7654#ifdef __STDC__
7655# include <limits.h>
7656#else
7657# include <assert.h>
7658#endif
252b5132 7659/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7660#ifdef __cplusplus
7661extern "C"
7662{
7663#endif
252b5132 7664/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7665 builtin and then its argument prototype would still apply. */
7666char $ac_func ();
252b5132
RH
7667/* The GNU C library defines this for functions which it implements
7668 to always fail with ENOSYS. Some functions are actually named
7669 something starting with __ and the normal name is an alias. */
7670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7671choke me
7672#else
13b2be9c
DJ
7673char (*f) () = $ac_func;
7674#endif
7675#ifdef __cplusplus
7676}
252b5132
RH
7677#endif
7678
13b2be9c
DJ
7679int
7680main ()
7681{
7682return f != $ac_func;
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext conftest$ac_exeext
7688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 eval "$as_ac_var=yes"
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704eval "$as_ac_var=no"
7705fi
7706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707fi
7708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7710if test `eval echo '${'$as_ac_var'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7713_ACEOF
252b5132 7714
252b5132
RH
7715fi
7716done
7717
6840198f 7718
d6d788bd 7719 if test "${ac_cv_func_stpcpy+set}" != "set"; then
13b2be9c
DJ
7720
7721for ac_func in stpcpy
252b5132 7722do
13b2be9c
DJ
7723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7724echo "$as_me:$LINENO: checking for $ac_func" >&5
7725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7726if eval "test \"\${$as_ac_var+set}\" = set"; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 cat >conftest.$ac_ext <<_ACEOF
7730#line $LINENO "configure"
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
252b5132 7736/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7737 which can conflict with char $ac_func (); below.
7738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7739 <limits.h> exists even on freestanding compilers. */
7740#ifdef __STDC__
7741# include <limits.h>
7742#else
7743# include <assert.h>
7744#endif
252b5132 7745/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7746#ifdef __cplusplus
7747extern "C"
7748{
7749#endif
252b5132 7750/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7751 builtin and then its argument prototype would still apply. */
7752char $ac_func ();
252b5132
RH
7753/* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7757choke me
7758#else
13b2be9c
DJ
7759char (*f) () = $ac_func;
7760#endif
7761#ifdef __cplusplus
7762}
252b5132
RH
7763#endif
7764
13b2be9c
DJ
7765int
7766main ()
7767{
7768return f != $ac_func;
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 eval "$as_ac_var=yes"
7786else
7787 echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790eval "$as_ac_var=no"
7791fi
7792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793fi
7794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7796if test `eval echo '${'$as_ac_var'}'` = yes; then
7797 cat >>confdefs.h <<_ACEOF
7798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7799_ACEOF
252b5132 7800
252b5132
RH
7801fi
7802done
7803
7804 fi
7805 if test "${ac_cv_func_stpcpy}" = "yes"; then
13b2be9c
DJ
7806
7807cat >>confdefs.h <<\_ACEOF
252b5132 7808#define HAVE_STPCPY 1
13b2be9c 7809_ACEOF
252b5132
RH
7810
7811 fi
7812
7813 if test $ac_cv_header_locale_h = yes; then
13b2be9c
DJ
7814 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7815echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7816if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 cat >conftest.$ac_ext <<_ACEOF
7820#line $LINENO "configure"
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
252b5132 7826#include <locale.h>
13b2be9c
DJ
7827int
7828main ()
7829{
252b5132 7830return LC_MESSAGES
13b2be9c
DJ
7831 ;
7832 return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext conftest$ac_exeext
7836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
252b5132
RH
7847 am_cv_val_LC_MESSAGES=yes
7848else
13b2be9c
DJ
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852am_cv_val_LC_MESSAGES=no
252b5132 7853fi
13b2be9c 7854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 7855fi
13b2be9c
DJ
7856echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7857echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c8615825 7858 if test $am_cv_val_LC_MESSAGES = yes; then
13b2be9c
DJ
7859
7860cat >>confdefs.h <<\_ACEOF
252b5132 7861#define HAVE_LC_MESSAGES 1
13b2be9c 7862_ACEOF
252b5132
RH
7863
7864 fi
7865 fi
13b2be9c
DJ
7866 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7867echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7868 # Check whether --enable-nls or --disable-nls was given.
7869if test "${enable_nls+set}" = set; then
7870 enableval="$enable_nls"
7871 USE_NLS=$enableval
7872else
7873 USE_NLS=yes
13b2be9c
DJ
7874fi;
7875 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7876echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 7877
252b5132
RH
7878
7879 USE_INCLUDED_LIBINTL=no
7880
7881 if test "$USE_NLS" = "yes"; then
13b2be9c
DJ
7882
7883cat >>confdefs.h <<\_ACEOF
252b5132 7884#define ENABLE_NLS 1
13b2be9c 7885_ACEOF
252b5132 7886
13b2be9c
DJ
7887 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7888echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7889
7890# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7891if test "${with_included_gettext+set}" = set; then
7892 withval="$with_included_gettext"
7893 nls_cv_force_use_gnu_gettext=$withval
7894else
7895 nls_cv_force_use_gnu_gettext=no
13b2be9c
DJ
7896fi;
7897 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7898echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7899
7900 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7901 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7902 nls_cv_header_intl=
7903 nls_cv_header_libgt=
7904 CATOBJEXT=NONE
7905
13b2be9c
DJ
7906 if test "${ac_cv_header_libintl_h+set}" = set; then
7907 echo "$as_me:$LINENO: checking for libintl.h" >&5
7908echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7909if test "${ac_cv_header_libintl_h+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911fi
7912echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7913echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7914else
7915 # Is the header compilable?
7916echo "$as_me:$LINENO: checking libintl.h usability" >&5
7917echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7918cat >conftest.$ac_ext <<_ACEOF
7919#line $LINENO "configure"
7920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
7925$ac_includes_default
9b2b7d69 7926#include <libintl.h>
13b2be9c
DJ
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_header_compiler=yes
7941else
7942 echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945ac_header_compiler=no
7946fi
7947rm -f conftest.$ac_objext conftest.$ac_ext
7948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7949echo "${ECHO_T}$ac_header_compiler" >&6
7950
7951# Is the header present?
7952echo "$as_me:$LINENO: checking libintl.h presence" >&5
7953echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7954cat >conftest.$ac_ext <<_ACEOF
7955#line $LINENO "configure"
7956/* confdefs.h. */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h. */
7961#include <libintl.h>
7962_ACEOF
7963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } >/dev/null; then
7971 if test -s conftest.err; then
7972 ac_cpp_err=$ac_c_preproc_warn_flag
7973 else
7974 ac_cpp_err=
7975 fi
252b5132 7976else
13b2be9c
DJ
7977 ac_cpp_err=yes
7978fi
7979if test -z "$ac_cpp_err"; then
7980 ac_header_preproc=yes
7981else
7982 echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_header_preproc=no
7986fi
7987rm -f conftest.err conftest.$ac_ext
7988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7989echo "${ECHO_T}$ac_header_preproc" >&6
7990
7991# So? What about this header?
7992case $ac_header_compiler:$ac_header_preproc in
7993 yes:no )
7994 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7995echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7997echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7998 (
7999 cat <<\_ASBOX
8000## ------------------------------------ ##
8001## Report this to bug-autoconf@gnu.org. ##
8002## ------------------------------------ ##
8003_ASBOX
8004 ) |
8005 sed "s/^/$as_me: WARNING: /" >&2
8006 ;;
8007 no:yes )
8008 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8009echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8011echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8013echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8014 (
8015 cat <<\_ASBOX
8016## ------------------------------------ ##
8017## Report this to bug-autoconf@gnu.org. ##
8018## ------------------------------------ ##
8019_ASBOX
8020 ) |
8021 sed "s/^/$as_me: WARNING: /" >&2
8022 ;;
8023esac
8024echo "$as_me:$LINENO: checking for libintl.h" >&5
8025echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8026if test "${ac_cv_header_libintl_h+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 ac_cv_header_libintl_h=$ac_header_preproc
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8032echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8033
8034fi
8035if test $ac_cv_header_libintl_h = yes; then
8036 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8037echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8038if test "${gt_cv_func_gettext_libc+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 cat >conftest.$ac_ext <<_ACEOF
8042#line $LINENO "configure"
8043/* confdefs.h. */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h. */
252b5132 8048#include <libintl.h>
13b2be9c
DJ
8049int
8050main ()
8051{
252b5132 8052return (int) gettext ("")
13b2be9c
DJ
8053 ;
8054 return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext conftest$ac_exeext
8058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
252b5132
RH
8069 gt_cv_func_gettext_libc=yes
8070else
13b2be9c
DJ
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074gt_cv_func_gettext_libc=no
252b5132 8075fi
13b2be9c 8076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8077fi
13b2be9c
DJ
8078echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8079echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
8080
8081 if test "$gt_cv_func_gettext_libc" != "yes"; then
13b2be9c
DJ
8082 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8083echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8084if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8086else
13b2be9c 8087 ac_check_lib_save_LIBS=$LIBS
252b5132 8088LIBS="-lintl $LIBS"
13b2be9c
DJ
8089cat >conftest.$ac_ext <<_ACEOF
8090#line $LINENO "configure"
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096
252b5132 8097/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8098#ifdef __cplusplus
8099extern "C"
8100#endif
252b5132 8101/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8102 builtin and then its argument prototype would still apply. */
8103char bindtextdomain ();
8104int
8105main ()
8106{
8107bindtextdomain ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_lib_intl_bindtextdomain=yes
8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129ac_cv_lib_intl_bindtextdomain=no
8130fi
8131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132LIBS=$ac_check_lib_save_LIBS
8133fi
8134echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8135echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8136if test $ac_cv_lib_intl_bindtextdomain = yes; then
8137 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8138echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8139if test "${gt_cv_func_gettext_libintl+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142 cat >conftest.$ac_ext <<_ACEOF
8143#line $LINENO "configure"
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
d6d788bd 8149
13b2be9c
DJ
8150int
8151main ()
8152{
252b5132 8153return (int) gettext ("")
13b2be9c
DJ
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
252b5132
RH
8170 gt_cv_func_gettext_libintl=yes
8171else
13b2be9c
DJ
8172 echo "$as_me: failed program was:" >&5
8173sed 's/^/| /' conftest.$ac_ext >&5
8174
8175gt_cv_func_gettext_libintl=no
252b5132 8176fi
13b2be9c 8177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8178fi
13b2be9c
DJ
8179echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8180echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
8181fi
8182
8183 fi
8184
8185 if test "$gt_cv_func_gettext_libc" = "yes" \
8186 || test "$gt_cv_func_gettext_libintl" = "yes"; then
13b2be9c
DJ
8187
8188cat >>confdefs.h <<\_ACEOF
252b5132 8189#define HAVE_GETTEXT 1
13b2be9c 8190_ACEOF
252b5132
RH
8191
8192 # Extract the first word of "msgfmt", so it can be a program name with args.
8193set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8194echo "$as_me:$LINENO: checking for $ac_word" >&5
8195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8196if test "${ac_cv_path_MSGFMT+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8198else
8199 case "$MSGFMT" in
8200 /*)
8201 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8202 ;;
8203 *)
8204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8205 for ac_dir in $PATH; do
8206 test -z "$ac_dir" && ac_dir=.
8207 if test -f $ac_dir/$ac_word; then
8208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8209 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8210 break
8211 fi
8212 fi
8213 done
8214 IFS="$ac_save_ifs"
8215 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8216 ;;
8217esac
8218fi
8219MSGFMT="$ac_cv_path_MSGFMT"
8220if test -n "$MSGFMT"; then
13b2be9c
DJ
8221 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8222echo "${ECHO_T}$MSGFMT" >&6
252b5132 8223else
13b2be9c
DJ
8224 echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6
252b5132
RH
8226fi
8227 if test "$MSGFMT" != "no"; then
13b2be9c
DJ
8228
8229for ac_func in dcgettext
252b5132 8230do
13b2be9c
DJ
8231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8232echo "$as_me:$LINENO: checking for $ac_func" >&5
8233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8234if eval "test \"\${$as_ac_var+set}\" = set"; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 cat >conftest.$ac_ext <<_ACEOF
8238#line $LINENO "configure"
8239/* confdefs.h. */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h. */
252b5132 8244/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8245 which can conflict with char $ac_func (); below.
8246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8247 <limits.h> exists even on freestanding compilers. */
8248#ifdef __STDC__
8249# include <limits.h>
8250#else
8251# include <assert.h>
8252#endif
252b5132 8253/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8254#ifdef __cplusplus
8255extern "C"
8256{
8257#endif
252b5132 8258/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8259 builtin and then its argument prototype would still apply. */
8260char $ac_func ();
252b5132
RH
8261/* The GNU C library defines this for functions which it implements
8262 to always fail with ENOSYS. Some functions are actually named
8263 something starting with __ and the normal name is an alias. */
8264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8265choke me
8266#else
13b2be9c
DJ
8267char (*f) () = $ac_func;
8268#endif
8269#ifdef __cplusplus
8270}
252b5132
RH
8271#endif
8272
13b2be9c
DJ
8273int
8274main ()
8275{
8276return f != $ac_func;
8277 ;
8278 return 0;
8279}
8280_ACEOF
8281rm -f conftest.$ac_objext conftest$ac_exeext
8282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 eval "$as_ac_var=yes"
8294else
8295 echo "$as_me: failed program was:" >&5
8296sed 's/^/| /' conftest.$ac_ext >&5
8297
8298eval "$as_ac_var=no"
8299fi
8300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301fi
8302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8304if test `eval echo '${'$as_ac_var'}'` = yes; then
8305 cat >>confdefs.h <<_ACEOF
8306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8307_ACEOF
252b5132 8308
252b5132
RH
8309fi
8310done
8311
8312 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8313set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8314echo "$as_me:$LINENO: checking for $ac_word" >&5
8315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316if test "${ac_cv_path_GMSGFMT+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8318else
13b2be9c
DJ
8319 case $GMSGFMT in
8320 [\\/]* | ?:[\\/]*)
252b5132
RH
8321 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8322 ;;
252b5132 8323 *)
13b2be9c
DJ
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335done
8336done
8337
252b5132
RH
8338 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8339 ;;
8340esac
8341fi
13b2be9c
DJ
8342GMSGFMT=$ac_cv_path_GMSGFMT
8343
252b5132 8344if test -n "$GMSGFMT"; then
13b2be9c
DJ
8345 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8346echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8347else
13b2be9c
DJ
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
252b5132
RH
8350fi
8351
8352 # Extract the first word of "xgettext", so it can be a program name with args.
8353set dummy xgettext; ac_word=$2
13b2be9c
DJ
8354echo "$as_me:$LINENO: checking for $ac_word" >&5
8355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8356if test "${ac_cv_path_XGETTEXT+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8358else
8359 case "$XGETTEXT" in
8360 /*)
8361 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8362 ;;
8363 *)
8364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8365 for ac_dir in $PATH; do
8366 test -z "$ac_dir" && ac_dir=.
8367 if test -f $ac_dir/$ac_word; then
8368 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8369 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8370 break
8371 fi
8372 fi
8373 done
8374 IFS="$ac_save_ifs"
8375 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8376 ;;
8377esac
8378fi
8379XGETTEXT="$ac_cv_path_XGETTEXT"
8380if test -n "$XGETTEXT"; then
13b2be9c
DJ
8381 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8382echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8383else
13b2be9c
DJ
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
252b5132
RH
8386fi
8387
13b2be9c
DJ
8388 cat >conftest.$ac_ext <<_ACEOF
8389#line $LINENO "configure"
8390/* confdefs.h. */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h. */
252b5132 8395
13b2be9c
DJ
8396int
8397main ()
8398{
252b5132
RH
8399extern int _nl_msg_cat_cntr;
8400 return _nl_msg_cat_cntr
13b2be9c
DJ
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
252b5132
RH
8417 CATOBJEXT=.gmo
8418 DATADIRNAME=share
8419else
13b2be9c
DJ
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
8423CATOBJEXT=.mo
252b5132
RH
8424 DATADIRNAME=lib
8425fi
13b2be9c 8426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8427 INSTOBJEXT=.mo
8428 fi
8429 fi
13b2be9c 8430
6840198f 8431fi
252b5132 8432
d6d788bd 8433
13b2be9c
DJ
8434
8435
252b5132
RH
8436 if test "$CATOBJEXT" = "NONE"; then
8437 nls_cv_use_gnu_gettext=yes
8438 fi
8439 fi
8440
8441 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8442 INTLOBJS="\$(GETTOBJS)"
8443 # Extract the first word of "msgfmt", so it can be a program name with args.
8444set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8445echo "$as_me:$LINENO: checking for $ac_word" >&5
8446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8447if test "${ac_cv_path_MSGFMT+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8449else
8450 case "$MSGFMT" in
8451 /*)
8452 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8453 ;;
8454 *)
8455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8456 for ac_dir in $PATH; do
8457 test -z "$ac_dir" && ac_dir=.
8458 if test -f $ac_dir/$ac_word; then
8459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8460 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8461 break
8462 fi
8463 fi
8464 done
8465 IFS="$ac_save_ifs"
8466 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8467 ;;
8468esac
8469fi
8470MSGFMT="$ac_cv_path_MSGFMT"
8471if test -n "$MSGFMT"; then
13b2be9c
DJ
8472 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8473echo "${ECHO_T}$MSGFMT" >&6
252b5132 8474else
13b2be9c
DJ
8475 echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
252b5132
RH
8477fi
8478
8479 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8480set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8481echo "$as_me:$LINENO: checking for $ac_word" >&5
8482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8483if test "${ac_cv_path_GMSGFMT+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8485else
13b2be9c
DJ
8486 case $GMSGFMT in
8487 [\\/]* | ?:[\\/]*)
252b5132
RH
8488 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8489 ;;
252b5132 8490 *)
13b2be9c
DJ
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502done
8503done
8504
252b5132
RH
8505 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8506 ;;
8507esac
8508fi
13b2be9c
DJ
8509GMSGFMT=$ac_cv_path_GMSGFMT
8510
252b5132 8511if test -n "$GMSGFMT"; then
13b2be9c
DJ
8512 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8513echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8514else
13b2be9c
DJ
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
252b5132
RH
8517fi
8518
8519 # Extract the first word of "xgettext", so it can be a program name with args.
8520set dummy xgettext; ac_word=$2
13b2be9c
DJ
8521echo "$as_me:$LINENO: checking for $ac_word" >&5
8522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523if test "${ac_cv_path_XGETTEXT+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8525else
8526 case "$XGETTEXT" in
8527 /*)
8528 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8529 ;;
8530 *)
8531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8532 for ac_dir in $PATH; do
8533 test -z "$ac_dir" && ac_dir=.
8534 if test -f $ac_dir/$ac_word; then
8535 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8536 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8537 break
8538 fi
8539 fi
8540 done
8541 IFS="$ac_save_ifs"
8542 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8543 ;;
8544esac
8545fi
8546XGETTEXT="$ac_cv_path_XGETTEXT"
8547if test -n "$XGETTEXT"; then
13b2be9c
DJ
8548 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8549echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8550else
13b2be9c
DJ
8551 echo "$as_me:$LINENO: result: no" >&5
8552echo "${ECHO_T}no" >&6
252b5132
RH
8553fi
8554
13b2be9c 8555
252b5132
RH
8556 USE_INCLUDED_LIBINTL=yes
8557 CATOBJEXT=.gmo
8558 INSTOBJEXT=.mo
8559 DATADIRNAME=share
8560 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8561 INTLLIBS=$INTLDEPS
8562 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8563 nls_cv_header_intl=libintl.h
8564 nls_cv_header_libgt=libgettext.h
8565 fi
8566
8567 if test "$XGETTEXT" != ":"; then
8568 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8569 : ;
8570 else
13b2be9c
DJ
8571 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8572echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8573 XGETTEXT=":"
8574 fi
8575 fi
8576
8577 # We need to process the po/ directory.
8578 POSUB=po
8579 else
8580 DATADIRNAME=share
8581 nls_cv_header_intl=libintl.h
8582 nls_cv_header_libgt=libgettext.h
8583 fi
8584
8585 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8586 # because some of the sources are only built for this goal.
8587 if test "$PACKAGE" = gettext; then
8588 USE_NLS=yes
8589 USE_INCLUDED_LIBINTL=yes
8590 fi
8591
8592 for lang in $ALL_LINGUAS; do
8593 GMOFILES="$GMOFILES $lang.gmo"
8594 POFILES="$POFILES $lang.po"
8595 done
8596
13b2be9c
DJ
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
d6d788bd 8609
252b5132
RH
8610 if test "x$CATOBJEXT" != "x"; then
8611 if test "x$ALL_LINGUAS" = "x"; then
8612 LINGUAS=
8613 else
13b2be9c
DJ
8614 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8615echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8616 NEW_LINGUAS=
8617 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8618 case "$ALL_LINGUAS" in
8619 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8620 esac
8621 done
8622 LINGUAS=$NEW_LINGUAS
13b2be9c
DJ
8623 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8624echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8625 fi
8626
8627 if test -n "$LINGUAS"; then
8628 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8629 fi
8630 fi
8631
8632 if test $ac_cv_header_locale_h = yes; then
8633 INCLUDE_LOCALE_H="#include <locale.h>"
8634 else
8635 INCLUDE_LOCALE_H="\
8636/* The system does not provide the header <locale.h>. Take care yourself. */"
8637 fi
13b2be9c 8638
252b5132
RH
8639
8640 if test -f $srcdir/po2tbl.sed.in; then
8641 if test "$CATOBJEXT" = ".cat"; then
13b2be9c
DJ
8642 if test "${ac_cv_header_linux_version_h+set}" = set; then
8643 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8644echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8645if test "${ac_cv_header_linux_version_h+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647fi
8648echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8649echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8650else
8651 # Is the header compilable?
8652echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8653echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8654cat >conftest.$ac_ext <<_ACEOF
8655#line $LINENO "configure"
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661$ac_includes_default
9b2b7d69 8662#include <linux/version.h>
13b2be9c
DJ
8663_ACEOF
8664rm -f conftest.$ac_objext
8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_header_compiler=yes
8677else
8678 echo "$as_me: failed program was:" >&5
8679sed 's/^/| /' conftest.$ac_ext >&5
8680
8681ac_header_compiler=no
8682fi
8683rm -f conftest.$ac_objext conftest.$ac_ext
8684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8685echo "${ECHO_T}$ac_header_compiler" >&6
8686
8687# Is the header present?
8688echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8689echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8690cat >conftest.$ac_ext <<_ACEOF
8691#line $LINENO "configure"
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697#include <linux/version.h>
8698_ACEOF
8699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } >/dev/null; then
8707 if test -s conftest.err; then
8708 ac_cpp_err=$ac_c_preproc_warn_flag
8709 else
8710 ac_cpp_err=
8711 fi
252b5132 8712else
13b2be9c
DJ
8713 ac_cpp_err=yes
8714fi
8715if test -z "$ac_cpp_err"; then
8716 ac_header_preproc=yes
8717else
8718 echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_header_preproc=no
8722fi
8723rm -f conftest.err conftest.$ac_ext
8724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725echo "${ECHO_T}$ac_header_preproc" >&6
8726
8727# So? What about this header?
8728case $ac_header_compiler:$ac_header_preproc in
8729 yes:no )
8730 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8731echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8733echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8734 (
8735 cat <<\_ASBOX
8736## ------------------------------------ ##
8737## Report this to bug-autoconf@gnu.org. ##
8738## ------------------------------------ ##
8739_ASBOX
8740 ) |
8741 sed "s/^/$as_me: WARNING: /" >&2
8742 ;;
8743 no:yes )
8744 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8745echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8747echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8749echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8750 (
8751 cat <<\_ASBOX
8752## ------------------------------------ ##
8753## Report this to bug-autoconf@gnu.org. ##
8754## ------------------------------------ ##
8755_ASBOX
8756 ) |
8757 sed "s/^/$as_me: WARNING: /" >&2
8758 ;;
8759esac
8760echo "$as_me:$LINENO: checking for linux/version.h" >&5
8761echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8762if test "${ac_cv_header_linux_version_h+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 8766fi
13b2be9c
DJ
8767echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8768echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8769
252b5132 8770fi
13b2be9c 8771if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8772 msgformat=linux
8773else
13b2be9c 8774 msgformat=xopen
252b5132
RH
8775fi
8776
d6d788bd 8777
13b2be9c 8778
252b5132
RH
8779 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8780 fi
8781 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8782 $srcdir/po2tbl.sed.in > po2tbl.sed
8783 fi
8784
8785 if test "$PACKAGE" = "gettext"; then
8786 GT_NO="#NO#"
8787 GT_YES=
8788 else
8789 GT_NO=
8790 GT_YES="#YES#"
8791 fi
13b2be9c
DJ
8792
8793
252b5132
RH
8794
8795 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
13b2be9c 8796
252b5132
RH
8797
8798 l=
13b2be9c 8799
252b5132 8800
fcd8210c 8801 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8802 test -d po || mkdir po
8803 if test "x$srcdir" != "x."; then
8804 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8805 posrcprefix="$srcdir/"
8806 else
8807 posrcprefix="../$srcdir/"
8808 fi
8809 else
8810 posrcprefix="../"
8811 fi
8812 rm -f po/POTFILES
8813 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8814 < $srcdir/po/POTFILES.in > po/POTFILES
8815 fi
252b5132 8816
13b2be9c
DJ
8817
8818echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8819echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8820 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8821if test "${enable_maintainer_mode+set}" = set; then
8822 enableval="$enable_maintainer_mode"
8823 USE_MAINTAINER_MODE=$enableval
8824else
8825 USE_MAINTAINER_MODE=no
13b2be9c
DJ
8826fi;
8827 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8828echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 8829
252b5132
RH
8830
8831if test $USE_MAINTAINER_MODE = yes; then
8832 MAINTAINER_MODE_TRUE=
c8615825
AM
8833 MAINTAINER_MODE_FALSE='#'
8834else
8835 MAINTAINER_MODE_TRUE='#'
8836 MAINTAINER_MODE_FALSE=
8837fi
13b2be9c 8838
c8615825 8839 MAINT=$MAINTAINER_MODE_TRUE
9b2b7d69
MM
8840
8841
8842
8843
8844
8845
13b2be9c
DJ
8846
8847
8848
8849
8850
8851
8852
8853for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 8854do
13b2be9c
DJ
8855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8856if eval "test \"\${$as_ac_Header+set}\" = set"; then
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861fi
8862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8864else
8865 # Is the header compilable?
8866echo "$as_me:$LINENO: checking $ac_header usability" >&5
8867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8868cat >conftest.$ac_ext <<_ACEOF
8869#line $LINENO "configure"
8870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
8875$ac_includes_default
8876#include <$ac_header>
8877_ACEOF
8878rm -f conftest.$ac_objext
8879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8880 (eval $ac_compile) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_header_compiler=yes
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895ac_header_compiler=no
8896fi
8897rm -f conftest.$ac_objext conftest.$ac_ext
8898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8899echo "${ECHO_T}$ac_header_compiler" >&6
8900
8901# Is the header present?
8902echo "$as_me:$LINENO: checking $ac_header presence" >&5
8903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8904cat >conftest.$ac_ext <<_ACEOF
8905#line $LINENO "configure"
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911#include <$ac_header>
8912_ACEOF
8913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } >/dev/null; then
8921 if test -s conftest.err; then
8922 ac_cpp_err=$ac_c_preproc_warn_flag
8923 else
8924 ac_cpp_err=
8925 fi
9b2b7d69 8926else
13b2be9c
DJ
8927 ac_cpp_err=yes
8928fi
8929if test -z "$ac_cpp_err"; then
8930 ac_header_preproc=yes
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_header_preproc=no
8936fi
8937rm -f conftest.err conftest.$ac_ext
8938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939echo "${ECHO_T}$ac_header_preproc" >&6
8940
8941# So? What about this header?
8942case $ac_header_compiler:$ac_header_preproc in
8943 yes:no )
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8948 (
8949 cat <<\_ASBOX
8950## ------------------------------------ ##
8951## Report this to bug-autoconf@gnu.org. ##
8952## ------------------------------------ ##
8953_ASBOX
8954 ) |
8955 sed "s/^/$as_me: WARNING: /" >&2
8956 ;;
8957 no:yes )
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8964 (
8965 cat <<\_ASBOX
8966## ------------------------------------ ##
8967## Report this to bug-autoconf@gnu.org. ##
8968## ------------------------------------ ##
8969_ASBOX
8970 ) |
8971 sed "s/^/$as_me: WARNING: /" >&2
8972 ;;
8973esac
8974echo "$as_me:$LINENO: checking for $ac_header" >&5
8975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 eval "$as_ac_Header=$ac_header_preproc"
252b5132 8980fi
13b2be9c
DJ
8981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8983
252b5132 8984fi
13b2be9c
DJ
8985if test `eval echo '${'$as_ac_Header'}'` = yes; then
8986 cat >>confdefs.h <<_ACEOF
8987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8988_ACEOF
8989
252b5132 8990fi
13b2be9c 8991
252b5132
RH
8992done
8993
d6d788bd 8994
252b5132
RH
8995# Put this here so that autoconf's "cross-compiling" message doesn't confuse
8996# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
8997echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
8998echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
8999if test "${host}" = "${target}"; then
9000 cross_gas=no
9001else
9002 cross_gas=yes
13b2be9c
DJ
9003
9004cat >>confdefs.h <<\_ACEOF
252b5132 9005#define CROSS_COMPILE 1
13b2be9c 9006_ACEOF
252b5132
RH
9007
9008fi
13b2be9c
DJ
9009echo "$as_me:$LINENO: result: $cross_gas" >&5
9010echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
9011
9012# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9013# for constant arguments. Useless!
13b2be9c
DJ
9014echo "$as_me:$LINENO: checking for working alloca.h" >&5
9015echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9016if test "${ac_cv_working_alloca_h+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019 cat >conftest.$ac_ext <<_ACEOF
9020#line $LINENO "configure"
9021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
252b5132 9026#include <alloca.h>
13b2be9c
DJ
9027int
9028main ()
9029{
9030char *p = (char *) alloca (2 * sizeof (int));
9031 ;
9032 return 0;
9033}
9034_ACEOF
9035rm -f conftest.$ac_objext conftest$ac_exeext
9036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_working_alloca_h=yes
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052ac_cv_working_alloca_h=no
9053fi
9054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9055fi
9056echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9057echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9058if test $ac_cv_working_alloca_h = yes; then
9059
9060cat >>confdefs.h <<\_ACEOF
252b5132 9061#define HAVE_ALLOCA_H 1
13b2be9c 9062_ACEOF
252b5132
RH
9063
9064fi
9065
13b2be9c
DJ
9066echo "$as_me:$LINENO: checking for alloca" >&5
9067echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9068if test "${ac_cv_func_alloca_works+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9070else
13b2be9c
DJ
9071 cat >conftest.$ac_ext <<_ACEOF
9072#line $LINENO "configure"
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
252b5132
RH
9078#ifdef __GNUC__
9079# define alloca __builtin_alloca
9080#else
9081# ifdef _MSC_VER
9082# include <malloc.h>
9083# define alloca _alloca
9084# else
9085# if HAVE_ALLOCA_H
9086# include <alloca.h>
9087# else
9088# ifdef _AIX
9089 #pragma alloca
9090# else
9091# ifndef alloca /* predefined by HP cc +Olibcalls */
9092char *alloca ();
9093# endif
9094# endif
9095# endif
9096# endif
9097#endif
9098
13b2be9c
DJ
9099int
9100main ()
9101{
9102char *p = (char *) alloca (1);
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
252b5132
RH
9119 ac_cv_func_alloca_works=yes
9120else
13b2be9c
DJ
9121 echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
9124ac_cv_func_alloca_works=no
252b5132 9125fi
13b2be9c 9126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9127fi
13b2be9c
DJ
9128echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9129echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9130
252b5132 9131if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 9132
13b2be9c
DJ
9133cat >>confdefs.h <<\_ACEOF
9134#define HAVE_ALLOCA 1
9135_ACEOF
9b2b7d69 9136
13b2be9c 9137else
c8615825 9138 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
9139# that cause trouble. Some versions do not even contain alloca or
9140# contain a buggy version. If you still want to use their alloca,
9141# use ar to extract alloca.o from them instead of compiling alloca.c.
9142
9143ALLOCA=alloca.$ac_objext
9144
9145cat >>confdefs.h <<\_ACEOF
252b5132 9146#define C_ALLOCA 1
13b2be9c 9147_ACEOF
252b5132 9148
d6d788bd 9149
13b2be9c
DJ
9150echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9151echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9152if test "${ac_cv_os_cray+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9154else
13b2be9c
DJ
9155 cat >conftest.$ac_ext <<_ACEOF
9156#line $LINENO "configure"
9157/* confdefs.h. */
9158_ACEOF
9159cat confdefs.h >>conftest.$ac_ext
9160cat >>conftest.$ac_ext <<_ACEOF
9161/* end confdefs.h. */
252b5132
RH
9162#if defined(CRAY) && ! defined(CRAY2)
9163webecray
9164#else
9165wenotbecray
9166#endif
9167
13b2be9c 9168_ACEOF
252b5132 9169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 9170 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9171 ac_cv_os_cray=yes
9172else
252b5132
RH
9173 ac_cv_os_cray=no
9174fi
9175rm -f conftest*
9176
9177fi
13b2be9c
DJ
9178echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9179echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 9180if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
9181 for ac_func in _getb67 GETB67 getb67; do
9182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9183echo "$as_me:$LINENO: checking for $ac_func" >&5
9184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9185if eval "test \"\${$as_ac_var+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188 cat >conftest.$ac_ext <<_ACEOF
9189#line $LINENO "configure"
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
252b5132 9195/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9196 which can conflict with char $ac_func (); below.
9197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198 <limits.h> exists even on freestanding compilers. */
9199#ifdef __STDC__
9200# include <limits.h>
9201#else
9202# include <assert.h>
9203#endif
252b5132 9204/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9205#ifdef __cplusplus
9206extern "C"
9207{
9208#endif
252b5132 9209/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9210 builtin and then its argument prototype would still apply. */
9211char $ac_func ();
252b5132
RH
9212/* The GNU C library defines this for functions which it implements
9213 to always fail with ENOSYS. Some functions are actually named
9214 something starting with __ and the normal name is an alias. */
9215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9216choke me
9217#else
13b2be9c
DJ
9218char (*f) () = $ac_func;
9219#endif
9220#ifdef __cplusplus
9221}
252b5132
RH
9222#endif
9223
13b2be9c
DJ
9224int
9225main ()
9226{
9227return f != $ac_func;
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232rm -f conftest.$ac_objext conftest$ac_exeext
9233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 eval "$as_ac_var=yes"
9245else
9246 echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249eval "$as_ac_var=no"
9250fi
9251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9252fi
9253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9255if test `eval echo '${'$as_ac_var'}'` = yes; then
9256
9257cat >>confdefs.h <<_ACEOF
252b5132 9258#define CRAY_STACKSEG_END $ac_func
13b2be9c 9259_ACEOF
252b5132 9260
13b2be9c 9261 break
252b5132
RH
9262fi
9263
13b2be9c 9264 done
252b5132
RH
9265fi
9266
13b2be9c
DJ
9267echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9268echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9269if test "${ac_cv_c_stack_direction+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9271else
9272 if test "$cross_compiling" = yes; then
9273 ac_cv_c_stack_direction=0
9274else
13b2be9c
DJ
9275 cat >conftest.$ac_ext <<_ACEOF
9276#line $LINENO "configure"
9277/* confdefs.h. */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h. */
9282int
252b5132
RH
9283find_stack_direction ()
9284{
9285 static char *addr = 0;
9286 auto char dummy;
9287 if (addr == 0)
9288 {
9289 addr = &dummy;
9290 return find_stack_direction ();
9291 }
9292 else
9293 return (&dummy > addr) ? 1 : -1;
9294}
13b2be9c
DJ
9295
9296int
252b5132
RH
9297main ()
9298{
13b2be9c 9299 exit (find_stack_direction () < 0);
252b5132 9300}
13b2be9c
DJ
9301_ACEOF
9302rm -f conftest$ac_exeext
9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
252b5132
RH
9313 ac_cv_c_stack_direction=1
9314else
13b2be9c
DJ
9315 echo "$as_me: program exited with status $ac_status" >&5
9316echo "$as_me: failed program was:" >&5
9317sed 's/^/| /' conftest.$ac_ext >&5
9318
9319( exit $ac_status )
9320ac_cv_c_stack_direction=-1
252b5132 9321fi
13b2be9c 9322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9323fi
252b5132 9324fi
13b2be9c
DJ
9325echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9326echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9327
13b2be9c 9328cat >>confdefs.h <<_ACEOF
252b5132 9329#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
9330_ACEOF
9331
252b5132
RH
9332
9333fi
9334
13b2be9c
DJ
9335echo "$as_me:$LINENO: checking for inline" >&5
9336echo $ECHO_N "checking for inline... $ECHO_C" >&6
9337if test "${ac_cv_c_inline+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9339else
9340 ac_cv_c_inline=no
9341for ac_kw in inline __inline__ __inline; do
13b2be9c
DJ
9342 cat >conftest.$ac_ext <<_ACEOF
9343#line $LINENO "configure"
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349#ifndef __cplusplus
9350typedef int foo_t;
9351static $ac_kw foo_t static_foo () {return 0; }
9352$ac_kw foo_t foo () {return 0; }
9353#endif
252b5132 9354
13b2be9c
DJ
9355_ACEOF
9356rm -f conftest.$ac_objext
9357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9358 (eval $ac_compile) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -s conftest.$ac_objext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
252b5132
RH
9368 ac_cv_c_inline=$ac_kw; break
9369else
13b2be9c
DJ
9370 echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
252b5132 9373fi
13b2be9c 9374rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9375done
9376
9377fi
13b2be9c
DJ
9378echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9379echo "${ECHO_T}$ac_cv_c_inline" >&6
9380case $ac_cv_c_inline in
252b5132 9381 inline | yes) ;;
13b2be9c
DJ
9382 no)
9383cat >>confdefs.h <<\_ACEOF
9384#define inline
9385_ACEOF
252b5132 9386 ;;
13b2be9c 9387 *) cat >>confdefs.h <<_ACEOF
252b5132 9388#define inline $ac_cv_c_inline
13b2be9c 9389_ACEOF
252b5132
RH
9390 ;;
9391esac
9392
6840198f 9393
d6d788bd 9394# VMS doesn't have unlink.
13b2be9c
DJ
9395
9396
252b5132
RH
9397for ac_func in unlink remove
9398do
13b2be9c
DJ
9399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400echo "$as_me:$LINENO: checking for $ac_func" >&5
9401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9402if eval "test \"\${$as_ac_var+set}\" = set"; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 cat >conftest.$ac_ext <<_ACEOF
9406#line $LINENO "configure"
9407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
252b5132 9412/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9413 which can conflict with char $ac_func (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9416#ifdef __STDC__
9417# include <limits.h>
9418#else
9419# include <assert.h>
9420#endif
252b5132 9421/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9422#ifdef __cplusplus
9423extern "C"
9424{
9425#endif
252b5132 9426/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9427 builtin and then its argument prototype would still apply. */
9428char $ac_func ();
252b5132
RH
9429/* The GNU C library defines this for functions which it implements
9430 to always fail with ENOSYS. Some functions are actually named
9431 something starting with __ and the normal name is an alias. */
9432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9433choke me
9434#else
13b2be9c
DJ
9435char (*f) () = $ac_func;
9436#endif
9437#ifdef __cplusplus
9438}
252b5132
RH
9439#endif
9440
13b2be9c
DJ
9441int
9442main ()
9443{
9444return f != $ac_func;
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
9450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451 (eval $ac_link) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 eval "$as_ac_var=yes"
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466eval "$as_ac_var=no"
9467fi
9468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9469fi
9470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9472if test `eval echo '${'$as_ac_var'}'` = yes; then
9473 cat >>confdefs.h <<_ACEOF
9474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9475_ACEOF
252b5132 9476 break
252b5132
RH
9477fi
9478done
9479
6840198f 9480
d6d788bd 9481# Some systems don't have sbrk().
13b2be9c 9482
252b5132
RH
9483for ac_func in sbrk
9484do
13b2be9c
DJ
9485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486echo "$as_me:$LINENO: checking for $ac_func" >&5
9487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490else
9491 cat >conftest.$ac_ext <<_ACEOF
9492#line $LINENO "configure"
9493/* confdefs.h. */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
9497/* end confdefs.h. */
252b5132 9498/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9499 which can conflict with char $ac_func (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9502#ifdef __STDC__
9503# include <limits.h>
9504#else
9505# include <assert.h>
9506#endif
252b5132 9507/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9508#ifdef __cplusplus
9509extern "C"
9510{
9511#endif
252b5132 9512/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9513 builtin and then its argument prototype would still apply. */
9514char $ac_func ();
252b5132
RH
9515/* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9519choke me
9520#else
13b2be9c
DJ
9521char (*f) () = $ac_func;
9522#endif
9523#ifdef __cplusplus
9524}
252b5132
RH
9525#endif
9526
13b2be9c
DJ
9527int
9528main ()
9529{
9530return f != $ac_func;
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 eval "$as_ac_var=yes"
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
9552eval "$as_ac_var=no"
9553fi
9554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9555fi
9556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9558if test `eval echo '${'$as_ac_var'}'` = yes; then
9559 cat >>confdefs.h <<_ACEOF
9560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9561_ACEOF
252b5132 9562
252b5132
RH
9563fi
9564done
9565
d6d788bd 9566
39bec121
TW
9567# do we need the math library?
9568case "${need_libm}" in
13b2be9c 9569yes)
39bec121 9570 LIBM=
f9c19112 9571case $host in
d64552c5 9572*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
9573 # These system don't have libm
9574 ;;
9575*-ncr-sysv4.3*)
13b2be9c
DJ
9576 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
9577echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
9578if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9580else
13b2be9c 9581 ac_check_lib_save_LIBS=$LIBS
39bec121 9582LIBS="-lmw $LIBS"
13b2be9c
DJ
9583cat >conftest.$ac_ext <<_ACEOF
9584#line $LINENO "configure"
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590
39bec121 9591/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9592#ifdef __cplusplus
9593extern "C"
9594#endif
39bec121 9595/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9596 builtin and then its argument prototype would still apply. */
9597char _mwvalidcheckl ();
9598int
9599main ()
9600{
9601_mwvalidcheckl ();
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_mw__mwvalidcheckl=yes
9619else
9620 echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623ac_cv_lib_mw__mwvalidcheckl=no
9624fi
9625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626LIBS=$ac_check_lib_save_LIBS
9627fi
9628echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9629echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
9630if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 9631 LIBM="-lmw"
39bec121
TW
9632fi
9633
13b2be9c
DJ
9634 echo "$as_me:$LINENO: checking for main in -lm" >&5
9635echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9636if test "${ac_cv_lib_m_main+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9638else
13b2be9c 9639 ac_check_lib_save_LIBS=$LIBS
39bec121 9640LIBS="-lm $LIBS"
13b2be9c
DJ
9641cat >conftest.$ac_ext <<_ACEOF
9642#line $LINENO "configure"
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
39bec121 9648
d6d788bd 9649
13b2be9c
DJ
9650int
9651main ()
9652{
9653main ();
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_lib_m_main=yes
9671else
9672 echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675ac_cv_lib_m_main=no
9676fi
9677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9678LIBS=$ac_check_lib_save_LIBS
9679fi
9680echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9681echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9682if test $ac_cv_lib_m_main = yes; then
39bec121 9683 LIBM="$LIBM -lm"
39bec121
TW
9684fi
9685
9686 ;;
9687*)
13b2be9c
DJ
9688 echo "$as_me:$LINENO: checking for main in -lm" >&5
9689echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9690if test "${ac_cv_lib_m_main+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 9692else
13b2be9c 9693 ac_check_lib_save_LIBS=$LIBS
39bec121 9694LIBS="-lm $LIBS"
13b2be9c
DJ
9695cat >conftest.$ac_ext <<_ACEOF
9696#line $LINENO "configure"
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
39bec121 9702
d6d788bd 9703
13b2be9c
DJ
9704int
9705main ()
9706{
9707main ();
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext conftest$ac_exeext
9713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_lib_m_main=yes
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729ac_cv_lib_m_main=no
9730fi
9731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9732LIBS=$ac_check_lib_save_LIBS
9733fi
9734echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9735echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9736if test $ac_cv_lib_m_main = yes; then
39bec121 9737 LIBM="-lm"
39bec121
TW
9738fi
9739
9740 ;;
9741esac
9742
13b2be9c 9743
39bec121
TW
9744 ;;
9745esac
9746
252b5132
RH
9747# Some non-ANSI preprocessors botch requoting inside strings. That's bad
9748# enough, but on some of those systems, the assert macro relies on requoting
9749# working properly!
13b2be9c
DJ
9750echo "$as_me:$LINENO: checking for working assert macro" >&5
9751echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
9752if test "${gas_cv_assert_ok+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755 cat >conftest.$ac_ext <<_ACEOF
9756#line $LINENO "configure"
9757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h. */
252b5132
RH
9762#include <assert.h>
9763#include <stdio.h>
13b2be9c
DJ
9764int
9765main ()
9766{
252b5132
RH
9767
9768/* check for requoting problems */
9769static int a, b, c, d;
9770static char *s;
9771assert (!strcmp(s, "foo bar baz quux"));
9772/* check for newline handling */
9773assert (a == b
9774 || c == d);
9775
13b2be9c
DJ
9776 ;
9777 return 0;
9778}
9779_ACEOF
9780rm -f conftest.$ac_objext conftest$ac_exeext
9781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
252b5132
RH
9792 gas_cv_assert_ok=yes
9793else
13b2be9c
DJ
9794 echo "$as_me: failed program was:" >&5
9795sed 's/^/| /' conftest.$ac_ext >&5
9796
9797gas_cv_assert_ok=no
252b5132 9798fi
13b2be9c 9799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9800fi
13b2be9c
DJ
9801echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
9802echo "${ECHO_T}$gas_cv_assert_ok" >&6
9803test $gas_cv_assert_ok = yes ||
9804cat >>confdefs.h <<\_ACEOF
252b5132 9805#define BROKEN_ASSERT 1
13b2be9c 9806_ACEOF
252b5132 9807
d6d788bd
L
9808
9809
252b5132
RH
9810# On some systems, the system header files may not declare malloc, realloc,
9811# and free. There are places where gas needs these functions to have been
9812# declared -- such as when taking their addresses.
9813gas_test_headers="
9814#ifdef HAVE_MEMORY_H
9815#include <memory.h>
9816#endif
9817#ifdef HAVE_STRING_H
9818#include <string.h>
9819#else
9820#ifdef HAVE_STRINGS_H
9821#include <strings.h>
9822#endif
9823#endif
9824#ifdef HAVE_STDLIB_H
9825#include <stdlib.h>
9826#endif
9827#ifdef HAVE_UNISTD_H
9828#include <unistd.h>
9829#endif
9830"
9831
13b2be9c
DJ
9832echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9833echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9834if test "${gas_cv_decl_needed_strstr+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 cat >conftest.$ac_ext <<_ACEOF
9838#line $LINENO "configure"
9839/* confdefs.h. */
9840_ACEOF
9841cat confdefs.h >>conftest.$ac_ext
9842cat >>conftest.$ac_ext <<_ACEOF
9843/* end confdefs.h. */
252b5132 9844$gas_test_headers
13b2be9c
DJ
9845int
9846main ()
9847{
252b5132
RH
9848
9849typedef char *(*f)();
9850f x;
9851x = (f) strstr;
9852
13b2be9c
DJ
9853 ;
9854 return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
252b5132
RH
9869 gas_cv_decl_needed_strstr=no
9870else
13b2be9c
DJ
9871 echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874gas_cv_decl_needed_strstr=yes
252b5132 9875fi
13b2be9c 9876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9877fi
13b2be9c
DJ
9878echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9879echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
252b5132 9880if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
9881
9882cat >>confdefs.h <<\_ACEOF
252b5132 9883#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
9884_ACEOF
9885
9886fi
9887
9888
9889echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9890echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9891if test "${gas_cv_decl_needed_malloc+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893else
9894 cat >conftest.$ac_ext <<_ACEOF
9895#line $LINENO "configure"
9896/* confdefs.h. */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */
9901$gas_test_headers
9902int
9903main ()
9904{
9905
9906typedef char *(*f)();
9907f x;
9908x = (f) malloc;
9909
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 gas_cv_decl_needed_malloc=no
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931gas_cv_decl_needed_malloc=yes
9932fi
9933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9934fi
9935echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9936echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9937if test $gas_cv_decl_needed_malloc = yes; then
9938
9939cat >>confdefs.h <<\_ACEOF
9940#define NEED_DECLARATION_MALLOC 1
9941_ACEOF
9942
9943fi
9944
9945
9946echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9947echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9948if test "${gas_cv_decl_needed_free+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951 cat >conftest.$ac_ext <<_ACEOF
9952#line $LINENO "configure"
9953/* confdefs.h. */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h. */
9958$gas_test_headers
9959int
9960main ()
9961{
9962
9963typedef void (*f)();
9964f x;
9965x = (f) free;
9966
9967 ;
9968 return 0;
9969}
9970_ACEOF
9971rm -f conftest.$ac_objext conftest$ac_exeext
9972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 gas_cv_decl_needed_free=no
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988gas_cv_decl_needed_free=yes
9989fi
9990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9991fi
9992echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9993echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
9994if test $gas_cv_decl_needed_free = yes; then
9995
9996cat >>confdefs.h <<\_ACEOF
9997#define NEED_DECLARATION_FREE 1
9998_ACEOF
9999
10000fi
10001
10002
10003echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10004echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10005if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 cat >conftest.$ac_ext <<_ACEOF
10009#line $LINENO "configure"
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
10015$gas_test_headers
10016int
10017main ()
10018{
10019
10020typedef char *(*f)();
10021f x;
10022x = (f) sbrk;
10023
10024 ;
10025 return 0;
10026}
10027_ACEOF
10028rm -f conftest.$ac_objext conftest$ac_exeext
10029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 gas_cv_decl_needed_sbrk=no
10041else
10042 echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045gas_cv_decl_needed_sbrk=yes
10046fi
10047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10048fi
10049echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10050echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10051if test $gas_cv_decl_needed_sbrk = yes; then
10052
10053cat >>confdefs.h <<\_ACEOF
10054#define NEED_DECLARATION_SBRK 1
10055_ACEOF
10056
10057fi
10058
10059
10060echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10061echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10062if test "${gas_cv_decl_needed_environ+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064else
10065 cat >conftest.$ac_ext <<_ACEOF
10066#line $LINENO "configure"
10067/* confdefs.h. */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h. */
10072$gas_test_headers
10073int
10074main ()
10075{
10076
10077typedef char **f;
10078f x;
10079x = (f) environ;
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
10086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10087 (eval $ac_link) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 gas_cv_decl_needed_environ=no
10098else
10099 echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102gas_cv_decl_needed_environ=yes
10103fi
10104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10105fi
10106echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10107echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10108if test $gas_cv_decl_needed_environ = yes; then
10109
10110cat >>confdefs.h <<\_ACEOF
10111#define NEED_DECLARATION_ENVIRON 1
10112_ACEOF
10113
10114fi
10115
10116
10117# Does errno.h declare errno, or do we have to add a separate declaration
10118# for it?
10119
10120echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10121echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10122if test "${gas_cv_decl_needed_errno+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124else
10125 cat >conftest.$ac_ext <<_ACEOF
10126#line $LINENO "configure"
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132
10133#ifdef HAVE_ERRNO_H
10134#include <errno.h>
10135#endif
10136
10137int
10138main ()
10139{
10140
10141typedef int f;
10142f x;
10143x = (f) errno;
10144
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149rm -f conftest.$ac_objext conftest$ac_exeext
10150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 gas_cv_decl_needed_errno=no
10162else
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166gas_cv_decl_needed_errno=yes
10167fi
10168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10169fi
10170echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10171echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10172if test $gas_cv_decl_needed_errno = yes; then
10173
10174cat >>confdefs.h <<\_ACEOF
10175#define NEED_DECLARATION_ERRNO 1
10176_ACEOF
10177
10178fi
10179
10180
10181
10182
10183 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10184
10185 ac_config_commands="$ac_config_commands default"
10186
10187
10188cat >confcache <<\_ACEOF
10189# This file is a shell script that caches the results of configure
10190# tests run on this system so they can be shared between configure
10191# scripts and configure runs, see configure's option --config-cache.
10192# It is not useful on other systems. If it contains results you don't
10193# want to keep, you may remove or edit it.
10194#
10195# config.status only pays attention to the cache file if you give it
10196# the --recheck option to rerun configure.
10197#
10198# `ac_cv_env_foo' variables (set or unset) will be overridden when
10199# loading this file, other *unset* `ac_cv_foo' will be assigned the
10200# following values.
10201
10202_ACEOF
10203
10204# The following way of writing the cache mishandles newlines in values,
10205# but we know of no workaround that is simple, portable, and efficient.
10206# So, don't put newlines in cache variables' values.
10207# Ultrix sh set writes to stderr and can't be redirected directly,
10208# and sets the high bit in the cache file unless we assign to the vars.
10209{
10210 (set) 2>&1 |
10211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10212 *ac_space=\ *)
10213 # `set' does not quote correctly, so add quotes (double-quote
10214 # substitution turns \\\\ into \\, and sed turns \\ into \).
10215 sed -n \
10216 "s/'/'\\\\''/g;
10217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10218 ;;
10219 *)
10220 # `set' quotes correctly as required by POSIX, so do not add quotes.
10221 sed -n \
10222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10223 ;;
10224 esac;
10225} |
10226 sed '
10227 t clear
10228 : clear
10229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10230 t end
10231 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10232 : end' >>confcache
10233if diff $cache_file confcache >/dev/null 2>&1; then :; else
10234 if test -w $cache_file; then
10235 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10236 cat confcache >$cache_file
10237 else
10238 echo "not updating unwritable cache $cache_file"
10239 fi
10240fi
10241rm -f confcache
10242
10243test "x$prefix" = xNONE && prefix=$ac_default_prefix
10244# Let make expand exec_prefix.
10245test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10246
10247# VPATH may cause trouble with some makes, so we remove $(srcdir),
10248# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10249# trailing colons and then remove the whole line if VPATH becomes empty
10250# (actually we leave an empty line to preserve line numbers).
10251if test "x$srcdir" = x.; then
10252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10253s/:*\$(srcdir):*/:/;
10254s/:*\${srcdir}:*/:/;
10255s/:*@srcdir@:*/:/;
10256s/^\([^=]*=[ ]*\):*/\1/;
10257s/:*$//;
10258s/^[^=]*=[ ]*$//;
10259}'
10260fi
10261
10262DEFS=-DHAVE_CONFIG_H
10263
10264ac_libobjs=
10265ac_ltlibobjs=
10266for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10267 # 1. Remove the extension, and $U if already installed.
10268 ac_i=`echo "$ac_i" |
10269 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10270 # 2. Add them.
10271 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10272 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10273done
10274LIBOBJS=$ac_libobjs
10275
10276LTLIBOBJS=$ac_ltlibobjs
10277
10278
10279if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10280 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10281Usually this means the macro was only invoked conditionally." >&5
10282echo "$as_me: error: conditional \"AMDEP\" was never defined.
10283Usually this means the macro was only invoked conditionally." >&2;}
10284 { (exit 1); exit 1; }; }
10285fi
10286if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10287 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10288Usually this means the macro was only invoked conditionally." >&5
10289echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10290Usually this means the macro was only invoked conditionally." >&2;}
10291 { (exit 1); exit 1; }; }
10292fi
10293if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10294 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10295Usually this means the macro was only invoked conditionally." >&5
10296echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10297Usually this means the macro was only invoked conditionally." >&2;}
10298 { (exit 1); exit 1; }; }
10299fi
10300
10301: ${CONFIG_STATUS=./config.status}
10302ac_clean_files_save=$ac_clean_files
10303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10304{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10305echo "$as_me: creating $CONFIG_STATUS" >&6;}
10306cat >$CONFIG_STATUS <<_ACEOF
10307#! $SHELL
10308# Generated by $as_me.
10309# Run this file to recreate the current configuration.
10310# Compiler output produced by configure, useful for debugging
10311# configure, is in config.log if it exists.
10312
10313debug=false
10314ac_cs_recheck=false
10315ac_cs_silent=false
10316SHELL=\${CONFIG_SHELL-$SHELL}
10317_ACEOF
10318
10319cat >>$CONFIG_STATUS <<\_ACEOF
10320## --------------------- ##
10321## M4sh Initialization. ##
10322## --------------------- ##
10323
10324# Be Bourne compatible
10325if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10326 emulate sh
10327 NULLCMD=:
10328 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10329 # is contrary to our usage. Disable this feature.
10330 alias -g '${1+"$@"}'='"$@"'
10331elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10332 set -o posix
10333fi
10334
10335# Support unset when possible.
10336if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10337 as_unset=unset
10338else
10339 as_unset=false
10340fi
10341
10342
10343# Work around bugs in pre-3.0 UWIN ksh.
10344$as_unset ENV MAIL MAILPATH
10345PS1='$ '
10346PS2='> '
10347PS4='+ '
10348
10349# NLS nuisances.
10350for as_var in \
10351 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10352 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10353 LC_TELEPHONE LC_TIME
10354do
10355 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10356 eval $as_var=C; export $as_var
10357 else
10358 $as_unset $as_var
10359 fi
10360done
10361
10362# Required to use basename.
10363if expr a : '\(a\)' >/dev/null 2>&1; then
10364 as_expr=expr
10365else
10366 as_expr=false
10367fi
10368
10369if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10370 as_basename=basename
10371else
10372 as_basename=false
10373fi
10374
10375
10376# Name of the executable.
10377as_me=`$as_basename "$0" ||
10378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10379 X"$0" : 'X\(//\)$' \| \
10380 X"$0" : 'X\(/\)$' \| \
10381 . : '\(.\)' 2>/dev/null ||
10382echo X/"$0" |
10383 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10384 /^X\/\(\/\/\)$/{ s//\1/; q; }
10385 /^X\/\(\/\).*/{ s//\1/; q; }
10386 s/.*/./; q'`
10387
10388
10389# PATH needs CR, and LINENO needs CR and PATH.
10390# Avoid depending upon Character Ranges.
10391as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10393as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10394as_cr_digits='0123456789'
10395as_cr_alnum=$as_cr_Letters$as_cr_digits
10396
10397# The user is always right.
10398if test "${PATH_SEPARATOR+set}" != set; then
10399 echo "#! /bin/sh" >conf$$.sh
10400 echo "exit 0" >>conf$$.sh
10401 chmod +x conf$$.sh
10402 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10403 PATH_SEPARATOR=';'
10404 else
10405 PATH_SEPARATOR=:
10406 fi
10407 rm -f conf$$.sh
10408fi
10409
10410
10411 as_lineno_1=$LINENO
10412 as_lineno_2=$LINENO
10413 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10414 test "x$as_lineno_1" != "x$as_lineno_2" &&
10415 test "x$as_lineno_3" = "x$as_lineno_2" || {
10416 # Find who we are. Look in the path if we contain no path at all
10417 # relative or not.
10418 case $0 in
10419 *[\\/]* ) as_myself=$0 ;;
10420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10426done
252b5132 10427
13b2be9c
DJ
10428 ;;
10429 esac
10430 # We did not find ourselves, most probably we were run as `sh COMMAND'
10431 # in which case we are not to be found in the path.
10432 if test "x$as_myself" = x; then
10433 as_myself=$0
10434 fi
10435 if test ! -f "$as_myself"; then
10436 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10437echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10438 { (exit 1); exit 1; }; }
10439 fi
10440 case $CONFIG_SHELL in
10441 '')
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10444do
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for as_base in sh bash ksh sh5; do
10448 case $as_dir in
10449 /*)
10450 if ("$as_dir/$as_base" -c '
10451 as_lineno_1=$LINENO
10452 as_lineno_2=$LINENO
10453 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10454 test "x$as_lineno_1" != "x$as_lineno_2" &&
10455 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10456 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10457 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10458 CONFIG_SHELL=$as_dir/$as_base
10459 export CONFIG_SHELL
10460 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10461 fi;;
10462 esac
10463 done
10464done
10465;;
10466 esac
252b5132 10467
13b2be9c
DJ
10468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10469 # uniformly replaced by the line number. The first 'sed' inserts a
10470 # line-number line before each line; the second 'sed' does the real
10471 # work. The second script uses 'N' to pair each line-number line
10472 # with the numbered line, and appends trailing '-' during
10473 # substitution so that $LINENO is not a special case at line end.
10474 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10475 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10476 sed '=' <$as_myself |
10477 sed '
10478 N
10479 s,$,-,
10480 : loop
10481 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10482 t loop
10483 s,-$,,
10484 s,^['$as_cr_digits']*\n,,
10485 ' >$as_me.lineno &&
10486 chmod +x $as_me.lineno ||
10487 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10488echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10489 { (exit 1); exit 1; }; }
10490
10491 # Don't try to exec as it changes $[0], causing all sort of problems
10492 # (the dirname of $[0] is not the place where we might find the
10493 # original and so on. Autoconf is especially sensible to this).
10494 . ./$as_me.lineno
10495 # Exit status is that of the last command.
10496 exit
10497}
d6d788bd 10498
252b5132 10499
13b2be9c
DJ
10500case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10501 *c*,-n*) ECHO_N= ECHO_C='
10502' ECHO_T=' ' ;;
10503 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10504 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10505esac
252b5132 10506
13b2be9c
DJ
10507if expr a : '\(a\)' >/dev/null 2>&1; then
10508 as_expr=expr
252b5132 10509else
13b2be9c 10510 as_expr=false
252b5132 10511fi
252b5132 10512
13b2be9c
DJ
10513rm -f conf$$ conf$$.exe conf$$.file
10514echo >conf$$.file
10515if ln -s conf$$.file conf$$ 2>/dev/null; then
10516 # We could just check for DJGPP; but this test a) works b) is more generic
10517 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10518 if test -f conf$$.exe; then
10519 # Don't use ln at all; we don't have any links
10520 as_ln_s='cp -p'
10521 else
10522 as_ln_s='ln -s'
10523 fi
10524elif ln conf$$.file conf$$ 2>/dev/null; then
10525 as_ln_s=ln
10526else
10527 as_ln_s='cp -p'
252b5132 10528fi
13b2be9c 10529rm -f conf$$ conf$$.exe conf$$.file
252b5132 10530
13b2be9c
DJ
10531if mkdir -p . 2>/dev/null; then
10532 as_mkdir_p=:
252b5132 10533else
13b2be9c
DJ
10534 as_mkdir_p=false
10535fi
252b5132 10536
13b2be9c 10537as_executable_p="test -f"
252b5132 10538
13b2be9c
DJ
10539# Sed expression to map a string onto a valid CPP name.
10540as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
252b5132 10541
13b2be9c
DJ
10542# Sed expression to map a string onto a valid variable name.
10543as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
252b5132 10544
d6d788bd 10545
13b2be9c
DJ
10546# IFS
10547# We need space, tab and new line, in precisely that order.
10548as_nl='
10549'
10550IFS=" $as_nl"
252b5132 10551
13b2be9c
DJ
10552# CDPATH.
10553$as_unset CDPATH
252b5132 10554
13b2be9c 10555exec 6>&1
252b5132 10556
13b2be9c
DJ
10557# Open the log real soon, to keep \$[0] and so on meaningful, and to
10558# report actual input values of CONFIG_FILES etc. instead of their
10559# values after options handling. Logging --version etc. is OK.
10560exec 5>>config.log
10561{
10562 echo
10563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10564## Running $as_me. ##
10565_ASBOX
10566} >&5
10567cat >&5 <<_CSEOF
252b5132 10568
13b2be9c
DJ
10569This file was extended by $as_me, which was
10570generated by GNU Autoconf 2.57. Invocation command line was
d6d788bd 10571
13b2be9c
DJ
10572 CONFIG_FILES = $CONFIG_FILES
10573 CONFIG_HEADERS = $CONFIG_HEADERS
10574 CONFIG_LINKS = $CONFIG_LINKS
10575 CONFIG_COMMANDS = $CONFIG_COMMANDS
10576 $ $0 $@
252b5132 10577
13b2be9c
DJ
10578_CSEOF
10579echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10580echo >&5
10581_ACEOF
252b5132 10582
13b2be9c
DJ
10583# Files that config.status was made for.
10584if test -n "$ac_config_files"; then
10585 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 10586fi
13b2be9c
DJ
10587
10588if test -n "$ac_config_headers"; then
10589 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 10590fi
252b5132 10591
13b2be9c
DJ
10592if test -n "$ac_config_links"; then
10593 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
10594fi
10595
13b2be9c
DJ
10596if test -n "$ac_config_commands"; then
10597 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10598fi
d6d788bd 10599
13b2be9c 10600cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10601
13b2be9c
DJ
10602ac_cs_usage="\
10603\`$as_me' instantiates files from templates according to the
10604current configuration.
252b5132 10605
13b2be9c 10606Usage: $0 [OPTIONS] [FILE]...
252b5132 10607
13b2be9c
DJ
10608 -h, --help print this help, then exit
10609 -V, --version print version number, then exit
10610 -q, --quiet do not print progress messages
10611 -d, --debug don't remove temporary files
10612 --recheck update $as_me by reconfiguring in the same conditions
10613 --file=FILE[:TEMPLATE]
10614 instantiate the configuration file FILE
10615 --header=FILE[:TEMPLATE]
10616 instantiate the configuration header FILE
252b5132 10617
13b2be9c
DJ
10618Configuration files:
10619$config_files
252b5132 10620
13b2be9c
DJ
10621Configuration headers:
10622$config_headers
252b5132 10623
13b2be9c
DJ
10624Configuration commands:
10625$config_commands
252b5132 10626
13b2be9c
DJ
10627Report bugs to <bug-autoconf@gnu.org>."
10628_ACEOF
d6d788bd 10629
13b2be9c
DJ
10630cat >>$CONFIG_STATUS <<_ACEOF
10631ac_cs_version="\\
10632config.status
10633configured by $0, generated by GNU Autoconf 2.57,
10634 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 10635
13b2be9c
DJ
10636Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10637Free Software Foundation, Inc.
10638This config.status script is free software; the Free Software Foundation
10639gives unlimited permission to copy, distribute and modify it."
10640srcdir=$srcdir
10641INSTALL="$INSTALL"
10642_ACEOF
d6d788bd 10643
13b2be9c
DJ
10644cat >>$CONFIG_STATUS <<\_ACEOF
10645# If no file are specified by the user, then we need to provide default
10646# value. By we need to know if files were specified by the user.
10647ac_need_defaults=:
10648while test $# != 0
10649do
10650 case $1 in
10651 --*=*)
10652 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10653 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10654 ac_shift=:
c8615825 10655 ;;
13b2be9c
DJ
10656 -*)
10657 ac_option=$1
10658 ac_optarg=$2
10659 ac_shift=shift
c8615825 10660 ;;
13b2be9c
DJ
10661 *) # This is not an option, so the user has probably given explicit
10662 # arguments.
10663 ac_option=$1
10664 ac_need_defaults=false;;
10665 esac
252b5132 10666
13b2be9c
DJ
10667 case $ac_option in
10668 # Handling of the options.
10669_ACEOF
10670cat >>$CONFIG_STATUS <<\_ACEOF
10671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10672 ac_cs_recheck=: ;;
10673 --version | --vers* | -V )
10674 echo "$ac_cs_version"; exit 0 ;;
10675 --he | --h)
10676 # Conflict between --help and --header
10677 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10678Try \`$0 --help' for more information." >&5
10679echo "$as_me: error: ambiguous option: $1
10680Try \`$0 --help' for more information." >&2;}
10681 { (exit 1); exit 1; }; };;
10682 --help | --hel | -h )
10683 echo "$ac_cs_usage"; exit 0 ;;
10684 --debug | --d* | -d )
10685 debug=: ;;
10686 --file | --fil | --fi | --f )
10687 $ac_shift
10688 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10689 ac_need_defaults=false;;
10690 --header | --heade | --head | --hea )
10691 $ac_shift
10692 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10693 ac_need_defaults=false;;
10694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10696 ac_cs_silent=: ;;
c8615825 10697
13b2be9c
DJ
10698 # This is an error.
10699 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10700Try \`$0 --help' for more information." >&5
10701echo "$as_me: error: unrecognized option: $1
10702Try \`$0 --help' for more information." >&2;}
10703 { (exit 1); exit 1; }; } ;;
252b5132 10704
13b2be9c 10705 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 10706
13b2be9c
DJ
10707 esac
10708 shift
10709done
252b5132 10710
13b2be9c 10711ac_configure_extra_args=
d6d788bd 10712
13b2be9c
DJ
10713if $ac_cs_silent; then
10714 exec 6>/dev/null
10715 ac_configure_extra_args="$ac_configure_extra_args --silent"
10716fi
9b2b7d69 10717
13b2be9c
DJ
10718_ACEOF
10719cat >>$CONFIG_STATUS <<_ACEOF
10720if \$ac_cs_recheck; then
10721 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10722 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10723fi
10724
10725_ACEOF
10726
10727cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 10728#
13b2be9c 10729# INIT-COMMANDS section.
9b2b7d69
MM
10730#
10731
13b2be9c
DJ
10732AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10733target_cpu_type=${target_cpu_type}
10734 cgen_cpu_prefix=${cgen_cpu_prefix}
10735 obj_format=${obj_format}
10736 te_file=${te_file}
10737
10738_ACEOF
10739
10740
10741
10742cat >>$CONFIG_STATUS <<\_ACEOF
10743for ac_config_target in $ac_config_targets
9b2b7d69 10744do
13b2be9c
DJ
10745 case "$ac_config_target" in
10746 # Handling of arguments.
10747 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
10748 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
10749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10750 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10751 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10752 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10753 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10754 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10755 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10756echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10757 { (exit 1); exit 1; }; };;
9b2b7d69
MM
10758 esac
10759done
10760
13b2be9c
DJ
10761# If the user did not use the arguments to specify the items to instantiate,
10762# then the envvar interface is used. Set only those that are not.
10763# We use the long form for the default assignment because of an extremely
10764# bizarre bug on SunOS 4.1.3.
10765if $ac_need_defaults; then
10766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10769fi
10770
10771# Have a temporary directory for convenience. Make it in the build tree
10772# simply because there is no reason to put it here, and in addition,
10773# creating and moving files from /tmp can sometimes cause problems.
10774# Create a temporary directory, and hook for its removal unless debugging.
10775$debug ||
10776{
10777 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10778 trap '{ (exit 1); exit 1; }' 1 2 13 15
10779}
9b2b7d69 10780
13b2be9c 10781# Create a (secure) tmp directory for tmp files.
9b2b7d69 10782
13b2be9c
DJ
10783{
10784 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10785 test -n "$tmp" && test -d "$tmp"
10786} ||
10787{
10788 tmp=./confstat$$-$RANDOM
10789 (umask 077 && mkdir $tmp)
10790} ||
10791{
10792 echo "$me: cannot create a temporary directory in ." >&2
10793 { (exit 1); exit 1; }
10794}
9b2b7d69 10795
13b2be9c
DJ
10796_ACEOF
10797
10798cat >>$CONFIG_STATUS <<_ACEOF
10799
10800#
10801# CONFIG_FILES section.
10802#
10803
10804# No need to generate the scripts if there are no CONFIG_FILES.
10805# This happens for instance when ./config.status config.h
10806if test -n "\$CONFIG_FILES"; then
10807 # Protect against being on the right side of a sed subst in config.status.
10808 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10809 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10810s,@SHELL@,$SHELL,;t t
10811s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10812s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10813s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10814s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10815s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10816s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10817s,@exec_prefix@,$exec_prefix,;t t
10818s,@prefix@,$prefix,;t t
10819s,@program_transform_name@,$program_transform_name,;t t
10820s,@bindir@,$bindir,;t t
10821s,@sbindir@,$sbindir,;t t
10822s,@libexecdir@,$libexecdir,;t t
10823s,@datadir@,$datadir,;t t
10824s,@sysconfdir@,$sysconfdir,;t t
10825s,@sharedstatedir@,$sharedstatedir,;t t
10826s,@localstatedir@,$localstatedir,;t t
10827s,@libdir@,$libdir,;t t
10828s,@includedir@,$includedir,;t t
10829s,@oldincludedir@,$oldincludedir,;t t
10830s,@infodir@,$infodir,;t t
10831s,@mandir@,$mandir,;t t
10832s,@build_alias@,$build_alias,;t t
10833s,@host_alias@,$host_alias,;t t
10834s,@target_alias@,$target_alias,;t t
10835s,@DEFS@,$DEFS,;t t
10836s,@ECHO_C@,$ECHO_C,;t t
10837s,@ECHO_N@,$ECHO_N,;t t
10838s,@ECHO_T@,$ECHO_T,;t t
10839s,@LIBS@,$LIBS,;t t
10840s,@build@,$build,;t t
10841s,@build_cpu@,$build_cpu,;t t
10842s,@build_vendor@,$build_vendor,;t t
10843s,@build_os@,$build_os,;t t
10844s,@host@,$host,;t t
10845s,@host_cpu@,$host_cpu,;t t
10846s,@host_vendor@,$host_vendor,;t t
10847s,@host_os@,$host_os,;t t
10848s,@target@,$target,;t t
10849s,@target_cpu@,$target_cpu,;t t
10850s,@target_vendor@,$target_vendor,;t t
10851s,@target_os@,$target_os,;t t
10852s,@CC@,$CC,;t t
10853s,@CFLAGS@,$CFLAGS,;t t
10854s,@LDFLAGS@,$LDFLAGS,;t t
10855s,@CPPFLAGS@,$CPPFLAGS,;t t
10856s,@ac_ct_CC@,$ac_ct_CC,;t t
10857s,@EXEEXT@,$EXEEXT,;t t
10858s,@OBJEXT@,$OBJEXT,;t t
10859s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10860s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10861s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10862s,@CYGPATH_W@,$CYGPATH_W,;t t
10863s,@PACKAGE@,$PACKAGE,;t t
10864s,@VERSION@,$VERSION,;t t
10865s,@ACLOCAL@,$ACLOCAL,;t t
10866s,@AUTOCONF@,$AUTOCONF,;t t
10867s,@AUTOMAKE@,$AUTOMAKE,;t t
10868s,@AUTOHEADER@,$AUTOHEADER,;t t
10869s,@MAKEINFO@,$MAKEINFO,;t t
10870s,@AMTAR@,$AMTAR,;t t
10871s,@install_sh@,$install_sh,;t t
10872s,@STRIP@,$STRIP,;t t
10873s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10874s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10875s,@AWK@,$AWK,;t t
10876s,@SET_MAKE@,$SET_MAKE,;t t
10877s,@am__leading_dot@,$am__leading_dot,;t t
10878s,@DEPDIR@,$DEPDIR,;t t
10879s,@am__include@,$am__include,;t t
10880s,@am__quote@,$am__quote,;t t
10881s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10882s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10883s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10884s,@CCDEPMODE@,$CCDEPMODE,;t t
10885s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10886s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10887s,@LN_S@,$LN_S,;t t
10888s,@RANLIB@,$RANLIB,;t t
10889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10890s,@LIBTOOL@,$LIBTOOL,;t t
10891s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10892s,@GDBINIT@,$GDBINIT,;t t
10893s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
10894s,@extra_objects@,$extra_objects,;t t
10895s,@target_cpu_type@,$target_cpu_type,;t t
10896s,@obj_format@,$obj_format,;t t
10897s,@te_file@,$te_file,;t t
10898s,@install_tooldir@,$install_tooldir,;t t
10899s,@atof@,$atof,;t t
10900s,@BFDLIB@,$BFDLIB,;t t
10901s,@OPCODES_LIB@,$OPCODES_LIB,;t t
10902s,@BFDVER_H@,$BFDVER_H,;t t
10903s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
10904s,@YACC@,$YACC,;t t
10905s,@LEX@,$LEX,;t t
10906s,@LEXLIB@,$LEXLIB,;t t
10907s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10908s,@CPP@,$CPP,;t t
10909s,@EGREP@,$EGREP,;t t
10910s,@ALLOCA@,$ALLOCA,;t t
10911s,@USE_NLS@,$USE_NLS,;t t
10912s,@MSGFMT@,$MSGFMT,;t t
10913s,@GMSGFMT@,$GMSGFMT,;t t
10914s,@XGETTEXT@,$XGETTEXT,;t t
10915s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10916s,@CATALOGS@,$CATALOGS,;t t
10917s,@CATOBJEXT@,$CATOBJEXT,;t t
10918s,@DATADIRNAME@,$DATADIRNAME,;t t
10919s,@GMOFILES@,$GMOFILES,;t t
10920s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10921s,@INTLDEPS@,$INTLDEPS,;t t
10922s,@INTLLIBS@,$INTLLIBS,;t t
10923s,@INTLOBJS@,$INTLOBJS,;t t
10924s,@POFILES@,$POFILES,;t t
10925s,@POSUB@,$POSUB,;t t
10926s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10927s,@GT_NO@,$GT_NO,;t t
10928s,@GT_YES@,$GT_YES,;t t
10929s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10930s,@l@,$l,;t t
10931s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10932s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10933s,@MAINT@,$MAINT,;t t
10934s,@LIBM@,$LIBM,;t t
10935s,@LIBOBJS@,$LIBOBJS,;t t
10936s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
10937CEOF
10938
13b2be9c
DJ
10939_ACEOF
10940
10941 cat >>$CONFIG_STATUS <<\_ACEOF
10942 # Split the substitutions into bite-sized pieces for seds with
10943 # small command number limits, like on Digital OSF/1 and HP-UX.
10944 ac_max_sed_lines=48
10945 ac_sed_frag=1 # Number of current file.
10946 ac_beg=1 # First line for current file.
10947 ac_end=$ac_max_sed_lines # Line after last line for current file.
10948 ac_more_lines=:
10949 ac_sed_cmds=
10950 while $ac_more_lines; do
10951 if test $ac_beg -gt 1; then
10952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10953 else
10954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10955 fi
10956 if test ! -s $tmp/subs.frag; then
10957 ac_more_lines=false
9b2b7d69 10958 else
13b2be9c
DJ
10959 # The purpose of the label and of the branching condition is to
10960 # speed up the sed processing (if there are no `@' at all, there
10961 # is no need to browse any of the substitutions).
10962 # These are the two extra sed commands mentioned above.
10963 (echo ':t
10964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10965 if test -z "$ac_sed_cmds"; then
10966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10967 else
10968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10969 fi
10970 ac_sed_frag=`expr $ac_sed_frag + 1`
10971 ac_beg=$ac_end
10972 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 10973 fi
13b2be9c
DJ
10974 done
10975 if test -z "$ac_sed_cmds"; then
10976 ac_sed_cmds=cat
252b5132 10977 fi
13b2be9c 10978fi # test -n "$CONFIG_FILES"
252b5132 10979
13b2be9c
DJ
10980_ACEOF
10981cat >>$CONFIG_STATUS <<\_ACEOF
10982for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 10983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
10984 case $ac_file in
10985 - | *:- | *:-:* ) # input from stdin
10986 cat >$tmp/stdin
10987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10991 * ) ac_file_in=$ac_file.in ;;
252b5132 10992 esac
9b2b7d69 10993
13b2be9c
DJ
10994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10997 X"$ac_file" : 'X\(//\)[^/]' \| \
10998 X"$ac_file" : 'X\(//\)$' \| \
10999 X"$ac_file" : 'X\(/\)' \| \
11000 . : '\(.\)' 2>/dev/null ||
11001echo X"$ac_file" |
11002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11004 /^X\(\/\/\)$/{ s//\1/; q; }
11005 /^X\(\/\).*/{ s//\1/; q; }
11006 s/.*/./; q'`
11007 { if $as_mkdir_p; then
11008 mkdir -p "$ac_dir"
c8615825 11009 else
13b2be9c
DJ
11010 as_dir="$ac_dir"
11011 as_dirs=
11012 while test ! -d "$as_dir"; do
11013 as_dirs="$as_dir $as_dirs"
11014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11016 X"$as_dir" : 'X\(//\)[^/]' \| \
11017 X"$as_dir" : 'X\(//\)$' \| \
11018 X"$as_dir" : 'X\(/\)' \| \
11019 . : '\(.\)' 2>/dev/null ||
11020echo X"$as_dir" |
11021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11023 /^X\(\/\/\)$/{ s//\1/; q; }
11024 /^X\(\/\).*/{ s//\1/; q; }
11025 s/.*/./; q'`
11026 done
11027 test ! -n "$as_dirs" || mkdir $as_dirs
11028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11029echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11030 { (exit 1); exit 1; }; }; }
11031
11032 ac_builddir=.
11033
11034if test "$ac_dir" != .; then
11035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11036 # A "../" for each directory in $ac_dir_suffix.
11037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11038else
11039 ac_dir_suffix= ac_top_builddir=
11040fi
9b2b7d69 11041
13b2be9c
DJ
11042case $srcdir in
11043 .) # No --srcdir option. We are building in place.
11044 ac_srcdir=.
11045 if test -z "$ac_top_builddir"; then
11046 ac_top_srcdir=.
11047 else
11048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11049 fi ;;
11050 [\\/]* | ?:[\\/]* ) # Absolute path.
11051 ac_srcdir=$srcdir$ac_dir_suffix;
11052 ac_top_srcdir=$srcdir ;;
9b2b7d69 11053 *) # Relative path.
13b2be9c
DJ
11054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11056esac
11057# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11058# absolute.
11059ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11060ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11061ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11062ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
252b5132 11063
9b2b7d69 11064
13b2be9c
DJ
11065 case $INSTALL in
11066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11067 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 11068 esac
9b2b7d69 11069
13b2be9c
DJ
11070 if test x"$ac_file" != x-; then
11071 { echo "$as_me:$LINENO: creating $ac_file" >&5
11072echo "$as_me: creating $ac_file" >&6;}
11073 rm -f "$ac_file"
11074 fi
11075 # Let's still pretend it is `configure' which instantiates (i.e., don't
11076 # use $as_me), people would be surprised to read:
11077 # /* config.h. Generated by config.status. */
11078 if test x"$ac_file" = x-; then
11079 configure_input=
11080 else
11081 configure_input="$ac_file. "
11082 fi
11083 configure_input=$configure_input"Generated from `echo $ac_file_in |
11084 sed 's,.*/,,'` by configure."
11085
11086 # First look for the input files in the build tree, otherwise in the
11087 # src tree.
11088 ac_file_inputs=`IFS=:
11089 for f in $ac_file_in; do
11090 case $f in
11091 -) echo $tmp/stdin ;;
11092 [\\/$]*)
11093 # Absolute (can't be DOS-style, as IFS=:)
11094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11095echo "$as_me: error: cannot find input file: $f" >&2;}
11096 { (exit 1); exit 1; }; }
11097 echo $f;;
11098 *) # Relative
11099 if test -f "$f"; then
11100 # Build tree
11101 echo $f
11102 elif test -f "$srcdir/$f"; then
11103 # Source tree
11104 echo $srcdir/$f
11105 else
11106 # /dev/null tree
11107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11108echo "$as_me: error: cannot find input file: $f" >&2;}
11109 { (exit 1); exit 1; }; }
11110 fi;;
11111 esac
11112 done` || { (exit 1); exit 1; }
11113_ACEOF
11114cat >>$CONFIG_STATUS <<_ACEOF
11115 sed "$ac_vpsub
11116$extrasub
11117_ACEOF
11118cat >>$CONFIG_STATUS <<\_ACEOF
11119:t
11120/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11121s,@configure_input@,$configure_input,;t t
11122s,@srcdir@,$ac_srcdir,;t t
11123s,@abs_srcdir@,$ac_abs_srcdir,;t t
11124s,@top_srcdir@,$ac_top_srcdir,;t t
11125s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11126s,@builddir@,$ac_builddir,;t t
11127s,@abs_builddir@,$ac_abs_builddir,;t t
11128s,@top_builddir@,$ac_top_builddir,;t t
11129s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11130s,@INSTALL@,$ac_INSTALL,;t t
11131" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11132 rm -f $tmp/stdin
11133 if test x"$ac_file" != x-; then
11134 mv $tmp/out $ac_file
11135 else
11136 cat $tmp/out
11137 rm -f $tmp/out
11138 fi
11139
11140done
11141_ACEOF
11142cat >>$CONFIG_STATUS <<\_ACEOF
11143
11144#
11145# CONFIG_HEADER section.
11146#
252b5132
RH
11147
11148# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11149# NAME is the cpp macro being defined and VALUE is the value it is being given.
11150#
11151# ac_d sets the value in "#define NAME VALUE" lines.
13b2be9c
DJ
11152ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11153ac_dB='[ ].*$,\1#\2'
11154ac_dC=' '
11155ac_dD=',;t'
11156# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11157ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11158ac_uB='$,\1#\2define\3'
252b5132 11159ac_uC=' '
13b2be9c
DJ
11160ac_uD=',;t'
11161
11162for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11164 case $ac_file in
11165 - | *:- | *:-:* ) # input from stdin
11166 cat >$tmp/stdin
11167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11171 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11172 esac
11173
13b2be9c
DJ
11174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11175echo "$as_me: creating $ac_file" >&6;}
11176
11177 # First look for the input files in the build tree, otherwise in the
11178 # src tree.
11179 ac_file_inputs=`IFS=:
11180 for f in $ac_file_in; do
11181 case $f in
11182 -) echo $tmp/stdin ;;
11183 [\\/$]*)
11184 # Absolute (can't be DOS-style, as IFS=:)
11185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11186echo "$as_me: error: cannot find input file: $f" >&2;}
11187 { (exit 1); exit 1; }; }
11188 echo $f;;
11189 *) # Relative
11190 if test -f "$f"; then
11191 # Build tree
11192 echo $f
11193 elif test -f "$srcdir/$f"; then
11194 # Source tree
11195 echo $srcdir/$f
11196 else
11197 # /dev/null tree
11198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11199echo "$as_me: error: cannot find input file: $f" >&2;}
11200 { (exit 1); exit 1; }; }
11201 fi;;
11202 esac
11203 done` || { (exit 1); exit 1; }
11204 # Remove the trailing spaces.
11205 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11206
11207_ACEOF
11208
11209# Transform confdefs.h into two sed scripts, `conftest.defines' and
11210# `conftest.undefs', that substitutes the proper values into
11211# config.h.in to produce config.h. The first handles `#define'
11212# templates, and the second `#undef' templates.
11213# And first: Protect against being on the right side of a sed subst in
11214# config.status. Protect against being in an unquoted here document
11215# in config.status.
11216rm -f conftest.defines conftest.undefs
11217# Using a here document instead of a string reduces the quoting nightmare.
11218# Putting comments in sed scripts is not portable.
11219#
11220# `end' is used to avoid that the second main sed command (meant for
11221# 0-ary CPP macros) applies to n-ary macro definitions.
11222# See the Autoconf documentation for `clear'.
11223cat >confdef2sed.sed <<\_ACEOF
11224s/[\\&,]/\\&/g
11225s,[\\$`],\\&,g
11226t clear
11227: clear
11228s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11229t end
11230s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11231: end
11232_ACEOF
11233# If some macros were called several times there might be several times
11234# the same #defines, which is useless. Nevertheless, we may not want to
11235# sort them, since we want the *last* AC-DEFINE to be honored.
11236uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11237sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11238rm -f confdef2sed.sed
252b5132
RH
11239
11240# This sed command replaces #undef with comments. This is necessary, for
11241# example, in the case of _POSIX_SOURCE, which is predefined and required
11242# on some systems where configure will not decide to define it.
13b2be9c
DJ
11243cat >>conftest.undefs <<\_ACEOF
11244s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11245_ACEOF
11246
11247# Break up conftest.defines because some shells have a limit on the size
11248# of here documents, and old seds have small limits too (100 cmds).
11249echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11250echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11251echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11252echo ' :' >>$CONFIG_STATUS
11253rm -f conftest.tail
11254while grep . conftest.defines >/dev/null
11255do
11256 # Write a limited-size here document to $tmp/defines.sed.
11257 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11258 # Speed up: don't consider the non `#define' lines.
11259 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11260 # Work around the forget-to-reset-the-flag bug.
11261 echo 't clr' >>$CONFIG_STATUS
11262 echo ': clr' >>$CONFIG_STATUS
11263 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11264 echo 'CEOF
11265 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11266 rm -f $tmp/in
11267 mv $tmp/out $tmp/in
11268' >>$CONFIG_STATUS
11269 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11270 rm -f conftest.defines
11271 mv conftest.tail conftest.defines
11272done
11273rm -f conftest.defines
11274echo ' fi # grep' >>$CONFIG_STATUS
11275echo >>$CONFIG_STATUS
252b5132 11276
13b2be9c
DJ
11277# Break up conftest.undefs because some shells have a limit on the size
11278# of here documents, and old seds have small limits too (100 cmds).
11279echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11280rm -f conftest.tail
13b2be9c 11281while grep . conftest.undefs >/dev/null
252b5132 11282do
13b2be9c
DJ
11283 # Write a limited-size here document to $tmp/undefs.sed.
11284 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11285 # Speed up: don't consider the non `#undef'
11286 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11287 # Work around the forget-to-reset-the-flag bug.
11288 echo 't clr' >>$CONFIG_STATUS
11289 echo ': clr' >>$CONFIG_STATUS
11290 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11291 echo 'CEOF
13b2be9c
DJ
11292 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11293 rm -f $tmp/in
11294 mv $tmp/out $tmp/in
11295' >>$CONFIG_STATUS
11296 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11297 rm -f conftest.undefs
11298 mv conftest.tail conftest.undefs
252b5132 11299done
13b2be9c
DJ
11300rm -f conftest.undefs
11301
11302cat >>$CONFIG_STATUS <<\_ACEOF
11303 # Let's still pretend it is `configure' which instantiates (i.e., don't
11304 # use $as_me), people would be surprised to read:
11305 # /* config.h. Generated by config.status. */
11306 if test x"$ac_file" = x-; then
11307 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 11308 else
13b2be9c
DJ
11309 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11310 fi
11311 cat $tmp/in >>$tmp/config.h
11312 rm -f $tmp/in
11313 if test x"$ac_file" != x-; then
11314 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11315 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11316echo "$as_me: $ac_file is unchanged" >&6;}
11317 else
11318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11320 X"$ac_file" : 'X\(//\)[^/]' \| \
11321 X"$ac_file" : 'X\(//\)$' \| \
11322 X"$ac_file" : 'X\(/\)' \| \
11323 . : '\(.\)' 2>/dev/null ||
11324echo X"$ac_file" |
11325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11327 /^X\(\/\/\)$/{ s//\1/; q; }
11328 /^X\(\/\).*/{ s//\1/; q; }
11329 s/.*/./; q'`
11330 { if $as_mkdir_p; then
11331 mkdir -p "$ac_dir"
11332 else
11333 as_dir="$ac_dir"
11334 as_dirs=
11335 while test ! -d "$as_dir"; do
11336 as_dirs="$as_dir $as_dirs"
11337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11339 X"$as_dir" : 'X\(//\)[^/]' \| \
11340 X"$as_dir" : 'X\(//\)$' \| \
11341 X"$as_dir" : 'X\(/\)' \| \
11342 . : '\(.\)' 2>/dev/null ||
11343echo X"$as_dir" |
11344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11346 /^X\(\/\/\)$/{ s//\1/; q; }
11347 /^X\(\/\).*/{ s//\1/; q; }
11348 s/.*/./; q'`
11349 done
11350 test ! -n "$as_dirs" || mkdir $as_dirs
11351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11353 { (exit 1); exit 1; }; }; }
11354
11355 rm -f $ac_file
11356 mv $tmp/config.h $ac_file
9b2b7d69 11357 fi
13b2be9c
DJ
11358 else
11359 cat $tmp/config.h
11360 rm -f $tmp/config.h
9b2b7d69 11361 fi
13b2be9c
DJ
11362# Compute $ac_file's index in $config_headers.
11363_am_stamp_count=1
11364for _am_header in $config_headers :; do
11365 case $_am_header in
11366 $ac_file | $ac_file:* )
11367 break ;;
11368 * )
11369 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11370 esac
11371done
11372echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11373$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11374 X$ac_file : 'X\(//\)[^/]' \| \
11375 X$ac_file : 'X\(//\)$' \| \
11376 X$ac_file : 'X\(/\)' \| \
11377 . : '\(.\)' 2>/dev/null ||
11378echo X$ac_file |
11379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11381 /^X\(\/\/\)$/{ s//\1/; q; }
11382 /^X\(\/\).*/{ s//\1/; q; }
11383 s/.*/./; q'`/stamp-h$_am_stamp_count
11384done
11385_ACEOF
11386cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 11387
13b2be9c
DJ
11388#
11389# CONFIG_COMMANDS section.
11390#
11391for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11392 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11393 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11394 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11395$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396 X"$ac_dest" : 'X\(//\)[^/]' \| \
11397 X"$ac_dest" : 'X\(//\)$' \| \
11398 X"$ac_dest" : 'X\(/\)' \| \
11399 . : '\(.\)' 2>/dev/null ||
11400echo X"$ac_dest" |
11401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11403 /^X\(\/\/\)$/{ s//\1/; q; }
11404 /^X\(\/\).*/{ s//\1/; q; }
11405 s/.*/./; q'`
11406 ac_builddir=.
11407
11408if test "$ac_dir" != .; then
11409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11410 # A "../" for each directory in $ac_dir_suffix.
11411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11412else
11413 ac_dir_suffix= ac_top_builddir=
11414fi
11415
11416case $srcdir in
11417 .) # No --srcdir option. We are building in place.
11418 ac_srcdir=.
11419 if test -z "$ac_top_builddir"; then
11420 ac_top_srcdir=.
11421 else
11422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11423 fi ;;
11424 [\\/]* | ?:[\\/]* ) # Absolute path.
11425 ac_srcdir=$srcdir$ac_dir_suffix;
11426 ac_top_srcdir=$srcdir ;;
11427 *) # Relative path.
11428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11430esac
11431# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11432# absolute.
11433ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11434ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11435ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11436ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11437
11438
11439 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11440echo "$as_me: executing $ac_dest commands" >&6;}
11441 case $ac_dest in
11442 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11443 # Strip MF so we end up with the name of the file.
11444 mf=`echo "$mf" | sed -e 's/:.*$//'`
11445 # Check whether this is an Automake generated Makefile or not.
11446 # We used to match only the files named `Makefile.in', but
11447 # some people rename them; so instead we look at the file content.
11448 # Grep'ing the first line is not enough: some people post-process
11449 # each Makefile.in and add a new line on top of each file to say so.
11450 # So let's grep whole file.
11451 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11452 dirpart=`(dirname "$mf") 2>/dev/null ||
11453$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11454 X"$mf" : 'X\(//\)[^/]' \| \
11455 X"$mf" : 'X\(//\)$' \| \
11456 X"$mf" : 'X\(/\)' \| \
11457 . : '\(.\)' 2>/dev/null ||
11458echo X"$mf" |
11459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11461 /^X\(\/\/\)$/{ s//\1/; q; }
11462 /^X\(\/\).*/{ s//\1/; q; }
11463 s/.*/./; q'`
11464 else
11465 continue
11466 fi
11467 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11468 # Extract the definition of DEP_FILES from the Makefile without
11469 # running `make'.
11470 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11471 test -z "$DEPDIR" && continue
11472 # When using ansi2knr, U may be empty or an underscore; expand it
11473 U=`sed -n -e '/^U = / s///p' < "$mf"`
11474 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11475 # We invoke sed twice because it is the simplest approach to
11476 # changing $(DEPDIR) to its actual value in the expansion.
11477 for file in `sed -n -e '
11478 /^DEP_FILES = .*\\\\$/ {
11479 s/^DEP_FILES = //
11480 :loop
11481 s/\\\\$//
11482 p
11483 n
11484 /\\\\$/ b loop
11485 p
11486 }
11487 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11488 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11489 # Make sure the directory exists.
11490 test -f "$dirpart/$file" && continue
11491 fdir=`(dirname "$file") 2>/dev/null ||
11492$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11493 X"$file" : 'X\(//\)[^/]' \| \
11494 X"$file" : 'X\(//\)$' \| \
11495 X"$file" : 'X\(/\)' \| \
11496 . : '\(.\)' 2>/dev/null ||
11497echo X"$file" |
11498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11500 /^X\(\/\/\)$/{ s//\1/; q; }
11501 /^X\(\/\).*/{ s//\1/; q; }
11502 s/.*/./; q'`
11503 { if $as_mkdir_p; then
11504 mkdir -p $dirpart/$fdir
11505 else
11506 as_dir=$dirpart/$fdir
11507 as_dirs=
11508 while test ! -d "$as_dir"; do
11509 as_dirs="$as_dir $as_dirs"
11510 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11511$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11512 X"$as_dir" : 'X\(//\)[^/]' \| \
11513 X"$as_dir" : 'X\(//\)$' \| \
11514 X"$as_dir" : 'X\(/\)' \| \
11515 . : '\(.\)' 2>/dev/null ||
11516echo X"$as_dir" |
11517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11519 /^X\(\/\/\)$/{ s//\1/; q; }
11520 /^X\(\/\).*/{ s//\1/; q; }
11521 s/.*/./; q'`
11522 done
11523 test ! -n "$as_dirs" || mkdir $as_dirs
11524 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11525echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11526 { (exit 1); exit 1; }; }; }
c8615825 11527
13b2be9c
DJ
11528 # echo "creating $dirpart/$file"
11529 echo '# dummy' > "$dirpart/$file"
11530 done
11531done
11532 ;;
11533 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
11534 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
11535 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
11536 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
11537 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
11538 if test "x$cgen_cpu_prefix" != x ; then
11539 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
11540 fi
11541
13b2be9c
DJ
11542 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11543 esac
11544done
11545_ACEOF
11546
11547cat >>$CONFIG_STATUS <<\_ACEOF
11548
11549{ (exit 0); exit 0; }
11550_ACEOF
252b5132 11551chmod +x $CONFIG_STATUS
13b2be9c
DJ
11552ac_clean_files=$ac_clean_files_save
11553
11554
11555# configure is writing to config.log, and then calls config.status.
11556# config.status does its own redirection, appending to config.log.
11557# Unfortunately, on DOS this fails, as config.log is still kept open
11558# by configure, so config.status won't be able to write to it; its
11559# output is simply discarded. So we exec the FD to /dev/null,
11560# effectively closing config.log, so it can be properly (re)opened and
11561# appended to by config.status. When coming back to configure, we
11562# need to make the FD available again.
11563if test "$no_create" != yes; then
11564 ac_cs_success=:
11565 ac_config_status_args=
11566 test "$silent" = yes &&
11567 ac_config_status_args="$ac_config_status_args --quiet"
11568 exec 5>/dev/null
11569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11570 exec 5>>config.log
11571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11572 # would make configure fail if this is the last instruction.
11573 $ac_cs_success || { (exit 1); exit 1; }
11574fi
252b5132 11575
This page took 0.851323 seconds and 4 git commands to generate.