gas/testsuite/
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
13b2be9c
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
13b2be9c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="as.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
d5fbea21 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE CPP EGREP ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
13b2be9c
DJ
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
13b2be9c 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
13b2be9c
DJ
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
13b2be9c 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
13b2be9c 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
13b2be9c 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
13b2be9c 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
13b2be9c 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
13b2be9c
DJ
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
13b2be9c 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
13b2be9c
DJ
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
13b2be9c 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
13b2be9c 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
13b2be9c
DJ
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
13b2be9c 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
13b2be9c 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
13b2be9c 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
13b2be9c 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
13b2be9c 561 site=$ac_optarg ;;
76bff705 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
13b2be9c
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
13b2be9c 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
13b2be9c
DJ
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
13b2be9c 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
13b2be9c 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
13b2be9c
DJ
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 624 x_libraries=$ac_optarg ;;
252b5132 625
13b2be9c
DJ
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
13b2be9c
DJ
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
13b2be9c
DJ
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
13b2be9c
DJ
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
c8615825 656fi
c8615825 657
13b2be9c
DJ
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
252b5132 668
13b2be9c
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
13b2be9c
DJ
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
13b2be9c
DJ
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
9b2b7d69 698
13b2be9c
DJ
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
13b2be9c
DJ
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
13b2be9c
DJ
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
13b2be9c
DJ
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
d6d788bd 773
13b2be9c
DJ
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 782
13b2be9c 783Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 784
13b2be9c
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 787
13b2be9c 788Defaults for the options are specified in brackets.
9b2b7d69 789
13b2be9c
DJ
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 806 [$ac_default_prefix]
13b2be9c 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 808 [PREFIX]
9b2b7d69 809
13b2be9c
DJ
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
9b2b7d69 814
13b2be9c 815For better control, use the options below.
9b2b7d69 816
13b2be9c
DJ
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
9b2b7d69 831
13b2be9c 832 cat <<\_ACEOF
9b2b7d69 833
13b2be9c
DJ
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 838
13b2be9c
DJ
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
9b2b7d69 844fi
9b2b7d69 845
13b2be9c 846if test -n "$ac_init_help"; then
9b2b7d69 847
13b2be9c 848 cat <<\_ACEOF
9b2b7d69 849
13b2be9c
DJ
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
13b2be9c
DJ
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 859 --enable-targets alternative target configurations besides the primary
13b2be9c 860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
13b2be9c 863 --disable-nls do not use Native Language Support
ab509236
L
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
9b2b7d69 866
13b2be9c
DJ
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
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
ab509236
L
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
13b2be9c
DJ
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
ab509236 967 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
1ad12f97 973 cd $ac_popdir
13b2be9c
DJ
974 done
975fi
6840198f 976
13b2be9c
DJ
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
c8615825 980
ab509236 981Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
c8615825 991
13b2be9c 992It was created by $as_me, which was
ab509236 993generated by GNU Autoconf 2.59. Invocation command line was
c8615825 994
13b2be9c 995 $ $0 $@
c8615825 996
13b2be9c
DJ
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
9b2b7d69 1030
13b2be9c 1031} >&5
6840198f 1032
13b2be9c 1033cat >&5 <<_ACEOF
c8615825 1034
9b2b7d69 1035
13b2be9c
DJ
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
87ccc1b0 1039
13b2be9c 1040_ACEOF
9b2b7d69 1041
13b2be9c
DJ
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
ab509236 1070 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1071 else
ab509236
L
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
13b2be9c
DJ
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
c8615825
AM
1087 ;;
1088 esac
1089 done
13b2be9c
DJ
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
ab509236
L
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1118 ;;
1119 *)
1120 sed -n \
ab509236 1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
ab509236 1150 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
ab509236 1169 rm -f core *.core &&
13b2be9c
DJ
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
ab509236 1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1269echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1271echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1272 ac_cache_corrupted=:
13b2be9c
DJ
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321ac_aux_dir=
1322for ac_dir in .. $srcdir/..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1335 fi
1336done
1337if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1339echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1340 { (exit 1); exit 1; }; }
1341fi
1342ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346# Make sure we can run config.sub.
1347$ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1351
1352echo "$as_me:$LINENO: checking build system type" >&5
1353echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356else
1357 ac_cv_build_alias=$build_alias
1358test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371echo "${ECHO_T}$ac_cv_build" >&6
1372build=$ac_cv_build
1373build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking host system type" >&5
1379echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 ac_cv_host_alias=$host_alias
1384test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393echo "${ECHO_T}$ac_cv_host" >&6
1394host=$ac_cv_host
1395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking target system type" >&5
1401echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405 ac_cv_target_alias=$target_alias
1406test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415echo "${ECHO_T}$ac_cv_target" >&6
1416target=$ac_cv_target
1417target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422# The aliases save the names the user supplied, while $host etc.
1423# will get canonicalized.
1424test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1426 NONENONEs,x,x, &&
1427 program_prefix=${target_alias}-
1428ac_ext=c
1429ac_cpp='$CPP $CPPFLAGS'
1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436echo "$as_me:$LINENO: checking for $ac_word" >&5
1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443else
1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445for as_dir in $PATH
1446do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455done
1456done
1457
1458fi
1459fi
1460CC=$ac_cv_prog_CC
1461if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463echo "${ECHO_T}$CC" >&6
1464else
1465 echo "$as_me:$LINENO: result: no" >&5
1466echo "${ECHO_T}no" >&6
1467fi
1468
1469fi
1470if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473set dummy gcc; ac_word=$2
1474echo "$as_me:$LINENO: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481else
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1492 fi
1493done
1494done
1495
1496fi
1497fi
1498ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501echo "${ECHO_T}$ac_ct_CC" >&6
1502else
1503 echo "$as_me:$LINENO: result: no" >&5
1504echo "${ECHO_T}no" >&6
1505fi
1506
1507 CC=$ac_ct_CC
1508else
1509 CC="$ac_cv_prog_CC"
1510fi
1511
1512if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515set dummy ${ac_tool_prefix}cc; ac_word=$2
1516echo "$as_me:$LINENO: checking for $ac_word" >&5
1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523else
1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525for as_dir in $PATH
1526do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535done
1536done
1537
1538fi
1539fi
1540CC=$ac_cv_prog_CC
1541if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543echo "${ECHO_T}$CC" >&6
1544else
1545 echo "$as_me:$LINENO: result: no" >&5
1546echo "${ECHO_T}no" >&6
1547fi
1548
1549fi
1550if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553set dummy cc; ac_word=$2
1554echo "$as_me:$LINENO: checking for $ac_word" >&5
1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561else
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1572 fi
1573done
1574done
1575
1576fi
1577fi
1578ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581echo "${ECHO_T}$ac_ct_CC" >&6
1582else
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
1585fi
1586
1587 CC=$ac_ct_CC
1588else
1589 CC="$ac_cv_prog_CC"
1590fi
1591
1592fi
1593if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595set dummy cc; ac_word=$2
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603else
1604 ac_prog_rejected=no
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1615 fi
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 fi
1634fi
1635fi
1636fi
1637CC=$ac_cv_prog_CC
1638if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640echo "${ECHO_T}$CC" >&6
1641else
1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
1644fi
1645
1646fi
1647if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1650 do
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672done
1673done
1674
1675fi
1676fi
1677CC=$ac_cv_prog_CC
1678if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680echo "${ECHO_T}$CC" >&6
1681else
1682 echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686 test -n "$CC" && break
1687 done
1688fi
1689if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1692do
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694set dummy $ac_prog; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 test -n "$ac_ct_CC" && break
1729done
1730
1731 CC=$ac_ct_CC
1732fi
1733
1734fi
1735
1736
1737test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743# Provide some information about the compiler.
1744echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746ac_compiler=`set X $ac_compile; echo $2`
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762
1763cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1764/* confdefs.h. */
1765_ACEOF
1766cat confdefs.h >>conftest.$ac_ext
1767cat >>conftest.$ac_ext <<_ACEOF
1768/* end confdefs.h. */
1769
1770int
1771main ()
1772{
1773
1774 ;
1775 return 0;
1776}
1777_ACEOF
1778ac_clean_files_save=$ac_clean_files
1779ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780# Try to create an executable without -o first, disregard a.out.
1781# It will help us diagnose broken compilers, and finding out an intuition
1782# of exeext.
ab509236
L
1783echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793# resort.
1794
1795# Be careful to initialize this variable, since it used to be cached.
1796# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797ac_cv_exeext=
1798# b.out is created by i960 compilers.
1799for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1804 ;;
13b2be9c 1805 conftest.$ac_ext )
ab509236
L
1806 # This is the source file.
1807 ;;
13b2be9c 1808 [ab].out )
ab509236
L
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
13b2be9c 1812 *.* )
ab509236
L
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
13b2be9c 1819 * )
ab509236 1820 break;;
13b2be9c
DJ
1821 esac
1822done
1823else
1824 echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828See \`config.log' for more details." >&5
1829echo "$as_me: error: C compiler cannot create executables
1830See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1832fi
1833
1834ac_exeext=$ac_cv_exeext
1835echo "$as_me:$LINENO: result: $ac_file" >&5
1836echo "${ECHO_T}$ac_file" >&6
1837
1838# Check the compiler produces executables we can run. If not, either
1839# the compiler is broken, or we cross compile.
1840echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843# If not cross compiling, check that we can run a simple program.
1844if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857If you meant to cross compile, use \`--host'.
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: cannot run C compiled programs.
1860If you meant to cross compile, use \`--host'.
1861See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864 fi
1865fi
1866echo "$as_me:$LINENO: result: yes" >&5
1867echo "${ECHO_T}yes" >&6
1868
1869rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870ac_clean_files=$ac_clean_files_save
1871# Check the compiler produces executables we can run. If not, either
1872# the compiler is broken, or we cross compile.
1873echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876echo "${ECHO_T}$cross_compiling" >&6
1877
1878echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887# work properly (i.e., refer to `conftest.exe'), while it won't with
1888# `rm'.
1889for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
1894 export ac_cv_exeext
1895 break;;
13b2be9c
DJ
1896 * ) break;;
1897 esac
1898done
1899else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901See \`config.log' for more details." >&5
1902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1905fi
1906
1907rm -f conftest$ac_cv_exeext
1908echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911rm -f conftest.$ac_ext
1912EXEEXT=$ac_cv_exeext
1913ac_exeext=$EXEEXT
1914echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
1925
1926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934rm -f conftest.o conftest.obj
1935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946done
1947else
1948 echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952See \`config.log' for more details." >&5
1953echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1956fi
1957
1958rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959fi
1960echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961echo "${ECHO_T}$ac_cv_objext" >&6
1962OBJEXT=$ac_cv_objext
1963ac_objext=$OBJEXT
1964echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979#ifndef __GNUC__
1980 choke me
1981#endif
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 1989 (eval $ac_compile) 2>conftest.er1
13b2be9c 1990 ac_status=$?
ab509236
L
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
13b2be9c
DJ
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1ad12f97
NC
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
ab509236
L
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010else
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014ac_compiler_gnu=no
2015fi
ab509236 2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2017ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019fi
2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022GCC=`test $ac_compiler_gnu = yes && echo yes`
2023ac_test_CFLAGS=${CFLAGS+set}
2024ac_save_CFLAGS=$CFLAGS
2025CFLAGS="-g"
2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2032/* confdefs.h. */
2033_ACEOF
2034cat confdefs.h >>conftest.$ac_ext
2035cat >>conftest.$ac_ext <<_ACEOF
2036/* end confdefs.h. */
2037
2038int
2039main ()
2040{
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2048 (eval $ac_compile) 2>conftest.er1
13b2be9c 2049 ac_status=$?
ab509236
L
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
13b2be9c
DJ
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
1ad12f97
NC
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
ab509236
L
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069else
2070 echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073ac_cv_prog_cc_g=no
2074fi
ab509236 2075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2076fi
2077echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2086 fi
2087else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2092 fi
2093fi
2094echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 ac_cv_prog_cc_stdc=no
2100ac_save_CC=$CC
2101cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107#include <stdarg.h>
2108#include <stdio.h>
2109#include <sys/types.h>
2110#include <sys/stat.h>
2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112struct buf { int x; };
2113FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (p, i)
2115 char **p;
2116 int i;
2117{
2118 return p[i];
2119}
2120static char *f (char * (*g) (char **, int), char **p, ...)
2121{
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128}
ab509236
L
2129
2130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
13b2be9c
DJ
2139int test (int i, double x);
2140struct s1 {int (*f) (int a);};
2141struct s2 {int (*f) (double a);};
2142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143int argc;
2144char **argv;
2145int
2146main ()
2147{
2148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153# Don't try gcc -ansi; that turns off useful extensions and
2154# breaks some systems' header files.
2155# AIX -qlanglvl=ansi
2156# Ultrix and OSF/1 -std1
2157# HP-UX 10.20 and later -Ae
2158# HP-UX older versions -Aa -D_HPUX_SOURCE
2159# SVR4 -Xc -D__EXTENSIONS__
2160for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161do
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2165 (eval $ac_compile) 2>conftest.er1
13b2be9c 2166 ac_status=$?
ab509236
L
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
13b2be9c
DJ
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
1ad12f97
NC
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
ab509236
L
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2186break
2187else
2188 echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191fi
ab509236 2192rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2193done
2194rm -f conftest.$ac_ext conftest.$ac_objext
2195CC=$ac_save_CC
2196
2197fi
2198
2199case "x$ac_cv_prog_cc_stdc" in
2200 x|xno)
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202echo "${ECHO_T}none needed" >&6 ;;
2203 *)
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207esac
2208
2209# Some people use a C++ compiler to compile C. Since we use `exit',
2210# in C++ we need to declare it. In case someone uses the same compiler
2211# for both compiling C and C++ we need to have the C++ compiler decide
2212# the declaration of exit, since it's the most demanding environment.
2213cat >conftest.$ac_ext <<_ACEOF
2214#ifndef __cplusplus
2215 choke me
2216#endif
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2220 (eval $ac_compile) 2>conftest.er1
13b2be9c 2221 ac_status=$?
ab509236
L
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
13b2be9c
DJ
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
1ad12f97
NC
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
ab509236
L
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
ab509236 2241 '' \
13b2be9c
DJ
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2247do
2248 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
13dfd2d0 2254$ac_declaration
ab509236 2255#include <stdlib.h>
13b2be9c
DJ
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2266 (eval $ac_compile) 2>conftest.er1
13b2be9c 2267 ac_status=$?
ab509236
L
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
13b2be9c
DJ
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
1ad12f97
NC
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
ab509236
L
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 :
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291continue
2292fi
ab509236 2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2294 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
2300$ac_declaration
2301int
2302main ()
2303{
2304exit (42);
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2311 (eval $ac_compile) 2>conftest.er1
13b2be9c 2312 ac_status=$?
ab509236
L
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
13b2be9c
DJ
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
1ad12f97
NC
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
ab509236
L
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
ab509236 2337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2338done
2339rm -f conftest*
2340if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2344fi
2345
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350fi
ab509236 2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
ab509236
L
2359echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
ab509236
L
2364 ac_func_search_save_LIBS=$LIBS
2365ac_cv_search_strerror=no
13b2be9c 2366cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373/* Override any gcc2 internal prototype to avoid an error. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char strerror ();
2380int
2381main ()
2382{
2383strerror ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext conftest$ac_exeext
2389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2390 (eval $ac_link) 2>conftest.er1
13b2be9c 2391 ac_status=$?
ab509236
L
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
13b2be9c
DJ
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
1ad12f97
NC
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
ab509236
L
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
ab509236 2410 ac_cv_search_strerror="none required"
13b2be9c
DJ
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
13b2be9c 2415fi
ab509236
L
2416rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h. */
2427
2428/* Override any gcc2 internal prototype to avoid an error. */
2429#ifdef __cplusplus
2430extern "C"
2431#endif
2432/* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434char strerror ();
2435int
2436main ()
2437{
2438strerror ();
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext conftest$ac_exeext
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
1ad12f97
NC
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
ab509236
L
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_search_strerror="-l$ac_lib"
2466break
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
13b2be9c 2471fi
ab509236
L
2472rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474 done
13b2be9c 2475fi
ab509236
L
2476LIBS=$ac_func_search_save_LIBS
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480if test "$ac_cv_search_strerror" != no; then
2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2482
ab509236 2483fi
13b2be9c
DJ
2484
2485
2486BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2487am__api_version="1.9"
13b2be9c
DJ
2488# Find a good install program. We prefer a C program (faster),
2489# so one script is as good as another. But avoid the broken or
2490# incompatible versions:
2491# SysV /etc/install, /usr/sbin/install
2492# SunOS /usr/etc/install
2493# IRIX /sbin/install
2494# AIX /bin/install
2495# AmigaOS /C/install, which installs bootblocks on floppy discs
2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2499# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2500# ./install, which can be erroneously created by make from ./install.sh.
2501echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503if test -z "$INSTALL"; then
2504if test "${ac_cv_path_install+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513case $as_dir/ in
2514 ./ | .// | /cC/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
2536 fi
2537 fi
13b2be9c
DJ
2538 done
2539 done
2540 ;;
2541esac
2542done
2543
252b5132
RH
2544
2545fi
2546 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2547 INSTALL=$ac_cv_path_install
252b5132
RH
2548 else
2549 # As a last resort, use the slow shell script. We don't cache a
2550 # path for INSTALL within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the path is relative.
13b2be9c 2553 INSTALL=$ac_install_sh
252b5132
RH
2554 fi
2555fi
13b2be9c
DJ
2556echo "$as_me:$LINENO: result: $INSTALL" >&5
2557echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2558
2559# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560# It thinks the first close brace ends the variable substitution.
2561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
13b2be9c 2563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2564
2565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
13b2be9c
DJ
2567echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2569# Just in case
2570sleep 1
13b2be9c 2571echo timestamp > conftest.file
252b5132
RH
2572# Do `set' in a subshell so we don't clobber the current shell's
2573# arguments. Must try -L first in case configure is actually a
2574# symlink; some systems play weird games with the mod time of symlinks
2575# (eg FreeBSD returns the mod time of the symlink's containing
2576# directory).
2577if (
13b2be9c 2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2579 if test "$*" = "X"; then
2580 # -L didn't work.
13b2be9c 2581 set X `ls -t $srcdir/configure conftest.file`
252b5132 2582 fi
13b2be9c
DJ
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2586
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2592alias in your environment" >&5
2593echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&2;}
2595 { (exit 1); exit 1; }; }
252b5132
RH
2596 fi
2597
13b2be9c
DJ
2598 test "$2" = conftest.file
2599 )
2600then
2601 # Ok.
2602 :
2603else
2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605Check your system clock" >&5
2606echo "$as_me: error: newly created file is older than distributed files!
2607Check your system clock" >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612test "$program_prefix" != NONE &&
2613 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614# Use a double $ so make ignores it.
2615test "$program_suffix" != NONE &&
2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617# Double any \ or $. echo might interpret backslashes.
2618# By default was `s,x,x', remove it if useless.
2619cat <<\_ACEOF >conftest.sed
2620s/[\\$]/&&/g;s/;s,x,x,$//
2621_ACEOF
2622program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623rm conftest.sed
2624
13b2be9c
DJ
2625# expand $ac_aux_dir to an absolute path
2626am_aux_dir=`cd $ac_aux_dir && pwd`
2627
2628test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629# Use eval to expand $SHELL
2630if eval "$MISSING --run true"; then
2631 am_missing_run="$MISSING --run "
2632else
2633 am_missing_run=
2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636fi
2637
4b363073 2638if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2639 # We used to keeping the `.' as first argument, in order to
2640 # allow $(mkdir_p) to be used without argument. As in
ab509236 2641 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2642 # where $(somedir) is conditionally defined. However this is wrong
2643 # for two reasons:
2644 # 1. if the package is installed by a user who cannot write `.'
2645 # make install will fail,
2646 # 2. the above comment should most certainly read
2647 # $(mkdir_p) $(DESTDIR)$(somedir)
2648 # so it does not work when $(somedir) is undefined and
2649 # $(DESTDIR) is not.
2650 # To support the latter case, we have to write
2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652 # so the `.' trick is pointless.
2653 mkdir_p='mkdir -p --'
ab509236
L
2654else
2655 # On NextStep and OpenStep, the `mkdir' command does not
2656 # recognize any option. It will interpret all options as
2657 # directories to create, and then abort because `.' already
2658 # exists.
4b363073 2659 for d in ./-p ./--version;
ab509236
L
2660 do
2661 test -d $d && rmdir $d
2662 done
2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664 if test -f "$ac_aux_dir/mkinstalldirs"; then
2665 mkdir_p='$(mkinstalldirs)'
2666 else
2667 mkdir_p='$(install_sh) -d'
2668 fi
2669fi
2670
13b2be9c
DJ
2671for ac_prog in gawk mawk nawk awk
2672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_AWK+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697fi
2698fi
2699AWK=$ac_cv_prog_AWK
2700if test -n "$AWK"; then
2701 echo "$as_me:$LINENO: result: $AWK" >&5
2702echo "${ECHO_T}$AWK" >&6
2703else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706fi
2707
2708 test -n "$AWK" && break
2709done
2710
2711echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2713set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2714if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 cat >conftest.make <<\_ACEOF
2718all:
2719 @echo 'ac_maketemp="$(MAKE)"'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723if test -n "$ac_maketemp"; then
2724 eval ac_cv_prog_make_${ac_make}_set=yes
2725else
2726 eval ac_cv_prog_make_${ac_make}_set=no
2727fi
2728rm -f conftest.make
2729fi
2730if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732echo "${ECHO_T}yes" >&6
2733 SET_MAKE=
2734else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737 SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743 am__leading_dot=.
2744else
2745 am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749DEPDIR="${am__leading_dot}deps"
2750
2751 ac_config_commands="$ac_config_commands depfiles"
2752
2753
2754am_make=${MAKE-make}
2755cat > confinc << 'END'
2756am__doit:
2757 @echo done
2758.PHONY: am__doit
2759END
2760# If we don't find an include directive, just comment out the code.
2761echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763am__include="#"
2764am__quote=
2765_am_result=none
2766# First try GNU make style include.
2767echo "include confinc" > confmf
2768# We grep out `Entering directory' and `Leaving directory'
2769# messages which can occur if `w' ends up in MAKEFLAGS.
2770# In particular we don't look at `^make:' because GNU make might
2771# be invoked under some other name (usually "gmake"), in which
2772# case it prints its new name instead of `make'.
2773if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 am__include=include
2775 am__quote=
2776 _am_result=GNU
2777fi
2778# Now try BSD make style include.
2779if test "$am__include" = "#"; then
2780 echo '.include "confinc"' > confmf
2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782 am__include=.include
2783 am__quote="\""
2784 _am_result=BSD
2785 fi
2786fi
2787
2788
2789echo "$as_me:$LINENO: result: $_am_result" >&5
2790echo "${ECHO_T}$_am_result" >&6
2791rm -f confinc confmf
2792
2793# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794if test "${enable_dependency_tracking+set}" = set; then
2795 enableval="$enable_dependency_tracking"
2796
2797fi;
2798if test "x$enable_dependency_tracking" != xno; then
2799 am_depcomp="$ac_aux_dir/depcomp"
2800 AMDEPBACKSLASH='\'
2801fi
2802
2803
2804if test "x$enable_dependency_tracking" != xno; then
2805 AMDEP_TRUE=
2806 AMDEP_FALSE='#'
2807else
2808 AMDEP_TRUE='#'
2809 AMDEP_FALSE=
2810fi
2811
2812
2813
ab509236 2814# test to see if srcdir already configured
13b2be9c
DJ
2815if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816 test -f $srcdir/config.status; then
2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819 { (exit 1); exit 1; }; }
2820fi
2821
2822# test whether we have cygpath
2823if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2826 else
2827 CYGPATH_W=echo
2828 fi
2829fi
2830
2831
2832# Define the identity of the package.
2833 PACKAGE=gas
2834 VERSION=${BFD_VERSION}
2835
2836
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE "$PACKAGE"
2839_ACEOF
2840
2841
2842cat >>confdefs.h <<_ACEOF
2843#define VERSION "$VERSION"
2844_ACEOF
2845
2846# Some tools Automake needs.
2847
2848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
13b2be9c
DJ
2862install_sh=${install_sh-"$am_aux_dir/install-sh"}
2863
2864# Installed binaries are usually stripped using `strip' when the user
2865# run `make install-strip'. However `strip' might not be the right
2866# tool to use in cross-compilation environments, therefore Automake
2867# will honor the `STRIP' environment variable to overrule this program.
2868if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}strip; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_STRIP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2879else
13b2be9c
DJ
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891done
2892done
2893
252b5132 2894fi
13b2be9c
DJ
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898 echo "$as_me:$LINENO: result: $STRIP" >&5
2899echo "${ECHO_T}$STRIP" >&6
c8615825 2900else
13b2be9c
DJ
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
c8615825 2903fi
c8615825 2904
13b2be9c
DJ
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2914else
13b2be9c
DJ
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2917else
13b2be9c
DJ
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930done
2931
2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2933fi
252b5132 2934fi
13b2be9c
DJ
2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936if test -n "$ac_ct_STRIP"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2939else
13b2be9c
DJ
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
252b5132
RH
2942fi
2943
13b2be9c
DJ
2944 STRIP=$ac_ct_STRIP
2945else
2946 STRIP="$ac_cv_prog_STRIP"
2947fi
d6d788bd 2948
252b5132 2949fi
13b2be9c 2950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2951
13b2be9c
DJ
2952# We need awk for the "check" target. The system "awk" is bad on
2953# some platforms.
8ea2b00f
AM
2954# Always define AMTAR for backward compatibility.
2955
2956AMTAR=${AMTAR-"${am_missing_run}tar"}
2957
2958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2959
2960
252b5132 2961
d6d788bd 2962
13b2be9c 2963depcc="$CC" am_compiler_list=
d6d788bd 2964
13b2be9c
DJ
2965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2969else
13b2be9c
DJ
2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971 # We make a subdir and do the tests there. Otherwise we can end up
2972 # making bogus files that we don't know about and never remove. For
2973 # instance it was reported that on HP-UX the gcc test will end up
2974 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # in D'.
2976 mkdir conftest.dir
2977 # Copy depcomp to subdir because otherwise we won't find it if we're
2978 # using a relative directory.
2979 cp "$am_depcomp" conftest.dir
2980 cd conftest.dir
2981 # We will build objects and dependencies in a subdirectory because
2982 # it helps to detect inapplicable dependency modes. For instance
2983 # both Tru64's cc and ICC support -MD to output dependencies as a
2984 # side effect of compilation, but ICC will put the dependencies in
2985 # the current directory while Tru64 will put them in the object
2986 # directory.
2987 mkdir sub
252b5132 2988
13b2be9c
DJ
2989 am_cv_CC_dependencies_compiler_type=none
2990 if test "$am_compiler_list" = ""; then
2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992 fi
2993 for depmode in $am_compiler_list; do
2994 # Setup a source with many dependencies, because some compilers
2995 # like to wrap large dependency lists on column 80 (with \), and
2996 # we should not choose a depcomp mode which is confused by this.
2997 #
2998 # We need to recreate these files for each test, as the compiler may
2999 # overwrite some of them when testing with obscure command lines.
3000 # This happens at least with the AIX C compiler.
3001 : > sub/conftest.c
3002 for i in 1 2 3 4 5 6; do
3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005 # Solaris 8's {/usr,}/bin/sh.
3006 touch sub/conftst$i.h
13b2be9c
DJ
3007 done
3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009
3010 case $depmode in
3011 nosideeffect)
3012 # after this tag, mechanisms are not by side-effect, so they'll
3013 # only be used when explicitly requested
3014 if test "x$enable_dependency_tracking" = xyes; then
3015 continue
3016 else
3017 break
3018 fi
3019 ;;
3020 none) break ;;
3021 esac
3022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023 # mode. It turns out that the SunPro C++ compiler does not properly
3024 # handle `-M -o', and we need to detect this.
3025 if depmode=$depmode \
3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029 >/dev/null 2>conftest.err &&
3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3034 # or remarks (even with -Werror). So we grep stderr for any message
3035 # that says an option was ignored or not supported.
3036 # When given -MP, icc 7.0 and 7.1 complain thusly:
3037 # icc: Command line warning: ignoring option '-M'; no argument required
3038 # The diagnosis changed in icc 8.0:
3039 # icc: Command line remark: option '-MP' not supported
3040 if (grep 'ignoring option' conftest.err ||
3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3042 am_cv_CC_dependencies_compiler_type=$depmode
3043 break
3044 fi
3045 fi
3046 done
252b5132 3047
13b2be9c
DJ
3048 cd ..
3049 rm -rf conftest.dir
252b5132 3050else
13b2be9c 3051 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3052fi
3053
252b5132 3054fi
13b2be9c
DJ
3055echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3058
13b2be9c
DJ
3059
3060
3061if
3062 test "x$enable_dependency_tracking" != xno \
3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064 am__fastdepCC_TRUE=
3065 am__fastdepCC_FALSE='#'
252b5132 3066else
13b2be9c
DJ
3067 am__fastdepCC_TRUE='#'
3068 am__fastdepCC_FALSE=
252b5132
RH
3069fi
3070
d6d788bd
L
3071
3072
13b2be9c 3073
252b5132
RH
3074# Check whether --enable-shared or --disable-shared was given.
3075if test "${enable_shared+set}" = set; then
3076 enableval="$enable_shared"
3077 p=${PACKAGE-default}
f9c19112 3078case $enableval in
252b5132
RH
3079yes) enable_shared=yes ;;
3080no) enable_shared=no ;;
3081*)
3082 enable_shared=no
3083 # Look at the argument we got. We use all the common list separators.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3085 for pkg in $enableval; do
3086 if test "X$pkg" = "X$p"; then
3087 enable_shared=yes
3088 fi
3089 done
3090 IFS="$ac_save_ifs"
3091 ;;
3092esac
3093else
3094 enable_shared=yes
13b2be9c 3095fi;
252b5132
RH
3096# Check whether --enable-static or --disable-static was given.
3097if test "${enable_static+set}" = set; then
3098 enableval="$enable_static"
3099 p=${PACKAGE-default}
f9c19112 3100case $enableval in
252b5132
RH
3101yes) enable_static=yes ;;
3102no) enable_static=no ;;
3103*)
3104 enable_static=no
3105 # Look at the argument we got. We use all the common list separators.
3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3107 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3109 enable_static=yes
3110 fi
3111 done
3112 IFS="$ac_save_ifs"
3113 ;;
3114esac
3115else
3116 enable_static=yes
13b2be9c 3117fi;
bedf545c
ILT
3118# Check whether --enable-fast-install or --disable-fast-install was given.
3119if test "${enable_fast_install+set}" = set; then
3120 enableval="$enable_fast_install"
3121 p=${PACKAGE-default}
f9c19112 3122case $enableval in
bedf545c
ILT
3123yes) enable_fast_install=yes ;;
3124no) enable_fast_install=no ;;
3125*)
3126 enable_fast_install=no
3127 # Look at the argument we got. We use all the common list separators.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3132 fi
3133 done
3134 IFS="$ac_save_ifs"
3135 ;;
3136esac
3137else
3138 enable_fast_install=yes
13b2be9c 3139fi;
87ccc1b0 3140
6840198f
NC
3141# Check whether --with-gnu-ld or --without-gnu-ld was given.
3142if test "${with_gnu_ld+set}" = set; then
3143 withval="$with_gnu_ld"
3144 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3145else
6840198f 3146 with_gnu_ld=no
13b2be9c 3147fi;
6840198f
NC
3148ac_prog=ld
3149if test "$GCC" = yes; then
3150 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
3153 case $host in
3154 *-*-mingw*)
3155 # gcc leaves a trailing carriage return which upsets mingw
3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3157 *)
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159 esac
3160 case $ac_prog in
3161 # Accept absolute paths.
3162 [\\/]* | [A-Za-z]:[\\/]*)
3163 re_direlt='/[^/][^/]*/\.\./'
3164 # Canonicalize the path of ld
3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168 done
3169 test -z "$LD" && LD="$ac_prog"
3170 ;;
3171 "")
3172 # If it fails, then pretend we aren't using GCC.
3173 ac_prog=ld
3174 ;;
3175 *)
3176 # If it is relative, then search for the first ld in PATH.
3177 with_gnu_ld=unknown
3178 ;;
3179 esac
3180elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3181 echo "$as_me:$LINENO: checking for GNU ld" >&5
3182echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3183else
13b2be9c
DJ
3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3186fi
13b2be9c
DJ
3187if test "${lt_cv_path_LD+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3189else
3190 if test -z "$LD"; then
a74801ba 3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3192 for ac_dir in $PATH; do
3193 test -z "$ac_dir" && ac_dir=.
a74801ba 3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3195 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3196 # Check to see if the program is GNU ld. I'd rather use --version,
3197 # but apparently some GNU ld's only accept -v.
3198 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 3199 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3200 test "$with_gnu_ld" != no && break
3201 else
bedf545c 3202 test "$with_gnu_ld" != yes && break
252b5132
RH
3203 fi
3204 fi
3205 done
3206 IFS="$ac_save_ifs"
3207else
f9c19112 3208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3209fi
3210fi
3211
f9c19112 3212LD="$lt_cv_path_LD"
252b5132 3213if test -n "$LD"; then
13b2be9c
DJ
3214 echo "$as_me:$LINENO: result: $LD" >&5
3215echo "${ECHO_T}$LD" >&6
252b5132 3216else
13b2be9c
DJ
3217 echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
252b5132 3219fi
13b2be9c
DJ
3220test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222 { (exit 1); exit 1; }; }
3223echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225if test "${lt_cv_prog_gnu_ld+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3227else
3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3230 lt_cv_prog_gnu_ld=yes
252b5132 3231else
f9c19112 3232 lt_cv_prog_gnu_ld=no
252b5132
RH
3233fi
3234fi
13b2be9c
DJ
3235echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3236echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3237with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3238
d6d788bd 3239
13b2be9c
DJ
3240echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3241echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3242if test "${lt_cv_ld_reload_flag+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3244else
3245 lt_cv_ld_reload_flag='-r'
3246fi
13b2be9c
DJ
3247echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3248echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3249reload_flag=$lt_cv_ld_reload_flag
3250test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3251
13b2be9c
DJ
3252echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254if test "${lt_cv_path_NM+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3256else
3257 if test -n "$NM"; then
3258 # Let the user override the test.
f9c19112 3259 lt_cv_path_NM="$NM"
252b5132 3260else
a74801ba 3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3262 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3263 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3264 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3265 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3266 # Check to see if the nm accepts a BSD-compat flag.
3267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268 # nm: unknown option "B" ignored
58cccadb
AO
3269 # Tru64's nm complains that /dev/null is an invalid object file
3270 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3271 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3272 break
ac48eca1 3273 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3274 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3275 break
252b5132 3276 else
f9c19112 3277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3278 continue # so that we can try to find one that supports BSD flags
252b5132 3279 fi
252b5132
RH
3280 fi
3281 done
3282 IFS="$ac_save_ifs"
f9c19112 3283 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3284fi
3285fi
3286
f9c19112 3287NM="$lt_cv_path_NM"
13b2be9c
DJ
3288echo "$as_me:$LINENO: result: $NM" >&5
3289echo "${ECHO_T}$NM" >&6
252b5132 3290
13b2be9c
DJ
3291echo "$as_me:$LINENO: checking whether ln -s works" >&5
3292echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3293LN_S=$as_ln_s
3294if test "$LN_S" = "ln -s"; then
3295 echo "$as_me:$LINENO: result: yes" >&5
3296echo "${ECHO_T}yes" >&6
252b5132 3297else
13b2be9c
DJ
3298 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3299echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3300fi
3301
13b2be9c
DJ
3302echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3303echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3304if test "${lt_cv_deplibs_check_method+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3306else
d64552c5 3307 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3308lt_cv_file_magic_test_file=
3309lt_cv_deplibs_check_method='unknown'
3310# Need to set the preceding variable on all platforms that support
3311# interlibrary dependencies.
3312# 'none' -- dependencies not supported.
3313# `unknown' -- same as none, but documents that we really don't know.
3314# 'pass_all' -- all dependencies passed with no checks.
3315# 'test_compile' -- check by making test program.
3316# 'file_magic [regex]' -- check by looking for files in library path
3317# which responds to the $file_magic_cmd with a given egrep regex.
3318# If you have `file' or equivalent on your system and you're not sure
3319# whether `pass_all' will *always* work, you probably want this one.
3320
f9c19112
HPN
3321case $host_os in
3322aix*)
ac48eca1
AO
3323 lt_cv_deplibs_check_method=pass_all
3324 ;;
3325
3326beos*)
3327 lt_cv_deplibs_check_method=pass_all
3328 ;;
3329
3330bsdi4*)
f9c19112
HPN
3331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3332 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3333 lt_cv_file_magic_test_file=/shlib/libc.so
3334 ;;
3335
d64552c5 3336cygwin* | mingw* |pw32*)
ac48eca1 3337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3338 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3339 ;;
3340
f9c19112 3341darwin* | rhapsody*)
d70c5fc7 3342 # this will be overwritten by pass_all, but leave it in just in case
f9c19112 3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 case "$host_os" in
3346 rhapsody* | darwin1.012)
3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3348 ;;
3349 *) # Darwin 1.3 on
3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351 ;;
3352 esac
d70c5fc7 3353 lt_cv_deplibs_check_method=pass_all
f9c19112
HPN
3354 ;;
3355
4101eec8 3356freebsd* | kfreebsd*-gnu)
ac48eca1 3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3358 case $host_cpu in
ac48eca1 3359 i*86 )
58cccadb
AO
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 ;;
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3369 fi
3370 ;;
3371
3372gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375
f9c19112 3376hpux10.20*|hpux11*)
4867be41
DJ
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ;;
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 ;;
3388 esac
ac48eca1
AO
3389 ;;
3390
3391irix5* | irix6*)
f9c19112 3392 case $host_os in
ac48eca1
AO
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 ;;
3397 *)
f9c19112 3398 case $LD in
ac48eca1
AO
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 ;;
ac48eca1
AO
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3410 ;;
3411
3412# This must be Linux ELF.
58cccadb 3413linux-gnu*)
d70c5fc7 3414 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3415 ;;
3416
4101eec8 3417netbsd* | knetbsd*-gnu)
f9c19112 3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3420 else
6840198f 3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3422 fi
f9c19112
HPN
3423 ;;
3424
3425newsos6)
3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427 lt_cv_file_magic_cmd=/usr/bin/file
3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3429 ;;
3430
3431osf3* | osf4* | osf5*)
3432 # this will be overridden with pass_all, but let us keep it just in case
3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3435 lt_cv_deplibs_check_method=pass_all
3436 ;;
3437
3438sco3.2v5*)
3439 lt_cv_deplibs_check_method=pass_all
3440 ;;
3441
3442solaris*)
3443 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_file_magic_test_file=/lib/libc.so
3445 ;;
3446
6be7c12c
AO
3447sysv5uw[78]* | sysv4*uw2*)
3448 lt_cv_deplibs_check_method=pass_all
3449 ;;
3450
ac48eca1 3451sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3452 case $host_vendor in
ac48eca1
AO
3453 ncr)
3454 lt_cv_deplibs_check_method=pass_all
3455 ;;
3456 motorola)
f9c19112
HPN
3457 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]'
3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3459 ;;
3460 esac
3461 ;;
3462esac
3463
3464fi
13b2be9c
DJ
3465echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3467file_magic_cmd=$lt_cv_file_magic_cmd
3468deplibs_check_method=$lt_cv_deplibs_check_method
3469
c8615825 3470
c8615825 3471
c8615825 3472
ac48eca1
AO
3473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3474
d70c5fc7
NC
3475# find the maximum length of command line arguments
3476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3478if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 i=0
3482 teststring="ABCD"
3483
3484 case $build_os in
3485 msdosdjgpp*)
3486 # On DJGPP, this test can blow up pretty badly due to problems in libc
3487 # (any single argument exceeding 2000 bytes causes a buffer overrun
3488 # during glob expansion). Even if it were fixed, the result of this
3489 # check would be larger than it should be.
3490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3491 ;;
3492
3493 cygwin* | mingw*)
3494 # On Win9x/ME, this test blows up -- it succeeds, but takes
3495 # about 5 minutes as the teststring grows exponentially.
3496 # Worse, since 9x/ME are not pre-emptively multitasking,
3497 # you end up with a "frozen" computer, even though with patience
3498 # the test eventually succeeds (with a max line length of 256k).
3499 # Instead, let's just punt: use the minimum linelength reported by
3500 # all of the supported platforms: 8192 (on NT/2K/XP).
3501 lt_cv_sys_max_cmd_len=8192;
3502 ;;
3503
3504 amigaos*)
3505 # On AmigaOS with pdksh, this test takes hours, literally.
3506 # So we just punt and use a minimum line length of 8192.
3507 lt_cv_sys_max_cmd_len=8192;
3508 ;;
3509
3510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3511 # This has been around since 386BSD, at least. Likely further.
3512 if test -x /sbin/sysctl; then
3513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3514 elif test -x /usr/sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3516 else
3517 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3518 fi
3519 # And add a safety zone
3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3522 ;;
3523 esac
3524
3525fi
3526
3527if test -n "$lt_cv_sys_max_cmd_len" ; then
3528 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3529echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3530else
3531 echo "$as_me:$LINENO: result: none" >&5
3532echo "${ECHO_T}none" >&6
3533fi
3534
3535
ac48eca1 3536# Only perform the check for file, if the check method requires it
f9c19112 3537case $deplibs_check_method in
ac48eca1 3538file_magic*)
d64552c5 3539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3540 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3541echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3544else
f9c19112 3545 case $MAGIC_CMD in
ac48eca1 3546 /*)
d64552c5 3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3548 ;;
3549 ?:/*)
d64552c5 3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3551 ;;
3552 *)
d64552c5 3553 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3555 ac_dummy="/usr/bin:$PATH"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3560 if test -n "$file_magic_test_file"; then
f9c19112 3561 case $deplibs_check_method in
ac48eca1
AO
3562 "file_magic "*)
3563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3566 egrep "$file_magic_regex" > /dev/null; then
3567 :
3568 else
3569 cat <<EOF 1>&2
3570
3571*** Warning: the command libtool uses to detect shared libraries,
3572*** $file_magic_cmd, produces output that libtool cannot recognize.
3573*** The result is that libtool may fail to recognize shared libraries
3574*** as such. This will affect the creation of libtool libraries that
3575*** depend on shared libraries, but programs linked with such libtool
3576*** libraries will work regardless of this problem. Nevertheless, you
3577*** may want to report the problem to your system manager and/or to
3578*** bug-libtool@gnu.org
3579
3580EOF
3581 fi ;;
3582 esac
3583 fi
3584 break
3585 fi
3586 done
3587 IFS="$ac_save_ifs"
d64552c5 3588 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3589 ;;
3590esac
3591fi
3592
d64552c5
AO
3593MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3596echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3597else
13b2be9c
DJ
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
ac48eca1
AO
3600fi
3601
d64552c5 3602if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3603 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3604 echo "$as_me:$LINENO: checking for file" >&5
3605echo $ECHO_N "checking for file... $ECHO_C" >&6
3606if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3608else
f9c19112 3609 case $MAGIC_CMD in
ac48eca1 3610 /*)
d64552c5 3611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3612 ;;
3613 ?:/*)
d64552c5 3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3615 ;;
3616 *)
d64552c5 3617 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="/usr/bin:$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/file; then
d64552c5 3623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3624 if test -n "$file_magic_test_file"; then
f9c19112 3625 case $deplibs_check_method in
ac48eca1
AO
3626 "file_magic "*)
3627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3630 egrep "$file_magic_regex" > /dev/null; then
3631 :
3632 else
3633 cat <<EOF 1>&2
3634
3635*** Warning: the command libtool uses to detect shared libraries,
3636*** $file_magic_cmd, produces output that libtool cannot recognize.
3637*** The result is that libtool may fail to recognize shared libraries
3638*** as such. This will affect the creation of libtool libraries that
3639*** depend on shared libraries, but programs linked with such libtool
3640*** libraries will work regardless of this problem. Nevertheless, you
3641*** may want to report the problem to your system manager and/or to
3642*** bug-libtool@gnu.org
3643
3644EOF
3645 fi ;;
3646 esac
3647 fi
3648 break
3649 fi
3650 done
3651 IFS="$ac_save_ifs"
d64552c5 3652 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3653 ;;
3654esac
3655fi
3656
d64552c5
AO
3657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3658if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3660echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3661else
13b2be9c
DJ
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
ac48eca1
AO
3664fi
3665
3666 else
d64552c5 3667 MAGIC_CMD=:
ac48eca1
AO
3668 fi
3669fi
3670
3671 fi
3672 ;;
3673esac
3674
13b2be9c
DJ
3675if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3678echo "$as_me:$LINENO: checking for $ac_word" >&5
3679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680if test "${ac_cv_prog_RANLIB+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3682else
3683 if test -n "$RANLIB"; then
3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685else
13b2be9c
DJ
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697done
3698done
3699
ac48eca1
AO
3700fi
3701fi
13b2be9c 3702RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3703if test -n "$RANLIB"; then
13b2be9c
DJ
3704 echo "$as_me:$LINENO: result: $RANLIB" >&5
3705echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3706else
13b2be9c
DJ
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
ac48eca1
AO
3709fi
3710
13b2be9c 3711fi
ac48eca1 3712if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3713 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3714 # Extract the first word of "ranlib", so it can be a program name with args.
3715set dummy ranlib; ac_word=$2
13b2be9c
DJ
3716echo "$as_me:$LINENO: checking for $ac_word" >&5
3717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3720else
13b2be9c
DJ
3721 if test -n "$ac_ct_RANLIB"; then
3722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3723else
13b2be9c
DJ
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_RANLIB="ranlib"
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735done
3736done
3737
3738 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3739fi
3740fi
13b2be9c
DJ
3741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3742if test -n "$ac_ct_RANLIB"; then
3743 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3744echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3745else
13b2be9c
DJ
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
ac48eca1
AO
3748fi
3749
13b2be9c 3750 RANLIB=$ac_ct_RANLIB
ac48eca1 3751else
13b2be9c 3752 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3753fi
3754
13b2be9c
DJ
3755if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3757set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3758echo "$as_me:$LINENO: checking for $ac_word" >&5
3759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760if test "${ac_cv_prog_STRIP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3762else
3763 if test -n "$STRIP"; then
3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765else
13b2be9c
DJ
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777done
3778done
3779
ac48eca1
AO
3780fi
3781fi
13b2be9c 3782STRIP=$ac_cv_prog_STRIP
ac48eca1 3783if test -n "$STRIP"; then
13b2be9c
DJ
3784 echo "$as_me:$LINENO: result: $STRIP" >&5
3785echo "${ECHO_T}$STRIP" >&6
ac48eca1 3786else
13b2be9c
DJ
3787 echo "$as_me:$LINENO: result: no" >&5
3788echo "${ECHO_T}no" >&6
ac48eca1
AO
3789fi
3790
13b2be9c 3791fi
ac48eca1 3792if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3793 ac_ct_STRIP=$STRIP
ac48eca1
AO
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
13b2be9c
DJ
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3800else
13b2be9c
DJ
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3803else
13b2be9c
DJ
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3819fi
3820fi
13b2be9c
DJ
3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822if test -n "$ac_ct_STRIP"; then
3823 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3824echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3825else
13b2be9c
DJ
3826 echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
d6d788bd
L
3828fi
3829
13b2be9c 3830 STRIP=$ac_ct_STRIP
d6d788bd 3831else
13b2be9c 3832 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3833fi
3834
252b5132 3835
252b5132 3836# Check for any special flags to pass to ltconfig.
bedf545c 3837libtool_flags="--cache-file=$cache_file"
252b5132
RH
3838test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3839test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3840test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3841test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3842test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3843
d6d788bd 3844
a74801ba
ILT
3845# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3846if test "${enable_libtool_lock+set}" = set; then
3847 enableval="$enable_libtool_lock"
a74801ba 3848
13b2be9c 3849fi;
a74801ba
ILT
3850test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3851test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3852
13b2be9c 3853
ac48eca1
AO
3854# Check whether --with-pic or --without-pic was given.
3855if test "${with_pic+set}" = set; then
3856 withval="$with_pic"
3857 pic_mode="$withval"
3858else
3859 pic_mode=default
13b2be9c 3860fi;
ac48eca1
AO
3861test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3862test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3863
252b5132
RH
3864# Some flags need to be propagated to the compiler or linker for good
3865# libtool support.
f9c19112 3866case $host in
252b5132
RH
3867*-*-irix6*)
3868 # Find out which ABI we are using.
20e95c23 3869 echo '#line 3869 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; then
e0001a05
NC
3875 if test "$lt_cv_prog_gnu_ld" = yes; then
3876 case `/usr/bin/file conftest.$ac_objext` in
3877 *32-bit*)
3878 LD="${LD-ld} -melf32bsmip"
3879 ;;
3880 *N32*)
3881 LD="${LD-ld} -melf32bmipn32"
3882 ;;
3883 *64-bit*)
3884 LD="${LD-ld} -melf64bmip"
3885 ;;
3886 esac
3887 else
f9c19112 3888 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3889 *32-bit*)
3890 LD="${LD-ld} -32"
3891 ;;
3892 *N32*)
3893 LD="${LD-ld} -n32"
3894 ;;
3895 *64-bit*)
3896 LD="${LD-ld} -64"
3897 ;;
3898 esac
e0001a05 3899 fi
252b5132
RH
3900 fi
3901 rm -rf conftest*
3902 ;;
3903
4867be41
DJ
3904ia64-*-hpux*)
3905 # Find out which ABI we are using.
3906 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; then
4867be41
DJ
3912 case "`/usr/bin/file conftest.o`" in
3913 *ELF-32*)
3914 HPUX_IA64_MODE="32"
3915 ;;
3916 *ELF-64*)
3917 HPUX_IA64_MODE="64"
3918 ;;
3919 esac
3920 fi
3921 rm -rf conftest*
3922 ;;
3923
e1b5fdd4 3924x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
3925 # Find out which ABI we are using.
3926 echo 'int i;' > conftest.$ac_ext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; then
3932 case "`/usr/bin/file conftest.o`" in
3933 *32-bit*)
3934 case $host in
e1b5fdd4 3935 x86_64-*linux*)
d70c5fc7
NC
3936 LD="${LD-ld} -m elf_i386"
3937 ;;
3938 ppc64-*linux*|powerpc64-*linux*)
3939 LD="${LD-ld} -m elf32ppclinux"
3940 ;;
3941 s390x-*linux*)
3942 LD="${LD-ld} -m elf_s390"
3943 ;;
3944 sparc64-*linux*)
3945 LD="${LD-ld} -m elf32_sparc"
3946 ;;
3947 esac
3948 ;;
3949 *64-bit*)
3950 case $host in
e1b5fdd4 3951 x86_64-*linux*)
d70c5fc7
NC
3952 LD="${LD-ld} -m elf_x86_64"
3953 ;;
3954 ppc*-*linux*|powerpc*-*linux*)
3955 LD="${LD-ld} -m elf64ppc"
3956 ;;
3957 s390*-*linux*)
3958 LD="${LD-ld} -m elf64_s390"
3959 ;;
3960 sparc*-*linux*)
3961 LD="${LD-ld} -m elf64_sparc"
3962 ;;
3963 esac
3964 ;;
3965 esac
3966 fi
3967 rm -rf conftest*
3968 ;;
3969
252b5132
RH
3970*-*-sco3.2v5*)
3971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3972 SAVE_CFLAGS="$CFLAGS"
252b5132 3973 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3974 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3975echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3976if test "${lt_cv_cc_needs_belf+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3978else
13b2be9c
DJ
3979
3980
ac48eca1 3981 ac_ext=c
ac48eca1 3982ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
bedf545c 3993
13b2be9c
DJ
3994int
3995main ()
3996{
6840198f 3997
13b2be9c
DJ
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002rm -f conftest.$ac_objext conftest$ac_exeext
4003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 4004 (eval $ac_link) 2>conftest.er1
13b2be9c 4005 ac_status=$?
ab509236
L
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
13b2be9c
DJ
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
1ad12f97
NC
4011 { ac_try='test -z "$ac_c_werror_flag"
4012 || test ! -s conftest.err'
ab509236
L
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
bedf545c
ILT
4024 lt_cv_cc_needs_belf=yes
4025else
13b2be9c
DJ
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029lt_cv_cc_needs_belf=no
bedf545c 4030fi
ab509236
L
4031rm -f conftest.err conftest.$ac_objext \
4032 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4033 ac_ext=c
ac48eca1 4034ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4038
bedf545c 4039fi
13b2be9c
DJ
4040echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4041echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
4042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4044 CFLAGS="$SAVE_CFLAGS"
4045 fi
252b5132
RH
4046 ;;
4047
d6d788bd 4048
252b5132
RH
4049esac
4050
d6d788bd 4051
bedf545c 4052# Save cache, so that ltconfig can load it
13b2be9c 4053cat >confcache <<\_ACEOF
bedf545c
ILT
4054# This file is a shell script that caches the results of configure
4055# tests run on this system so they can be shared between configure
13b2be9c
DJ
4056# scripts and configure runs, see configure's option --config-cache.
4057# It is not useful on other systems. If it contains results you don't
4058# want to keep, you may remove or edit it.
bedf545c 4059#
13b2be9c
DJ
4060# config.status only pays attention to the cache file if you give it
4061# the --recheck option to rerun configure.
bedf545c 4062#
13b2be9c
DJ
4063# `ac_cv_env_foo' variables (set or unset) will be overridden when
4064# loading this file, other *unset* `ac_cv_foo' will be assigned the
4065# following values.
4066
4067_ACEOF
4068
bedf545c 4069# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
4070# but we know of no workaround that is simple, portable, and efficient.
4071# So, don't put newlines in cache variables' values.
4072# Ultrix sh set writes to stderr and can't be redirected directly,
4073# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
4074{
4075 (set) 2>&1 |
4076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4077 *ac_space=\ *)
4078 # `set' does not quote correctly, so add quotes (double-quote
4079 # substitution turns \\\\ into \\, and sed turns \\ into \).
4080 sed -n \
ab509236
L
4081 "s/'/'\\\\''/g;
4082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
4083 ;;
4084 *)
4085 # `set' quotes correctly as required by POSIX, so do not add quotes.
4086 sed -n \
ab509236 4087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
4088 ;;
4089 esac;
4090} |
4091 sed '
4092 t clear
4093 : clear
4094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4095 t end
4096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4097 : end' >>confcache
4098if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 4099 if test -w $cache_file; then
13b2be9c
DJ
4100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4101 cat confcache >$cache_file
bedf545c
ILT
4102 else
4103 echo "not updating unwritable cache $cache_file"
4104 fi
4105fi
4106rm -f confcache
4107
252b5132 4108# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4109AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4110MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4111LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4112AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4113objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4114deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4115${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4116$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
4117|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4118echo "$as_me: error: libtool configure failed" >&2;}
4119 { (exit 1); exit 1; }; }
252b5132 4120
bedf545c
ILT
4121# Reload cache, that may have been modified by ltconfig
4122if test -r "$cache_file"; then
13b2be9c
DJ
4123 # Some versions of bash will fail to source /dev/null (special
4124 # files actually), so we avoid doing that.
4125 if test -f "$cache_file"; then
4126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4127echo "$as_me: loading cache $cache_file" >&6;}
4128 case $cache_file in
4129 [\\/]* | ?:[\\/]* ) . $cache_file;;
4130 *) . ./$cache_file;;
4131 esac
4132 fi
bedf545c 4133else
13b2be9c
DJ
4134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4135echo "$as_me: creating cache $cache_file" >&6;}
4136 >$cache_file
bedf545c
ILT
4137fi
4138
d6d788bd 4139
bedf545c 4140# This can be used to rebuild libtool when needed
ac48eca1 4141LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
4142
4143# Always use our own libtool.
4144LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4145
252b5132
RH
4146# Redirect the config.log output again, so that the ltconfig log is not
4147# clobbered by the next message.
4148exec 5>>./config.log
4149
d6d788bd 4150
13b2be9c
DJ
4151
4152
4153
4154
d6d788bd 4155
7be1c489 4156# Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4157if test "${enable_targets+set}" = set; then
4158 enableval="$enable_targets"
4159 case "${enableval}" in
13b2be9c
DJ
4160 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4161echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4162 { (exit 1); exit 1; }; }
252b5132
RH
4163 ;;
4164 no) enable_targets= ;;
4165 *) enable_targets=$enableval ;;
4166esac
13b2be9c 4167fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4168if test "${enable_commonbfdlib+set}" = set; then
4169 enableval="$enable_commonbfdlib"
4170 case "${enableval}" in
4171 yes) commonbfdlib=true ;;
4172 no) commonbfdlib=false ;;
13b2be9c
DJ
4173 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4174echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4175 { (exit 1); exit 1; }; } ;;
252b5132 4176esac
13b2be9c 4177fi;
252b5132
RH
4178using_cgen=no
4179
9e9b66a9 4180
a541e3ce 4181GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4182
569acd2c
NC
4183# Check whether --enable-werror or --disable-werror was given.
4184if test "${enable_werror+set}" = set; then
4185 enableval="$enable_werror"
1ad12f97
NC
4186 case "${enableval}" in
4187 yes | y) ERROR_ON_WARNING="yes" ;;
4188 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4189 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4190echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4191 { (exit 1); exit 1; }; } ;;
4192 esac
4193fi;
4194
9e9b66a9
AM
4195# Enable -Werror by default when using gcc
4196if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4197 ERROR_ON_WARNING=yes
4198fi
4199
4200NO_WERROR=
4201if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4202 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4203 NO_WERROR="-Wno-error"
1ad12f97
NC
4204fi
4205
a541e3ce
SE
4206if test "${GCC}" = yes ; then
4207 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4208fi
4209
a2d91340
AC
4210# Check whether --enable-build-warnings or --disable-build-warnings was given.
4211if test "${enable_build_warnings+set}" = set; then
4212 enableval="$enable_build_warnings"
4213 case "${enableval}" in
a541e3ce
SE
4214 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4215 no) if test "${GCC}" = yes ; then
4216 WARN_CFLAGS="-w"
4217 fi;;
a2d91340 4218 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4219 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4220 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4221 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4222 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4223esac
9e9b66a9
AM
4224fi;
4225
4226if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4227 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4228fi
4229
d6d788bd 4230
9e9b66a9
AM
4231
4232
4233
252b5132 4234# Generate a header file
13b2be9c 4235 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 4236
252b5132 4237
76a27922
ILT
4238# If we are on a DOS filesystem, we must use gdb.ini rather than
4239# .gdbinit.
76a27922 4240case "${host}" in
591d4689 4241 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 4242 GDBINIT="gdb.ini"
13b2be9c
DJ
4243 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4244
4245 ;;
4246 *)
4247 GDBINIT=".gdbinit"
4248 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4249
76a27922
ILT
4250 ;;
4251esac
4252
d6d788bd 4253
44f2f9d2
AM
4254#We need this for the host. BOUT header is in host order.
4255echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4256echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4257if test "${ac_cv_c_bigendian+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 # See if sys/param.h defines the BYTE_ORDER macro.
4261cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267#include <sys/types.h>
4268#include <sys/param.h>
4269
4270int
4271main ()
4272{
4273#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4274 bogus endian macros
4275#endif
4276
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281rm -f conftest.$ac_objext
4282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
1ad12f97
NC
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
44f2f9d2
AM
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 # It does; now see whether it defined to BIG_ENDIAN or not.
4304cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
4310#include <sys/types.h>
4311#include <sys/param.h>
4312
4313int
4314main ()
4315{
4316#if BYTE_ORDER != BIG_ENDIAN
4317 not big endian
4318#endif
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
1ad12f97
NC
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
44f2f9d2
AM
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_bigendian=yes
4347else
4348 echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351ac_cv_c_bigendian=no
4352fi
4353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354else
4355 echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358# It does not; compile a test program.
4359if test "$cross_compiling" = yes; then
4360 # try to guess the endianness by grepping values into an object file
4361 ac_cv_c_bigendian=unknown
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4369short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4370void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4371short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4372short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4373void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4374int
4375main ()
4376{
4377 _ascii (); _ebcdic ();
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
1ad12f97
NC
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
44f2f9d2
AM
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4405 ac_cv_c_bigendian=yes
4406fi
4407if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4408 if test "$ac_cv_c_bigendian" = unknown; then
4409 ac_cv_c_bigendian=no
4410 else
4411 # finding both strings is unlikely to happen, but who knows?
4412 ac_cv_c_bigendian=unknown
4413 fi
4414fi
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419fi
4420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4421else
4422 cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428int
4429main ()
4430{
4431 /* Are we little or big endian? From Harbison&Steele. */
4432 union
4433 {
4434 long l;
4435 char c[sizeof (long)];
4436 } u;
4437 u.l = 1;
4438 exit (u.c[sizeof (long) - 1] == 1);
4439}
4440_ACEOF
4441rm -f conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_c_bigendian=no
4453else
4454 echo "$as_me: program exited with status $ac_status" >&5
4455echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458( exit $ac_status )
4459ac_cv_c_bigendian=yes
4460fi
4461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462fi
4463fi
4464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465fi
4466echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4467echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4468case $ac_cv_c_bigendian in
4469 yes)
4470
4471cat >>confdefs.h <<\_ACEOF
4472#define WORDS_BIGENDIAN 1
4473_ACEOF
4474 ;;
4475 no)
4476 ;;
4477 *)
4478 { { echo "$as_me:$LINENO: error: unknown endianness
4479presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4480echo "$as_me: error: unknown endianness
4481presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4482 { (exit 1); exit 1; }; } ;;
4483esac
4484
4485
252b5132
RH
4486te_file=generic
4487
4488# Makefile target for installing gas in $(tooldir)/bin.
4489install_tooldir=install-exec-tooldir
4490
4491canon_targets=""
15886821 4492all_targets=no
252b5132
RH
4493if test -n "$enable_targets" ; then
4494 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
4495 if test $t = "all"; then
4496 all_targets=yes
4497 continue
4498 fi
6d83c84b 4499 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
4500 if test -n "$result" ; then
4501 canon_targets="$canon_targets $result"
4502# else
4503# # Permit "all", etc. We don't support it yet though.
4504# canon_targets="$canon_targets $t"
4505 fi
4506 done
4507 _gas_uniq_list="$canon_targets"
4508_gas_uniq_newlist=""
4509for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4510 case $_gas_uniq_i in
4511 _gas_uniq_dummy) ;;
4512 *) case " $_gas_uniq_newlist " in
4513 *" $_gas_uniq_i "*) ;;
4514 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4515 esac ;;
4516 esac
4517done
4518canon_targets=$_gas_uniq_newlist
4519
4520fi
4521
4522emulations=""
4523
4524for this_target in $target $canon_targets ; do
4525
14ee9f48
ILT
4526 targ=${this_target}
4527 . ${srcdir}/configure.tgt
4528
4529 case ${target_cpu} in
4530 crisv32)
ae57792d
HPN
4531
4532cat >>confdefs.h <<_ACEOF
4533#define DEFAULT_CRIS_ARCH $arch
4534_ACEOF
4535
14ee9f48 4536 ;;
252b5132
RH
4537 esac
4538
4539 if test ${this_target} = $target ; then
4540 target_cpu_type=${cpu_type}
4541 elif test ${target_cpu_type} != ${cpu_type} ; then
4542 continue
4543 fi
4544
14ee9f48 4545 generic_target=${cpu_type}-${target_vendor}-${target_os}
252b5132 4546 case ${generic_target} in
14ee9f48
ILT
4547 i386-*-sco3.2v5*)
4548 if test ${this_target} = $target; then
13b2be9c
DJ
4549
4550cat >>confdefs.h <<\_ACEOF
252b5132 4551#define SCO_ELF 1
13b2be9c 4552_ACEOF
252b5132 4553
14ee9f48
ILT
4554 fi
4555 ;;
4556
79500683
AM
4557 i386-*-msdosdjgpp* \
4558 | i386-*-go32* \
14ee9f48 4559 | i386-go32-rtems*)
13b2be9c
DJ
4560
4561cat >>confdefs.h <<\_ACEOF
56385375 4562#define STRICTCOFF 1
13b2be9c 4563_ACEOF
14ee9f48
ILT
4564
4565 ;;
4566
4567 i860-*-*)
4568 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4569echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4570 ;;
4571
4572 mips-sony-bsd*)
4573 ;;
79500683 4574 mips-*-bsd*)
14ee9f48 4575 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
13b2be9c 4576echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
14ee9f48
ILT
4577 { (exit 1); exit 1; }; }
4578 ;;
4579
4580 ppc-*-aix5.*)
f8fc3443
NC
4581
4582cat >>confdefs.h <<\_ACEOF
4583#define AIX_WEAK_SUPPORT 1
4584_ACEOF
4585
14ee9f48 4586 ;;
ed84e695 4587 ppc-*-linux-*)
14ee9f48
ILT
4588 case "$endian" in
4589 big) ;;
4590 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
13b2be9c
DJ
4591echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4592 { (exit 1); exit 1; }; } ;;
14ee9f48
ILT
4593 esac
4594 ;;
4595 ppc-*-solaris*)
4596 if test ${this_target} = $target; then
13b2be9c
DJ
4597
4598cat >>confdefs.h <<\_ACEOF
252b5132 4599#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4600_ACEOF
252b5132 4601
14ee9f48
ILT
4602 fi
4603 if test x${endian} = xbig; then
4604 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
13b2be9c
DJ
4605echo "$as_me: error: Solaris must be configured little endian" >&2;}
4606 { (exit 1); exit 1; }; }
14ee9f48
ILT
4607 fi
4608 ;;
4609
4610 sh*-*-symbianelf*)
85fbca6a
NC
4611
4612cat >>confdefs.h <<\_ACEOF
4613#define TARGET_SYMBIAN 1
4614_ACEOF
4615
14ee9f48 4616 ;;
252b5132
RH
4617 esac
4618
4619 if test ${this_target} = $target ; then
4620 endian_def=
4621 if test x${endian} = xbig; then
4622 endian_def=1
4623 elif test x${endian} = xlittle; then
4624 endian_def=0
4625 fi
4626 if test x${endian_def} != x; then
13b2be9c
DJ
4627
4628cat >>confdefs.h <<_ACEOF
252b5132 4629#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4630_ACEOF
252b5132
RH
4631
4632 fi
4633 fi
4634
252b5132
RH
4635# Other random stuff.
4636
316f5878
RS
4637 case ${cpu_type} in
4638 mips)
4639 # Set mips_cpu to the name of the default CPU.
4640 case ${target_cpu} in
4641 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4642 mips_cpu=from-abi
4643 ;;
4644 mipsisa32 | mipsisa32el)
4645 mips_cpu=mips32
4646 ;;
af7ee8bf
CD
4647 mipsisa32r2 | mipsisa32r2el)
4648 mips_cpu=mips32r2
4649 ;;
316f5878
RS
4650 mipsisa64 | mipsisa64el)
4651 mips_cpu=mips64
4652 ;;
5f74bc13
CD
4653 mipsisa64r2 | mipsisa64r2el)
4654 mips_cpu=mips64r2
4655 ;;
316f5878
RS
4656 mipstx39 | mipstx39el)
4657 mips_cpu=r3900
4658 ;;
8f6847cb
RS
4659 mips64vr | mips64vrel)
4660 mips_cpu=vr4100
4661 ;;
5f74bc13 4662 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4663 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4664 ;;
316f5878
RS
4665 mips64* | mipsisa64* | mipsisa32*)
4666 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4667 ;;
4668 *)
13b2be9c
DJ
4669 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4670echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4671 { (exit 1); exit 1; }; }
316f5878
RS
4672 ;;
4673 esac
4674 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4675 # binaries. It's a GNU extension that some OSes don't understand.
4676 # The value only matters on ELF targets.
4677 case ${target} in
4678 *-*-irix*)
4679 use_e_mips_abi_o32=0
4680 ;;
4681 *)
4682 use_e_mips_abi_o32=1
4683 ;;
4684 esac
4685 # Decide whether to generate 32-bit or 64-bit code by default.
4686 # Used to resolve -march=from-abi when an embedded ABI is selected.
4687 case ${target} in
4688 mips64*-*-* | mipsisa64*-*-*)
4689 mips_default_64bit=1
4690 ;;
4691 *)
4692 mips_default_64bit=0
4693 ;;
4694 esac
cac012d6
AO
4695 # Decide which ABI to target by default.
4696 case ${target} in
4697 mips64*-linux* | mips-sgi-irix6*)
4698 mips_default_abi=N32_ABI
4699 ;;
4700 mips*-linux*)
4701 mips_default_abi=O32_ABI
4702 ;;
26eebcf5
MK
4703 mips64*-openbsd*)
4704 mips_default_abi=N64_ABI
4705 ;;
cac012d6
AO
4706 *)
4707 mips_default_abi=NO_ABI
4708 ;;
4709 esac
13b2be9c
DJ
4710
4711cat >>confdefs.h <<_ACEOF
316f5878 4712#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4713_ACEOF
316f5878 4714
13b2be9c
DJ
4715
4716cat >>confdefs.h <<_ACEOF
316f5878 4717#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4718_ACEOF
316f5878 4719
13b2be9c
DJ
4720
4721cat >>confdefs.h <<_ACEOF
316f5878 4722#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4723_ACEOF
cac012d6 4724
13b2be9c
DJ
4725
4726cat >>confdefs.h <<_ACEOF
cac012d6 4727#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4728_ACEOF
316f5878
RS
4729
4730 ;;
4731 esac
4732
252b5132
RH
4733 # Do we need the opcodes library?
4734 case ${cpu_type} in
4735 vax | i386 | tic30)
4736 ;;
4737
4738 *)
4739 need_opcodes=yes
4740
4741 case "${enable_shared}" in
4742 yes) shared_opcodes=true ;;
4743 *opcodes*) shared_opcodes=true ;;
4744 *) shared_opcodes=false ;;
4745 esac
252b5132
RH
4746 ;;
4747 esac
4748
4749 # Any other special object files needed ?
4750 case ${cpu_type} in
07c1b327
CM
4751
4752 bfin)
4753 echo ${extra_objects} | grep -s "bfin-parse.o"
4754 if test $? -ne 0 ; then
4755 extra_objects="$extra_objects bfin-parse.o"
4756 fi
4757
4758 echo ${extra_objects} | grep -s "bfin-lex.o"
4759 if test $? -ne 0 ; then
4760 extra_objects="$extra_objects bfin-lex.o"
4761 fi
4762 ;;
4763
1c53c80d 4764 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4765 using_cgen=yes
4766 ;;
4767
49f58d10
JB
4768 m32c)
4769 using_cgen=yes
4770 ;;
0ebb9a87
DB
4771 frv)
4772 using_cgen=yes
4773 ;;
252b5132
RH
4774 m68k)
4775 case ${extra_objects} in
4776 *m68k-parse.o*) ;;
4777 *) extra_objects="$extra_objects m68k-parse.o" ;;
4778 esac
4779 ;;
4780
4781 mips)
13b2be9c 4782 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4783 if test $? -ne 0 ; then
4784 extra_objects="$extra_objects itbl-parse.o"
4785 fi
4786
13b2be9c 4787 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4788 if test $? -ne 0 ; then
4789 extra_objects="$extra_objects itbl-lex.o"
4790 fi
4791
13b2be9c 4792 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4793 if test $? -ne 0 ; then
4794 extra_objects="$extra_objects itbl-ops.o"
4795 fi
4796 ;;
4797
4970f871 4798 mt)
047af9ef
AH
4799 using_cgen=yes
4800 ;;
4801
c1e4eef7 4802 i386 | s390 | sparc)
252b5132 4803 if test $this_target = $target ; then
13b2be9c
DJ
4804
4805cat >>confdefs.h <<_ACEOF
252b5132 4806#define DEFAULT_ARCH "${arch}"
13b2be9c 4807_ACEOF
252b5132
RH
4808
4809 fi
4810 ;;
93fbbb04
GK
4811
4812 xstormy16)
4813 using_cgen=yes
4814 ;;
4815
d70c5fc7
NC
4816 xc16x)
4817 using_cgen=yes
4818 ;;
4819
e0001a05
NC
4820 xtensa)
4821 echo ${extra_objects} | grep -s "xtensa-relax.o"
4822 if test $? -ne 0 ; then
4823 extra_objects="$extra_objects xtensa-relax.o"
4824 fi
4825 ;;
4826
252b5132
RH
4827 *)
4828 ;;
4829 esac
4830
4831 if test $using_cgen = yes ; then
4832 case "x${extra_objects}" in
4833 *cgen.o*) ;;
4834 *) extra_objects="$extra_objects cgen.o" ;;
4835 esac
4836 fi
4837
4838# See if we really can support this configuration with the emulation code.
4839
4840 if test $this_target = $target ; then
252b5132
RH
4841 obj_format=$fmt
4842 te_file=$em
252b5132
RH
4843 fi
4844
4845# From target name and format, produce a list of supported emulations.
4846
4847 case ${generic_target}-${fmt} in
4848 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4849 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4850 big) emulation="mipsbelf mipslelf mipself" ;;
4851 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4852 esac ;;
4853 mips-*-lnews*-ecoff) ;;
4854 mips-*-*-ecoff) case "$endian" in
4855 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4856 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4857 esac ;;
4858 mips-*-*-elf) case "$endian" in
4859 big) emulation="mipsbelf mipslelf mipself" ;;
4860 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4861 esac ;;
906fac54 4862 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4863 # i386-pc-pe-coff != i386-pc-coff.
4864 i386-*-pe-coff) ;;
4c63da97
AM
4865 # Uncommenting the next line will turn on support for i386 AOUT
4866 # for the default linux configuration
4867 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4868 #
4869 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4870 i386-*-coff) emulation="i386coff" ;;
4c63da97 4871 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4872
f9c19112
HPN
4873 # Always all formats. The first stated emulation becomes the default.
4874 cris-*-*aout*) emulation="crisaout criself" ;;
4875 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4876 esac
4877
4878 emulations="$emulations $emulation"
4879
4880done
4881
15886821
L
4882# Turn on all targets if possible
4883if test ${all_targets} = "yes"; then
4884 case ${target_cpu_type} in
4885 i386)
4886 case ${obj_format} in
4887 aout)
4888 emulations="$emulations i386coff i386elf"
4889 ;;
4890 coff)
4891 emulations="$emulations i386aout i386elf"
4892 ;;
4893 elf)
4894 emulations="$emulations i386aout i386coff"
4895 ;;
4896 esac
4897 ;;
99ad8390
NC
4898 x86_64)
4899 case ${obj_format} in
4900 aout)
4901 emulations="$emulations i386coff i386elf"
4902 ;;
4903 coff)
4904 emulations="$emulations i386aout i386elf"
4905 ;;
4906 elf)
4907 emulations="$emulations i386aout i386coff"
4908 ;;
4909 esac
4910 ;;
15886821
L
4911 esac
4912fi
4913
252b5132
RH
4914# Assign floating point type. Most processors with FP support
4915# IEEE FP. On those that don't support FP at all, usually IEEE
4916# is emulated.
4917case ${target_cpu} in
12e64c2c 4918 vax | pdp11 ) atof=vax ;;
252b5132
RH
4919 *) atof=ieee ;;
4920esac
4921
4922case "${obj_format}" in
13b2be9c
DJ
4923 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4924echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4925 { (exit 1); exit 1; }; } ;;
252b5132
RH
4926esac
4927
4928# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4929cgen_cpu_prefix=""
4930if test $using_cgen = yes ; then
4931 case ${target_cpu} in
4932 *) cgen_cpu_prefix=${target_cpu} ;;
4933 esac
13b2be9c
DJ
4934
4935
4936cat >>confdefs.h <<\_ACEOF
252b5132 4937#define USING_CGEN 1
13b2be9c 4938_ACEOF
252b5132
RH
4939
4940fi
4941
d6d788bd 4942
252b5132 4943if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4944 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4945echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4946 { (exit 1); exit 1; }; }
252b5132
RH
4947fi
4948
4949if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4950 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4951echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4952 { (exit 1); exit 1; }; }
252b5132
RH
4953fi
4954
252b5132
RH
4955# Some COFF configurations want these random other flags set.
4956case ${obj_format} in
4957 coff)
4958 case ${target_cpu_type} in
13b2be9c
DJ
4959 i386)
4960cat >>confdefs.h <<\_ACEOF
252b5132 4961#define I386COFF 1
13b2be9c 4962_ACEOF
252b5132 4963 ;;
13b2be9c
DJ
4964 m68k)
4965cat >>confdefs.h <<\_ACEOF
252b5132 4966#define M68KCOFF 1
13b2be9c 4967_ACEOF
252b5132 4968 ;;
13b2be9c
DJ
4969 m88k)
4970cat >>confdefs.h <<\_ACEOF
252b5132 4971#define M88KCOFF 1
99ad8390
NC
4972_ACEOF
4973 ;;
4974 x86_64)
4975cat >>confdefs.h <<\_ACEOF
4976#define I386COFF 1
13b2be9c 4977_ACEOF
252b5132
RH
4978 ;;
4979 esac
4980 ;;
4981esac
4982
4983# Getting this done right is going to be a bitch. Each configuration specified
7be1c489
AM
4984# with --enable-targets=... should be checked for environment, format, cpu
4985# setting.
252b5132
RH
4986#
4987# For each configuration, the necessary object file support code must be linked
4988# in. This might be only one, it might be up to four. The necessary emulation
4989# code needs to be provided, too.
4990#
4991# And then there's "--enable-targets=all"....
4992#
4993# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4994
4995formats="${obj_format}"
4996emfiles=""
4997EMULATIONS=""
4998_gas_uniq_list="$emulations"
4999_gas_uniq_newlist=""
5000for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5001 case $_gas_uniq_i in
5002 _gas_uniq_dummy) ;;
5003 *) case " $_gas_uniq_newlist " in
5004 *" $_gas_uniq_i "*) ;;
5005 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5006 esac ;;
5007 esac
5008done
5009emulations=$_gas_uniq_newlist
5010
5011for em in . $emulations ; do
5012 case $em in
5013 .) continue ;;
97238fbd 5014 mipsbelf | mipslelf | mipself)
252b5132 5015 fmt=elf file=mipself ;;
97238fbd 5016 mipsbecoff | mipslecoff | mipsecoff)
252b5132 5017 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
5018 *coff)
5019 fmt=coff file=$em ;;
5020 *aout)
5021 fmt=aout file=$em ;;
5022 *elf)
5023 fmt=elf file=$em ;;
252b5132
RH
5024 esac
5025 formats="$formats $fmt"
5026 emfiles="$emfiles e-$file.o"
5027 EMULATIONS="$EMULATIONS &$em,"
5028done
5029_gas_uniq_list="$formats"
5030_gas_uniq_newlist=""
5031for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5032 case $_gas_uniq_i in
5033 _gas_uniq_dummy) ;;
5034 *) case " $_gas_uniq_newlist " in
5035 *" $_gas_uniq_i "*) ;;
5036 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5037 esac ;;
5038 esac
5039done
5040formats=$_gas_uniq_newlist
5041
5042_gas_uniq_list="$emfiles"
5043_gas_uniq_newlist=""
5044for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5045 case $_gas_uniq_i in
5046 _gas_uniq_dummy) ;;
5047 *) case " $_gas_uniq_newlist " in
5048 *" $_gas_uniq_i "*) ;;
5049 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5050 esac ;;
5051 esac
5052done
5053emfiles=$_gas_uniq_newlist
5054
5055if test `set . $formats ; shift ; echo $#` -gt 1 ; then
5056 for fmt in $formats ; do
5057 case $fmt in
13b2be9c
DJ
5058 aout)
5059cat >>confdefs.h <<\_ACEOF
252b5132 5060#define OBJ_MAYBE_AOUT 1
13b2be9c 5061_ACEOF
252b5132 5062 ;;
13b2be9c
DJ
5063 bout)
5064cat >>confdefs.h <<\_ACEOF
252b5132 5065#define OBJ_MAYBE_BOUT 1
13b2be9c 5066_ACEOF
252b5132 5067 ;;
13b2be9c
DJ
5068 coff)
5069cat >>confdefs.h <<\_ACEOF
252b5132 5070#define OBJ_MAYBE_COFF 1
13b2be9c 5071_ACEOF
252b5132 5072 ;;
13b2be9c
DJ
5073 ecoff)
5074cat >>confdefs.h <<\_ACEOF
252b5132 5075#define OBJ_MAYBE_ECOFF 1
13b2be9c 5076_ACEOF
252b5132 5077 ;;
13b2be9c
DJ
5078 elf)
5079cat >>confdefs.h <<\_ACEOF
252b5132 5080#define OBJ_MAYBE_ELF 1
13b2be9c 5081_ACEOF
252b5132 5082 ;;
13b2be9c
DJ
5083 generic)
5084cat >>confdefs.h <<\_ACEOF
252b5132 5085#define OBJ_MAYBE_GENERIC 1
13b2be9c 5086_ACEOF
252b5132 5087 ;;
13b2be9c
DJ
5088 som)
5089cat >>confdefs.h <<\_ACEOF
252b5132 5090#define OBJ_MAYBE_SOM 1
13b2be9c 5091_ACEOF
252b5132
RH
5092 ;;
5093 esac
5094 extra_objects="$extra_objects obj-$fmt.o"
5095 done
5096 obj_format=multi
5097fi
5098if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 5099 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
5100 # e-mips* has more than one emulation per file, e-i386* has just one at the
5101 # moment. If only one emulation is specified, then don't define
5102 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5103 case "${obj_format}${emfiles}" in
5104 multi* | *mips*)
4ca72d38 5105 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
5106
5107cat >>confdefs.h <<\_ACEOF
252b5132 5108#define USE_EMULATIONS 1
13b2be9c 5109_ACEOF
4ca72d38
AM
5110 ;;
5111 esac
252b5132
RH
5112fi
5113
13b2be9c
DJ
5114
5115cat >>confdefs.h <<_ACEOF
252b5132 5116#define EMULATIONS $EMULATIONS
13b2be9c
DJ
5117_ACEOF
5118
252b5132 5119
13b2be9c 5120cat >>confdefs.h <<_ACEOF
252b5132 5121#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 5122_ACEOF
252b5132 5123
d6d788bd 5124
252b5132
RH
5125reject_dev_configs=yes
5126
5127case ${reject_dev_configs}-${dev} in
5128 yes-yes) # Oops.
13b2be9c
DJ
5129 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5130echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5131 { (exit 1); exit 1; }; }
252b5132
RH
5132 ;;
5133esac
5134
d6d788bd
L
5135
5136
5137
5138
5139
5140
252b5132
RH
5141# do we need the opcodes library?
5142case "${need_opcodes}" in
5143yes)
5144 OPCODES_LIB=../opcodes/libopcodes.la
5145 ;;
5146esac
5147
d6d788bd 5148
4001ad8c 5149
13b2be9c
DJ
5150
5151cat >>confdefs.h <<_ACEOF
252b5132 5152#define TARGET_ALIAS "${target_alias}"
13b2be9c 5153_ACEOF
9b2b7d69 5154
13b2be9c
DJ
5155
5156cat >>confdefs.h <<_ACEOF
252b5132 5157#define TARGET_CANONICAL "${target}"
13b2be9c 5158_ACEOF
9b2b7d69 5159
13b2be9c
DJ
5160
5161cat >>confdefs.h <<_ACEOF
252b5132 5162#define TARGET_CPU "${target_cpu}"
13b2be9c 5163_ACEOF
9b2b7d69 5164
13b2be9c
DJ
5165
5166cat >>confdefs.h <<_ACEOF
252b5132 5167#define TARGET_VENDOR "${target_vendor}"
13b2be9c 5168_ACEOF
9b2b7d69 5169
13b2be9c
DJ
5170
5171cat >>confdefs.h <<_ACEOF
252b5132 5172#define TARGET_OS "${target_os}"
13b2be9c
DJ
5173_ACEOF
5174
5175
5176ac_ext=c
5177ac_cpp='$CPP $CPPFLAGS'
5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5183set dummy ${ac_tool_prefix}gcc; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_CC+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$CC"; then
5190 ac_cv_prog_CC="$CC" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
252b5132 5205
13b2be9c
DJ
5206fi
5207fi
5208CC=$ac_cv_prog_CC
5209if test -n "$CC"; then
5210 echo "$as_me:$LINENO: result: $CC" >&5
5211echo "${ECHO_T}$CC" >&6
5212else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
252b5132 5216
13b2be9c
DJ
5217fi
5218if test -z "$ac_cv_prog_CC"; then
5219 ac_ct_CC=$CC
5220 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5221set dummy gcc; ac_word=$2
13b2be9c
DJ
5222echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 if test -n "$ac_ct_CC"; then
5228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_ac_ct_CC="gcc"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244fi
5245fi
5246ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247if test -n "$ac_ct_CC"; then
5248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5249echo "${ECHO_T}$ac_ct_CC" >&6
5250else
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253fi
5254
5255 CC=$ac_ct_CC
5256else
5257 CC="$ac_cv_prog_CC"
5258fi
5259
5260if test -z "$CC"; then
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5263set dummy ${ac_tool_prefix}cc; ac_word=$2
5264echo "$as_me:$LINENO: checking for $ac_word" >&5
5265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266if test "${ac_cv_prog_CC+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5268else
5269 if test -n "$CC"; then
5270 ac_cv_prog_CC="$CC" # Let the user override the test.
5271else
13b2be9c
DJ
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_CC="${ac_tool_prefix}cc"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283done
5284done
5285
252b5132
RH
5286fi
5287fi
13b2be9c 5288CC=$ac_cv_prog_CC
252b5132 5289if test -n "$CC"; then
13b2be9c
DJ
5290 echo "$as_me:$LINENO: result: $CC" >&5
5291echo "${ECHO_T}$CC" >&6
5292else
5293 echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295fi
5296
5297fi
5298if test -z "$ac_cv_prog_CC"; then
5299 ac_ct_CC=$CC
5300 # Extract the first word of "cc", so it can be a program name with args.
5301set dummy cc; ac_word=$2
5302echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5306else
13b2be9c
DJ
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_CC="cc"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
5324fi
5325fi
5326ac_ct_CC=$ac_cv_prog_ac_ct_CC
5327if test -n "$ac_ct_CC"; then
5328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5329echo "${ECHO_T}$ac_ct_CC" >&6
5330else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
5334
5335 CC=$ac_ct_CC
5336else
5337 CC="$ac_cv_prog_CC"
6840198f
NC
5338fi
5339
13b2be9c 5340fi
252b5132
RH
5341if test -z "$CC"; then
5342 # Extract the first word of "cc", so it can be a program name with args.
5343set dummy cc; ac_word=$2
13b2be9c
DJ
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_CC+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5348else
5349 if test -n "$CC"; then
5350 ac_cv_prog_CC="$CC" # Let the user override the test.
5351else
252b5132 5352 ac_prog_rejected=no
13b2be9c
DJ
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5361 ac_prog_rejected=yes
5362 continue
5363 fi
5364 ac_cv_prog_CC="cc"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369done
5370
252b5132
RH
5371if test $ac_prog_rejected = yes; then
5372 # We found a bogon in the path, so make sure we never use it.
5373 set dummy $ac_cv_prog_CC
5374 shift
13b2be9c 5375 if test $# != 0; then
252b5132
RH
5376 # We chose a different compiler from the bogus one.
5377 # However, it has the same basename, so the bogon will be chosen
5378 # first if we set CC to just the basename; use the full file name.
5379 shift
13b2be9c 5380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5381 fi
5382fi
5383fi
5384fi
13b2be9c 5385CC=$ac_cv_prog_CC
252b5132 5386if test -n "$CC"; then
13b2be9c
DJ
5387 echo "$as_me:$LINENO: result: $CC" >&5
5388echo "${ECHO_T}$CC" >&6
252b5132 5389else
13b2be9c
DJ
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
252b5132
RH
5392fi
5393
13b2be9c
DJ
5394fi
5395if test -z "$CC"; then
5396 if test -n "$ac_tool_prefix"; then
5397 for ac_prog in cl
5398 do
5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401echo "$as_me:$LINENO: checking for $ac_word" >&5
5402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403if test "${ac_cv_prog_CC+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5405else
5406 if test -n "$CC"; then
5407 ac_cv_prog_CC="$CC" # Let the user override the test.
5408else
13b2be9c
DJ
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420done
5421done
5422
252b5132
RH
5423fi
5424fi
13b2be9c 5425CC=$ac_cv_prog_CC
252b5132 5426if test -n "$CC"; then
13b2be9c
DJ
5427 echo "$as_me:$LINENO: result: $CC" >&5
5428echo "${ECHO_T}$CC" >&6
c8615825 5429else
13b2be9c
DJ
5430 echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6
c8615825 5432fi
6840198f 5433
13b2be9c
DJ
5434 test -n "$CC" && break
5435 done
5436fi
5437if test -z "$CC"; then
5438 ac_ct_CC=$CC
5439 for ac_prog in cl
5440do
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442set dummy $ac_prog; ac_word=$2
5443echo "$as_me:$LINENO: checking for $ac_word" >&5
5444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5447else
13b2be9c
DJ
5448 if test -n "$ac_ct_CC"; then
5449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5450else
13b2be9c
DJ
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_ac_ct_CC="$ac_prog"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
5464
c8615825
AM
5465fi
5466fi
13b2be9c
DJ
5467ac_ct_CC=$ac_cv_prog_ac_ct_CC
5468if test -n "$ac_ct_CC"; then
5469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5470echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5471else
13b2be9c
DJ
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
c8615825 5474fi
252b5132 5475
13b2be9c
DJ
5476 test -n "$ac_ct_CC" && break
5477done
5478
5479 CC=$ac_ct_CC
5480fi
5481
5482fi
5483
5484
5485test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5486See \`config.log' for more details." >&5
5487echo "$as_me: error: no acceptable C compiler found in \$PATH
5488See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; }
5490
5491# Provide some information about the compiler.
5492echo "$as_me:$LINENO:" \
5493 "checking for C compiler version" >&5
5494ac_compiler=`set X $ac_compile; echo $2`
5495{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5496 (eval $ac_compiler --version </dev/null >&5) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }
5500{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5501 (eval $ac_compiler -v </dev/null >&5) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }
5505{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5506 (eval $ac_compiler -V </dev/null >&5) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }
5510
5511echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5512echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5513if test "${ac_cv_c_compiler_gnu+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5517/* confdefs.h. */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h. */
5522
5523int
5524main ()
5525{
5526#ifndef __GNUC__
5527 choke me
5528#endif
5529
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5536 (eval $ac_compile) 2>conftest.er1
13b2be9c 5537 ac_status=$?
ab509236
L
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
13b2be9c
DJ
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
1ad12f97
NC
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
ab509236
L
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_compiler_gnu=yes
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561ac_compiler_gnu=no
5562fi
ab509236 5563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5564ac_cv_c_compiler_gnu=$ac_compiler_gnu
5565
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5568echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5569GCC=`test $ac_compiler_gnu = yes && echo yes`
5570ac_test_CFLAGS=${CFLAGS+set}
5571ac_save_CFLAGS=$CFLAGS
5572CFLAGS="-g"
5573echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5574echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5575if test "${ac_cv_prog_cc_g+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
5584
5585int
5586main ()
5587{
5588
5589 ;
5590 return 0;
5591}
5592_ACEOF
5593rm -f conftest.$ac_objext
5594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5595 (eval $ac_compile) 2>conftest.er1
13b2be9c 5596 ac_status=$?
ab509236
L
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
13b2be9c
DJ
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
1ad12f97
NC
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
ab509236
L
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
252b5132
RH
5615 ac_cv_prog_cc_g=yes
5616else
13b2be9c
DJ
5617 echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5619
13b2be9c 5620ac_cv_prog_cc_g=no
252b5132 5621fi
ab509236 5622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5623fi
5624echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5625echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5626if test "$ac_test_CFLAGS" = set; then
13b2be9c 5627 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5628elif test $ac_cv_prog_cc_g = yes; then
5629 if test "$GCC" = yes; then
5630 CFLAGS="-g -O2"
5631 else
5632 CFLAGS="-g"
5633 fi
5634else
9b2b7d69
MM
5635 if test "$GCC" = yes; then
5636 CFLAGS="-O2"
5637 else
5638 CFLAGS=
5639 fi
5640fi
13b2be9c
DJ
5641echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5642echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5643if test "${ac_cv_prog_cc_stdc+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 ac_cv_prog_cc_stdc=no
5647ac_save_CC=$CC
5648cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5649/* confdefs.h. */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h. */
5654#include <stdarg.h>
5655#include <stdio.h>
5656#include <sys/types.h>
5657#include <sys/stat.h>
5658/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5659struct buf { int x; };
5660FILE * (*rcsopen) (struct buf *, struct stat *, int);
5661static char *e (p, i)
5662 char **p;
5663 int i;
5664{
5665 return p[i];
5666}
5667static char *f (char * (*g) (char **, int), char **p, ...)
5668{
5669 char *s;
5670 va_list v;
5671 va_start (v,p);
5672 s = g (p, va_arg (v,int));
5673 va_end (v);
5674 return s;
5675}
ab509236
L
5676
5677/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5678 function prototypes and stuff, but not '\xHH' hex character constants.
5679 These don't provoke an error unfortunately, instead are silently treated
5680 as 'x'. The following induces an error, until -std1 is added to get
5681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5682 array size at least. It's necessary to write '\x00'==0 to get something
5683 that's true only with -std1. */
5684int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5685
13b2be9c
DJ
5686int test (int i, double x);
5687struct s1 {int (*f) (int a);};
5688struct s2 {int (*f) (double a);};
5689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5690int argc;
5691char **argv;
5692int
5693main ()
5694{
5695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700# Don't try gcc -ansi; that turns off useful extensions and
5701# breaks some systems' header files.
5702# AIX -qlanglvl=ansi
5703# Ultrix and OSF/1 -std1
5704# HP-UX 10.20 and later -Ae
5705# HP-UX older versions -Aa -D_HPUX_SOURCE
5706# SVR4 -Xc -D__EXTENSIONS__
5707for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5708do
5709 CC="$ac_save_CC $ac_arg"
5710 rm -f conftest.$ac_objext
5711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5712 (eval $ac_compile) 2>conftest.er1
13b2be9c 5713 ac_status=$?
ab509236
L
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
13b2be9c
DJ
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
1ad12f97
NC
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
ab509236
L
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_prog_cc_stdc=$ac_arg
5733break
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738fi
ab509236 5739rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
5740done
5741rm -f conftest.$ac_ext conftest.$ac_objext
5742CC=$ac_save_CC
5743
5744fi
5745
5746case "x$ac_cv_prog_cc_stdc" in
5747 x|xno)
5748 echo "$as_me:$LINENO: result: none needed" >&5
5749echo "${ECHO_T}none needed" >&6 ;;
5750 *)
5751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5752echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5753 CC="$CC $ac_cv_prog_cc_stdc" ;;
5754esac
5755
5756# Some people use a C++ compiler to compile C. Since we use `exit',
5757# in C++ we need to declare it. In case someone uses the same compiler
5758# for both compiling C and C++ we need to have the C++ compiler decide
5759# the declaration of exit, since it's the most demanding environment.
5760cat >conftest.$ac_ext <<_ACEOF
5761#ifndef __cplusplus
5762 choke me
5763#endif
5764_ACEOF
5765rm -f conftest.$ac_objext
5766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5767 (eval $ac_compile) 2>conftest.er1
13b2be9c 5768 ac_status=$?
ab509236
L
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
13b2be9c
DJ
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
1ad12f97
NC
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
ab509236
L
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 for ac_declaration in \
ab509236 5788 '' \
13b2be9c
DJ
5789 'extern "C" void std::exit (int) throw (); using std::exit;' \
5790 'extern "C" void std::exit (int); using std::exit;' \
5791 'extern "C" void exit (int) throw ();' \
5792 'extern "C" void exit (int);' \
5793 'void exit (int);'
5794do
5795 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
13dfd2d0 5801$ac_declaration
ab509236 5802#include <stdlib.h>
13b2be9c
DJ
5803int
5804main ()
5805{
5806exit (42);
5807 ;
5808 return 0;
5809}
5810_ACEOF
5811rm -f conftest.$ac_objext
5812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5813 (eval $ac_compile) 2>conftest.er1
13b2be9c 5814 ac_status=$?
ab509236
L
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
13b2be9c
DJ
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
1ad12f97
NC
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
ab509236
L
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 :
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838continue
5839fi
ab509236 5840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5841 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847$ac_declaration
5848int
5849main ()
5850{
5851exit (42);
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext
5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5858 (eval $ac_compile) 2>conftest.er1
13b2be9c 5859 ac_status=$?
ab509236
L
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
13b2be9c
DJ
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
1ad12f97
NC
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
ab509236
L
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 break
5879else
5880 echo "$as_me: failed program was:" >&5
5881sed 's/^/| /' conftest.$ac_ext >&5
5882
5883fi
ab509236 5884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5885done
5886rm -f conftest*
5887if test -n "$ac_declaration"; then
5888 echo '#ifdef __cplusplus' >>confdefs.h
5889 echo $ac_declaration >>confdefs.h
5890 echo '#endif' >>confdefs.h
5891fi
5892
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897fi
ab509236 5898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5899ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5904
5905
5906for ac_prog in 'bison -y' byacc
9b2b7d69 5907do
13b2be9c 5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5909set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_prog_YACC+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5914else
5915 if test -n "$YACC"; then
5916 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5917else
13b2be9c
DJ
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_YACC="$ac_prog"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930done
5931
c8615825
AM
5932fi
5933fi
13b2be9c 5934YACC=$ac_cv_prog_YACC
c8615825 5935if test -n "$YACC"; then
13b2be9c
DJ
5936 echo "$as_me:$LINENO: result: $YACC" >&5
5937echo "${ECHO_T}$YACC" >&6
c8615825 5938else
13b2be9c
DJ
5939 echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6
c8615825
AM
5941fi
5942
13b2be9c 5943 test -n "$YACC" && break
c8615825
AM
5944done
5945test -n "$YACC" || YACC="yacc"
5946
13b2be9c
DJ
5947for ac_prog in flex lex
5948do
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950set dummy $ac_prog; ac_word=$2
5951echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953if test "${ac_cv_prog_LEX+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5955else
13b2be9c
DJ
5956 if test -n "$LEX"; then
5957 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5958else
13b2be9c
DJ
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_LEX="$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
5972
5973fi
5974fi
5975LEX=$ac_cv_prog_LEX
5976if test -n "$LEX"; then
5977 echo "$as_me:$LINENO: result: $LEX" >&5
5978echo "${ECHO_T}$LEX" >&6
c8615825 5979else
13b2be9c
DJ
5980 echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6
5982fi
5983
5984 test -n "$LEX" && break
5985done
5986test -n "$LEX" || LEX=":"
5987
5988if test -z "$LEXLIB"
5989then
5990 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5991echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5992if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 ac_check_lib_save_LIBS=$LIBS
5996LIBS="-lfl $LIBS"
5997cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5998/* confdefs.h. */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h. */
6003
6004/* Override any gcc2 internal prototype to avoid an error. */
6005#ifdef __cplusplus
6006extern "C"
6007#endif
6008/* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010char yywrap ();
6011int
6012main ()
6013{
6014yywrap ();
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext conftest$ac_exeext
6020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6021 (eval $ac_link) 2>conftest.er1
13b2be9c 6022 ac_status=$?
ab509236
L
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
13b2be9c
DJ
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
1ad12f97
NC
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
ab509236
L
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_lib_fl_yywrap=yes
6042else
6043 echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046ac_cv_lib_fl_yywrap=no
6047fi
ab509236
L
6048rm -f conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6050LIBS=$ac_check_lib_save_LIBS
6051fi
6052echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6053echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6054if test $ac_cv_lib_fl_yywrap = yes; then
6055 LEXLIB="-lfl"
6056else
6057 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6058echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6059if test "${ac_cv_lib_l_yywrap+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062 ac_check_lib_save_LIBS=$LIBS
6063LIBS="-ll $LIBS"
6064cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070
6071/* Override any gcc2 internal prototype to avoid an error. */
6072#ifdef __cplusplus
6073extern "C"
6074#endif
6075/* We use char because int might match the return type of a gcc2
6076 builtin and then its argument prototype would still apply. */
6077char yywrap ();
6078int
6079main ()
6080{
6081yywrap ();
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext conftest$ac_exeext
6087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6088 (eval $ac_link) 2>conftest.er1
13b2be9c 6089 ac_status=$?
ab509236
L
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
13b2be9c
DJ
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
1ad12f97
NC
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
ab509236
L
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_lib_l_yywrap=yes
9b2b7d69 6109else
13b2be9c
DJ
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
6113ac_cv_lib_l_yywrap=no
9b2b7d69 6114fi
ab509236
L
6115rm -f conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
13b2be9c 6117LIBS=$ac_check_lib_save_LIBS
9b2b7d69 6118fi
13b2be9c
DJ
6119echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6120echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6121if test $ac_cv_lib_l_yywrap = yes; then
6122 LEXLIB="-ll"
252b5132 6123fi
13b2be9c
DJ
6124
6125fi
6126
252b5132 6127fi
13b2be9c
DJ
6128
6129if test "x$LEX" != "x:"; then
6130 echo "$as_me:$LINENO: checking lex output file root" >&5
6131echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6132if test "${ac_cv_prog_lex_root+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 # The minimal lex program is just a single line: %%. But some broken lexes
6136# (Solaris, I think it was) want two %% lines, so accommodate them.
6137cat >conftest.l <<_ACEOF
6138%%
6139%%
6140_ACEOF
6141{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6142 (eval $LEX conftest.l) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }
6146if test -f lex.yy.c; then
6147 ac_cv_prog_lex_root=lex.yy
6148elif test -f lexyy.c; then
6149 ac_cv_prog_lex_root=lexyy
252b5132 6150else
13b2be9c
DJ
6151 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6152echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6153 { (exit 1); exit 1; }; }
252b5132 6154fi
13b2be9c
DJ
6155fi
6156echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6157echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6158rm -f conftest.l
6159LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 6160
13b2be9c
DJ
6161echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6162echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6163if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6165else
13b2be9c
DJ
6166 # POSIX says lex can declare yytext either as a pointer or an array; the
6167# default is implementation-dependent. Figure out which it is, since
6168# not all implementations provide the %pointer and %array declarations.
6169ac_cv_prog_lex_yytext_pointer=no
6170echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6171ac_save_LIBS=$LIBS
6172LIBS="$LIBS $LEXLIB"
6173cat >conftest.$ac_ext <<_ACEOF
6174`cat $LEX_OUTPUT_ROOT.c`
6175_ACEOF
6176rm -f conftest.$ac_objext conftest$ac_exeext
6177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6178 (eval $ac_link) 2>conftest.er1
13b2be9c 6179 ac_status=$?
ab509236
L
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
13b2be9c
DJ
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
1ad12f97
NC
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
ab509236
L
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_prog_lex_yytext_pointer=yes
252b5132 6199else
13b2be9c
DJ
6200 echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
252b5132 6203fi
ab509236
L
6204rm -f conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6206LIBS=$ac_save_LIBS
6207rm -f "${LEX_OUTPUT_ROOT}.c"
6208
252b5132 6209fi
13b2be9c
DJ
6210echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6211echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6212if test $ac_cv_prog_lex_yytext_pointer = yes; then
6213
6214cat >>confdefs.h <<\_ACEOF
6215#define YYTEXT_POINTER 1
6216_ACEOF
6217
6218fi
6219
6220fi
6221if test "$LEX" = :; then
6222 LEX=${am_missing_run}flex
6223fi
6224
0d6af1ab 6225ALL_LINGUAS="fr tr es rw"
20e95c23
DJ
6226# If we haven't got the data from the intl directory,
6227# assume NLS is disabled.
6228USE_NLS=no
6229LIBINTL=
6230LIBINTL_DEP=
6231INCINTL=
6232XGETTEXT=
6233GMSGFMT=
6234POSUB=
c973bc5c
NC
6235
6236if test -f ../intl/config.intl; then
6237 . ../intl/config.intl
20e95c23
DJ
6238fi
6239echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6240echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6241if test x"$USE_NLS" != xyes; then
6242 echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244else
6245 echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
6247
6248cat >>confdefs.h <<\_ACEOF
6249#define ENABLE_NLS 1
6250_ACEOF
6251
6252
6253 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6254echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6255 # Look for .po and .gmo files in the source directory.
6256 CATALOGS=
6257 XLINGUAS=
6258 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6259 # If there aren't any .gmo files the shell will give us the
6260 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6261 # weeded out.
6262 case "$cat" in *\**)
6263 continue;;
6264 esac
6265 # The quadruple backslash is collapsed to a double backslash
6266 # by the backticks, then collapsed again by the double quotes,
6267 # leaving us with one backslash in the sed expression (right
6268 # before the dot that mustn't act as a wildcard).
6269 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6270 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6271 # The user is allowed to set LINGUAS to a list of languages to
6272 # install catalogs for. If it's empty that means "all of them."
6273 if test "x$LINGUAS" = x; then
6274 CATALOGS="$CATALOGS $cat"
6275 XLINGUAS="$XLINGUAS $lang"
6276 else
6277 case "$LINGUAS" in *$lang*)
6278 CATALOGS="$CATALOGS $cat"
6279 XLINGUAS="$XLINGUAS $lang"
6280 ;;
6281 esac
6282 fi
6283 done
6284 LINGUAS="$XLINGUAS"
6285 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6286echo "${ECHO_T}$LINGUAS" >&6
6287
6288
6289 DATADIRNAME=share
6290
6291 INSTOBJEXT=.mo
6292
6293 GENCAT=gencat
6294
6295 CATOBJEXT=.gmo
6296
6297fi
6298
6299 MKINSTALLDIRS=
6300 if test -n "$ac_aux_dir"; then
6301 case "$ac_aux_dir" in
6302 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6303 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6304 esac
6305 fi
6306 if test -z "$MKINSTALLDIRS"; then
6307 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6308 fi
6309
6310
6311
6312 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6313echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6314 # Check whether --enable-nls or --disable-nls was given.
6315if test "${enable_nls+set}" = set; then
6316 enableval="$enable_nls"
6317 USE_NLS=$enableval
6318else
6319 USE_NLS=yes
6320fi;
6321 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6322echo "${ECHO_T}$USE_NLS" >&6
6323
6324
6325
6326
6327
6328
6329# Prepare PATH_SEPARATOR.
6330# The user is always right.
6331if test "${PATH_SEPARATOR+set}" != set; then
6332 echo "#! /bin/sh" >conf$$.sh
6333 echo "exit 0" >>conf$$.sh
6334 chmod +x conf$$.sh
6335 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6336 PATH_SEPARATOR=';'
6337 else
6338 PATH_SEPARATOR=:
6339 fi
6340 rm -f conf$$.sh
6341fi
6342
6343# Find out how to test for executable files. Don't use a zero-byte file,
6344# as systems may use methods other than mode bits to determine executability.
6345cat >conf$$.file <<_ASEOF
6346#! /bin/sh
6347exit 0
6348_ASEOF
6349chmod +x conf$$.file
6350if test -x conf$$.file >/dev/null 2>&1; then
6351 ac_executable_p="test -x"
6352else
6353 ac_executable_p="test -f"
6354fi
6355rm -f conf$$.file
6356
6357# Extract the first word of "msgfmt", so it can be a program name with args.
6358set dummy msgfmt; ac_word=$2
13b2be9c
DJ
6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 6361if test "${ac_cv_path_MSGFMT+set}" = set; then
13b2be9c
DJ
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
20e95c23
DJ
6364 case "$MSGFMT" in
6365 [\\/]* | ?:[\\/]*)
6366 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6367 ;;
6368 *)
6369 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6370 for ac_dir in $PATH; do
6371 IFS="$ac_save_IFS"
6372 test -z "$ac_dir" && ac_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6375 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6376 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6377 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6378 break 2
6379 fi
6380 fi
6381 done
6382 done
6383 IFS="$ac_save_IFS"
6384 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6385 ;;
6386esac
6387fi
6388MSGFMT="$ac_cv_path_MSGFMT"
6389if test "$MSGFMT" != ":"; then
6390 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6391echo "${ECHO_T}$MSGFMT" >&6
13b2be9c 6392else
20e95c23
DJ
6393 echo "$as_me:$LINENO: result: no" >&5
6394echo "${ECHO_T}no" >&6
6395fi
6396
6397 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6398set dummy gmsgfmt; ac_word=$2
6399echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401if test "${ac_cv_path_GMSGFMT+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 case $GMSGFMT in
6405 [\\/]* | ?:[\\/]*)
6406 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6407 ;;
6408 *)
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13b2be9c
DJ
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 6416 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13b2be9c
DJ
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420done
6421done
6422
20e95c23
DJ
6423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6424 ;;
6425esac
13b2be9c 6426fi
20e95c23
DJ
6427GMSGFMT=$ac_cv_path_GMSGFMT
6428
6429if test -n "$GMSGFMT"; then
6430 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6431echo "${ECHO_T}$GMSGFMT" >&6
252b5132 6432else
13b2be9c
DJ
6433 echo "$as_me:$LINENO: result: no" >&5
6434echo "${ECHO_T}no" >&6
252b5132
RH
6435fi
6436
20e95c23
DJ
6437
6438
6439# Prepare PATH_SEPARATOR.
6440# The user is always right.
6441if test "${PATH_SEPARATOR+set}" != set; then
6442 echo "#! /bin/sh" >conf$$.sh
6443 echo "exit 0" >>conf$$.sh
6444 chmod +x conf$$.sh
6445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6446 PATH_SEPARATOR=';'
6447 else
6448 PATH_SEPARATOR=:
6449 fi
6450 rm -f conf$$.sh
6451fi
6452
6453# Find out how to test for executable files. Don't use a zero-byte file,
6454# as systems may use methods other than mode bits to determine executability.
6455cat >conf$$.file <<_ASEOF
6456#! /bin/sh
6457exit 0
6458_ASEOF
6459chmod +x conf$$.file
6460if test -x conf$$.file >/dev/null 2>&1; then
6461 ac_executable_p="test -x"
6462else
6463 ac_executable_p="test -f"
13b2be9c 6464fi
20e95c23
DJ
6465rm -f conf$$.file
6466
6467# Extract the first word of "xgettext", so it can be a program name with args.
6468set dummy xgettext; ac_word=$2
13b2be9c
DJ
6469echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 6471if test "${ac_cv_path_XGETTEXT+set}" = set; then
13b2be9c
DJ
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
20e95c23
DJ
6474 case "$XGETTEXT" in
6475 [\\/]* | ?:[\\/]*)
6476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6477 ;;
6478 *)
6479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6480 for ac_dir in $PATH; do
6481 IFS="$ac_save_IFS"
6482 test -z "$ac_dir" && ac_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6485 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6486 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6487 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6488 break 2
6489 fi
6490 fi
6491 done
6492 done
6493 IFS="$ac_save_IFS"
6494 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6495 ;;
6496esac
6497fi
6498XGETTEXT="$ac_cv_path_XGETTEXT"
6499if test "$XGETTEXT" != ":"; then
6500 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6501echo "${ECHO_T}$XGETTEXT" >&6
13b2be9c 6502else
20e95c23
DJ
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505fi
6506
6507 rm -f messages.po
6508
6509
6510# Prepare PATH_SEPARATOR.
6511# The user is always right.
6512if test "${PATH_SEPARATOR+set}" != set; then
6513 echo "#! /bin/sh" >conf$$.sh
6514 echo "exit 0" >>conf$$.sh
6515 chmod +x conf$$.sh
6516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6517 PATH_SEPARATOR=';'
6518 else
6519 PATH_SEPARATOR=:
13b2be9c 6520 fi
20e95c23
DJ
6521 rm -f conf$$.sh
6522fi
d6d788bd 6523
20e95c23
DJ
6524# Find out how to test for executable files. Don't use a zero-byte file,
6525# as systems may use methods other than mode bits to determine executability.
6526cat >conf$$.file <<_ASEOF
6527#! /bin/sh
6528exit 0
6529_ASEOF
6530chmod +x conf$$.file
6531if test -x conf$$.file >/dev/null 2>&1; then
6532 ac_executable_p="test -x"
6533else
6534 ac_executable_p="test -f"
13b2be9c 6535fi
20e95c23
DJ
6536rm -f conf$$.file
6537
6538# Extract the first word of "msgmerge", so it can be a program name with args.
6539set dummy msgmerge; ac_word=$2
6540echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542if test "${ac_cv_path_MSGMERGE+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 case "$MSGMERGE" in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6548 ;;
6549 *)
6550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6551 for ac_dir in $PATH; do
6552 IFS="$ac_save_IFS"
6553 test -z "$ac_dir" && ac_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6556 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6557 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6558 break 2
6559 fi
6560 fi
6561 done
6562 done
6563 IFS="$ac_save_IFS"
6564 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6565 ;;
6566esac
13b2be9c 6567fi
20e95c23
DJ
6568MSGMERGE="$ac_cv_path_MSGMERGE"
6569if test "$MSGMERGE" != ":"; then
6570 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6571echo "${ECHO_T}$MSGMERGE" >&6
d6d788bd 6572else
13b2be9c
DJ
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575fi
6576
20e95c23
DJ
6577
6578 if test "$GMSGFMT" != ":"; then
6579 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6580 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6581 : ;
6582 else
6583 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6584 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6585echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6586 GMSGFMT=":"
6587 fi
6588 fi
6589
6590 if test "$XGETTEXT" != ":"; then
6591 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6592 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6593 : ;
6594 else
6595 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6596echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6597 XGETTEXT=":"
6598 fi
6599 rm -f messages.po
6600 fi
6601
6602 ac_config_commands="$ac_config_commands default-1"
6603
6604
6605
6606echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6607echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6608 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6609if test "${enable_maintainer_mode+set}" = set; then
6610 enableval="$enable_maintainer_mode"
6611 USE_MAINTAINER_MODE=$enableval
d6d788bd 6612else
20e95c23
DJ
6613 USE_MAINTAINER_MODE=no
6614fi;
6615 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6616echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6617
6618
6619if test $USE_MAINTAINER_MODE = yes; then
6620 MAINTAINER_MODE_TRUE=
6621 MAINTAINER_MODE_FALSE='#'
6622else
6623 MAINTAINER_MODE_TRUE='#'
6624 MAINTAINER_MODE_FALSE=
13b2be9c
DJ
6625fi
6626
20e95c23
DJ
6627 MAINT=$MAINTAINER_MODE_TRUE
6628
6629
6630
6631
d5fbea21
DJ
6632if false; then
6633 GENINSRC_NEVER_TRUE=
6634 GENINSRC_NEVER_FALSE='#'
6635else
6636 GENINSRC_NEVER_TRUE='#'
6637 GENINSRC_NEVER_FALSE=
6638fi
6639
6640
6641
13b2be9c
DJ
6642ac_ext=c
6643ac_cpp='$CPP $CPPFLAGS'
6644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6648echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6649# On Suns, sometimes $CPP names a directory.
6650if test -n "$CPP" && test -d "$CPP"; then
6651 CPP=
d6d788bd 6652fi
13b2be9c
DJ
6653if test -z "$CPP"; then
6654 if test "${ac_cv_prog_CPP+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 # Double quotes because CPP needs to be expanded
6658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6659 do
6660 ac_preproc_ok=false
6661for ac_c_preproc_warn_flag in '' yes
6662do
6663 # Use a header file that comes with gcc, so configuring glibc
6664 # with a fresh cross-compiler works.
6665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 # <limits.h> exists even on freestanding compilers.
6667 # On the NeXT, cc -E runs the code through the compiler's parser,
6668 # not just through cpp. "Syntax error" is here to catch this case.
6669 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h. */
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
ab509236 6680 Syntax error
13b2be9c
DJ
6681_ACEOF
6682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } >/dev/null; then
6690 if test -s conftest.err; then
6691 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6693 else
6694 ac_cpp_err=
6695 fi
6696else
6697 ac_cpp_err=yes
d6d788bd 6698fi
13b2be9c
DJ
6699if test -z "$ac_cpp_err"; then
6700 :
6701else
6702 echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 # Broken: fails on valid input.
6706continue
6707fi
6708rm -f conftest.err conftest.$ac_ext
6709
6710 # OK, works on sane cases. Now check whether non-existent headers
6711 # can be detected and how.
6712 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6713/* confdefs.h. */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h. */
6718#include <ac_nonexistent.h>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } >/dev/null; then
6728 if test -s conftest.err; then
6729 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6731 else
6732 ac_cpp_err=
6733 fi
d6d788bd 6734else
13b2be9c 6735 ac_cpp_err=yes
d6d788bd 6736fi
13b2be9c
DJ
6737if test -z "$ac_cpp_err"; then
6738 # Broken: success on invalid input.
6739continue
6740else
6741 echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6743
13b2be9c
DJ
6744 # Passes both tests.
6745ac_preproc_ok=:
6746break
6747fi
6748rm -f conftest.err conftest.$ac_ext
252b5132 6749
13b2be9c
DJ
6750done
6751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752rm -f conftest.err conftest.$ac_ext
6753if $ac_preproc_ok; then
6754 break
9b2b7d69 6755fi
13b2be9c
DJ
6756
6757 done
6758 ac_cv_prog_CPP=$CPP
9b2b7d69 6759
d6d788bd 6760fi
13b2be9c 6761 CPP=$ac_cv_prog_CPP
c8615825 6762else
13b2be9c 6763 ac_cv_prog_CPP=$CPP
c8615825 6764fi
13b2be9c
DJ
6765echo "$as_me:$LINENO: result: $CPP" >&5
6766echo "${ECHO_T}$CPP" >&6
6767ac_preproc_ok=false
6768for ac_c_preproc_warn_flag in '' yes
6769do
6770 # Use a header file that comes with gcc, so configuring glibc
6771 # with a fresh cross-compiler works.
6772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 # <limits.h> exists even on freestanding compilers.
6774 # On the NeXT, cc -E runs the code through the compiler's parser,
6775 # not just through cpp. "Syntax error" is here to catch this case.
6776 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782#ifdef __STDC__
6783# include <limits.h>
6784#else
6785# include <assert.h>
6786#endif
ab509236 6787 Syntax error
13b2be9c
DJ
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } >/dev/null; then
6797 if test -s conftest.err; then
6798 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6800 else
6801 ac_cpp_err=
6802 fi
6803else
6804 ac_cpp_err=yes
252b5132 6805fi
13b2be9c
DJ
6806if test -z "$ac_cpp_err"; then
6807 :
252b5132 6808else
13b2be9c
DJ
6809 echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 # Broken: fails on valid input.
6813continue
6814fi
6815rm -f conftest.err conftest.$ac_ext
6816
6817 # OK, works on sane cases. Now check whether non-existent headers
6818 # can be detected and how.
6819 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6820/* confdefs.h. */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h. */
6825#include <ac_nonexistent.h>
6826_ACEOF
6827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } >/dev/null; then
6835 if test -s conftest.err; then
6836 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6838 else
6839 ac_cpp_err=
6840 fi
252b5132 6841else
13b2be9c 6842 ac_cpp_err=yes
252b5132 6843fi
13b2be9c
DJ
6844if test -z "$ac_cpp_err"; then
6845 # Broken: success on invalid input.
6846continue
252b5132 6847else
13b2be9c
DJ
6848 echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6850
13b2be9c
DJ
6851 # Passes both tests.
6852ac_preproc_ok=:
6853break
252b5132 6854fi
13b2be9c 6855rm -f conftest.err conftest.$ac_ext
252b5132 6856
13b2be9c
DJ
6857done
6858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6859rm -f conftest.err conftest.$ac_ext
6860if $ac_preproc_ok; then
6861 :
6862else
6863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6864See \`config.log' for more details." >&5
6865echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6866See \`config.log' for more details." >&2;}
6867 { (exit 1); exit 1; }; }
252b5132 6868fi
9b2b7d69 6869
13b2be9c
DJ
6870ac_ext=c
6871ac_cpp='$CPP $CPPFLAGS'
6872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6875
6876
13b2be9c
DJ
6877echo "$as_me:$LINENO: checking for egrep" >&5
6878echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6879if test "${ac_cv_prog_egrep+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6881else
13b2be9c
DJ
6882 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6883 then ac_cv_prog_egrep='grep -E'
6884 else ac_cv_prog_egrep='egrep'
c8615825 6885 fi
6840198f 6886fi
13b2be9c
DJ
6887echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6888echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6889 EGREP=$ac_cv_prog_egrep
6840198f 6890
13b2be9c
DJ
6891
6892echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6893echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6894if test "${ac_cv_header_stdc+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6896else
20e95c23 6897 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6898/* confdefs.h. */
6899_ACEOF
6900cat confdefs.h >>conftest.$ac_ext
6901cat >>conftest.$ac_ext <<_ACEOF
6902/* end confdefs.h. */
20e95c23
DJ
6903#include <stdlib.h>
6904#include <stdarg.h>
6905#include <string.h>
6906#include <float.h>
6907
6908int
6909main ()
6910{
6911
6912 ;
6913 return 0;
6914}
13b2be9c
DJ
6915_ACEOF
6916rm -f conftest.$ac_objext
6917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6918 (eval $ac_compile) 2>conftest.er1
13b2be9c 6919 ac_status=$?
ab509236
L
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
13b2be9c
DJ
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
1ad12f97
NC
6925 { ac_try='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
ab509236
L
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
20e95c23 6938 ac_cv_header_stdc=yes
13b2be9c
DJ
6939else
6940 echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
20e95c23 6943ac_cv_header_stdc=no
13b2be9c 6944fi
ab509236 6945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 6946
20e95c23
DJ
6947if test $ac_cv_header_stdc = yes; then
6948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6949 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6950/* confdefs.h. */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h. */
20e95c23
DJ
6955#include <string.h>
6956
13b2be9c 6957_ACEOF
20e95c23
DJ
6958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "memchr" >/dev/null 2>&1; then
6960 :
252b5132 6961else
20e95c23 6962 ac_cv_header_stdc=no
13b2be9c 6963fi
20e95c23 6964rm -f conftest*
13b2be9c 6965
13b2be9c 6966fi
13b2be9c 6967
20e95c23
DJ
6968if test $ac_cv_header_stdc = yes; then
6969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6970 cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h. */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h. */
6976#include <stdlib.h>
6977
6978_ACEOF
6979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980 $EGREP "free" >/dev/null 2>&1; then
6981 :
13b2be9c 6982else
20e95c23 6983 ac_cv_header_stdc=no
252b5132 6984fi
20e95c23 6985rm -f conftest*
13b2be9c 6986
252b5132 6987fi
20e95c23
DJ
6988
6989if test $ac_cv_header_stdc = yes; then
6990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6991 if test "$cross_compiling" = yes; then
6992 :
252b5132 6993else
20e95c23
DJ
6994 cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000#include <ctype.h>
7001#if ((' ' & 0x0FF) == 0x020)
7002# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7003# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7004#else
7005# define ISLOWER(c) \
7006 (('a' <= (c) && (c) <= 'i') \
7007 || ('j' <= (c) && (c) <= 'r') \
7008 || ('s' <= (c) && (c) <= 'z'))
7009# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7010#endif
7011
7012#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7013int
7014main ()
7015{
7016 int i;
7017 for (i = 0; i < 256; i++)
7018 if (XOR (islower (i), ISLOWER (i))
7019 || toupper (i) != TOUPPER (i))
7020 exit(2);
7021 exit (0);
7022}
7023_ACEOF
7024rm -f conftest$ac_exeext
7025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 :
7036else
7037 echo "$as_me: program exited with status $ac_status" >&5
7038echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
252b5132 7040
20e95c23
DJ
7041( exit $ac_status )
7042ac_cv_header_stdc=no
7043fi
7044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7045fi
7046fi
7047fi
7048echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7049echo "${ECHO_T}$ac_cv_header_stdc" >&6
7050if test $ac_cv_header_stdc = yes; then
d6d788bd 7051
20e95c23
DJ
7052cat >>confdefs.h <<\_ACEOF
7053#define STDC_HEADERS 1
7054_ACEOF
13b2be9c 7055
20e95c23 7056fi
252b5132 7057
20e95c23 7058# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13b2be9c
DJ
7059
7060
252b5132 7061
13b2be9c 7062
252b5132 7063
13b2be9c 7064
252b5132 7065
252b5132 7066
13b2be9c 7067
20e95c23
DJ
7068for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7069 inttypes.h stdint.h unistd.h
7070do
7071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072echo "$as_me:$LINENO: checking for $ac_header" >&5
7073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7074if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7076else
20e95c23
DJ
7077 cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h. */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h. */
7083$ac_includes_default
252b5132 7084
20e95c23
DJ
7085#include <$ac_header>
7086_ACEOF
7087rm -f conftest.$ac_objext
7088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -z "$ac_c_werror_flag"
7097 || test ! -s conftest.err'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; } &&
7103 { ac_try='test -s conftest.$ac_objext'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7109 eval "$as_ac_Header=yes"
c8615825 7110else
20e95c23
DJ
7111 echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 7113
20e95c23
DJ
7114eval "$as_ac_Header=no"
7115fi
7116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117fi
7118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7120if test `eval echo '${'$as_ac_Header'}'` = yes; then
7121 cat >>confdefs.h <<_ACEOF
7122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7123_ACEOF
9b2b7d69 7124
20e95c23 7125fi
9b2b7d69 7126
20e95c23 7127done
9b2b7d69
MM
7128
7129
7130
7131
13b2be9c
DJ
7132
7133
7134
7135
7136
7137
7138
7139for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 7140do
13b2be9c
DJ
7141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143 echo "$as_me:$LINENO: checking for $ac_header" >&5
7144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7145if eval "test \"\${$as_ac_Header+set}\" = set"; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147fi
7148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7150else
7151 # Is the header compilable?
7152echo "$as_me:$LINENO: checking $ac_header usability" >&5
7153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7154cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7155/* confdefs.h. */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h. */
7160$ac_includes_default
7161#include <$ac_header>
7162_ACEOF
7163rm -f conftest.$ac_objext
7164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7165 (eval $ac_compile) 2>conftest.er1
13b2be9c 7166 ac_status=$?
ab509236
L
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
13b2be9c
DJ
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
1ad12f97
NC
7172 { ac_try='test -z "$ac_c_werror_flag"
7173 || test ! -s conftest.err'
ab509236
L
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_header_compiler=yes
7186else
7187 echo "$as_me: failed program was:" >&5
7188sed 's/^/| /' conftest.$ac_ext >&5
7189
7190ac_header_compiler=no
7191fi
ab509236 7192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7194echo "${ECHO_T}$ac_header_compiler" >&6
7195
7196# Is the header present?
7197echo "$as_me:$LINENO: checking $ac_header presence" >&5
7198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7199cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7200/* confdefs.h. */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h. */
7205#include <$ac_header>
7206_ACEOF
7207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } >/dev/null; then
7215 if test -s conftest.err; then
7216 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7218 else
7219 ac_cpp_err=
7220 fi
9b2b7d69 7221else
13b2be9c
DJ
7222 ac_cpp_err=yes
7223fi
7224if test -z "$ac_cpp_err"; then
7225 ac_header_preproc=yes
7226else
7227 echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
7230 ac_header_preproc=no
7231fi
7232rm -f conftest.err conftest.$ac_ext
7233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234echo "${ECHO_T}$ac_header_preproc" >&6
7235
7236# So? What about this header?
ab509236
L
7237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7238 yes:no: )
13b2be9c
DJ
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7243 ac_header_preproc=yes
13b2be9c 7244 ;;
ab509236 7245 no:yes:* )
13b2be9c
DJ
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7258 (
7259 cat <<\_ASBOX
ab509236
L
7260## ------------------------------------------ ##
7261## Report this to the AC_PACKAGE_NAME lists. ##
7262## ------------------------------------------ ##
13b2be9c
DJ
7263_ASBOX
7264 ) |
7265 sed "s/^/$as_me: WARNING: /" >&2
7266 ;;
7267esac
7268echo "$as_me:$LINENO: checking for $ac_header" >&5
7269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
ab509236 7273 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7274fi
13b2be9c
DJ
7275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
252b5132 7278fi
13b2be9c
DJ
7279if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282_ACEOF
7283
252b5132 7284fi
13b2be9c 7285
252b5132
RH
7286done
7287
d6d788bd 7288
252b5132
RH
7289# Put this here so that autoconf's "cross-compiling" message doesn't confuse
7290# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
7291echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
7292echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
7293if test "${host}" = "${target}"; then
7294 cross_gas=no
7295else
7296 cross_gas=yes
13b2be9c
DJ
7297
7298cat >>confdefs.h <<\_ACEOF
252b5132 7299#define CROSS_COMPILE 1
13b2be9c 7300_ACEOF
252b5132
RH
7301
7302fi
13b2be9c
DJ
7303echo "$as_me:$LINENO: result: $cross_gas" >&5
7304echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
7305
7306# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7307# for constant arguments. Useless!
13b2be9c
DJ
7308echo "$as_me:$LINENO: checking for working alloca.h" >&5
7309echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7310if test "${ac_cv_working_alloca_h+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
252b5132 7319#include <alloca.h>
13b2be9c
DJ
7320int
7321main ()
7322{
7323char *p = (char *) alloca (2 * sizeof (int));
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext conftest$ac_exeext
7329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7330 (eval $ac_link) 2>conftest.er1
13b2be9c 7331 ac_status=$?
ab509236
L
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
13b2be9c
DJ
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
1ad12f97
NC
7337 { ac_try='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
ab509236
L
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_working_alloca_h=yes
7351else
7352 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
7355ac_cv_working_alloca_h=no
7356fi
ab509236
L
7357rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7359fi
7360echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7361echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7362if test $ac_cv_working_alloca_h = yes; then
7363
7364cat >>confdefs.h <<\_ACEOF
252b5132 7365#define HAVE_ALLOCA_H 1
13b2be9c 7366_ACEOF
252b5132
RH
7367
7368fi
7369
13b2be9c
DJ
7370echo "$as_me:$LINENO: checking for alloca" >&5
7371echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7372if test "${ac_cv_func_alloca_works+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7374else
13b2be9c 7375 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7376/* confdefs.h. */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h. */
252b5132
RH
7381#ifdef __GNUC__
7382# define alloca __builtin_alloca
7383#else
7384# ifdef _MSC_VER
7385# include <malloc.h>
7386# define alloca _alloca
7387# else
7388# if HAVE_ALLOCA_H
7389# include <alloca.h>
7390# else
7391# ifdef _AIX
7392 #pragma alloca
7393# else
7394# ifndef alloca /* predefined by HP cc +Olibcalls */
7395char *alloca ();
7396# endif
7397# endif
7398# endif
7399# endif
7400#endif
7401
13b2be9c
DJ
7402int
7403main ()
7404{
7405char *p = (char *) alloca (1);
7406 ;
7407 return 0;
7408}
7409_ACEOF
7410rm -f conftest.$ac_objext conftest$ac_exeext
7411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7412 (eval $ac_link) 2>conftest.er1
13b2be9c 7413 ac_status=$?
ab509236
L
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
13b2be9c
DJ
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
1ad12f97
NC
7419 { ac_try='test -z "$ac_c_werror_flag"
7420 || test ! -s conftest.err'
ab509236
L
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; } &&
7426 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
252b5132
RH
7432 ac_cv_func_alloca_works=yes
7433else
13b2be9c
DJ
7434 echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437ac_cv_func_alloca_works=no
252b5132 7438fi
ab509236
L
7439rm -f conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
252b5132 7441fi
13b2be9c
DJ
7442echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7443echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 7444
252b5132 7445if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 7446
13b2be9c
DJ
7447cat >>confdefs.h <<\_ACEOF
7448#define HAVE_ALLOCA 1
7449_ACEOF
9b2b7d69 7450
13b2be9c 7451else
c8615825 7452 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
7453# that cause trouble. Some versions do not even contain alloca or
7454# contain a buggy version. If you still want to use their alloca,
7455# use ar to extract alloca.o from them instead of compiling alloca.c.
7456
7457ALLOCA=alloca.$ac_objext
7458
7459cat >>confdefs.h <<\_ACEOF
252b5132 7460#define C_ALLOCA 1
13b2be9c 7461_ACEOF
252b5132 7462
d6d788bd 7463
13b2be9c
DJ
7464echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7465echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7466if test "${ac_cv_os_cray+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7468else
13b2be9c 7469 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7470/* confdefs.h. */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h. */
252b5132
RH
7475#if defined(CRAY) && ! defined(CRAY2)
7476webecray
7477#else
7478wenotbecray
7479#endif
7480
13b2be9c 7481_ACEOF
252b5132 7482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 7483 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
7484 ac_cv_os_cray=yes
7485else
252b5132
RH
7486 ac_cv_os_cray=no
7487fi
7488rm -f conftest*
7489
7490fi
13b2be9c
DJ
7491echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7492echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 7493if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
7494 for ac_func in _getb67 GETB67 getb67; do
7495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7496echo "$as_me:$LINENO: checking for $ac_func" >&5
7497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7498if eval "test \"\${$as_ac_var+set}\" = set"; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
ab509236
L
7507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7509#define $ac_func innocuous_$ac_func
7510
252b5132 7511/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7512 which can conflict with char $ac_func (); below.
7513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7514 <limits.h> exists even on freestanding compilers. */
ab509236 7515
13b2be9c
DJ
7516#ifdef __STDC__
7517# include <limits.h>
7518#else
7519# include <assert.h>
7520#endif
ab509236
L
7521
7522#undef $ac_func
7523
252b5132 7524/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7525#ifdef __cplusplus
7526extern "C"
7527{
7528#endif
252b5132 7529/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7530 builtin and then its argument prototype would still apply. */
7531char $ac_func ();
252b5132
RH
7532/* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7536choke me
7537#else
13b2be9c
DJ
7538char (*f) () = $ac_func;
7539#endif
7540#ifdef __cplusplus
7541}
252b5132
RH
7542#endif
7543
13b2be9c
DJ
7544int
7545main ()
7546{
7547return f != $ac_func;
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7554 (eval $ac_link) 2>conftest.er1
13b2be9c 7555 ac_status=$?
ab509236
L
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
13b2be9c
DJ
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
1ad12f97
NC
7561 { ac_try='test -z "$ac_c_werror_flag"
7562 || test ! -s conftest.err'
ab509236
L
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 eval "$as_ac_var=yes"
7575else
7576 echo "$as_me: failed program was:" >&5
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
7579eval "$as_ac_var=no"
7580fi
ab509236
L
7581rm -f conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7583fi
7584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7586if test `eval echo '${'$as_ac_var'}'` = yes; then
7587
7588cat >>confdefs.h <<_ACEOF
252b5132 7589#define CRAY_STACKSEG_END $ac_func
13b2be9c 7590_ACEOF
252b5132 7591
13b2be9c 7592 break
252b5132
RH
7593fi
7594
13b2be9c 7595 done
252b5132
RH
7596fi
7597
13b2be9c
DJ
7598echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7599echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7600if test "${ac_cv_c_stack_direction+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7602else
7603 if test "$cross_compiling" = yes; then
7604 ac_cv_c_stack_direction=0
7605else
13b2be9c 7606 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
7611/* end confdefs.h. */
7612int
252b5132
RH
7613find_stack_direction ()
7614{
7615 static char *addr = 0;
7616 auto char dummy;
7617 if (addr == 0)
7618 {
7619 addr = &dummy;
7620 return find_stack_direction ();
7621 }
7622 else
7623 return (&dummy > addr) ? 1 : -1;
7624}
13b2be9c
DJ
7625
7626int
252b5132
RH
7627main ()
7628{
13b2be9c 7629 exit (find_stack_direction () < 0);
252b5132 7630}
13b2be9c
DJ
7631_ACEOF
7632rm -f conftest$ac_exeext
7633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
252b5132
RH
7643 ac_cv_c_stack_direction=1
7644else
13b2be9c
DJ
7645 echo "$as_me: program exited with status $ac_status" >&5
7646echo "$as_me: failed program was:" >&5
7647sed 's/^/| /' conftest.$ac_ext >&5
7648
7649( exit $ac_status )
7650ac_cv_c_stack_direction=-1
252b5132 7651fi
ab509236 7652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7653fi
252b5132 7654fi
13b2be9c
DJ
7655echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7656echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7657
13b2be9c 7658cat >>confdefs.h <<_ACEOF
252b5132 7659#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7660_ACEOF
7661
252b5132
RH
7662
7663fi
7664
13b2be9c
DJ
7665echo "$as_me:$LINENO: checking for inline" >&5
7666echo $ECHO_N "checking for inline... $ECHO_C" >&6
7667if test "${ac_cv_c_inline+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7669else
7670 ac_cv_c_inline=no
7671for ac_kw in inline __inline__ __inline; do
13b2be9c 7672 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7673/* confdefs.h. */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h. */
7678#ifndef __cplusplus
7679typedef int foo_t;
7680static $ac_kw foo_t static_foo () {return 0; }
7681$ac_kw foo_t foo () {return 0; }
7682#endif
252b5132 7683
13b2be9c
DJ
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7687 (eval $ac_compile) 2>conftest.er1
13b2be9c 7688 ac_status=$?
ab509236
L
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
13b2be9c
DJ
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
1ad12f97
NC
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
ab509236
L
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
252b5132
RH
7707 ac_cv_c_inline=$ac_kw; break
7708else
13b2be9c
DJ
7709 echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
252b5132 7712fi
ab509236 7713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7714done
7715
7716fi
13b2be9c
DJ
7717echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7718echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
7719
7720
13b2be9c 7721case $ac_cv_c_inline in
252b5132 7722 inline | yes) ;;
ab509236
L
7723 *)
7724 case $ac_cv_c_inline in
7725 no) ac_val=;;
7726 *) ac_val=$ac_cv_c_inline;;
7727 esac
7728 cat >>confdefs.h <<_ACEOF
7729#ifndef __cplusplus
7730#define inline $ac_val
7731#endif
13b2be9c 7732_ACEOF
ab509236 7733 ;;
252b5132
RH
7734esac
7735
6840198f 7736
d6d788bd 7737# VMS doesn't have unlink.
13b2be9c
DJ
7738
7739
252b5132
RH
7740for ac_func in unlink remove
7741do
13b2be9c
DJ
7742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7743echo "$as_me:$LINENO: checking for $ac_func" >&5
7744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7745if eval "test \"\${$as_ac_var+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
ab509236
L
7754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7756#define $ac_func innocuous_$ac_func
7757
252b5132 7758/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7759 which can conflict with char $ac_func (); below.
7760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7761 <limits.h> exists even on freestanding compilers. */
ab509236 7762
13b2be9c
DJ
7763#ifdef __STDC__
7764# include <limits.h>
7765#else
7766# include <assert.h>
7767#endif
ab509236
L
7768
7769#undef $ac_func
7770
252b5132 7771/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7772#ifdef __cplusplus
7773extern "C"
7774{
7775#endif
252b5132 7776/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7777 builtin and then its argument prototype would still apply. */
7778char $ac_func ();
252b5132
RH
7779/* The GNU C library defines this for functions which it implements
7780 to always fail with ENOSYS. Some functions are actually named
7781 something starting with __ and the normal name is an alias. */
7782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7783choke me
7784#else
13b2be9c
DJ
7785char (*f) () = $ac_func;
7786#endif
7787#ifdef __cplusplus
7788}
252b5132
RH
7789#endif
7790
13b2be9c
DJ
7791int
7792main ()
7793{
7794return f != $ac_func;
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext conftest$ac_exeext
7800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7801 (eval $ac_link) 2>conftest.er1
13b2be9c 7802 ac_status=$?
ab509236
L
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
13b2be9c
DJ
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
1ad12f97
NC
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
ab509236
L
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 eval "$as_ac_var=yes"
7822else
7823 echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826eval "$as_ac_var=no"
7827fi
ab509236
L
7828rm -f conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7830fi
7831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7833if test `eval echo '${'$as_ac_var'}'` = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7836_ACEOF
252b5132 7837 break
252b5132
RH
7838fi
7839done
7840
6840198f 7841
d6d788bd 7842# Some systems don't have sbrk().
13b2be9c 7843
252b5132
RH
7844for ac_func in sbrk
7845do
13b2be9c
DJ
7846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7847echo "$as_me:$LINENO: checking for $ac_func" >&5
7848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7849if eval "test \"\${$as_ac_var+set}\" = set"; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
ab509236
L
7858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7860#define $ac_func innocuous_$ac_func
7861
252b5132 7862/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7863 which can conflict with char $ac_func (); below.
7864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865 <limits.h> exists even on freestanding compilers. */
ab509236 7866
13b2be9c
DJ
7867#ifdef __STDC__
7868# include <limits.h>
7869#else
7870# include <assert.h>
7871#endif
ab509236
L
7872
7873#undef $ac_func
7874
252b5132 7875/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7876#ifdef __cplusplus
7877extern "C"
7878{
7879#endif
252b5132 7880/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7881 builtin and then its argument prototype would still apply. */
7882char $ac_func ();
252b5132
RH
7883/* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7887choke me
7888#else
13b2be9c
DJ
7889char (*f) () = $ac_func;
7890#endif
7891#ifdef __cplusplus
7892}
252b5132
RH
7893#endif
7894
13b2be9c
DJ
7895int
7896main ()
7897{
7898return f != $ac_func;
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext conftest$ac_exeext
7904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7905 (eval $ac_link) 2>conftest.er1
13b2be9c 7906 ac_status=$?
ab509236
L
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
13b2be9c
DJ
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
1ad12f97
NC
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
ab509236
L
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 eval "$as_ac_var=yes"
7926else
7927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930eval "$as_ac_var=no"
7931fi
ab509236
L
7932rm -f conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7934fi
7935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7937if test `eval echo '${'$as_ac_var'}'` = yes; then
7938 cat >>confdefs.h <<_ACEOF
7939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7940_ACEOF
252b5132 7941
252b5132
RH
7942fi
7943done
7944
d6d788bd 7945
39bec121
TW
7946# do we need the math library?
7947case "${need_libm}" in
13b2be9c 7948yes)
39bec121 7949 LIBM=
f9c19112 7950case $host in
d70c5fc7 7951*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
39bec121 7952 # These system don't have libm
d70c5fc7 7953 # on darwin the libm is a symbolic link to libSystem.dylib
39bec121
TW
7954 ;;
7955*-ncr-sysv4.3*)
13b2be9c
DJ
7956 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
7957echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
7958if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 7960else
13b2be9c 7961 ac_check_lib_save_LIBS=$LIBS
39bec121 7962LIBS="-lmw $LIBS"
13b2be9c 7963cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
7969
39bec121 7970/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7971#ifdef __cplusplus
7972extern "C"
7973#endif
39bec121 7974/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7975 builtin and then its argument prototype would still apply. */
7976char _mwvalidcheckl ();
7977int
7978main ()
7979{
7980_mwvalidcheckl ();
7981 ;
7982 return 0;
7983}
7984_ACEOF
7985rm -f conftest.$ac_objext conftest$ac_exeext
7986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7987 (eval $ac_link) 2>conftest.er1
13b2be9c 7988 ac_status=$?
ab509236
L
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
13b2be9c
DJ
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
1ad12f97
NC
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
ab509236
L
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_lib_mw__mwvalidcheckl=yes
8008else
8009 echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
8012ac_cv_lib_mw__mwvalidcheckl=no
8013fi
ab509236
L
8014rm -f conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8016LIBS=$ac_check_lib_save_LIBS
8017fi
8018echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8019echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8020if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 8021 LIBM="-lmw"
39bec121
TW
8022fi
8023
13b2be9c
DJ
8024 echo "$as_me:$LINENO: checking for main in -lm" >&5
8025echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8026if test "${ac_cv_lib_m_main+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8028else
13b2be9c 8029 ac_check_lib_save_LIBS=$LIBS
39bec121 8030LIBS="-lm $LIBS"
13b2be9c 8031cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
39bec121 8037
d6d788bd 8038
13b2be9c
DJ
8039int
8040main ()
8041{
8042main ();
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext conftest$ac_exeext
8048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8049 (eval $ac_link) 2>conftest.er1
13b2be9c 8050 ac_status=$?
ab509236
L
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
13b2be9c
DJ
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
1ad12f97
NC
8056 { ac_try='test -z "$ac_c_werror_flag"
8057 || test ! -s conftest.err'
ab509236
L
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 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'
13b2be9c
DJ
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
8069 ac_cv_lib_m_main=yes
8070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074ac_cv_lib_m_main=no
8075fi
ab509236
L
8076rm -f conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8078LIBS=$ac_check_lib_save_LIBS
8079fi
8080echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8081echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8082if test $ac_cv_lib_m_main = yes; then
39bec121 8083 LIBM="$LIBM -lm"
39bec121
TW
8084fi
8085
8086 ;;
8087*)
13b2be9c
DJ
8088 echo "$as_me:$LINENO: checking for main in -lm" >&5
8089echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8090if test "${ac_cv_lib_m_main+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8092else
13b2be9c 8093 ac_check_lib_save_LIBS=$LIBS
39bec121 8094LIBS="-lm $LIBS"
13b2be9c 8095cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
39bec121 8101
d6d788bd 8102
13b2be9c
DJ
8103int
8104main ()
8105{
8106main ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext conftest$ac_exeext
8112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8113 (eval $ac_link) 2>conftest.er1
13b2be9c 8114 ac_status=$?
ab509236
L
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
13b2be9c
DJ
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
1ad12f97
NC
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
ab509236
L
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_m_main=yes
8134else
8135 echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138ac_cv_lib_m_main=no
8139fi
ab509236
L
8140rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8145echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8146if test $ac_cv_lib_m_main = yes; then
39bec121 8147 LIBM="-lm"
39bec121
TW
8148fi
8149
8150 ;;
8151esac
8152
13b2be9c 8153
39bec121
TW
8154 ;;
8155esac
8156
252b5132
RH
8157# Some non-ANSI preprocessors botch requoting inside strings. That's bad
8158# enough, but on some of those systems, the assert macro relies on requoting
8159# working properly!
13b2be9c
DJ
8160echo "$as_me:$LINENO: checking for working assert macro" >&5
8161echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8162if test "${gas_cv_assert_ok+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h. */
252b5132
RH
8171#include <assert.h>
8172#include <stdio.h>
13b2be9c
DJ
8173int
8174main ()
8175{
252b5132
RH
8176
8177/* check for requoting problems */
8178static int a, b, c, d;
8179static char *s;
8180assert (!strcmp(s, "foo bar baz quux"));
8181/* check for newline handling */
8182assert (a == b
8183 || c == d);
8184
13b2be9c
DJ
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8191 (eval $ac_link) 2>conftest.er1
13b2be9c 8192 ac_status=$?
ab509236
L
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
13b2be9c
DJ
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
1ad12f97
NC
8198 { ac_try='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
ab509236
L
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
252b5132
RH
8211 gas_cv_assert_ok=yes
8212else
13b2be9c
DJ
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216gas_cv_assert_ok=no
252b5132 8217fi
ab509236
L
8218rm -f conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
252b5132 8220fi
13b2be9c
DJ
8221echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8222echo "${ECHO_T}$gas_cv_assert_ok" >&6
8223test $gas_cv_assert_ok = yes ||
8224cat >>confdefs.h <<\_ACEOF
252b5132 8225#define BROKEN_ASSERT 1
13b2be9c 8226_ACEOF
252b5132 8227
d6d788bd
L
8228
8229
252b5132
RH
8230# On some systems, the system header files may not declare malloc, realloc,
8231# and free. There are places where gas needs these functions to have been
8232# declared -- such as when taking their addresses.
8233gas_test_headers="
8234#ifdef HAVE_MEMORY_H
8235#include <memory.h>
8236#endif
8237#ifdef HAVE_STRING_H
8238#include <string.h>
8239#else
8240#ifdef HAVE_STRINGS_H
8241#include <strings.h>
8242#endif
8243#endif
8244#ifdef HAVE_STDLIB_H
8245#include <stdlib.h>
8246#endif
8247#ifdef HAVE_UNISTD_H
8248#include <unistd.h>
8249#endif
8250"
8251
e8a38df5
AL
8252# Does errno.h declare errno, or do we have to add a separate declaration
8253# for it?
8254
8255echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
8256echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
8257if test "${gas_cv_decl_needed_errno+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 cat >conftest.$ac_ext <<_ACEOF
8261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
8266
8267#ifdef HAVE_ERRNO_H
8268#include <errno.h>
8269#endif
8270
8271int
8272main ()
8273{
8274
8275typedef int f;
8276f x;
8277x = (f) errno;
8278
8279 ;
8280 return 0;
8281}
8282_ACEOF
8283rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 gas_cv_decl_needed_errno=no
8306else
8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
8310gas_cv_decl_needed_errno=yes
8311fi
8312rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314fi
8315echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
8316echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
8317if test $gas_cv_decl_needed_errno = yes; then
8318
8319cat >>confdefs.h <<\_ACEOF
8320#define NEED_DECLARATION_ERRNO 1
8321_ACEOF
8322
8323fi
8324
8325
56f36663
NC
8326echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8327echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8328if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330else
8331 cat >conftest.$ac_ext <<_ACEOF
8332/* confdefs.h. */
8333_ACEOF
8334cat confdefs.h >>conftest.$ac_ext
8335cat >>conftest.$ac_ext <<_ACEOF
8336/* end confdefs.h. */
8337#include <unistd.h>
8338int
8339main ()
8340{
8341extern int getopt (int, char *const*, const char *);
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346rm -f conftest.$ac_objext
8347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag"
8356 || test ! -s conftest.err'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 gas_cv_decl_getopt_unistd_h=yes
8369else
8370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
8373gas_cv_decl_getopt_unistd_h=no
8374fi
8375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8376fi
8377
8378echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
8379echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
8380if test $gas_cv_decl_getopt_unistd_h = yes; then
8381
8382cat >>confdefs.h <<\_ACEOF
8383#define HAVE_DECL_GETOPT 1
8384_ACEOF
8385
8386fi
8387
e8a38df5
AL
8388
8389echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
8390echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
8391if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8395/* confdefs.h. */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h. */
252b5132 8400$gas_test_headers
13b2be9c
DJ
8401int
8402main ()
8403{
252b5132 8404
e8a38df5 8405typedef char **f;
252b5132 8406f x;
e8a38df5 8407x = (f) environ;
252b5132 8408
13b2be9c
DJ
8409 ;
8410 return 0;
8411}
8412_ACEOF
8413rm -f conftest.$ac_objext conftest$ac_exeext
8414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8415 (eval $ac_link) 2>conftest.er1
13b2be9c 8416 ac_status=$?
ab509236
L
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
13b2be9c
DJ
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
1ad12f97
NC
8422 { ac_try='test -z "$ac_c_werror_flag"
8423 || test ! -s conftest.err'
ab509236
L
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; } &&
8429 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 (eval $ac_try) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
e8a38df5 8435 gas_cv_decl_needed_environ=no
252b5132 8436else
13b2be9c
DJ
8437 echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
e8a38df5 8440gas_cv_decl_needed_environ=yes
252b5132 8441fi
ab509236
L
8442rm -f conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
252b5132 8444fi
e8a38df5
AL
8445echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
8446echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
8447if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
8448
8449cat >>confdefs.h <<\_ACEOF
e8a38df5 8450#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
8451_ACEOF
8452
8453fi
8454
8455
e8a38df5
AL
8456echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
8457echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
8458if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467$gas_test_headers
8468int
8469main ()
8470{
8471
e8a38df5 8472typedef int (*f)(int);
13b2be9c 8473f x;
e8a38df5 8474x = (f) ffs;
13b2be9c
DJ
8475
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8482 (eval $ac_link) 2>conftest.er1
13b2be9c 8483 ac_status=$?
ab509236
L
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
13b2be9c
DJ
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
1ad12f97
NC
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
ab509236
L
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
e8a38df5 8502 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
e8a38df5 8507gas_cv_decl_needed_ffs=yes
13b2be9c 8508fi
ab509236
L
8509rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8511fi
e8a38df5
AL
8512echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
8513echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
8514if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
8515
8516cat >>confdefs.h <<\_ACEOF
e8a38df5 8517#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
8518_ACEOF
8519
8520fi
8521
8522
8523echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
8524echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
8525if test "${gas_cv_decl_needed_free+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8534$gas_test_headers
8535int
8536main ()
8537{
8538
8539typedef void (*f)();
8540f x;
8541x = (f) free;
8542
8543 ;
8544 return 0;
8545}
8546_ACEOF
8547rm -f conftest.$ac_objext conftest$ac_exeext
8548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8549 (eval $ac_link) 2>conftest.er1
13b2be9c 8550 ac_status=$?
ab509236
L
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
13b2be9c
DJ
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
1ad12f97
NC
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
ab509236
L
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 gas_cv_decl_needed_free=no
8570else
8571 echo "$as_me: failed program was:" >&5
8572sed 's/^/| /' conftest.$ac_ext >&5
8573
8574gas_cv_decl_needed_free=yes
8575fi
ab509236
L
8576rm -f conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8578fi
8579echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
8580echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
8581if test $gas_cv_decl_needed_free = yes; then
8582
8583cat >>confdefs.h <<\_ACEOF
8584#define NEED_DECLARATION_FREE 1
8585_ACEOF
8586
8587fi
8588
8589
e8a38df5
AL
8590echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
8591echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
8592if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601$gas_test_headers
8602int
8603main ()
8604{
8605
8606typedef char *(*f)();
8607f x;
e8a38df5 8608x = (f) malloc;
13b2be9c
DJ
8609
8610 ;
8611 return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8616 (eval $ac_link) 2>conftest.er1
13b2be9c 8617 ac_status=$?
ab509236
L
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
13b2be9c
DJ
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
1ad12f97
NC
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
ab509236
L
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
e8a38df5 8636 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
8637else
8638 echo "$as_me: failed program was:" >&5
8639sed 's/^/| /' conftest.$ac_ext >&5
8640
e8a38df5 8641gas_cv_decl_needed_malloc=yes
13b2be9c 8642fi
ab509236
L
8643rm -f conftest.err conftest.$ac_objext \
8644 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8645fi
e8a38df5
AL
8646echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
8647echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
8648if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
8649
8650cat >>confdefs.h <<\_ACEOF
e8a38df5 8651#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
8652_ACEOF
8653
8654fi
8655
8656
e8a38df5
AL
8657echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
8658echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
8659if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661else
8662 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
8668$gas_test_headers
8669int
8670main ()
8671{
8672
e8a38df5 8673typedef char *(*f)();
13b2be9c 8674f x;
e8a38df5 8675x = (f) sbrk;
13b2be9c
DJ
8676
8677 ;
8678 return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8683 (eval $ac_link) 2>conftest.er1
13b2be9c 8684 ac_status=$?
ab509236
L
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
13b2be9c
DJ
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
1ad12f97
NC
8690 { ac_try='test -z "$ac_c_werror_flag"
8691 || test ! -s conftest.err'
ab509236
L
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; } &&
8697 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
e8a38df5 8703 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
8704else
8705 echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
e8a38df5 8708gas_cv_decl_needed_sbrk=yes
13b2be9c 8709fi
ab509236
L
8710rm -f conftest.err conftest.$ac_objext \
8711 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8712fi
e8a38df5
AL
8713echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
8714echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
8715if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
8716
8717cat >>confdefs.h <<\_ACEOF
e8a38df5 8718#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
8719_ACEOF
8720
8721fi
8722
8723
e8a38df5
AL
8724echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
8725echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
8726if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728else
8729 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
e8a38df5 8735$gas_test_headers
13b2be9c
DJ
8736int
8737main ()
8738{
8739
e8a38df5 8740typedef char *(*f)();
13b2be9c 8741f x;
e8a38df5 8742x = (f) strstr;
13b2be9c
DJ
8743
8744 ;
8745 return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext conftest$ac_exeext
8749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8750 (eval $ac_link) 2>conftest.er1
13b2be9c 8751 ac_status=$?
ab509236
L
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
13b2be9c
DJ
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
1ad12f97
NC
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
ab509236
L
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
e8a38df5 8770 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
8771else
8772 echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
e8a38df5 8775gas_cv_decl_needed_strstr=yes
13b2be9c 8776fi
ab509236
L
8777rm -f conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8779fi
e8a38df5
AL
8780echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
8781echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
8782if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
8783
8784cat >>confdefs.h <<\_ACEOF
e8a38df5 8785#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
8786_ACEOF
8787
8788fi
8789
8790
6d74f28b
EB
8791echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8792echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8793if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802$ac_includes_default
8803int
8804main ()
8805{
8806#ifndef vsnprintf
8807 char *p = (char *) vsnprintf;
8808#endif
8809
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext
8815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_have_decl_vsnprintf=yes
8837else
8838 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841ac_cv_have_decl_vsnprintf=no
8842fi
8843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8844fi
8845echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8846echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8847if test $ac_cv_have_decl_vsnprintf = yes; then
8848
8849cat >>confdefs.h <<_ACEOF
8850#define HAVE_DECL_VSNPRINTF 1
8851_ACEOF
8852
8853
8854else
8855 cat >>confdefs.h <<_ACEOF
8856#define HAVE_DECL_VSNPRINTF 0
8857_ACEOF
8858
8859
8860fi
8861
8862
8863
13b2be9c 8864
c973bc5c
NC
8865case "${host}" in
8866*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8867
8868cat >>confdefs.h <<\_ACEOF
8869#define USE_BINARY_FOPEN 1
8870_ACEOF
8871 ;;
8872esac
8873
8874
13b2be9c 8875
108a6f8e
CD
8876
8877
8878
8879
13b2be9c
DJ
8880 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8881
8882 ac_config_commands="$ac_config_commands default"
8883
8884
8885cat >confcache <<\_ACEOF
8886# This file is a shell script that caches the results of configure
8887# tests run on this system so they can be shared between configure
8888# scripts and configure runs, see configure's option --config-cache.
8889# It is not useful on other systems. If it contains results you don't
8890# want to keep, you may remove or edit it.
8891#
8892# config.status only pays attention to the cache file if you give it
8893# the --recheck option to rerun configure.
8894#
8895# `ac_cv_env_foo' variables (set or unset) will be overridden when
8896# loading this file, other *unset* `ac_cv_foo' will be assigned the
8897# following values.
8898
8899_ACEOF
8900
8901# The following way of writing the cache mishandles newlines in values,
8902# but we know of no workaround that is simple, portable, and efficient.
8903# So, don't put newlines in cache variables' values.
8904# Ultrix sh set writes to stderr and can't be redirected directly,
8905# and sets the high bit in the cache file unless we assign to the vars.
8906{
8907 (set) 2>&1 |
8908 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8909 *ac_space=\ *)
8910 # `set' does not quote correctly, so add quotes (double-quote
8911 # substitution turns \\\\ into \\, and sed turns \\ into \).
8912 sed -n \
ab509236
L
8913 "s/'/'\\\\''/g;
8914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
8915 ;;
8916 *)
8917 # `set' quotes correctly as required by POSIX, so do not add quotes.
8918 sed -n \
ab509236 8919 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
8920 ;;
8921 esac;
8922} |
8923 sed '
8924 t clear
8925 : clear
8926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8927 t end
8928 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8929 : end' >>confcache
8930if diff $cache_file confcache >/dev/null 2>&1; then :; else
8931 if test -w $cache_file; then
8932 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8933 cat confcache >$cache_file
8934 else
8935 echo "not updating unwritable cache $cache_file"
8936 fi
8937fi
8938rm -f confcache
8939
8940test "x$prefix" = xNONE && prefix=$ac_default_prefix
8941# Let make expand exec_prefix.
8942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8943
8944# VPATH may cause trouble with some makes, so we remove $(srcdir),
8945# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8946# trailing colons and then remove the whole line if VPATH becomes empty
8947# (actually we leave an empty line to preserve line numbers).
8948if test "x$srcdir" = x.; then
ab509236 8949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
8950s/:*\$(srcdir):*/:/;
8951s/:*\${srcdir}:*/:/;
8952s/:*@srcdir@:*/:/;
ab509236 8953s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 8954s/:*$//;
ab509236 8955s/^[^=]*=[ ]*$//;
13b2be9c
DJ
8956}'
8957fi
8958
8959DEFS=-DHAVE_CONFIG_H
8960
8961ac_libobjs=
8962ac_ltlibobjs=
8963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8964 # 1. Remove the extension, and $U if already installed.
8965 ac_i=`echo "$ac_i" |
ab509236 8966 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
8967 # 2. Add them.
8968 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8969 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8970done
8971LIBOBJS=$ac_libobjs
8972
8973LTLIBOBJS=$ac_ltlibobjs
8974
8975
8976if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8977 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8978Usually this means the macro was only invoked conditionally." >&5
8979echo "$as_me: error: conditional \"AMDEP\" was never defined.
8980Usually this means the macro was only invoked conditionally." >&2;}
8981 { (exit 1); exit 1; }; }
8982fi
8983if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8984 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8985Usually this means the macro was only invoked conditionally." >&5
8986echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8987Usually this means the macro was only invoked conditionally." >&2;}
8988 { (exit 1); exit 1; }; }
8989fi
8990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8992Usually this means the macro was only invoked conditionally." >&5
8993echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8994Usually this means the macro was only invoked conditionally." >&2;}
8995 { (exit 1); exit 1; }; }
8996fi
d5fbea21
DJ
8997if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
8998 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
8999Usually this means the macro was only invoked conditionally." >&5
9000echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
9001Usually this means the macro was only invoked conditionally." >&2;}
9002 { (exit 1); exit 1; }; }
9003fi
13b2be9c
DJ
9004
9005: ${CONFIG_STATUS=./config.status}
9006ac_clean_files_save=$ac_clean_files
9007ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9008{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9009echo "$as_me: creating $CONFIG_STATUS" >&6;}
9010cat >$CONFIG_STATUS <<_ACEOF
9011#! $SHELL
9012# Generated by $as_me.
9013# Run this file to recreate the current configuration.
9014# Compiler output produced by configure, useful for debugging
9015# configure, is in config.log if it exists.
9016
9017debug=false
9018ac_cs_recheck=false
9019ac_cs_silent=false
9020SHELL=\${CONFIG_SHELL-$SHELL}
9021_ACEOF
9022
9023cat >>$CONFIG_STATUS <<\_ACEOF
9024## --------------------- ##
9025## M4sh Initialization. ##
9026## --------------------- ##
9027
9028# Be Bourne compatible
9029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9030 emulate sh
9031 NULLCMD=:
9032 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9033 # is contrary to our usage. Disable this feature.
9034 alias -g '${1+"$@"}'='"$@"'
9035elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9036 set -o posix
9037fi
ab509236 9038DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
9039
9040# Support unset when possible.
ab509236 9041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
9042 as_unset=unset
9043else
9044 as_unset=false
9045fi
9046
9047
9048# Work around bugs in pre-3.0 UWIN ksh.
9049$as_unset ENV MAIL MAILPATH
9050PS1='$ '
9051PS2='> '
9052PS4='+ '
9053
9054# NLS nuisances.
9055for as_var in \
9056 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9057 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9058 LC_TELEPHONE LC_TIME
9059do
ab509236 9060 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
9061 eval $as_var=C; export $as_var
9062 else
9063 $as_unset $as_var
9064 fi
9065done
9066
9067# Required to use basename.
9068if expr a : '\(a\)' >/dev/null 2>&1; then
9069 as_expr=expr
9070else
9071 as_expr=false
9072fi
9073
9074if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9075 as_basename=basename
9076else
9077 as_basename=false
9078fi
9079
9080
9081# Name of the executable.
9082as_me=`$as_basename "$0" ||
9083$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9084 X"$0" : 'X\(//\)$' \| \
9085 X"$0" : 'X\(/\)$' \| \
9086 . : '\(.\)' 2>/dev/null ||
9087echo X/"$0" |
9088 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9089 /^X\/\(\/\/\)$/{ s//\1/; q; }
9090 /^X\/\(\/\).*/{ s//\1/; q; }
9091 s/.*/./; q'`
9092
9093
9094# PATH needs CR, and LINENO needs CR and PATH.
9095# Avoid depending upon Character Ranges.
9096as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9098as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9099as_cr_digits='0123456789'
9100as_cr_alnum=$as_cr_Letters$as_cr_digits
9101
9102# The user is always right.
9103if test "${PATH_SEPARATOR+set}" != set; then
9104 echo "#! /bin/sh" >conf$$.sh
9105 echo "exit 0" >>conf$$.sh
9106 chmod +x conf$$.sh
9107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9108 PATH_SEPARATOR=';'
9109 else
9110 PATH_SEPARATOR=:
9111 fi
9112 rm -f conf$$.sh
9113fi
9114
9115
9116 as_lineno_1=$LINENO
9117 as_lineno_2=$LINENO
9118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9119 test "x$as_lineno_1" != "x$as_lineno_2" &&
9120 test "x$as_lineno_3" = "x$as_lineno_2" || {
9121 # Find who we are. Look in the path if we contain no path at all
9122 # relative or not.
9123 case $0 in
9124 *[\\/]* ) as_myself=$0 ;;
9125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9131done
252b5132 9132
13b2be9c
DJ
9133 ;;
9134 esac
9135 # We did not find ourselves, most probably we were run as `sh COMMAND'
9136 # in which case we are not to be found in the path.
9137 if test "x$as_myself" = x; then
9138 as_myself=$0
9139 fi
9140 if test ! -f "$as_myself"; then
9141 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9142echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9143 { (exit 1); exit 1; }; }
9144 fi
9145 case $CONFIG_SHELL in
9146 '')
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9149do
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
9152 for as_base in sh bash ksh sh5; do
9153 case $as_dir in
9154 /*)
9155 if ("$as_dir/$as_base" -c '
9156 as_lineno_1=$LINENO
9157 as_lineno_2=$LINENO
9158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9159 test "x$as_lineno_1" != "x$as_lineno_2" &&
9160 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9161 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9162 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9163 CONFIG_SHELL=$as_dir/$as_base
9164 export CONFIG_SHELL
9165 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9166 fi;;
9167 esac
9168 done
9169done
9170;;
9171 esac
252b5132 9172
13b2be9c
DJ
9173 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9174 # uniformly replaced by the line number. The first 'sed' inserts a
9175 # line-number line before each line; the second 'sed' does the real
9176 # work. The second script uses 'N' to pair each line-number line
9177 # with the numbered line, and appends trailing '-' during
9178 # substitution so that $LINENO is not a special case at line end.
9179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9180 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9181 sed '=' <$as_myself |
9182 sed '
9183 N
9184 s,$,-,
9185 : loop
9186 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9187 t loop
9188 s,-$,,
9189 s,^['$as_cr_digits']*\n,,
9190 ' >$as_me.lineno &&
9191 chmod +x $as_me.lineno ||
9192 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9193echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9194 { (exit 1); exit 1; }; }
9195
9196 # Don't try to exec as it changes $[0], causing all sort of problems
9197 # (the dirname of $[0] is not the place where we might find the
9198 # original and so on. Autoconf is especially sensible to this).
9199 . ./$as_me.lineno
9200 # Exit status is that of the last command.
9201 exit
9202}
d6d788bd 9203
252b5132 9204
13b2be9c
DJ
9205case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9206 *c*,-n*) ECHO_N= ECHO_C='
9207' ECHO_T=' ' ;;
9208 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9209 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9210esac
252b5132 9211
13b2be9c
DJ
9212if expr a : '\(a\)' >/dev/null 2>&1; then
9213 as_expr=expr
252b5132 9214else
13b2be9c 9215 as_expr=false
252b5132 9216fi
252b5132 9217
13b2be9c
DJ
9218rm -f conf$$ conf$$.exe conf$$.file
9219echo >conf$$.file
9220if ln -s conf$$.file conf$$ 2>/dev/null; then
9221 # We could just check for DJGPP; but this test a) works b) is more generic
9222 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9223 if test -f conf$$.exe; then
9224 # Don't use ln at all; we don't have any links
9225 as_ln_s='cp -p'
9226 else
9227 as_ln_s='ln -s'
9228 fi
9229elif ln conf$$.file conf$$ 2>/dev/null; then
9230 as_ln_s=ln
9231else
9232 as_ln_s='cp -p'
252b5132 9233fi
13b2be9c 9234rm -f conf$$ conf$$.exe conf$$.file
252b5132 9235
13b2be9c
DJ
9236if mkdir -p . 2>/dev/null; then
9237 as_mkdir_p=:
252b5132 9238else
ab509236 9239 test -d ./-p && rmdir ./-p
13b2be9c
DJ
9240 as_mkdir_p=false
9241fi
252b5132 9242
13b2be9c 9243as_executable_p="test -f"
252b5132 9244
13b2be9c 9245# Sed expression to map a string onto a valid CPP name.
ab509236 9246as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 9247
13b2be9c 9248# Sed expression to map a string onto a valid variable name.
ab509236 9249as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 9250
d6d788bd 9251
13b2be9c
DJ
9252# IFS
9253# We need space, tab and new line, in precisely that order.
9254as_nl='
9255'
9256IFS=" $as_nl"
252b5132 9257
13b2be9c
DJ
9258# CDPATH.
9259$as_unset CDPATH
252b5132 9260
13b2be9c 9261exec 6>&1
252b5132 9262
13b2be9c
DJ
9263# Open the log real soon, to keep \$[0] and so on meaningful, and to
9264# report actual input values of CONFIG_FILES etc. instead of their
9265# values after options handling. Logging --version etc. is OK.
9266exec 5>>config.log
9267{
9268 echo
9269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9270## Running $as_me. ##
9271_ASBOX
9272} >&5
9273cat >&5 <<_CSEOF
252b5132 9274
13b2be9c 9275This file was extended by $as_me, which was
ab509236 9276generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 9277
13b2be9c
DJ
9278 CONFIG_FILES = $CONFIG_FILES
9279 CONFIG_HEADERS = $CONFIG_HEADERS
9280 CONFIG_LINKS = $CONFIG_LINKS
9281 CONFIG_COMMANDS = $CONFIG_COMMANDS
9282 $ $0 $@
252b5132 9283
13b2be9c
DJ
9284_CSEOF
9285echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9286echo >&5
9287_ACEOF
252b5132 9288
13b2be9c
DJ
9289# Files that config.status was made for.
9290if test -n "$ac_config_files"; then
9291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 9292fi
13b2be9c
DJ
9293
9294if test -n "$ac_config_headers"; then
9295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 9296fi
252b5132 9297
13b2be9c
DJ
9298if test -n "$ac_config_links"; then
9299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
9300fi
9301
13b2be9c
DJ
9302if test -n "$ac_config_commands"; then
9303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9304fi
d6d788bd 9305
13b2be9c 9306cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 9307
13b2be9c
DJ
9308ac_cs_usage="\
9309\`$as_me' instantiates files from templates according to the
9310current configuration.
252b5132 9311
13b2be9c 9312Usage: $0 [OPTIONS] [FILE]...
252b5132 9313
13b2be9c
DJ
9314 -h, --help print this help, then exit
9315 -V, --version print version number, then exit
9316 -q, --quiet do not print progress messages
9317 -d, --debug don't remove temporary files
9318 --recheck update $as_me by reconfiguring in the same conditions
9319 --file=FILE[:TEMPLATE]
ab509236 9320 instantiate the configuration file FILE
13b2be9c 9321 --header=FILE[:TEMPLATE]
ab509236 9322 instantiate the configuration header FILE
252b5132 9323
13b2be9c
DJ
9324Configuration files:
9325$config_files
252b5132 9326
13b2be9c
DJ
9327Configuration headers:
9328$config_headers
252b5132 9329
13b2be9c
DJ
9330Configuration commands:
9331$config_commands
252b5132 9332
13b2be9c
DJ
9333Report bugs to <bug-autoconf@gnu.org>."
9334_ACEOF
d6d788bd 9335
13b2be9c
DJ
9336cat >>$CONFIG_STATUS <<_ACEOF
9337ac_cs_version="\\
9338config.status
ab509236 9339configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 9340 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 9341
ab509236 9342Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
9343This config.status script is free software; the Free Software Foundation
9344gives unlimited permission to copy, distribute and modify it."
9345srcdir=$srcdir
9346INSTALL="$INSTALL"
9347_ACEOF
d6d788bd 9348
13b2be9c
DJ
9349cat >>$CONFIG_STATUS <<\_ACEOF
9350# If no file are specified by the user, then we need to provide default
9351# value. By we need to know if files were specified by the user.
9352ac_need_defaults=:
9353while test $# != 0
9354do
9355 case $1 in
9356 --*=*)
9357 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9358 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9359 ac_shift=:
c8615825 9360 ;;
13b2be9c
DJ
9361 -*)
9362 ac_option=$1
9363 ac_optarg=$2
9364 ac_shift=shift
c8615825 9365 ;;
13b2be9c
DJ
9366 *) # This is not an option, so the user has probably given explicit
9367 # arguments.
9368 ac_option=$1
9369 ac_need_defaults=false;;
9370 esac
252b5132 9371
13b2be9c
DJ
9372 case $ac_option in
9373 # Handling of the options.
9374_ACEOF
9375cat >>$CONFIG_STATUS <<\_ACEOF
9376 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9377 ac_cs_recheck=: ;;
9378 --version | --vers* | -V )
9379 echo "$ac_cs_version"; exit 0 ;;
9380 --he | --h)
9381 # Conflict between --help and --header
9382 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9383Try \`$0 --help' for more information." >&5
9384echo "$as_me: error: ambiguous option: $1
9385Try \`$0 --help' for more information." >&2;}
9386 { (exit 1); exit 1; }; };;
9387 --help | --hel | -h )
9388 echo "$ac_cs_usage"; exit 0 ;;
9389 --debug | --d* | -d )
9390 debug=: ;;
9391 --file | --fil | --fi | --f )
9392 $ac_shift
9393 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9394 ac_need_defaults=false;;
9395 --header | --heade | --head | --hea )
9396 $ac_shift
9397 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9398 ac_need_defaults=false;;
9399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9401 ac_cs_silent=: ;;
c8615825 9402
13b2be9c
DJ
9403 # This is an error.
9404 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9405Try \`$0 --help' for more information." >&5
9406echo "$as_me: error: unrecognized option: $1
9407Try \`$0 --help' for more information." >&2;}
9408 { (exit 1); exit 1; }; } ;;
252b5132 9409
13b2be9c 9410 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 9411
13b2be9c
DJ
9412 esac
9413 shift
9414done
252b5132 9415
13b2be9c 9416ac_configure_extra_args=
d6d788bd 9417
13b2be9c
DJ
9418if $ac_cs_silent; then
9419 exec 6>/dev/null
9420 ac_configure_extra_args="$ac_configure_extra_args --silent"
9421fi
9b2b7d69 9422
13b2be9c
DJ
9423_ACEOF
9424cat >>$CONFIG_STATUS <<_ACEOF
9425if \$ac_cs_recheck; then
9426 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9427 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9428fi
9429
9430_ACEOF
9431
9432cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 9433#
13b2be9c 9434# INIT-COMMANDS section.
9b2b7d69
MM
9435#
9436
13b2be9c 9437AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
9438# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9439 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9440 # from automake.
9441 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9442 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9443 LINGUAS="${LINGUAS-%UNSET%}"
9444
13b2be9c
DJ
9445target_cpu_type=${target_cpu_type}
9446 cgen_cpu_prefix=${cgen_cpu_prefix}
9447 obj_format=${obj_format}
9448 te_file=${te_file}
9449
9450_ACEOF
9451
9452
9453
9454cat >>$CONFIG_STATUS <<\_ACEOF
9455for ac_config_target in $ac_config_targets
9b2b7d69 9456do
13b2be9c
DJ
9457 case "$ac_config_target" in
9458 # Handling of arguments.
9459 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
9460 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
9461 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9462 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9463 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9464 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 9465 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
9466 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9467 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9468 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9469echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9470 { (exit 1); exit 1; }; };;
9b2b7d69
MM
9471 esac
9472done
9473
13b2be9c
DJ
9474# If the user did not use the arguments to specify the items to instantiate,
9475# then the envvar interface is used. Set only those that are not.
9476# We use the long form for the default assignment because of an extremely
9477# bizarre bug on SunOS 4.1.3.
9478if $ac_need_defaults; then
9479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9481 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9482fi
9483
9484# Have a temporary directory for convenience. Make it in the build tree
9485# simply because there is no reason to put it here, and in addition,
9486# creating and moving files from /tmp can sometimes cause problems.
9487# Create a temporary directory, and hook for its removal unless debugging.
9488$debug ||
9489{
9490 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9491 trap '{ (exit 1); exit 1; }' 1 2 13 15
9492}
9b2b7d69 9493
13b2be9c 9494# Create a (secure) tmp directory for tmp files.
9b2b7d69 9495
13b2be9c
DJ
9496{
9497 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9498 test -n "$tmp" && test -d "$tmp"
9499} ||
9500{
9501 tmp=./confstat$$-$RANDOM
9502 (umask 077 && mkdir $tmp)
9503} ||
9504{
9505 echo "$me: cannot create a temporary directory in ." >&2
9506 { (exit 1); exit 1; }
9507}
9b2b7d69 9508
13b2be9c
DJ
9509_ACEOF
9510
9511cat >>$CONFIG_STATUS <<_ACEOF
9512
9513#
9514# CONFIG_FILES section.
9515#
9516
9517# No need to generate the scripts if there are no CONFIG_FILES.
9518# This happens for instance when ./config.status config.h
9519if test -n "\$CONFIG_FILES"; then
9520 # Protect against being on the right side of a sed subst in config.status.
9521 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9522 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9523s,@SHELL@,$SHELL,;t t
9524s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9525s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9526s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9527s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9528s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9529s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9530s,@exec_prefix@,$exec_prefix,;t t
9531s,@prefix@,$prefix,;t t
9532s,@program_transform_name@,$program_transform_name,;t t
9533s,@bindir@,$bindir,;t t
9534s,@sbindir@,$sbindir,;t t
9535s,@libexecdir@,$libexecdir,;t t
9536s,@datadir@,$datadir,;t t
9537s,@sysconfdir@,$sysconfdir,;t t
9538s,@sharedstatedir@,$sharedstatedir,;t t
9539s,@localstatedir@,$localstatedir,;t t
9540s,@libdir@,$libdir,;t t
9541s,@includedir@,$includedir,;t t
9542s,@oldincludedir@,$oldincludedir,;t t
9543s,@infodir@,$infodir,;t t
9544s,@mandir@,$mandir,;t t
9545s,@build_alias@,$build_alias,;t t
9546s,@host_alias@,$host_alias,;t t
9547s,@target_alias@,$target_alias,;t t
9548s,@DEFS@,$DEFS,;t t
9549s,@ECHO_C@,$ECHO_C,;t t
9550s,@ECHO_N@,$ECHO_N,;t t
9551s,@ECHO_T@,$ECHO_T,;t t
9552s,@LIBS@,$LIBS,;t t
9553s,@build@,$build,;t t
9554s,@build_cpu@,$build_cpu,;t t
9555s,@build_vendor@,$build_vendor,;t t
9556s,@build_os@,$build_os,;t t
9557s,@host@,$host,;t t
9558s,@host_cpu@,$host_cpu,;t t
9559s,@host_vendor@,$host_vendor,;t t
9560s,@host_os@,$host_os,;t t
9561s,@target@,$target,;t t
9562s,@target_cpu@,$target_cpu,;t t
9563s,@target_vendor@,$target_vendor,;t t
9564s,@target_os@,$target_os,;t t
9565s,@CC@,$CC,;t t
9566s,@CFLAGS@,$CFLAGS,;t t
9567s,@LDFLAGS@,$LDFLAGS,;t t
9568s,@CPPFLAGS@,$CPPFLAGS,;t t
9569s,@ac_ct_CC@,$ac_ct_CC,;t t
9570s,@EXEEXT@,$EXEEXT,;t t
9571s,@OBJEXT@,$OBJEXT,;t t
9572s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9573s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9574s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9575s,@CYGPATH_W@,$CYGPATH_W,;t t
9576s,@PACKAGE@,$PACKAGE,;t t
9577s,@VERSION@,$VERSION,;t t
9578s,@ACLOCAL@,$ACLOCAL,;t t
9579s,@AUTOCONF@,$AUTOCONF,;t t
9580s,@AUTOMAKE@,$AUTOMAKE,;t t
9581s,@AUTOHEADER@,$AUTOHEADER,;t t
9582s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
9583s,@install_sh@,$install_sh,;t t
9584s,@STRIP@,$STRIP,;t t
9585s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9586s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 9587s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
9588s,@AWK@,$AWK,;t t
9589s,@SET_MAKE@,$SET_MAKE,;t t
9590s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
9591s,@AMTAR@,$AMTAR,;t t
9592s,@am__tar@,$am__tar,;t t
9593s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
9594s,@DEPDIR@,$DEPDIR,;t t
9595s,@am__include@,$am__include,;t t
9596s,@am__quote@,$am__quote,;t t
9597s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9598s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9599s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9600s,@CCDEPMODE@,$CCDEPMODE,;t t
9601s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9602s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9603s,@LN_S@,$LN_S,;t t
9604s,@RANLIB@,$RANLIB,;t t
9605s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9606s,@LIBTOOL@,$LIBTOOL,;t t
9607s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 9608s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
9609s,@GDBINIT@,$GDBINIT,;t t
9610s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9611s,@extra_objects@,$extra_objects,;t t
9612s,@target_cpu_type@,$target_cpu_type,;t t
9613s,@obj_format@,$obj_format,;t t
9614s,@te_file@,$te_file,;t t
9615s,@install_tooldir@,$install_tooldir,;t t
9616s,@atof@,$atof,;t t
13b2be9c 9617s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
9618s,@YACC@,$YACC,;t t
9619s,@LEX@,$LEX,;t t
9620s,@LEXLIB@,$LEXLIB,;t t
9621s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 9622s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
9623s,@LIBINTL@,$LIBINTL,;t t
9624s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9625s,@INCINTL@,$INCINTL,;t t
13b2be9c 9626s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
9627s,@GMSGFMT@,$GMSGFMT,;t t
9628s,@POSUB@,$POSUB,;t t
13b2be9c 9629s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 9630s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 9631s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
9632s,@GENCAT@,$GENCAT,;t t
9633s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 9634s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
9635s,@MSGFMT@,$MSGFMT,;t t
9636s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
9637s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9638s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9639s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
9640s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9641s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23
DJ
9642s,@CPP@,$CPP,;t t
9643s,@EGREP@,$EGREP,;t t
9644s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 9645s,@LIBM@,$LIBM,;t t
108a6f8e
CD
9646s,@datarootdir@,$datarootdir,;t t
9647s,@docdir@,$docdir,;t t
9648s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
9649s,@LIBOBJS@,$LIBOBJS,;t t
9650s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
9651CEOF
9652
13b2be9c
DJ
9653_ACEOF
9654
9655 cat >>$CONFIG_STATUS <<\_ACEOF
9656 # Split the substitutions into bite-sized pieces for seds with
9657 # small command number limits, like on Digital OSF/1 and HP-UX.
9658 ac_max_sed_lines=48
9659 ac_sed_frag=1 # Number of current file.
9660 ac_beg=1 # First line for current file.
9661 ac_end=$ac_max_sed_lines # Line after last line for current file.
9662 ac_more_lines=:
9663 ac_sed_cmds=
9664 while $ac_more_lines; do
9665 if test $ac_beg -gt 1; then
9666 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9667 else
9668 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9669 fi
9670 if test ! -s $tmp/subs.frag; then
9671 ac_more_lines=false
9b2b7d69 9672 else
13b2be9c
DJ
9673 # The purpose of the label and of the branching condition is to
9674 # speed up the sed processing (if there are no `@' at all, there
9675 # is no need to browse any of the substitutions).
9676 # These are the two extra sed commands mentioned above.
9677 (echo ':t
9678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9679 if test -z "$ac_sed_cmds"; then
ab509236 9680 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 9681 else
ab509236 9682 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
9683 fi
9684 ac_sed_frag=`expr $ac_sed_frag + 1`
9685 ac_beg=$ac_end
9686 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 9687 fi
13b2be9c
DJ
9688 done
9689 if test -z "$ac_sed_cmds"; then
9690 ac_sed_cmds=cat
252b5132 9691 fi
13b2be9c 9692fi # test -n "$CONFIG_FILES"
252b5132 9693
13b2be9c
DJ
9694_ACEOF
9695cat >>$CONFIG_STATUS <<\_ACEOF
9696for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 9697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
9698 case $ac_file in
9699 - | *:- | *:-:* ) # input from stdin
ab509236
L
9700 cat >$tmp/stdin
9701 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9703 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 9704 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9705 * ) ac_file_in=$ac_file.in ;;
252b5132 9706 esac
9b2b7d69 9707
13b2be9c
DJ
9708 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9709 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9710$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
9711 X"$ac_file" : 'X\(//\)[^/]' \| \
9712 X"$ac_file" : 'X\(//\)$' \| \
9713 X"$ac_file" : 'X\(/\)' \| \
9714 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
9715echo X"$ac_file" |
9716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9718 /^X\(\/\/\)$/{ s//\1/; q; }
9719 /^X\(\/\).*/{ s//\1/; q; }
9720 s/.*/./; q'`
9721 { if $as_mkdir_p; then
9722 mkdir -p "$ac_dir"
c8615825 9723 else
13b2be9c
DJ
9724 as_dir="$ac_dir"
9725 as_dirs=
9726 while test ! -d "$as_dir"; do
9727 as_dirs="$as_dir $as_dirs"
9728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
9730 X"$as_dir" : 'X\(//\)[^/]' \| \
9731 X"$as_dir" : 'X\(//\)$' \| \
9732 X"$as_dir" : 'X\(/\)' \| \
9733 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
9734echo X"$as_dir" |
9735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9737 /^X\(\/\/\)$/{ s//\1/; q; }
9738 /^X\(\/\).*/{ s//\1/; q; }
9739 s/.*/./; q'`
9740 done
9741 test ! -n "$as_dirs" || mkdir $as_dirs
9742 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9743echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9744 { (exit 1); exit 1; }; }; }
9745
9746 ac_builddir=.
9747
9748if test "$ac_dir" != .; then
9749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9750 # A "../" for each directory in $ac_dir_suffix.
9751 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9752else
9753 ac_dir_suffix= ac_top_builddir=
9754fi
9b2b7d69 9755
13b2be9c
DJ
9756case $srcdir in
9757 .) # No --srcdir option. We are building in place.
9758 ac_srcdir=.
9759 if test -z "$ac_top_builddir"; then
9760 ac_top_srcdir=.
9761 else
9762 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9763 fi ;;
9764 [\\/]* | ?:[\\/]* ) # Absolute path.
9765 ac_srcdir=$srcdir$ac_dir_suffix;
9766 ac_top_srcdir=$srcdir ;;
9b2b7d69 9767 *) # Relative path.
13b2be9c
DJ
9768 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9769 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9770esac
ab509236
L
9771
9772# Do not use `cd foo && pwd` to compute absolute paths, because
9773# the directories may not exist.
9774case `pwd` in
9775.) ac_abs_builddir="$ac_dir";;
9776*)
9777 case "$ac_dir" in
9778 .) ac_abs_builddir=`pwd`;;
9779 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9780 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9781 esac;;
9782esac
9783case $ac_abs_builddir in
9784.) ac_abs_top_builddir=${ac_top_builddir}.;;
9785*)
9786 case ${ac_top_builddir}. in
9787 .) ac_abs_top_builddir=$ac_abs_builddir;;
9788 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9789 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9790 esac;;
9791esac
9792case $ac_abs_builddir in
9793.) ac_abs_srcdir=$ac_srcdir;;
9794*)
9795 case $ac_srcdir in
9796 .) ac_abs_srcdir=$ac_abs_builddir;;
9797 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9798 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9799 esac;;
9800esac
9801case $ac_abs_builddir in
9802.) ac_abs_top_srcdir=$ac_top_srcdir;;
9803*)
9804 case $ac_top_srcdir in
9805 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9806 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9807 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9808 esac;;
9809esac
252b5132 9810
9b2b7d69 9811
13b2be9c
DJ
9812 case $INSTALL in
9813 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9814 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 9815 esac
9b2b7d69 9816
1ad12f97
NC
9817 if test x"$ac_file" != x-; then
9818 { echo "$as_me:$LINENO: creating $ac_file" >&5
9819echo "$as_me: creating $ac_file" >&6;}
9820 rm -f "$ac_file"
9821 fi
13b2be9c
DJ
9822 # Let's still pretend it is `configure' which instantiates (i.e., don't
9823 # use $as_me), people would be surprised to read:
9824 # /* config.h. Generated by config.status. */
9825 if test x"$ac_file" = x-; then
9826 configure_input=
9827 else
9828 configure_input="$ac_file. "
9829 fi
9830 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 9831 sed 's,.*/,,'` by configure."
13b2be9c
DJ
9832
9833 # First look for the input files in the build tree, otherwise in the
9834 # src tree.
9835 ac_file_inputs=`IFS=:
9836 for f in $ac_file_in; do
9837 case $f in
9838 -) echo $tmp/stdin ;;
9839 [\\/$]*)
ab509236
L
9840 # Absolute (can't be DOS-style, as IFS=:)
9841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9842echo "$as_me: error: cannot find input file: $f" >&2;}
9843 { (exit 1); exit 1; }; }
ab509236 9844 echo "$f";;
13b2be9c 9845 *) # Relative
ab509236
L
9846 if test -f "$f"; then
9847 # Build tree
9848 echo "$f"
9849 elif test -f "$srcdir/$f"; then
9850 # Source tree
9851 echo "$srcdir/$f"
9852 else
9853 # /dev/null tree
9854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9855echo "$as_me: error: cannot find input file: $f" >&2;}
9856 { (exit 1); exit 1; }; }
ab509236 9857 fi;;
13b2be9c
DJ
9858 esac
9859 done` || { (exit 1); exit 1; }
9860_ACEOF
9861cat >>$CONFIG_STATUS <<_ACEOF
9862 sed "$ac_vpsub
9863$extrasub
9864_ACEOF
9865cat >>$CONFIG_STATUS <<\_ACEOF
9866:t
9867/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9868s,@configure_input@,$configure_input,;t t
9869s,@srcdir@,$ac_srcdir,;t t
9870s,@abs_srcdir@,$ac_abs_srcdir,;t t
9871s,@top_srcdir@,$ac_top_srcdir,;t t
9872s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9873s,@builddir@,$ac_builddir,;t t
9874s,@abs_builddir@,$ac_abs_builddir,;t t
9875s,@top_builddir@,$ac_top_builddir,;t t
9876s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9877s,@INSTALL@,$ac_INSTALL,;t t
9878" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9879 rm -f $tmp/stdin
9880 if test x"$ac_file" != x-; then
9881 mv $tmp/out $ac_file
9882 else
9883 cat $tmp/out
9884 rm -f $tmp/out
9885 fi
9886
9887done
9888_ACEOF
9889cat >>$CONFIG_STATUS <<\_ACEOF
9890
9891#
9892# CONFIG_HEADER section.
9893#
252b5132
RH
9894
9895# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9896# NAME is the cpp macro being defined and VALUE is the value it is being given.
9897#
9898# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
9899ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9900ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
9901ac_dC=' '
9902ac_dD=',;t'
9903# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 9904ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 9905ac_uB='$,\1#\2define\3'
252b5132 9906ac_uC=' '
13b2be9c
DJ
9907ac_uD=',;t'
9908
9909for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
9911 case $ac_file in
9912 - | *:- | *:-:* ) # input from stdin
ab509236
L
9913 cat >$tmp/stdin
9914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 9917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9918 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9919 esac
9920
13b2be9c
DJ
9921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9922echo "$as_me: creating $ac_file" >&6;}
9923
9924 # First look for the input files in the build tree, otherwise in the
9925 # src tree.
9926 ac_file_inputs=`IFS=:
9927 for f in $ac_file_in; do
9928 case $f in
9929 -) echo $tmp/stdin ;;
9930 [\\/$]*)
ab509236
L
9931 # Absolute (can't be DOS-style, as IFS=:)
9932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9933echo "$as_me: error: cannot find input file: $f" >&2;}
9934 { (exit 1); exit 1; }; }
ab509236
L
9935 # Do quote $f, to prevent DOS paths from being IFS'd.
9936 echo "$f";;
13b2be9c 9937 *) # Relative
ab509236
L
9938 if test -f "$f"; then
9939 # Build tree
9940 echo "$f"
9941 elif test -f "$srcdir/$f"; then
9942 # Source tree
9943 echo "$srcdir/$f"
9944 else
9945 # /dev/null tree
9946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9947echo "$as_me: error: cannot find input file: $f" >&2;}
9948 { (exit 1); exit 1; }; }
ab509236 9949 fi;;
13b2be9c
DJ
9950 esac
9951 done` || { (exit 1); exit 1; }
9952 # Remove the trailing spaces.
ab509236 9953 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
9954
9955_ACEOF
9956
9957# Transform confdefs.h into two sed scripts, `conftest.defines' and
9958# `conftest.undefs', that substitutes the proper values into
9959# config.h.in to produce config.h. The first handles `#define'
9960# templates, and the second `#undef' templates.
9961# And first: Protect against being on the right side of a sed subst in
9962# config.status. Protect against being in an unquoted here document
9963# in config.status.
9964rm -f conftest.defines conftest.undefs
9965# Using a here document instead of a string reduces the quoting nightmare.
9966# Putting comments in sed scripts is not portable.
9967#
9968# `end' is used to avoid that the second main sed command (meant for
9969# 0-ary CPP macros) applies to n-ary macro definitions.
9970# See the Autoconf documentation for `clear'.
9971cat >confdef2sed.sed <<\_ACEOF
9972s/[\\&,]/\\&/g
9973s,[\\$`],\\&,g
9974t clear
9975: clear
ab509236 9976s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 9977t end
ab509236 9978s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
9979: end
9980_ACEOF
9981# If some macros were called several times there might be several times
9982# the same #defines, which is useless. Nevertheless, we may not want to
9983# sort them, since we want the *last* AC-DEFINE to be honored.
9984uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9985sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9986rm -f confdef2sed.sed
252b5132
RH
9987
9988# This sed command replaces #undef with comments. This is necessary, for
9989# example, in the case of _POSIX_SOURCE, which is predefined and required
9990# on some systems where configure will not decide to define it.
13b2be9c 9991cat >>conftest.undefs <<\_ACEOF
ab509236 9992s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
9993_ACEOF
9994
9995# Break up conftest.defines because some shells have a limit on the size
9996# of here documents, and old seds have small limits too (100 cmds).
9997echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 9998echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
9999echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10000echo ' :' >>$CONFIG_STATUS
10001rm -f conftest.tail
10002while grep . conftest.defines >/dev/null
10003do
10004 # Write a limited-size here document to $tmp/defines.sed.
10005 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10006 # Speed up: don't consider the non `#define' lines.
ab509236 10007 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
10008 # Work around the forget-to-reset-the-flag bug.
10009 echo 't clr' >>$CONFIG_STATUS
10010 echo ': clr' >>$CONFIG_STATUS
10011 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10012 echo 'CEOF
10013 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10014 rm -f $tmp/in
10015 mv $tmp/out $tmp/in
10016' >>$CONFIG_STATUS
10017 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10018 rm -f conftest.defines
10019 mv conftest.tail conftest.defines
10020done
10021rm -f conftest.defines
10022echo ' fi # grep' >>$CONFIG_STATUS
10023echo >>$CONFIG_STATUS
252b5132 10024
13b2be9c
DJ
10025# Break up conftest.undefs because some shells have a limit on the size
10026# of here documents, and old seds have small limits too (100 cmds).
10027echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10028rm -f conftest.tail
13b2be9c 10029while grep . conftest.undefs >/dev/null
252b5132 10030do
13b2be9c
DJ
10031 # Write a limited-size here document to $tmp/undefs.sed.
10032 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10033 # Speed up: don't consider the non `#undef'
ab509236 10034 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
10035 # Work around the forget-to-reset-the-flag bug.
10036 echo 't clr' >>$CONFIG_STATUS
10037 echo ': clr' >>$CONFIG_STATUS
10038 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10039 echo 'CEOF
13b2be9c
DJ
10040 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10041 rm -f $tmp/in
10042 mv $tmp/out $tmp/in
10043' >>$CONFIG_STATUS
10044 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10045 rm -f conftest.undefs
10046 mv conftest.tail conftest.undefs
252b5132 10047done
13b2be9c
DJ
10048rm -f conftest.undefs
10049
10050cat >>$CONFIG_STATUS <<\_ACEOF
10051 # Let's still pretend it is `configure' which instantiates (i.e., don't
10052 # use $as_me), people would be surprised to read:
10053 # /* config.h. Generated by config.status. */
10054 if test x"$ac_file" = x-; then
10055 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 10056 else
13b2be9c
DJ
10057 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10058 fi
10059 cat $tmp/in >>$tmp/config.h
10060 rm -f $tmp/in
10061 if test x"$ac_file" != x-; then
10062 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10063 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10064echo "$as_me: $ac_file is unchanged" >&6;}
10065 else
10066 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10067$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10068 X"$ac_file" : 'X\(//\)[^/]' \| \
10069 X"$ac_file" : 'X\(//\)$' \| \
10070 X"$ac_file" : 'X\(/\)' \| \
10071 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10072echo X"$ac_file" |
10073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10075 /^X\(\/\/\)$/{ s//\1/; q; }
10076 /^X\(\/\).*/{ s//\1/; q; }
10077 s/.*/./; q'`
10078 { if $as_mkdir_p; then
10079 mkdir -p "$ac_dir"
10080 else
10081 as_dir="$ac_dir"
10082 as_dirs=
10083 while test ! -d "$as_dir"; do
10084 as_dirs="$as_dir $as_dirs"
10085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10087 X"$as_dir" : 'X\(//\)[^/]' \| \
10088 X"$as_dir" : 'X\(//\)$' \| \
10089 X"$as_dir" : 'X\(/\)' \| \
10090 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10091echo X"$as_dir" |
10092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10094 /^X\(\/\/\)$/{ s//\1/; q; }
10095 /^X\(\/\).*/{ s//\1/; q; }
10096 s/.*/./; q'`
10097 done
10098 test ! -n "$as_dirs" || mkdir $as_dirs
10099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10100echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10101 { (exit 1); exit 1; }; }; }
10102
10103 rm -f $ac_file
10104 mv $tmp/config.h $ac_file
9b2b7d69 10105 fi
13b2be9c
DJ
10106 else
10107 cat $tmp/config.h
10108 rm -f $tmp/config.h
9b2b7d69 10109 fi
13b2be9c
DJ
10110# Compute $ac_file's index in $config_headers.
10111_am_stamp_count=1
10112for _am_header in $config_headers :; do
10113 case $_am_header in
10114 $ac_file | $ac_file:* )
10115 break ;;
10116 * )
10117 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10118 esac
10119done
10120echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10121$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10122 X$ac_file : 'X\(//\)[^/]' \| \
10123 X$ac_file : 'X\(//\)$' \| \
10124 X$ac_file : 'X\(/\)' \| \
10125 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10126echo X$ac_file |
10127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10129 /^X\(\/\/\)$/{ s//\1/; q; }
10130 /^X\(\/\).*/{ s//\1/; q; }
10131 s/.*/./; q'`/stamp-h$_am_stamp_count
10132done
10133_ACEOF
10134cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 10135
13b2be9c
DJ
10136#
10137# CONFIG_COMMANDS section.
10138#
10139for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10140 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10141 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10142 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10143$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10144 X"$ac_dest" : 'X\(//\)[^/]' \| \
10145 X"$ac_dest" : 'X\(//\)$' \| \
10146 X"$ac_dest" : 'X\(/\)' \| \
10147 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10148echo X"$ac_dest" |
10149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151 /^X\(\/\/\)$/{ s//\1/; q; }
10152 /^X\(\/\).*/{ s//\1/; q; }
10153 s/.*/./; q'`
ab509236
L
10154 { if $as_mkdir_p; then
10155 mkdir -p "$ac_dir"
10156 else
10157 as_dir="$ac_dir"
10158 as_dirs=
10159 while test ! -d "$as_dir"; do
10160 as_dirs="$as_dir $as_dirs"
10161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163 X"$as_dir" : 'X\(//\)[^/]' \| \
10164 X"$as_dir" : 'X\(//\)$' \| \
10165 X"$as_dir" : 'X\(/\)' \| \
10166 . : '\(.\)' 2>/dev/null ||
10167echo X"$as_dir" |
10168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170 /^X\(\/\/\)$/{ s//\1/; q; }
10171 /^X\(\/\).*/{ s//\1/; q; }
10172 s/.*/./; q'`
10173 done
10174 test ! -n "$as_dirs" || mkdir $as_dirs
10175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10176echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10177 { (exit 1); exit 1; }; }; }
10178
13b2be9c
DJ
10179 ac_builddir=.
10180
10181if test "$ac_dir" != .; then
10182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10183 # A "../" for each directory in $ac_dir_suffix.
10184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10185else
10186 ac_dir_suffix= ac_top_builddir=
10187fi
10188
10189case $srcdir in
10190 .) # No --srcdir option. We are building in place.
10191 ac_srcdir=.
10192 if test -z "$ac_top_builddir"; then
10193 ac_top_srcdir=.
10194 else
10195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10196 fi ;;
10197 [\\/]* | ?:[\\/]* ) # Absolute path.
10198 ac_srcdir=$srcdir$ac_dir_suffix;
10199 ac_top_srcdir=$srcdir ;;
10200 *) # Relative path.
10201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10203esac
ab509236
L
10204
10205# Do not use `cd foo && pwd` to compute absolute paths, because
10206# the directories may not exist.
10207case `pwd` in
10208.) ac_abs_builddir="$ac_dir";;
10209*)
10210 case "$ac_dir" in
10211 .) ac_abs_builddir=`pwd`;;
10212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10214 esac;;
10215esac
10216case $ac_abs_builddir in
10217.) ac_abs_top_builddir=${ac_top_builddir}.;;
10218*)
10219 case ${ac_top_builddir}. in
10220 .) ac_abs_top_builddir=$ac_abs_builddir;;
10221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10223 esac;;
10224esac
10225case $ac_abs_builddir in
10226.) ac_abs_srcdir=$ac_srcdir;;
10227*)
10228 case $ac_srcdir in
10229 .) ac_abs_srcdir=$ac_abs_builddir;;
10230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10232 esac;;
10233esac
10234case $ac_abs_builddir in
10235.) ac_abs_top_srcdir=$ac_top_srcdir;;
10236*)
10237 case $ac_top_srcdir in
10238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10241 esac;;
10242esac
13b2be9c
DJ
10243
10244
10245 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10246echo "$as_me: executing $ac_dest commands" >&6;}
10247 case $ac_dest in
10248 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10249 # Strip MF so we end up with the name of the file.
10250 mf=`echo "$mf" | sed -e 's/:.*$//'`
10251 # Check whether this is an Automake generated Makefile or not.
10252 # We used to match only the files named `Makefile.in', but
10253 # some people rename them; so instead we look at the file content.
10254 # Grep'ing the first line is not enough: some people post-process
10255 # each Makefile.in and add a new line on top of each file to say so.
10256 # So let's grep whole file.
10257 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10258 dirpart=`(dirname "$mf") 2>/dev/null ||
10259$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10260 X"$mf" : 'X\(//\)[^/]' \| \
10261 X"$mf" : 'X\(//\)$' \| \
10262 X"$mf" : 'X\(/\)' \| \
10263 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10264echo X"$mf" |
10265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10267 /^X\(\/\/\)$/{ s//\1/; q; }
10268 /^X\(\/\).*/{ s//\1/; q; }
10269 s/.*/./; q'`
10270 else
10271 continue
10272 fi
8ea2b00f
AM
10273 # Extract the definition of DEPDIR, am__include, and am__quote
10274 # from the Makefile without running `make'.
4b363073 10275 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 10276 test -z "$DEPDIR" && continue
8ea2b00f
AM
10277 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10278 test -z "am__include" && continue
10279 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 10280 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 10281 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
10282 # Find all dependency output files, they are included files with
10283 # $(DEPDIR) in their names. We invoke sed twice because it is the
10284 # simplest approach to changing $(DEPDIR) to its actual value in the
10285 # expansion.
10286 for file in `sed -n "
10287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
10288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10289 # Make sure the directory exists.
10290 test -f "$dirpart/$file" && continue
10291 fdir=`(dirname "$file") 2>/dev/null ||
10292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10293 X"$file" : 'X\(//\)[^/]' \| \
10294 X"$file" : 'X\(//\)$' \| \
10295 X"$file" : 'X\(/\)' \| \
10296 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10297echo X"$file" |
10298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10300 /^X\(\/\/\)$/{ s//\1/; q; }
10301 /^X\(\/\).*/{ s//\1/; q; }
10302 s/.*/./; q'`
10303 { if $as_mkdir_p; then
10304 mkdir -p $dirpart/$fdir
10305 else
10306 as_dir=$dirpart/$fdir
10307 as_dirs=
10308 while test ! -d "$as_dir"; do
10309 as_dirs="$as_dir $as_dirs"
10310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10312 X"$as_dir" : 'X\(//\)[^/]' \| \
10313 X"$as_dir" : 'X\(//\)$' \| \
10314 X"$as_dir" : 'X\(/\)' \| \
10315 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10316echo X"$as_dir" |
10317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10319 /^X\(\/\/\)$/{ s//\1/; q; }
10320 /^X\(\/\).*/{ s//\1/; q; }
10321 s/.*/./; q'`
10322 done
10323 test ! -n "$as_dirs" || mkdir $as_dirs
10324 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10325echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10326 { (exit 1); exit 1; }; }; }
c8615825 10327
13b2be9c
DJ
10328 # echo "creating $dirpart/$file"
10329 echo '# dummy' > "$dirpart/$file"
10330 done
10331done
10332 ;;
20e95c23
DJ
10333 default-1 )
10334 for ac_file in $CONFIG_FILES; do
10335 # Support "outfile[:infile[:infile...]]"
10336 case "$ac_file" in
10337 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10338 esac
10339 # PO directories have a Makefile.in generated from Makefile.in.in.
10340 case "$ac_file" in */Makefile.in)
10341 # Adjust a relative srcdir.
10342 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10343 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10344 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10345 # In autoconf-2.13 it is called $ac_given_srcdir.
10346 # In autoconf-2.50 it is called $srcdir.
10347 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10348 case "$ac_given_srcdir" in
10349 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10350 /*) top_srcdir="$ac_given_srcdir" ;;
10351 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10352 esac
10353 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10354 rm -f "$ac_dir/POTFILES"
10355 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10356 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10357 POMAKEFILEDEPS="POTFILES.in"
10358 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10359 # on $ac_dir but don't depend on user-specified configuration
10360 # parameters.
10361 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10362 # The LINGUAS file contains the set of available languages.
10363 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10364 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10365 fi
10366 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10367 # Hide the ALL_LINGUAS assigment from automake.
10368 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10369 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10370 else
10371 # The set of available languages was given in configure.in.
10372 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10373 fi
10374 case "$ac_given_srcdir" in
10375 .) srcdirpre= ;;
10376 *) srcdirpre='$(srcdir)/' ;;
10377 esac
10378 POFILES=
10379 GMOFILES=
10380 UPDATEPOFILES=
10381 DUMMYPOFILES=
10382 for lang in $ALL_LINGUAS; do
10383 POFILES="$POFILES $srcdirpre$lang.po"
10384 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10385 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10386 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10387 done
10388 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10389 # environment variable.
10390 INST_LINGUAS=
10391 if test -n "$ALL_LINGUAS"; then
10392 for presentlang in $ALL_LINGUAS; do
10393 useit=no
10394 if test "%UNSET%" != "$LINGUAS"; then
10395 desiredlanguages="$LINGUAS"
10396 else
10397 desiredlanguages="$ALL_LINGUAS"
10398 fi
10399 for desiredlang in $desiredlanguages; do
10400 # Use the presentlang catalog if desiredlang is
10401 # a. equal to presentlang, or
10402 # b. a variant of presentlang (because in this case,
10403 # presentlang can be used as a fallback for messages
10404 # which are not translated in the desiredlang catalog).
10405 case "$desiredlang" in
10406 "$presentlang"*) useit=yes;;
10407 esac
10408 done
10409 if test $useit = yes; then
10410 INST_LINGUAS="$INST_LINGUAS $presentlang"
10411 fi
10412 done
10413 fi
10414 CATALOGS=
10415 if test -n "$INST_LINGUAS"; then
10416 for lang in $INST_LINGUAS; do
10417 CATALOGS="$CATALOGS $lang.gmo"
10418 done
10419 fi
10420 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10421 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10422 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10423 if test -f "$f"; then
10424 case "$f" in
10425 *.orig | *.bak | *~) ;;
10426 *) cat "$f" >> "$ac_dir/Makefile" ;;
10427 esac
10428 fi
10429 done
10430 fi
10431 ;;
10432 esac
10433 done ;;
13b2be9c 10434 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
10435 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10436 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10437 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10438 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10439 if test "x$cgen_cpu_prefix" != x ; then
10440 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 10441 fi ;;
13b2be9c
DJ
10442 esac
10443done
10444_ACEOF
10445
10446cat >>$CONFIG_STATUS <<\_ACEOF
10447
10448{ (exit 0); exit 0; }
10449_ACEOF
252b5132 10450chmod +x $CONFIG_STATUS
13b2be9c
DJ
10451ac_clean_files=$ac_clean_files_save
10452
10453
10454# configure is writing to config.log, and then calls config.status.
10455# config.status does its own redirection, appending to config.log.
10456# Unfortunately, on DOS this fails, as config.log is still kept open
10457# by configure, so config.status won't be able to write to it; its
10458# output is simply discarded. So we exec the FD to /dev/null,
10459# effectively closing config.log, so it can be properly (re)opened and
10460# appended to by config.status. When coming back to configure, we
10461# need to make the FD available again.
10462if test "$no_create" != yes; then
10463 ac_cs_success=:
10464 ac_config_status_args=
10465 test "$silent" = yes &&
10466 ac_config_status_args="$ac_config_status_args --quiet"
10467 exec 5>/dev/null
10468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10469 exec 5>>config.log
10470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10471 # would make configure fail if this is the last instruction.
10472 $ac_cs_success || { (exit 1); exit 1; }
10473fi
252b5132 10474
This page took 0.980571 seconds and 4 git commands to generate.