2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
[deliverable/binutils-gdb.git] / sim / d10v / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
c906108c 11
b7026657
AC
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
22DUALCASE=1; export DUALCASE # for MKS sh
c906108c 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
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'`
c906108c
SS
76
77
b7026657
AC
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
c906108c 85
b7026657
AC
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
c906108c
SS
98
99
b7026657
AC
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
c906108c 116
b7026657
AC
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
c906108c 155
b7026657
AC
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}
c906108c
SS
185
186
b7026657
AC
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
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
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
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
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`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
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="Makefile.in"
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"
c906108c 311
6efef468 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 sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI cgen_breaks LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
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.
c906108c
SS
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
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
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
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
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=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
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"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
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=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
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 ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
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 \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
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=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
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; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
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=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
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=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
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
c906108c 641 *)
b7026657
AC
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}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
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; }; }
c906108c 656fi
c906108c 657
b7026657
AC
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
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
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; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
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
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
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.
b7026657
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
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'`
c906108c
SS
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
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
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
c906108c 773
b7026657
AC
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.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
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
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
c906108c 809
b7026657
AC
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'.
c906108c 814
b7026657
AC
815For better control, use the options below.
816
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
831
832 cat <<\_ACEOF
833
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
838
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
c906108c 844fi
b7026657
AC
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
862
6efef468
JM
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
867 --with-bugurl=URL Direct users to URL to report a bug
868
b7026657
AC
869Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CPP C preprocessor
877
878Use these variables to override the choices made by `configure' or to help
879it to find libraries and programs with nonstandard names/locations.
880
881_ACEOF
c906108c
SS
882fi
883
b7026657
AC
884if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
886 ac_popdir=`pwd`
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
889 ac_builddir=.
c906108c 890
b7026657
AC
891if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 895else
b7026657 896 ac_dir_suffix= ac_top_builddir=
c906108c
SS
897fi
898
b7026657
AC
899case $srcdir in
900 .) # No --srcdir option. We are building in place.
901 ac_srcdir=.
902 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=.
904 else
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 fi ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
910 *) # Relative path.
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913esac
914
915# Do not use `cd foo && pwd` to compute absolute paths, because
916# the directories may not exist.
917case `pwd` in
918.) ac_abs_builddir="$ac_dir";;
919*)
920 case "$ac_dir" in
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_builddir=${ac_top_builddir}.;;
928*)
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_srcdir=$ac_srcdir;;
937*)
938 case $ac_srcdir in
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_srcdir=$ac_top_srcdir;;
946*)
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 esac;;
952esac
953
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 fi
969 cd $ac_popdir
970 done
c906108c 971fi
b7026657
AC
972
973test -n "$ac_init_help" && exit 0
974if $ac_init_version; then
975 cat <<\_ACEOF
976
977Copyright (C) 2003 Free Software Foundation, Inc.
978This configure script is free software; the Free Software Foundation
979gives unlimited permission to copy, distribute and modify it.
980_ACEOF
981 exit 0
982fi
983exec 5>config.log
984cat >&5 <<_ACEOF
985This file contains any messages produced by compilers while
986running configure, to aid debugging if configure makes a mistake.
987
988It was created by $as_me, which was
989generated by GNU Autoconf 2.59. Invocation command line was
990
991 $ $0 $@
992
993_ACEOF
994{
995cat <<_ASUNAME
996## --------- ##
997## Platform. ##
998## --------- ##
999
1000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008
1009/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016
1017_ASUNAME
1018
1019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020for as_dir in $PATH
1021do
1022 IFS=$as_save_IFS
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1025done
1026
1027} >&5
1028
1029cat >&5 <<_ACEOF
1030
1031
1032## ----------- ##
1033## Core tests. ##
1034## ----------- ##
1035
1036_ACEOF
1037
1038
1039# Keep a trace of the command line.
1040# Strip out --no-create and --no-recursion so they do not pile up.
1041# Strip out --silent because we don't want to record it for future runs.
1042# Also quote any args containing shell meta-characters.
1043# Make two passes to allow for proper duplicate-argument suppression.
1044ac_configure_args=
1045ac_configure_args0=
1046ac_configure_args1=
1047ac_sep=
1048ac_must_keep_next=false
1049for ac_pass in 1 2
1050do
1051 for ac_arg
1052 do
1053 case $ac_arg in
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 continue ;;
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 esac
1061 case $ac_pass in
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 2)
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1067 else
1068 case $ac_arg in
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 esac
1076 ;;
1077 -* ) ac_must_keep_next=true ;;
1078 esac
1079 fi
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1082 ac_sep=" "
1083 ;;
1084 esac
1085 done
1086done
1087$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090# When interrupted or exit'd, cleanup temporary files, and complete
1091# config.log. We remove comments because anyway the quotes in there
1092# would cause problems or look ugly.
1093# WARNING: Be sure not to use single quotes in there, as some shells,
1094# such as our DU 5.0 friend, will then `close' the trap.
1095trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1097 {
1098 echo
1099
1100 cat <<\_ASBOX
1101## ---------------- ##
1102## Cache variables. ##
1103## ---------------- ##
1104_ASBOX
1105 echo
1106 # The following way of writing the cache mishandles newlines in values,
1107{
1108 (set) 2>&1 |
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 *ac_space=\ *)
1111 sed -n \
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 ;;
1115 *)
1116 sed -n \
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ;;
1119 esac;
1120}
1121 echo
1122
1123 cat <<\_ASBOX
1124## ----------------- ##
1125## Output variables. ##
1126## ----------------- ##
1127_ASBOX
1128 echo
1129 for ac_var in $ac_subst_vars
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135
1136 if test -n "$ac_subst_files"; then
1137 cat <<\_ASBOX
1138## ------------- ##
1139## Output files. ##
1140## ------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_files
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149 fi
1150
1151 if test -s confdefs.h; then
1152 cat <<\_ASBOX
1153## ----------- ##
1154## confdefs.h. ##
1155## ----------- ##
1156_ASBOX
1157 echo
1158 sed "/^$/d" confdefs.h | sort
1159 echo
1160 fi
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1164 } >&5
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 exit $exit_status
1168 ' 0
1169for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171done
1172ac_signal=0
1173
1174# confdefs.h avoids OS command line length limits that DEFS can exceed.
1175rm -rf conftest* confdefs.h
1176# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177echo >confdefs.h
1178
1179# Predefined preprocessor variables.
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_NAME "$PACKAGE_NAME"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_VERSION "$PACKAGE_VERSION"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_STRING "$PACKAGE_STRING"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203_ACEOF
1204
1205
1206# Let the site file select an alternate cache file if it wants to.
1207# Prefer explicitly selected file to automatically selected ones.
1208if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 else
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 fi
1214fi
1215for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1220 . "$ac_site_file"
1221 fi
1222done
1223
1224if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229echo "$as_me: loading cache $cache_file" >&6;}
1230 case $cache_file in
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1233 esac
1234 fi
1235else
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237echo "$as_me: creating cache $cache_file" >&6;}
1238 >$cache_file
1239fi
1240
1241# Check that the precious variables saved in the cache have kept the same
1242# value.
1243ac_cache_corrupted=false
1244for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1251 set,)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,set)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,);;
1260 *)
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1269 fi;;
1270 esac
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1273 case $ac_new_val in
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1277 esac
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 esac
1282 fi
1283done
1284if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1290fi
1291
1292ac_ext=c
1293ac_cpp='$CPP $CPPFLAGS'
1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
35695fd6
AC
1316 ac_config_headers="$ac_config_headers config.h:config.in"
1317
1318
1319# This file contains common code used by all simulators.
1320#
1321# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1322# directory. It is intended to be invoked before any target specific stuff.
1323# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1324# It is intended to be invoked last.
1325#
1326# The simulator's configure.in should look like:
1327#
1328# dnl Process this file with autoconf to produce a configure script.
1329# sinclude(../common/aclocal.m4)
1330# AC_PREREQ(2.5)dnl
1331# AC_INIT(Makefile.in)
1332#
1333# SIM_AC_COMMON
1334#
1335# ... target specific stuff ...
1336#
1337# SIM_AC_OUTPUT
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386sim_inline="-DDEFAULT_INLINE=0"
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
20e95c23 1423# intl sister-directory configuration rules.
35695fd6 1424#
35695fd6 1425
20e95c23
DJ
1426# The idea behind this macro is that there's no need to repeat all the
1427# autoconf probes done by the intl directory - it's already done them
1428# for us. In fact, there's no need even to look at the cache for the
1429# answers. All we need to do is nab a few pieces of information.
1430# The intl directory is set up to make this easy, by generating a
1431# small file which can be sourced as a shell script; then we produce
1432# the necessary substitutions and definitions for this directory.
35695fd6
AC
1433
1434
6efef468
JM
1435
1436# Autoconf M4 include file defining utility macros for complex Canadian
1437# cross builds.
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447####
1448# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1449# or AC_INIT.
1450# These demand that AC_CANONICAL_SYSTEM be called beforehand.
1451
1452####
1453# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1454# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1455
1456
1457####
1458# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1459# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1460
1461
1462
1463# Backported from Autoconf 2.5x; can go away when and if
1464# we switch. Put the OS path separator in $PATH_SEPARATOR.
1465
1466
1467
1468
1469# ACX_HAVE_GCC_FOR_TARGET
1470# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1471
1472
1473# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1474# Searching for installed target binutils. We need to take extra care,
1475# else we may find the wrong assembler, linker, etc., and lose.
1476#
1477# First try --with-build-time-tools, if specified.
1478#
1479# For build != host, we ask the installed GCC for the name of the tool it
1480# uses, and accept it if it is an absolute path. This is because the
1481# only good choice for a compiler is the same GCC version that is being
1482# installed (or we couldn't make target libraries), and we assume that
1483# on the host system we'll have not only the same GCC version, but also
1484# the same binutils version.
1485#
1486# For build == host, search the same directories that the installed
1487# compiler will search. We used to do this for the assembler, linker,
1488# and nm only; for simplicity of configuration, however, we extend this
1489# criterion to tools (such as ar and ranlib) that are never invoked by
1490# the compiler, to avoid mismatches.
1491#
1492# Also note we have to check MD_EXEC_PREFIX before checking the user's path
1493# if build == target. This makes the most sense only when bootstrapping,
1494# but we also do so when build != host. In this case, we hope that the
1495# build and host systems will have similar contents of MD_EXEC_PREFIX.
1496#
1497# If we do not find a suitable binary, then try the user's path.
1498
1499
1500###
1501# AC_PROG_CPP_WERROR
1502# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1503# triggers warnings from the preprocessor. Will be in autoconf 2.58.
1504# For now, using this also overrides header checks to use only the
1505# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1506# bit harder from here).
1507# Eventually autoconf will default to checking headers with the compiler
1508# instead, and we'll have to do this differently.
1509
1510# AC_PROG_CPP_WERROR
1511
1512# Test for GNAT.
1513# We require the gnatbind program, and a compiler driver that
1514# understands Ada. We use the user's CC setting, already found,
1515# and possibly add $1 to the command-line parameters.
1516#
1517# Sets the shell variable have_gnat to yes or no as appropriate, and
1518# substitutes GNATBIND and GNATMAKE.
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
35695fd6
AC
1539
1540
1541
1542
b7026657 1543
35695fd6
AC
1544# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1545# it by inlining the macro's contents.
f0569246
AC
1546# This file contains common code used by all simulators.
1547#
1548# common.m4 invokes AC macros used by all simulators and by the common
1549# directory. It is intended to be included before any target specific
1550# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1551# the Makefile. It is intended to be invoked last.
1552#
1553# The simulator's configure.in should look like:
1554#
1555# dnl Process this file with autoconf to produce a configure script.
1556# AC_PREREQ(2.5)dnl
1557# AC_INIT(Makefile.in)
35695fd6 1558# AC_CONFIG_HEADER(config.h:config.in)
f0569246 1559#
35695fd6 1560# sinclude(../common/aclocal.m4)
f0569246
AC
1561# sinclude(../common/common.m4)
1562#
1563# ... target specific stuff ...
1564
38f48d72
AC
1565ac_aux_dir=
1566for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1567 if test -f $ac_dir/install-sh; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/install-sh -c"
1570 break
1571 elif test -f $ac_dir/install.sh; then
1572 ac_aux_dir=$ac_dir
1573 ac_install_sh="$ac_aux_dir/install.sh -c"
1574 break
1575 elif test -f $ac_dir/shtool; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/shtool install -c"
1578 break
1579 fi
1580done
1581if test -z "$ac_aux_dir"; then
1582 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1583echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1584 { (exit 1); exit 1; }; }
1585fi
1586ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1587ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1588ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589
b7026657
AC
1590# Make sure we can run config.sub.
1591$ac_config_sub sun4 >/dev/null 2>&1 ||
1592 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1593echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596echo "$as_me:$LINENO: checking build system type" >&5
1597echo $ECHO_N "checking build system type... $ECHO_C" >&6
1598if test "${ac_cv_build+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_build_alias=$build_alias
1602test -z "$ac_cv_build_alias" &&
1603 ac_cv_build_alias=`$ac_config_guess`
1604test -z "$ac_cv_build_alias" &&
1605 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1606echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1607 { (exit 1); exit 1; }; }
1608ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1615echo "${ECHO_T}$ac_cv_build" >&6
1616build=$ac_cv_build
1617build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622echo "$as_me:$LINENO: checking host system type" >&5
1623echo $ECHO_N "checking host system type... $ECHO_C" >&6
1624if test "${ac_cv_host+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_host_alias=$host_alias
1628test -z "$ac_cv_host_alias" &&
1629 ac_cv_host_alias=$ac_cv_build_alias
1630ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1632echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635fi
1636echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1637echo "${ECHO_T}$ac_cv_host" >&6
1638host=$ac_cv_host
1639host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
f0569246
AC
1644echo "$as_me:$LINENO: checking target system type" >&5
1645echo $ECHO_N "checking target system type... $ECHO_C" >&6
1646if test "${ac_cv_target+set}" = set; then
b7026657
AC
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
f0569246
AC
1649 ac_cv_target_alias=$target_alias
1650test "x$ac_cv_target_alias" = "x" &&
1651 ac_cv_target_alias=$ac_cv_host_alias
1652ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1659echo "${ECHO_T}$ac_cv_target" >&6
1660target=$ac_cv_target
1661target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666# The aliases save the names the user supplied, while $host etc.
1667# will get canonicalized.
1668test -n "$target_alias" &&
1669 test "$program_prefix$program_suffix$program_transform_name" = \
1670 NONENONEs,x,x, &&
1671 program_prefix=${target_alias}-
1672test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1674# Use a double $ so make ignores it.
1675test "$program_suffix" != NONE &&
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1677# Double any \ or $. echo might interpret backslashes.
1678# By default was `s,x,x', remove it if useless.
1679cat <<\_ACEOF >conftest.sed
1680s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1681_ACEOF
f0569246
AC
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683rm conftest.sed
1684
1685ac_ext=c
1686ac_cpp='$CPP $CPPFLAGS'
1687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1689ac_compiler_gnu=$ac_cv_c_compiler_gnu
1690if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1692set dummy ${ac_tool_prefix}gcc; ac_word=$2
1693echo "$as_me:$LINENO: checking for $ac_word" >&5
1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1697else
f0569246
AC
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700else
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1711 fi
1712done
1713done
1714
b7026657 1715fi
b7026657 1716fi
f0569246
AC
1717CC=$ac_cv_prog_CC
1718if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720echo "${ECHO_T}$CC" >&6
b7026657
AC
1721else
1722 echo "$as_me:$LINENO: result: no" >&5
1723echo "${ECHO_T}no" >&6
b7026657
AC
1724fi
1725
f0569246
AC
1726fi
1727if test -z "$ac_cv_prog_CC"; then
1728 ac_ct_CC=$CC
1729 # Extract the first word of "gcc", so it can be a program name with args.
1730set dummy gcc; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
f0569246
AC
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="gcc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
1751done
b7026657 1752
f0569246
AC
1753fi
1754fi
1755ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1759else
f0569246
AC
1760 echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
b7026657 1763
f0569246
AC
1764 CC=$ac_ct_CC
1765else
1766 CC="$ac_cv_prog_CC"
b7026657 1767fi
b7026657 1768
f0569246
AC
1769if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1772set dummy ${ac_tool_prefix}cc; ac_word=$2
1773echo "$as_me:$LINENO: checking for $ac_word" >&5
1774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1777else
f0569246
AC
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1780else
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_CC="${ac_tool_prefix}cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792done
1793done
b7026657
AC
1794
1795fi
b7026657 1796fi
f0569246
AC
1797CC=$ac_cv_prog_CC
1798if test -n "$CC"; then
1799 echo "$as_me:$LINENO: result: $CC" >&5
1800echo "${ECHO_T}$CC" >&6
1801else
1802 echo "$as_me:$LINENO: result: no" >&5
1803echo "${ECHO_T}no" >&6
b7026657
AC
1804fi
1805
b7026657 1806fi
f0569246
AC
1807if test -z "$ac_cv_prog_CC"; then
1808 ac_ct_CC=$CC
1809 # Extract the first word of "cc", so it can be a program name with args.
1810set dummy cc; ac_word=$2
1811echo "$as_me:$LINENO: checking for $ac_word" >&5
1812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1815else
f0569246
AC
1816 if test -n "$ac_ct_CC"; then
1817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1818else
1819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
b7026657 1821do
f0569246
AC
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_CC="cc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
b7026657 1829 fi
f0569246
AC
1830done
1831done
1832
b7026657 1833fi
f0569246
AC
1834fi
1835ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836if test -n "$ac_ct_CC"; then
1837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1838echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1839else
f0569246
AC
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
b7026657 1842fi
b7026657 1843
f0569246 1844 CC=$ac_ct_CC
b7026657 1845else
f0569246 1846 CC="$ac_cv_prog_CC"
b7026657 1847fi
b7026657 1848
b7026657 1849fi
f0569246
AC
1850if test -z "$CC"; then
1851 # Extract the first word of "cc", so it can be a program name with args.
1852set dummy cc; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1860else
1861 ac_prog_rejected=no
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1870 ac_prog_rejected=yes
1871 continue
1872 fi
1873 ac_cv_prog_CC="cc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1876 fi
1877done
b7026657 1878done
b7026657 1879
f0569246
AC
1880if test $ac_prog_rejected = yes; then
1881 # We found a bogon in the path, so make sure we never use it.
1882 set dummy $ac_cv_prog_CC
1883 shift
1884 if test $# != 0; then
1885 # We chose a different compiler from the bogus one.
1886 # However, it has the same basename, so the bogon will be chosen
1887 # first if we set CC to just the basename; use the full file name.
1888 shift
1889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1890 fi
b7026657 1891fi
f0569246
AC
1892fi
1893fi
1894CC=$ac_cv_prog_CC
1895if test -n "$CC"; then
1896 echo "$as_me:$LINENO: result: $CC" >&5
1897echo "${ECHO_T}$CC" >&6
b7026657 1898else
f0569246
AC
1899 echo "$as_me:$LINENO: result: no" >&5
1900echo "${ECHO_T}no" >&6
b7026657 1901fi
f0569246
AC
1902
1903fi
1904if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 for ac_prog in cl
1907 do
1908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1909set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
b7026657 1920do
f0569246
AC
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
b7026657 1928 fi
f0569246
AC
1929done
1930done
1931
b7026657 1932fi
f0569246
AC
1933fi
1934CC=$ac_cv_prog_CC
1935if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937echo "${ECHO_T}$CC" >&6
b7026657 1938else
f0569246
AC
1939 echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
b7026657 1941fi
b7026657 1942
f0569246
AC
1943 test -n "$CC" && break
1944 done
c906108c 1945fi
f0569246
AC
1946if test -z "$CC"; then
1947 ac_ct_CC=$CC
1948 for ac_prog in cl
1949do
1950 # Extract the first word of "$ac_prog", so it can be a program name with args.
1951set dummy $ac_prog; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
f0569246
AC
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1959else
f0569246
AC
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_ac_ct_CC="$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1970 fi
1971done
1972done
b7026657
AC
1973
1974fi
f0569246
AC
1975fi
1976ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977if test -n "$ac_ct_CC"; then
1978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979echo "${ECHO_T}$ac_ct_CC" >&6
1980else
1981 echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6
1983fi
1984
1985 test -n "$ac_ct_CC" && break
b7026657 1986done
b7026657 1987
f0569246 1988 CC=$ac_ct_CC
b7026657
AC
1989fi
1990
f0569246 1991fi
b7026657 1992
f0569246
AC
1993
1994test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1995See \`config.log' for more details." >&5
1996echo "$as_me: error: no acceptable C compiler found in \$PATH
1997See \`config.log' for more details." >&2;}
1998 { (exit 1); exit 1; }; }
1999
2000# Provide some information about the compiler.
2001echo "$as_me:$LINENO:" \
2002 "checking for C compiler version" >&5
2003ac_compiler=`set X $ac_compile; echo $2`
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005 (eval $ac_compiler --version </dev/null >&5) 2>&5
b7026657 2006 ac_status=$?
b7026657 2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2008 (exit $ac_status); }
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010 (eval $ac_compiler -v </dev/null >&5) 2>&5
b7026657
AC
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2013 (exit $ac_status); }
2014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015 (eval $ac_compiler -V </dev/null >&5) 2>&5
b7026657
AC
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2018 (exit $ac_status); }
2019
2020cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2021/* confdefs.h. */
2022_ACEOF
2023cat confdefs.h >>conftest.$ac_ext
2024cat >>conftest.$ac_ext <<_ACEOF
2025/* end confdefs.h. */
f0569246 2026
b7026657
AC
2027int
2028main ()
2029{
f0569246 2030
b7026657
AC
2031 ;
2032 return 0;
2033}
2034_ACEOF
f0569246
AC
2035ac_clean_files_save=$ac_clean_files
2036ac_clean_files="$ac_clean_files a.out a.exe b.out"
2037# Try to create an executable without -o first, disregard a.out.
2038# It will help us diagnose broken compilers, and finding out an intuition
2039# of exeext.
2040echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2041echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2042ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2043if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2044 (eval $ac_link_default) 2>&5
b7026657 2045 ac_status=$?
b7026657 2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2047 (exit $ac_status); }; then
2048 # Find the output, starting from the most likely. This scheme is
2049# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2050# resort.
2051
2052# Be careful to initialize this variable, since it used to be cached.
2053# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2054ac_cv_exeext=
2055# b.out is created by i960 compilers.
2056for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2057do
2058 test -f "$ac_file" || continue
2059 case $ac_file in
2060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2061 ;;
2062 conftest.$ac_ext )
2063 # This is the source file.
2064 ;;
2065 [ab].out )
2066 # We found the default executable, but exeext='' is most
2067 # certainly right.
2068 break;;
2069 *.* )
2070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071 # FIXME: I believe we export ac_cv_exeext for Libtool,
2072 # but it would be cool to find out if it's true. Does anybody
2073 # maintain Libtool? --akim.
2074 export ac_cv_exeext
2075 break;;
2076 * )
2077 break;;
2078 esac
2079done
2080else
2081 echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: C compiler cannot create executables
2087See \`config.log' for more details." >&2;}
2088 { (exit 77); exit 77; }; }
2089fi
2090
2091ac_exeext=$ac_cv_exeext
2092echo "$as_me:$LINENO: result: $ac_file" >&5
2093echo "${ECHO_T}$ac_file" >&6
2094
2095# Check the compiler produces executables we can run. If not, either
2096# the compiler is broken, or we cross compile.
2097echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2098echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2099# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2100# If not cross compiling, check that we can run a simple program.
2101if test "$cross_compiling" != yes; then
2102 if { ac_try='./$ac_file'
b7026657
AC
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2107 (exit $ac_status); }; }; then
2108 cross_compiling=no
2109 else
2110 if test "$cross_compiling" = maybe; then
2111 cross_compiling=yes
2112 else
2113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2114If you meant to cross compile, use \`--host'.
2115See \`config.log' for more details." >&5
2116echo "$as_me: error: cannot run C compiled programs.
2117If you meant to cross compile, use \`--host'.
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121 fi
2122fi
2123echo "$as_me:$LINENO: result: yes" >&5
2124echo "${ECHO_T}yes" >&6
2125
2126rm -f a.out a.exe conftest$ac_cv_exeext b.out
2127ac_clean_files=$ac_clean_files_save
2128# Check the compiler produces executables we can run. If not, either
2129# the compiler is broken, or we cross compile.
2130echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2131echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2132echo "$as_me:$LINENO: result: $cross_compiling" >&5
2133echo "${ECHO_T}$cross_compiling" >&6
2134
2135echo "$as_me:$LINENO: checking for suffix of executables" >&5
2136echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2138 (eval $ac_link) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; then
2142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2143# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2144# work properly (i.e., refer to `conftest.exe'), while it won't with
2145# `rm'.
2146for ac_file in conftest.exe conftest conftest.*; do
2147 test -f "$ac_file" || continue
2148 case $ac_file in
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 export ac_cv_exeext
2152 break;;
2153 * ) break;;
2154 esac
2155done
2156else
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2158See \`config.log' for more details." >&5
2159echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2160See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2162fi
2163
2164rm -f conftest$ac_cv_exeext
2165echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2166echo "${ECHO_T}$ac_cv_exeext" >&6
2167
2168rm -f conftest.$ac_ext
2169EXEEXT=$ac_cv_exeext
2170ac_exeext=$EXEEXT
2171echo "$as_me:$LINENO: checking for suffix of object files" >&5
2172echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2173if test "${ac_cv_objext+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 cat >conftest.$ac_ext <<_ACEOF
2177/* confdefs.h. */
2178_ACEOF
2179cat confdefs.h >>conftest.$ac_ext
2180cat >>conftest.$ac_ext <<_ACEOF
2181/* end confdefs.h. */
2182
2183int
2184main ()
2185{
2186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191rm -f conftest.o conftest.obj
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
b7026657
AC
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2196 (exit $ac_status); }; then
2197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2198 case $ac_file in
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2201 break;;
2202 esac
2203done
b7026657
AC
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
f0569246
AC
2208{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: cannot compute suffix of object files: cannot compile
2211See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
b7026657 2213fi
f0569246
AC
2214
2215rm -f conftest.$ac_cv_objext conftest.$ac_ext
2216fi
2217echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2218echo "${ECHO_T}$ac_cv_objext" >&6
2219OBJEXT=$ac_cv_objext
2220ac_objext=$OBJEXT
2221echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2222echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2223if test "${ac_cv_c_compiler_gnu+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
b7026657
AC
2226 cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h. */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h. */
f0569246 2232
b7026657
AC
2233int
2234main ()
2235{
f0569246
AC
2236#ifndef __GNUC__
2237 choke me
2238#endif
2239
b7026657
AC
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244rm -f conftest.$ac_objext
2245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
2247 ac_status=$?
2248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -z "$ac_c_werror_flag"
2254 || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
f0569246 2266 ac_compiler_gnu=yes
b7026657 2267else
f0569246
AC
2268 echo "$as_me: failed program was:" >&5
2269sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2270
f0569246
AC
2271ac_compiler_gnu=no
2272fi
2273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274ac_cv_c_compiler_gnu=$ac_compiler_gnu
b7026657 2275
b7026657 2276fi
f0569246
AC
2277echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2278echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2279GCC=`test $ac_compiler_gnu = yes && echo yes`
2280ac_test_CFLAGS=${CFLAGS+set}
2281ac_save_CFLAGS=$CFLAGS
2282CFLAGS="-g"
2283echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2284echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2285if test "${ac_cv_prog_cc_g+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2287else
f0569246 2288 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h. */
f0569246
AC
2294
2295int
2296main ()
2297{
2298
2299 ;
2300 return 0;
2301}
b7026657
AC
2302_ACEOF
2303rm -f conftest.$ac_objext
2304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2306 ac_status=$?
2307 grep -v '^ *+' conftest.er1 >conftest.err
2308 rm -f conftest.er1
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
f0569246 2325 ac_cv_prog_cc_g=yes
b7026657
AC
2326else
2327 echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
f0569246 2330ac_cv_prog_cc_g=no
b7026657
AC
2331fi
2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246
AC
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336if test "$ac_test_CFLAGS" = set; then
2337 CFLAGS=$ac_save_CFLAGS
2338elif test $ac_cv_prog_cc_g = yes; then
2339 if test "$GCC" = yes; then
2340 CFLAGS="-g -O2"
2341 else
2342 CFLAGS="-g"
2343 fi
2344else
2345 if test "$GCC" = yes; then
2346 CFLAGS="-O2"
2347 else
2348 CFLAGS=
2349 fi
2350fi
2351echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 ac_cv_prog_cc_stdc=no
2357ac_save_CC=$CC
b7026657
AC
2358cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
f0569246
AC
2364#include <stdarg.h>
2365#include <stdio.h>
2366#include <sys/types.h>
2367#include <sys/stat.h>
2368/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2369struct buf { int x; };
2370FILE * (*rcsopen) (struct buf *, struct stat *, int);
2371static char *e (p, i)
2372 char **p;
2373 int i;
2374{
2375 return p[i];
2376}
2377static char *f (char * (*g) (char **, int), char **p, ...)
2378{
2379 char *s;
2380 va_list v;
2381 va_start (v,p);
2382 s = g (p, va_arg (v,int));
2383 va_end (v);
2384 return s;
2385}
2386
2387/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2388 function prototypes and stuff, but not '\xHH' hex character constants.
2389 These don't provoke an error unfortunately, instead are silently treated
2390 as 'x'. The following induces an error, until -std1 is added to get
2391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2392 array size at least. It's necessary to write '\x00'==0 to get something
2393 that's true only with -std1. */
2394int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2395
2396int test (int i, double x);
2397struct s1 {int (*f) (int a);};
2398struct s2 {int (*f) (double a);};
2399int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2400int argc;
2401char **argv;
2402int
2403main ()
2404{
2405return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2406 ;
2407 return 0;
2408}
b7026657 2409_ACEOF
f0569246
AC
2410# Don't try gcc -ansi; that turns off useful extensions and
2411# breaks some systems' header files.
2412# AIX -qlanglvl=ansi
2413# Ultrix and OSF/1 -std1
2414# HP-UX 10.20 and later -Ae
2415# HP-UX older versions -Aa -D_HPUX_SOURCE
2416# SVR4 -Xc -D__EXTENSIONS__
2417for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2418do
2419 CC="$ac_save_CC $ac_arg"
2420 rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2423 ac_status=$?
2424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 ac_cv_prog_cc_stdc=$ac_arg
2443break
b7026657
AC
2444else
2445 echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
c906108c 2448fi
f0569246 2449rm -f conftest.err conftest.$ac_objext
c906108c 2450done
f0569246
AC
2451rm -f conftest.$ac_ext conftest.$ac_objext
2452CC=$ac_save_CC
c906108c 2453
f0569246 2454fi
b7026657 2455
f0569246
AC
2456case "x$ac_cv_prog_cc_stdc" in
2457 x|xno)
2458 echo "$as_me:$LINENO: result: none needed" >&5
2459echo "${ECHO_T}none needed" >&6 ;;
2460 *)
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2462echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2463 CC="$CC $ac_cv_prog_cc_stdc" ;;
2464esac
b7026657 2465
f0569246
AC
2466# Some people use a C++ compiler to compile C. Since we use `exit',
2467# in C++ we need to declare it. In case someone uses the same compiler
2468# for both compiling C and C++ we need to have the C++ compiler decide
2469# the declaration of exit, since it's the most demanding environment.
2470cat >conftest.$ac_ext <<_ACEOF
2471#ifndef __cplusplus
2472 choke me
2473#endif
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 for ac_declaration in \
2498 '' \
2499 'extern "C" void std::exit (int) throw (); using std::exit;' \
2500 'extern "C" void std::exit (int); using std::exit;' \
2501 'extern "C" void exit (int) throw ();' \
2502 'extern "C" void exit (int);' \
2503 'void exit (int);'
c906108c 2504do
b7026657
AC
2505 cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h. */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h. */
f0569246
AC
2511$ac_declaration
2512#include <stdlib.h>
b7026657
AC
2513int
2514main ()
2515{
f0569246 2516exit (42);
b7026657
AC
2517 ;
2518 return 0;
2519}
2520_ACEOF
f0569246
AC
2521rm -f conftest.$ac_objext
2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag"
2531 || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
f0569246 2537 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
f0569246 2543 :
b7026657
AC
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
f0569246 2548continue
c906108c 2549fi
f0569246 2550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
f0569246 2557$ac_declaration
b7026657
AC
2558int
2559main ()
2560{
f0569246 2561exit (42);
b7026657
AC
2562 ;
2563 return 0;
2564}
2565_ACEOF
f0569246
AC
2566rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
f0569246 2582 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
f0569246
AC
2588 break
2589else
2590 echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595done
2596rm -f conftest*
2597if test -n "$ac_declaration"; then
2598 echo '#ifdef __cplusplus' >>confdefs.h
2599 echo $ac_declaration >>confdefs.h
2600 echo '#endif' >>confdefs.h
2601fi
2602
b7026657
AC
2603else
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
b7026657 2607fi
f0569246
AC
2608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615# Find a good install program. We prefer a C program (faster),
2616# so one script is as good as another. But avoid the broken or
2617# incompatible versions:
2618# SysV /etc/install, /usr/sbin/install
2619# SunOS /usr/etc/install
2620# IRIX /sbin/install
2621# AIX /bin/install
2622# AmigaOS /C/install, which installs bootblocks on floppy discs
2623# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2624# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2625# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2626# OS/2's system install, which has a completely different semantic
2627# ./install, which can be erroneously created by make from ./install.sh.
2628echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2629echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2630if test -z "$INSTALL"; then
2631if test "${ac_cv_path_install+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 # Account for people who put trailing slashes in PATH elements.
2640case $as_dir/ in
2641 ./ | .// | /cC/* | \
2642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2643 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2644 /usr/ucb/* ) ;;
2645 *)
2646 # OSF1 and SCO ODT 3.0 have their own names for install.
2647 # Don't use installbsd from OSF since it installs stuff as root
2648 # by default.
2649 for ac_prog in ginstall scoinst install; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2652 if test $ac_prog = install &&
2653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # AIX install. It has an incompatible calling convention.
2655 :
2656 elif test $ac_prog = install &&
2657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658 # program-specific install script used by HP pwplus--don't use.
2659 :
2660 else
2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662 break 3
2663 fi
2664 fi
2665 done
2666 done
2667 ;;
2668esac
2669done
2670
2671
2672fi
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2675 else
2676 # As a last resort, use the slow shell script. We don't cache a
2677 # path for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the path is relative.
2680 INSTALL=$ac_install_sh
2681 fi
2682fi
2683echo "$as_me:$LINENO: result: $INSTALL" >&5
2684echo "${ECHO_T}$INSTALL" >&6
2685
2686# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687# It thinks the first close brace ends the variable substitution.
2688test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2689
2690test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691
2692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693
2694
2695# Put a plausible default for CC_FOR_BUILD in Makefile.
2696if test "x$cross_compiling" = "xno"; then
2697 CC_FOR_BUILD='$(CC)'
2698else
2699 CC_FOR_BUILD=gcc
2700fi
c906108c 2701
c906108c 2702
c906108c 2703
c906108c 2704
f0569246
AC
2705AR=${AR-ar}
2706
2707if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2709set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2710echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
f0569246
AC
2715 if test -n "$RANLIB"; then
2716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2717else
f0569246
AC
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729done
2730done
b7026657 2731
c906108c 2732fi
c906108c 2733fi
f0569246
AC
2734RANLIB=$ac_cv_prog_RANLIB
2735if test -n "$RANLIB"; then
2736 echo "$as_me:$LINENO: result: $RANLIB" >&5
2737echo "${ECHO_T}$RANLIB" >&6
2738else
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
2741fi
c906108c 2742
f0569246
AC
2743fi
2744if test -z "$ac_cv_prog_RANLIB"; then
2745 ac_ct_RANLIB=$RANLIB
2746 # Extract the first word of "ranlib", so it can be a program name with args.
2747set dummy ranlib; ac_word=$2
2748echo "$as_me:$LINENO: checking for $ac_word" >&5
2749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752else
2753 if test -n "$ac_ct_RANLIB"; then
2754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_RANLIB="ranlib"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
c906108c 2766 fi
f0569246
AC
2767done
2768done
2769
2770 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2771fi
2772fi
2773ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2774if test -n "$ac_ct_RANLIB"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2776echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 2777else
f0569246
AC
2778 echo "$as_me:$LINENO: result: no" >&5
2779echo "${ECHO_T}no" >&6
2780fi
c906108c 2781
f0569246
AC
2782 RANLIB=$ac_ct_RANLIB
2783else
2784 RANLIB="$ac_cv_prog_RANLIB"
2785fi
c906108c 2786
c906108c 2787
f0569246 2788ALL_LINGUAS=
2f0122dc
DJ
2789# If we haven't got the data from the intl directory,
2790# assume NLS is disabled.
2791USE_NLS=no
2792LIBINTL=
2793LIBINTL_DEP=
2794INCINTL=
2795XGETTEXT=
2796GMSGFMT=
2797POSUB=
e85e3205
RE
2798
2799if test -f ../../intl/config.intl; then
2800 . ../../intl/config.intl
2f0122dc
DJ
2801fi
2802echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2803echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2804if test x"$USE_NLS" != xyes; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807else
2808 echo "$as_me:$LINENO: result: yes" >&5
2809echo "${ECHO_T}yes" >&6
2810
2811cat >>confdefs.h <<\_ACEOF
2812#define ENABLE_NLS 1
2813_ACEOF
2814
2815
2816 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2817echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2818 # Look for .po and .gmo files in the source directory.
2819 CATALOGS=
2820 XLINGUAS=
2821 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2822 # If there aren't any .gmo files the shell will give us the
2823 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2824 # weeded out.
2825 case "$cat" in *\**)
2826 continue;;
2827 esac
2828 # The quadruple backslash is collapsed to a double backslash
2829 # by the backticks, then collapsed again by the double quotes,
2830 # leaving us with one backslash in the sed expression (right
2831 # before the dot that mustn't act as a wildcard).
2832 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2833 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2834 # The user is allowed to set LINGUAS to a list of languages to
2835 # install catalogs for. If it's empty that means "all of them."
2836 if test "x$LINGUAS" = x; then
2837 CATALOGS="$CATALOGS $cat"
2838 XLINGUAS="$XLINGUAS $lang"
2839 else
2840 case "$LINGUAS" in *$lang*)
2841 CATALOGS="$CATALOGS $cat"
2842 XLINGUAS="$XLINGUAS $lang"
2843 ;;
2844 esac
2845 fi
2846 done
2847 LINGUAS="$XLINGUAS"
2848 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2849echo "${ECHO_T}$LINGUAS" >&6
2850
2851
2852 DATADIRNAME=share
2853
2854 INSTOBJEXT=.mo
2855
2856 GENCAT=gencat
2857
2858 CATOBJEXT=.gmo
2859
2860fi
35695fd6 2861
20e95c23
DJ
2862# Check for common headers.
2863# FIXME: Seems to me this can cause problems for i386-windows hosts.
2864# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
35695fd6
AC
2865
2866ac_ext=c
2867ac_cpp='$CPP $CPPFLAGS'
2868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873# On Suns, sometimes $CPP names a directory.
2874if test -n "$CPP" && test -d "$CPP"; then
2875 CPP=
2876fi
2877if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883 do
2884 ac_preproc_ok=false
2885for ac_c_preproc_warn_flag in '' yes
2886do
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
2891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h. */
2899#ifdef __STDC__
2900# include <limits.h>
2901#else
2902# include <assert.h>
2903#endif
2904 Syntax error
2905_ACEOF
2906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } >/dev/null; then
2914 if test -s conftest.err; then
2915 ac_cpp_err=$ac_c_preproc_warn_flag
2916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2917 else
2918 ac_cpp_err=
2919 fi
2920else
2921 ac_cpp_err=yes
2922fi
2923if test -z "$ac_cpp_err"; then
2924 :
2925else
2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 # Broken: fails on valid input.
2930continue
2931fi
2932rm -f conftest.err conftest.$ac_ext
2933
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
2942#include <ac_nonexistent.h>
2943_ACEOF
2944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f0569246 2945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2951 (exit $ac_status); } >/dev/null; then
2952 if test -s conftest.err; then
2953 ac_cpp_err=$ac_c_preproc_warn_flag
2954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 else
2956 ac_cpp_err=
2957 fi
2958else
2959 ac_cpp_err=yes
2960fi
2961if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2963continue
c906108c 2964else
b7026657
AC
2965 echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
f0569246
AC
2968 # Passes both tests.
2969ac_preproc_ok=:
2970break
c906108c 2971fi
f0569246
AC
2972rm -f conftest.err conftest.$ac_ext
2973
2974done
2975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976rm -f conftest.err conftest.$ac_ext
2977if $ac_preproc_ok; then
2978 break
c906108c 2979fi
c906108c 2980
f0569246
AC
2981 done
2982 ac_cv_prog_CPP=$CPP
2983
2984fi
2985 CPP=$ac_cv_prog_CPP
c906108c 2986else
f0569246
AC
2987 ac_cv_prog_CPP=$CPP
2988fi
2989echo "$as_me:$LINENO: result: $CPP" >&5
2990echo "${ECHO_T}$CPP" >&6
2991ac_preproc_ok=false
2992for ac_c_preproc_warn_flag in '' yes
2993do
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
f0569246
AC
3006#ifdef __STDC__
3007# include <limits.h>
3008#else
3009# include <assert.h>
b7026657 3010#endif
f0569246 3011 Syntax error
b7026657 3012_ACEOF
f0569246
AC
3013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024 else
3025 ac_cpp_err=
3026 fi
3027else
3028 ac_cpp_err=yes
3029fi
3030if test -z "$ac_cpp_err"; then
3031 :
b7026657
AC
3032else
3033 echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
f0569246
AC
3036 # Broken: fails on valid input.
3037continue
b7026657 3038fi
f0569246
AC
3039rm -f conftest.err conftest.$ac_ext
3040
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
b7026657
AC
3043 cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h. */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h. */
f0569246 3049#include <ac_nonexistent.h>
b7026657 3050_ACEOF
f0569246
AC
3051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3058 (exit $ac_status); } >/dev/null; then
3059 if test -s conftest.err; then
3060 ac_cpp_err=$ac_c_preproc_warn_flag
3061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 else
3063 ac_cpp_err=
3064 fi
3065else
3066 ac_cpp_err=yes
3067fi
3068if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3070continue
c906108c 3071else
b7026657
AC
3072 echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
f0569246
AC
3075 # Passes both tests.
3076ac_preproc_ok=:
3077break
c906108c 3078fi
f0569246 3079rm -f conftest.err conftest.$ac_ext
c906108c 3080
f0569246
AC
3081done
3082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083rm -f conftest.err conftest.$ac_ext
3084if $ac_preproc_ok; then
3085 :
c906108c 3086else
f0569246
AC
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088See \`config.log' for more details." >&5
3089echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
c906108c 3092fi
c906108c 3093
f0569246
AC
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101echo "$as_me:$LINENO: checking for egrep" >&5
3102echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3103if test "${ac_cv_prog_egrep+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3107 then ac_cv_prog_egrep='grep -E'
3108 else ac_cv_prog_egrep='egrep'
3109 fi
3110fi
3111echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3112echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3113 EGREP=$ac_cv_prog_egrep
3114
3115
3116echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3118if test "${ac_cv_header_stdc+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127#include <stdlib.h>
3128#include <stdarg.h>
3129#include <string.h>
3130#include <float.h>
c906108c 3131
b7026657
AC
3132int
3133main ()
3134{
f0569246 3135
b7026657
AC
3136 ;
3137 return 0;
3138}
3139_ACEOF
f0569246
AC
3140rm -f conftest.$ac_objext
3141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
f0569246 3156 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
f0569246 3162 ac_cv_header_stdc=yes
b7026657
AC
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
f0569246 3167ac_cv_header_stdc=no
b7026657 3168fi
f0569246 3169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3170
f0569246
AC
3171if test $ac_cv_header_stdc = yes; then
3172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3173 cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179#include <string.h>
c906108c 3180
f0569246
AC
3181_ACEOF
3182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 $EGREP "memchr" >/dev/null 2>&1; then
3184 :
c906108c 3185else
f0569246 3186 ac_cv_header_stdc=no
c906108c 3187fi
f0569246 3188rm -f conftest*
b7026657 3189
c906108c
SS
3190fi
3191
f0569246
AC
3192if test $ac_cv_header_stdc = yes; then
3193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3194 cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
3200#include <stdlib.h>
3201
3202_ACEOF
3203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 $EGREP "free" >/dev/null 2>&1; then
3205 :
c906108c 3206else
f0569246 3207 ac_cv_header_stdc=no
c906108c 3208fi
f0569246
AC
3209rm -f conftest*
3210
c906108c
SS
3211fi
3212
f0569246
AC
3213if test $ac_cv_header_stdc = yes; then
3214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3215 if test "$cross_compiling" = yes; then
3216 :
3217else
3218 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3219/* confdefs.h. */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
f0569246
AC
3224#include <ctype.h>
3225#if ((' ' & 0x0FF) == 0x020)
3226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3228#else
3229# define ISLOWER(c) \
3230 (('a' <= (c) && (c) <= 'i') \
3231 || ('j' <= (c) && (c) <= 'r') \
3232 || ('s' <= (c) && (c) <= 'z'))
3233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3234#endif
c906108c 3235
f0569246 3236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3237int
3238main ()
3239{
f0569246
AC
3240 int i;
3241 for (i = 0; i < 256; i++)
3242 if (XOR (islower (i), ISLOWER (i))
3243 || toupper (i) != TOUPPER (i))
3244 exit(2);
3245 exit (0);
b7026657
AC
3246}
3247_ACEOF
f0569246 3248rm -f conftest$ac_exeext
b7026657 3249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3250 (eval $ac_link) 2>&5
b7026657
AC
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
f0569246 3259 :
c906108c 3260else
f0569246
AC
3261 echo "$as_me: program exited with status $ac_status" >&5
3262echo "$as_me: failed program was:" >&5
b7026657
AC
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
f0569246
AC
3265( exit $ac_status )
3266ac_cv_header_stdc=no
c906108c 3267fi
f0569246 3268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3269fi
c906108c 3270fi
c906108c 3271fi
f0569246
AC
3272echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3273echo "${ECHO_T}$ac_cv_header_stdc" >&6
3274if test $ac_cv_header_stdc = yes; then
b7026657 3275
f0569246
AC
3276cat >>confdefs.h <<\_ACEOF
3277#define STDC_HEADERS 1
3278_ACEOF
c906108c 3279
c906108c
SS
3280fi
3281
f0569246 3282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3283
3284
3285
3286
3287
3288
3289
c906108c 3290
c906108c 3291
35695fd6
AC
3292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3293 inttypes.h stdint.h unistd.h
3294do
3295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3296echo "$as_me:$LINENO: checking for $ac_header" >&5
3297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3298if eval "test \"\${$as_ac_Header+set}\" = set"; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301 cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307$ac_includes_default
3308
3309#include <$ac_header>
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 eval "$as_ac_Header=yes"
3334else
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338eval "$as_ac_Header=no"
3339fi
3340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3344if test `eval echo '${'$as_ac_Header'}'` = yes; then
3345 cat >>confdefs.h <<_ACEOF
3346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3347_ACEOF
3348
3349fi
3350
3351done
3352
3353
b7026657
AC
3354
3355
3356
3357
3358
3359for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 3360do
b7026657
AC
3361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3362if eval "test \"\${$as_ac_Header+set}\" = set"; then
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367fi
3368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3370else
3371 # Is the header compilable?
3372echo "$as_me:$LINENO: checking $ac_header usability" >&5
3373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h. */
3380$ac_includes_default
3381#include <$ac_header>
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_header_compiler=yes
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410ac_header_compiler=no
3411fi
3412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3414echo "${ECHO_T}$ac_header_compiler" >&6
3415
3416# Is the header present?
3417echo "$as_me:$LINENO: checking $ac_header presence" >&5
3418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3419cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#include <$ac_header>
3426_ACEOF
3427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3440 fi
3441else
3442 ac_cpp_err=yes
c906108c 3443fi
b7026657
AC
3444if test -z "$ac_cpp_err"; then
3445 ac_header_preproc=yes
3446else
3447 echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 ac_header_preproc=no
c906108c 3451fi
b7026657
AC
3452rm -f conftest.err conftest.$ac_ext
3453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3454echo "${ECHO_T}$ac_header_preproc" >&6
3455
3456# So? What about this header?
3457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3458 yes:no: )
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3463 ac_header_preproc=yes
3464 ;;
3465 no:yes:* )
3466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3478 (
3479 cat <<\_ASBOX
3480## ------------------------------------------ ##
3481## Report this to the AC_PACKAGE_NAME lists. ##
3482## ------------------------------------------ ##
3483_ASBOX
3484 ) |
3485 sed "s/^/$as_me: WARNING: /" >&2
3486 ;;
3487esac
3488echo "$as_me:$LINENO: checking for $ac_header" >&5
3489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3490if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3492else
b7026657
AC
3493 eval "$as_ac_Header=\$ac_header_preproc"
3494fi
3495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3497
3498fi
3499if test `eval echo '${'$as_ac_Header'}'` = yes; then
3500 cat >>confdefs.h <<_ACEOF
3501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3502_ACEOF
3503
c906108c 3504fi
b7026657 3505
c906108c
SS
3506done
3507
b7026657
AC
3508
3509
3510for ac_header in sys/time.h sys/resource.h
c906108c 3511do
b7026657
AC
3512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3513if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo "$as_me:$LINENO: checking for $ac_header" >&5
3515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3516if eval "test \"\${$as_ac_Header+set}\" = set"; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518fi
3519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3521else
3522 # Is the header compilable?
3523echo "$as_me:$LINENO: checking $ac_header usability" >&5
3524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3525cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531$ac_includes_default
3532#include <$ac_header>
3533_ACEOF
3534rm -f conftest.$ac_objext
3535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_c_werror_flag"
3544 || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_header_compiler=yes
3557else
3558 echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561ac_header_compiler=no
3562fi
3563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3565echo "${ECHO_T}$ac_header_compiler" >&6
3566
3567# Is the header present?
3568echo "$as_me:$LINENO: checking $ac_header presence" >&5
3569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3570cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576#include <$ac_header>
3577_ACEOF
3578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 else
3590 ac_cpp_err=
3591 fi
3592else
3593 ac_cpp_err=yes
c906108c 3594fi
b7026657
AC
3595if test -z "$ac_cpp_err"; then
3596 ac_header_preproc=yes
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 ac_header_preproc=no
c906108c 3602fi
b7026657
AC
3603rm -f conftest.err conftest.$ac_ext
3604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3605echo "${ECHO_T}$ac_header_preproc" >&6
3606
3607# So? What about this header?
3608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3609 yes:no: )
3610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3614 ac_header_preproc=yes
3615 ;;
3616 no:yes:* )
3617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3629 (
3630 cat <<\_ASBOX
3631## ------------------------------------------ ##
3632## Report this to the AC_PACKAGE_NAME lists. ##
3633## ------------------------------------------ ##
3634_ASBOX
3635 ) |
3636 sed "s/^/$as_me: WARNING: /" >&2
3637 ;;
3638esac
3639echo "$as_me:$LINENO: checking for $ac_header" >&5
3640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3641if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3643else
b7026657
AC
3644 eval "$as_ac_Header=\$ac_header_preproc"
3645fi
3646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3648
c906108c 3649fi
b7026657
AC
3650if test `eval echo '${'$as_ac_Header'}'` = yes; then
3651 cat >>confdefs.h <<_ACEOF
3652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3653_ACEOF
3654
3655fi
3656
c906108c
SS
3657done
3658
b7026657
AC
3659
3660
3661for ac_header in fcntl.h fpu_control.h
c906108c 3662do
b7026657
AC
3663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3664if eval "test \"\${$as_ac_Header+set}\" = set"; then
3665 echo "$as_me:$LINENO: checking for $ac_header" >&5
3666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669fi
3670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3672else
3673 # Is the header compilable?
3674echo "$as_me:$LINENO: checking $ac_header usability" >&5
3675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3676cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682$ac_includes_default
3683#include <$ac_header>
3684_ACEOF
3685rm -f conftest.$ac_objext
3686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_header_compiler=yes
3708else
3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712ac_header_compiler=no
3713fi
3714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3716echo "${ECHO_T}$ac_header_compiler" >&6
3717
3718# Is the header present?
3719echo "$as_me:$LINENO: checking $ac_header presence" >&5
3720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3721cat >conftest.$ac_ext <<_ACEOF
3722/* confdefs.h. */
3723_ACEOF
3724cat confdefs.h >>conftest.$ac_ext
3725cat >>conftest.$ac_ext <<_ACEOF
3726/* end confdefs.h. */
3727#include <$ac_header>
3728_ACEOF
3729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null; then
3737 if test -s conftest.err; then
3738 ac_cpp_err=$ac_c_preproc_warn_flag
3739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3740 else
3741 ac_cpp_err=
3742 fi
3743else
3744 ac_cpp_err=yes
cd0fc7c3 3745fi
b7026657
AC
3746if test -z "$ac_cpp_err"; then
3747 ac_header_preproc=yes
3748else
3749 echo "$as_me: failed program was:" >&5
3750sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ac_header_preproc=no
cd0fc7c3 3753fi
b7026657
AC
3754rm -f conftest.err conftest.$ac_ext
3755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3756echo "${ECHO_T}$ac_header_preproc" >&6
3757
3758# So? What about this header?
3759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3760 yes:no: )
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3765 ac_header_preproc=yes
3766 ;;
3767 no:yes:* )
3768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3780 (
3781 cat <<\_ASBOX
3782## ------------------------------------------ ##
3783## Report this to the AC_PACKAGE_NAME lists. ##
3784## ------------------------------------------ ##
3785_ASBOX
3786 ) |
3787 sed "s/^/$as_me: WARNING: /" >&2
3788 ;;
3789esac
3790echo "$as_me:$LINENO: checking for $ac_header" >&5
3791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3792if eval "test \"\${$as_ac_Header+set}\" = set"; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
cd0fc7c3 3794else
b7026657
AC
3795 eval "$as_ac_Header=\$ac_header_preproc"
3796fi
3797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3799
3800fi
3801if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804_ACEOF
3805
cd0fc7c3 3806fi
b7026657 3807
cd0fc7c3
SS
3808done
3809
b7026657
AC
3810
3811
3812
3813for ac_header in dlfcn.h errno.h sys/stat.h
cd0fc7c3 3814do
b7026657
AC
3815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3816if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo "$as_me:$LINENO: checking for $ac_header" >&5
3818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3819if eval "test \"\${$as_ac_Header+set}\" = set"; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821fi
3822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3824else
3825 # Is the header compilable?
3826echo "$as_me:$LINENO: checking $ac_header usability" >&5
3827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3828cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834$ac_includes_default
3835#include <$ac_header>
3836_ACEOF
3837rm -f conftest.$ac_objext
3838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag"
3847 || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_header_compiler=yes
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864ac_header_compiler=no
3865fi
3866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3868echo "${ECHO_T}$ac_header_compiler" >&6
3869
3870# Is the header present?
3871echo "$as_me:$LINENO: checking $ac_header presence" >&5
3872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3873cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
3879#include <$ac_header>
3880_ACEOF
3881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null; then
3889 if test -s conftest.err; then
3890 ac_cpp_err=$ac_c_preproc_warn_flag
3891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3892 else
3893 ac_cpp_err=
3894 fi
3895else
3896 ac_cpp_err=yes
c906108c 3897fi
b7026657
AC
3898if test -z "$ac_cpp_err"; then
3899 ac_header_preproc=yes
3900else
3901 echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 ac_header_preproc=no
c906108c 3905fi
b7026657
AC
3906rm -f conftest.err conftest.$ac_ext
3907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3908echo "${ECHO_T}$ac_header_preproc" >&6
3909
3910# So? What about this header?
3911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3912 yes:no: )
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3917 ac_header_preproc=yes
3918 ;;
3919 no:yes:* )
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3932 (
3933 cat <<\_ASBOX
3934## ------------------------------------------ ##
3935## Report this to the AC_PACKAGE_NAME lists. ##
3936## ------------------------------------------ ##
3937_ASBOX
3938 ) |
3939 sed "s/^/$as_me: WARNING: /" >&2
3940 ;;
3941esac
3942echo "$as_me:$LINENO: checking for $ac_header" >&5
3943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_Header+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3946else
b7026657
AC
3947 eval "$as_ac_Header=\$ac_header_preproc"
3948fi
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951
3952fi
3953if test `eval echo '${'$as_ac_Header'}'` = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3956_ACEOF
3957
c906108c 3958fi
b7026657 3959
c906108c
SS
3960done
3961
b7026657
AC
3962
3963
3964
3965
c906108c
SS
3966for ac_func in getrusage time sigaction __setfpucw
3967do
b7026657
AC
3968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3969echo "$as_me:$LINENO: checking for $ac_func" >&5
3970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3971if eval "test \"\${$as_ac_var+set}\" = set"; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
3980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3982#define $ac_func innocuous_$ac_func
3983
c906108c 3984/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3985 which can conflict with char $ac_func (); below.
3986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 <limits.h> exists even on freestanding compilers. */
3988
3989#ifdef __STDC__
3990# include <limits.h>
3991#else
3992# include <assert.h>
3993#endif
c906108c 3994
b7026657 3995#undef $ac_func
c906108c 3996
b7026657
AC
3997/* Override any gcc2 internal prototype to avoid an error. */
3998#ifdef __cplusplus
3999extern "C"
4000{
4001#endif
4002/* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4004char $ac_func ();
c906108c
SS
4005/* The GNU C library defines this for functions which it implements
4006 to always fail with ENOSYS. Some functions are actually named
4007 something starting with __ and the normal name is an alias. */
4008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4009choke me
4010#else
b7026657
AC
4011char (*f) () = $ac_func;
4012#endif
4013#ifdef __cplusplus
4014}
c906108c
SS
4015#endif
4016
b7026657
AC
4017int
4018main ()
4019{
4020return f != $ac_func;
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025rm -f conftest.$ac_objext conftest$ac_exeext
4026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027 (eval $ac_link) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest$ac_exeext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 eval "$as_ac_var=yes"
4048else
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052eval "$as_ac_var=no"
4053fi
4054rm -f conftest.err conftest.$ac_objext \
4055 conftest$ac_exeext conftest.$ac_ext
4056fi
4057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4059if test `eval echo '${'$as_ac_var'}'` = yes; then
4060 cat >>confdefs.h <<_ACEOF
4061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4062_ACEOF
c906108c 4063
c906108c
SS
4064fi
4065done
4066
4067
4068# Check for socket libraries
b7026657
AC
4069
4070echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4071echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4072if test "${ac_cv_lib_socket_bind+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4074else
b7026657 4075 ac_check_lib_save_LIBS=$LIBS
c906108c 4076LIBS="-lsocket $LIBS"
b7026657
AC
4077cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083
c906108c 4084/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4085#ifdef __cplusplus
4086extern "C"
4087#endif
c906108c 4088/* We use char because int might match the return type of a gcc2
b7026657
AC
4089 builtin and then its argument prototype would still apply. */
4090char bind ();
4091int
4092main ()
4093{
4094bind ();
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext conftest$ac_exeext
4100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4101 (eval $ac_link) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest$ac_exeext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_lib_socket_bind=yes
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126ac_cv_lib_socket_bind=no
4127fi
4128rm -f conftest.err conftest.$ac_objext \
4129 conftest$ac_exeext conftest.$ac_ext
4130LIBS=$ac_check_lib_save_LIBS
4131fi
4132echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4133echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4134if test $ac_cv_lib_socket_bind = yes; then
4135 cat >>confdefs.h <<_ACEOF
4136#define HAVE_LIBSOCKET 1
4137_ACEOF
c906108c
SS
4138
4139 LIBS="-lsocket $LIBS"
4140
c906108c
SS
4141fi
4142
b7026657
AC
4143
4144echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4145echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4146if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4148else
b7026657 4149 ac_check_lib_save_LIBS=$LIBS
c906108c 4150LIBS="-lnsl $LIBS"
b7026657
AC
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157
c906108c 4158/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4159#ifdef __cplusplus
4160extern "C"
4161#endif
c906108c 4162/* We use char because int might match the return type of a gcc2
b7026657
AC
4163 builtin and then its argument prototype would still apply. */
4164char gethostbyname ();
4165int
4166main ()
4167{
4168gethostbyname ();
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext conftest$ac_exeext
4174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest$ac_exeext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_lib_nsl_gethostbyname=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200ac_cv_lib_nsl_gethostbyname=no
4201fi
4202rm -f conftest.err conftest.$ac_objext \
4203 conftest$ac_exeext conftest.$ac_ext
4204LIBS=$ac_check_lib_save_LIBS
4205fi
4206echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4207echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4208if test $ac_cv_lib_nsl_gethostbyname = yes; then
4209 cat >>confdefs.h <<_ACEOF
4210#define HAVE_LIBNSL 1
4211_ACEOF
c906108c
SS
4212
4213 LIBS="-lnsl $LIBS"
4214
c906108c
SS
4215fi
4216
4217
b5bd9624
HPN
4218# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4219# using the same condition.
4220echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4221echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4222if test "${ac_cv_search_zlibVersion+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225 ac_func_search_save_LIBS=$LIBS
4226ac_cv_search_zlibVersion=no
4227cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233
4234/* Override any gcc2 internal prototype to avoid an error. */
4235#ifdef __cplusplus
4236extern "C"
4237#endif
4238/* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4240char zlibVersion ();
4241int
4242main ()
4243{
4244zlibVersion ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_search_zlibVersion="none required"
4272else
4273 echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276fi
4277rm -f conftest.err conftest.$ac_objext \
4278 conftest$ac_exeext conftest.$ac_ext
4279if test "$ac_cv_search_zlibVersion" = no; then
4280 for ac_lib in z; do
4281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288
4289/* Override any gcc2 internal prototype to avoid an error. */
4290#ifdef __cplusplus
4291extern "C"
4292#endif
4293/* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4295char zlibVersion ();
4296int
4297main ()
4298{
4299zlibVersion ();
4300 ;
4301 return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext conftest$ac_exeext
4305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306 (eval $ac_link) 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_search_zlibVersion="-l$ac_lib"
4327break
4328else
4329 echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332fi
4333rm -f conftest.err conftest.$ac_objext \
4334 conftest$ac_exeext conftest.$ac_ext
4335 done
4336fi
4337LIBS=$ac_func_search_save_LIBS
4338fi
4339echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4340echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4341if test "$ac_cv_search_zlibVersion" != no; then
4342 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4343
4344for ac_header in zlib.h
4345do
4346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4347if eval "test \"\${$as_ac_Header+set}\" = set"; then
4348 echo "$as_me:$LINENO: checking for $ac_header" >&5
4349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4350if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352fi
4353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4355else
4356 # Is the header compilable?
4357echo "$as_me:$LINENO: checking $ac_header usability" >&5
4358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4359cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365$ac_includes_default
4366#include <$ac_header>
4367_ACEOF
4368rm -f conftest.$ac_objext
4369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -z "$ac_c_werror_flag"
4378 || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_header_compiler=yes
4391else
4392 echo "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395ac_header_compiler=no
4396fi
4397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4399echo "${ECHO_T}$ac_header_compiler" >&6
4400
4401# Is the header present?
4402echo "$as_me:$LINENO: checking $ac_header presence" >&5
4403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4404cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h. */
4406_ACEOF
4407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
4409/* end confdefs.h. */
4410#include <$ac_header>
4411_ACEOF
4412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } >/dev/null; then
4420 if test -s conftest.err; then
4421 ac_cpp_err=$ac_c_preproc_warn_flag
4422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4423 else
4424 ac_cpp_err=
4425 fi
4426else
4427 ac_cpp_err=yes
4428fi
4429if test -z "$ac_cpp_err"; then
4430 ac_header_preproc=yes
4431else
4432 echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 ac_header_preproc=no
4436fi
4437rm -f conftest.err conftest.$ac_ext
4438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439echo "${ECHO_T}$ac_header_preproc" >&6
4440
4441# So? What about this header?
4442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4443 yes:no: )
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4448 ac_header_preproc=yes
4449 ;;
4450 no:yes:* )
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4463 (
4464 cat <<\_ASBOX
4465## ------------------------------------------ ##
4466## Report this to the AC_PACKAGE_NAME lists. ##
4467## ------------------------------------------ ##
4468_ASBOX
4469 ) |
4470 sed "s/^/$as_me: WARNING: /" >&2
4471 ;;
4472esac
4473echo "$as_me:$LINENO: checking for $ac_header" >&5
4474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478 eval "$as_ac_Header=\$ac_header_preproc"
4479fi
4480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482
4483fi
4484if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487_ACEOF
4488
4489fi
4490
4491done
4492
4493fi
4494
4495
c906108c
SS
4496. ${srcdir}/../../bfd/configure.host
4497
4498
4499
4500USE_MAINTAINER_MODE=no
4501# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4502if test "${enable_maintainer_mode+set}" = set; then
4503 enableval="$enable_maintainer_mode"
4504 case "${enableval}" in
4505 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4506 no) MAINT="#" ;;
b7026657
AC
4507 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4508echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4509 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
4510esac
4511if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4512 echo "Setting maintainer mode" 6>&1
4513fi
4514else
4515 MAINT="#"
b7026657 4516fi;
c906108c
SS
4517
4518
4519# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4520if test "${enable_sim_bswap+set}" = set; then
4521 enableval="$enable_sim_bswap"
4522 case "${enableval}" in
4523 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4524 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
4525 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4526echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4527 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
4528esac
4529if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4530 echo "Setting bswap flags = $sim_bswap" 6>&1
4531fi
4532else
4533 sim_bswap=""
b7026657 4534fi;
c906108c
SS
4535
4536
4537# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4538if test "${enable_sim_cflags+set}" = set; then
4539 enableval="$enable_sim_cflags"
4540 case "${enableval}" in
4541 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
4542 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4543echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4544 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
4545 no) sim_cflags="";;
4546 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4547esac
4548if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4549 echo "Setting sim cflags = $sim_cflags" 6>&1
4550fi
4551else
4552 sim_cflags=""
b7026657 4553fi;
c906108c
SS
4554
4555
4556# Check whether --enable-sim-debug or --disable-sim-debug was given.
4557if test "${enable_sim_debug+set}" = set; then
4558 enableval="$enable_sim_debug"
4559 case "${enableval}" in
4560 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4561 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4562 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4563esac
4564if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4565 echo "Setting sim debug = $sim_debug" 6>&1
4566fi
4567else
4568 sim_debug=""
b7026657 4569fi;
c906108c
SS
4570
4571
4572# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4573if test "${enable_sim_stdio+set}" = set; then
4574 enableval="$enable_sim_stdio"
4575 case "${enableval}" in
4576 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4577 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
4578 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4579echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4580 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
4581esac
4582if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4583 echo "Setting stdio flags = $sim_stdio" 6>&1
4584fi
4585else
4586 sim_stdio=""
b7026657 4587fi;
c906108c
SS
4588
4589
4590# Check whether --enable-sim-trace or --disable-sim-trace was given.
4591if test "${enable_sim_trace+set}" = set; then
4592 enableval="$enable_sim_trace"
4593 case "${enableval}" in
4594 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4595 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4596 [-0-9]*)
4597 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4598 [a-z]*)
4599 sim_trace=""
4600 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4601 if test x"$sim_trace" = x; then
4602 sim_trace="-DWITH_TRACE='(TRACE_$x"
4603 else
4604 sim_trace="${sim_trace}|TRACE_$x"
4605 fi
4606 done
4607 sim_trace="$sim_trace)'" ;;
4608esac
4609if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4610 echo "Setting sim trace = $sim_trace" 6>&1
4611fi
4612else
4613 sim_trace=""
b7026657 4614fi;
c906108c
SS
4615
4616
4617# Check whether --enable-sim-profile or --disable-sim-profile was given.
4618if test "${enable_sim_profile+set}" = set; then
4619 enableval="$enable_sim_profile"
4620 case "${enableval}" in
4621 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4622 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4623 [-0-9]*)
4624 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4625 [a-z]*)
4626 sim_profile=""
4627 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4628 if test x"$sim_profile" = x; then
4629 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4630 else
4631 sim_profile="${sim_profile}|PROFILE_$x"
4632 fi
4633 done
4634 sim_profile="$sim_profile)'" ;;
4635esac
4636if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4637 echo "Setting sim profile = $sim_profile" 6>&1
4638fi
4639else
eb2d80b4 4640 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 4641fi;
c906108c
SS
4642
4643
6efef468
JM
4644
4645# Check whether --with-pkgversion or --without-pkgversion was given.
4646if test "${with_pkgversion+set}" = set; then
4647 withval="$with_pkgversion"
4648 case "$withval" in
4649 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4650echo "$as_me: error: package version not specified" >&2;}
4651 { (exit 1); exit 1; }; } ;;
4652 no) PKGVERSION= ;;
4653 *) PKGVERSION="($withval) " ;;
4654 esac
4655else
4656 PKGVERSION="(GDB) "
4657
4658fi;
4659
4660
4661
4662
4663# Check whether --with-bugurl or --without-bugurl was given.
4664if test "${with_bugurl+set}" = set; then
4665 withval="$with_bugurl"
4666 case "$withval" in
4667 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4668echo "$as_me: error: bug URL not specified" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4670 no) BUGURL=
4671 ;;
4672 *) BUGURL="$withval"
4673 ;;
4674 esac
4675else
4676 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4677
4678fi;
4679 case ${BUGURL} in
4680 "")
4681 REPORT_BUGS_TO=
4682 REPORT_BUGS_TEXI=
4683 ;;
4684 *)
4685 REPORT_BUGS_TO="<$BUGURL>"
4686 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4687 ;;
4688 esac;
4689
4690
4691
4692
4693cat >>confdefs.h <<_ACEOF
4694#define PKGVERSION "$PKGVERSION"
4695_ACEOF
4696
4697
4698cat >>confdefs.h <<_ACEOF
4699#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4700_ACEOF
4701
4702
b7026657
AC
4703echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4704echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4705if test "${ac_cv_type_signal+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4707else
b7026657
AC
4708 cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
c906108c
SS
4714#include <sys/types.h>
4715#include <signal.h>
4716#ifdef signal
b7026657 4717# undef signal
c906108c
SS
4718#endif
4719#ifdef __cplusplus
4720extern "C" void (*signal (int, void (*)(int)))(int);
4721#else
4722void (*signal ()) ();
4723#endif
4724
b7026657
AC
4725int
4726main ()
4727{
c906108c 4728int i;
b7026657
AC
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
c906108c
SS
4755 ac_cv_type_signal=void
4756else
b7026657
AC
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760ac_cv_type_signal=int
c906108c 4761fi
b7026657 4762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4763fi
b7026657
AC
4764echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4765echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 4766
b7026657 4767cat >>confdefs.h <<_ACEOF
c906108c 4768#define RETSIGTYPE $ac_cv_type_signal
b7026657 4769_ACEOF
c906108c
SS
4770
4771
cd0fc7c3
SS
4772
4773
c906108c
SS
4774
4775sim_link_files=
4776sim_link_links=
4777
4778sim_link_links=tconfig.h
4779if test -f ${srcdir}/tconfig.in
4780then
4781 sim_link_files=tconfig.in
4782else
4783 sim_link_files=../common/tconfig.in
4784fi
4785
4786# targ-vals.def points to the libc macro description file.
4787case "${target}" in
4788*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4789esac
4790sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4791sim_link_links="${sim_link_links} targ-vals.def"
4792
c906108c
SS
4793
4794
c8cca39f
AC
4795# NOTE: Don't add -Wall or -Wunused, they both include
4796# -Wunused-parameter which reports bogus warnings.
4797# NOTE: If you add to this list, remember to update
4798# gdb/doc/gdbint.texinfo.
4799build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
4800-Wformat -Wparentheses -Wpointer-arith"
4801# GCC supports -Wuninitialized only with -O or -On, n != 0.
4802if test x${CFLAGS+set} = xset; then
4803 case "${CFLAGS}" in
4804 *"-O0"* ) ;;
4805 *"-O"* )
4806 build_warnings="${build_warnings} -Wuninitialized"
4807 ;;
4808 esac
4809else
4810 build_warnings="${build_warnings} -Wuninitialized"
4811fi
c8cca39f
AC
4812# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4813# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4814# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4815# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4816# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4817# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
4818# Check whether --enable-build-warnings or --disable-build-warnings was given.
4819if test "${enable_build_warnings+set}" = set; then
4820 enableval="$enable_build_warnings"
c8cca39f
AC
4821 case "${enableval}" in
4822 yes) ;;
4823 no) build_warnings="-w";;
4824 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4825 build_warnings="${build_warnings} ${t}";;
4826 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4827 build_warnings="${t} ${build_warnings}";;
4828 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4829esac
4830if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4831 echo "Setting compiler warning flags = $build_warnings" 6>&1
4832fi
b7026657 4833fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
4834if test "${enable_sim_build_warnings+set}" = set; then
4835 enableval="$enable_sim_build_warnings"
4836 case "${enableval}" in
c906108c
SS
4837 yes) ;;
4838 no) build_warnings="-w";;
4839 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4840 build_warnings="${build_warnings} ${t}";;
c906108c 4841 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4842 build_warnings="${t} ${build_warnings}";;
4843 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4844esac
4845if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4846 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4847fi
b7026657 4848fi; WARN_CFLAGS=""
d4f3574e
SS
4849WERROR_CFLAGS=""
4850if test "x${build_warnings}" != x -a "x$GCC" = xyes
4851then
b7026657
AC
4852 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4853echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
4854 # Separate out the -Werror flag as some files just cannot be
4855 # compiled with it enabled.
4856 for w in ${build_warnings}; do
4857 case $w in
4858 -Werr*) WERROR_CFLAGS=-Werror ;;
4859 *) # Check that GCC accepts it
4860 saved_CFLAGS="$CFLAGS"
4861 CFLAGS="$CFLAGS $w"
b7026657
AC
4862 cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
c8cca39f 4868
b7026657
AC
4869int
4870main ()
4871{
c8cca39f 4872
b7026657
AC
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877rm -f conftest.$ac_objext
4878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
c8cca39f 4899 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 4900else
b7026657
AC
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
c8cca39f 4904fi
b7026657 4905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4906 CFLAGS="$saved_CFLAGS"
4907 esac
4908 done
b7026657
AC
4909 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4910echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
4911fi
4912
4913
b7026657
AC
4914
4915for ac_header in unistd.h
c906108c 4916do
b7026657
AC
4917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4918if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919 echo "$as_me:$LINENO: checking for $ac_header" >&5
4920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923fi
4924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4926else
4927 # Is the header compilable?
4928echo "$as_me:$LINENO: checking $ac_header usability" >&5
4929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4930cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936$ac_includes_default
4937#include <$ac_header>
4938_ACEOF
4939rm -f conftest.$ac_objext
4940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_header_compiler=yes
4962else
4963 echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966ac_header_compiler=no
4967fi
4968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4970echo "${ECHO_T}$ac_header_compiler" >&6
4971
4972# Is the header present?
4973echo "$as_me:$LINENO: checking $ac_header presence" >&5
4974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4975cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <$ac_header>
4982_ACEOF
4983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_c_preproc_warn_flag
4993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4994 else
4995 ac_cpp_err=
4996 fi
4997else
4998 ac_cpp_err=yes
c906108c 4999fi
b7026657
AC
5000if test -z "$ac_cpp_err"; then
5001 ac_header_preproc=yes
5002else
5003 echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_header_preproc=no
c906108c 5007fi
b7026657
AC
5008rm -f conftest.err conftest.$ac_ext
5009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5010echo "${ECHO_T}$ac_header_preproc" >&6
5011
5012# So? What about this header?
5013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5014 yes:no: )
5015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5019 ac_header_preproc=yes
5020 ;;
5021 no:yes:* )
5022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5034 (
5035 cat <<\_ASBOX
5036## ------------------------------------------ ##
5037## Report this to the AC_PACKAGE_NAME lists. ##
5038## ------------------------------------------ ##
5039_ASBOX
5040 ) |
5041 sed "s/^/$as_me: WARNING: /" >&2
5042 ;;
5043esac
5044echo "$as_me:$LINENO: checking for $ac_header" >&5
5045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5048else
b7026657
AC
5049 eval "$as_ac_Header=\$ac_header_preproc"
5050fi
5051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053
c906108c 5054fi
b7026657
AC
5055if test `eval echo '${'$as_ac_Header'}'` = yes; then
5056 cat >>confdefs.h <<_ACEOF
5057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058_ACEOF
5059
5060fi
5061
c906108c
SS
5062done
5063
5064
5065
5066
b7026657
AC
5067ac_sources="$sim_link_files"
5068ac_dests="$sim_link_links"
5069while test -n "$ac_sources"; do
5070 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5071 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5072 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5073done
5074 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c 5075
379832de
HPN
5076cgen_breaks=""
5077if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5078cgen_breaks="break cgen_rtx_error";
5079fi
5080
38f48d72
AC
5081 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5082
5083 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5084
5085 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5086
5087 ac_config_commands="$ac_config_commands Makefile"
5088
5089 ac_config_commands="$ac_config_commands stamp-h"
5090
b7026657 5091cat >confcache <<\_ACEOF
c906108c
SS
5092# This file is a shell script that caches the results of configure
5093# tests run on this system so they can be shared between configure
b7026657
AC
5094# scripts and configure runs, see configure's option --config-cache.
5095# It is not useful on other systems. If it contains results you don't
5096# want to keep, you may remove or edit it.
c906108c 5097#
b7026657
AC
5098# config.status only pays attention to the cache file if you give it
5099# the --recheck option to rerun configure.
c906108c 5100#
b7026657
AC
5101# `ac_cv_env_foo' variables (set or unset) will be overridden when
5102# loading this file, other *unset* `ac_cv_foo' will be assigned the
5103# following values.
5104
5105_ACEOF
5106
c906108c
SS
5107# The following way of writing the cache mishandles newlines in values,
5108# but we know of no workaround that is simple, portable, and efficient.
5109# So, don't put newlines in cache variables' values.
5110# Ultrix sh set writes to stderr and can't be redirected directly,
5111# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
5112{
5113 (set) 2>&1 |
5114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5115 *ac_space=\ *)
5116 # `set' does not quote correctly, so add quotes (double-quote
5117 # substitution turns \\\\ into \\, and sed turns \\ into \).
5118 sed -n \
5119 "s/'/'\\\\''/g;
5120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5121 ;;
5122 *)
5123 # `set' quotes correctly as required by POSIX, so do not add quotes.
5124 sed -n \
5125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5126 ;;
5127 esac;
5128} |
5129 sed '
5130 t clear
5131 : clear
5132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5133 t end
5134 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5135 : end' >>confcache
5136if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 5137 if test -w $cache_file; then
b7026657
AC
5138 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5139 cat confcache >$cache_file
c906108c
SS
5140 else
5141 echo "not updating unwritable cache $cache_file"
5142 fi
5143fi
5144rm -f confcache
5145
c906108c
SS
5146test "x$prefix" = xNONE && prefix=$ac_default_prefix
5147# Let make expand exec_prefix.
5148test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5149
b7026657
AC
5150# VPATH may cause trouble with some makes, so we remove $(srcdir),
5151# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5152# trailing colons and then remove the whole line if VPATH becomes empty
5153# (actually we leave an empty line to preserve line numbers).
c906108c 5154if test "x$srcdir" = x.; then
b7026657
AC
5155 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5156s/:*\$(srcdir):*/:/;
5157s/:*\${srcdir}:*/:/;
5158s/:*@srcdir@:*/:/;
5159s/^\([^=]*=[ ]*\):*/\1/;
5160s/:*$//;
5161s/^[^=]*=[ ]*$//;
5162}'
c906108c
SS
5163fi
5164
c906108c
SS
5165DEFS=-DHAVE_CONFIG_H
5166
b7026657
AC
5167ac_libobjs=
5168ac_ltlibobjs=
5169for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5170 # 1. Remove the extension, and $U if already installed.
5171 ac_i=`echo "$ac_i" |
5172 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5173 # 2. Add them.
5174 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5175 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5176done
5177LIBOBJS=$ac_libobjs
c906108c 5178
b7026657
AC
5179LTLIBOBJS=$ac_ltlibobjs
5180
5181
5182
5183: ${CONFIG_STATUS=./config.status}
5184ac_clean_files_save=$ac_clean_files
5185ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5186{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5187echo "$as_me: creating $CONFIG_STATUS" >&6;}
5188cat >$CONFIG_STATUS <<_ACEOF
5189#! $SHELL
5190# Generated by $as_me.
c906108c 5191# Run this file to recreate the current configuration.
c906108c 5192# Compiler output produced by configure, useful for debugging
b7026657 5193# configure, is in config.log if it exists.
c906108c 5194
b7026657
AC
5195debug=false
5196ac_cs_recheck=false
5197ac_cs_silent=false
5198SHELL=\${CONFIG_SHELL-$SHELL}
5199_ACEOF
5200
5201cat >>$CONFIG_STATUS <<\_ACEOF
5202## --------------------- ##
5203## M4sh Initialization. ##
5204## --------------------- ##
5205
5206# Be Bourne compatible
5207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5208 emulate sh
5209 NULLCMD=:
5210 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5211 # is contrary to our usage. Disable this feature.
5212 alias -g '${1+"$@"}'='"$@"'
5213elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5214 set -o posix
5215fi
5216DUALCASE=1; export DUALCASE # for MKS sh
5217
5218# Support unset when possible.
5219if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220 as_unset=unset
5221else
5222 as_unset=false
5223fi
5224
5225
5226# Work around bugs in pre-3.0 UWIN ksh.
5227$as_unset ENV MAIL MAILPATH
5228PS1='$ '
5229PS2='> '
5230PS4='+ '
5231
5232# NLS nuisances.
5233for as_var in \
5234 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5235 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5236 LC_TELEPHONE LC_TIME
c906108c 5237do
b7026657
AC
5238 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5239 eval $as_var=C; export $as_var
5240 else
5241 $as_unset $as_var
5242 fi
c906108c
SS
5243done
5244
b7026657
AC
5245# Required to use basename.
5246if expr a : '\(a\)' >/dev/null 2>&1; then
5247 as_expr=expr
5248else
5249 as_expr=false
5250fi
5251
5252if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5253 as_basename=basename
5254else
5255 as_basename=false
5256fi
c906108c 5257
c906108c 5258
b7026657
AC
5259# Name of the executable.
5260as_me=`$as_basename "$0" ||
5261$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5262 X"$0" : 'X\(//\)$' \| \
5263 X"$0" : 'X\(/\)$' \| \
5264 . : '\(.\)' 2>/dev/null ||
5265echo X/"$0" |
5266 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5267 /^X\/\(\/\/\)$/{ s//\1/; q; }
5268 /^X\/\(\/\).*/{ s//\1/; q; }
5269 s/.*/./; q'`
c906108c 5270
b7026657
AC
5271
5272# PATH needs CR, and LINENO needs CR and PATH.
5273# Avoid depending upon Character Ranges.
5274as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5275as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5276as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5277as_cr_digits='0123456789'
5278as_cr_alnum=$as_cr_Letters$as_cr_digits
5279
5280# The user is always right.
5281if test "${PATH_SEPARATOR+set}" != set; then
5282 echo "#! /bin/sh" >conf$$.sh
5283 echo "exit 0" >>conf$$.sh
5284 chmod +x conf$$.sh
5285 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5286 PATH_SEPARATOR=';'
c906108c 5287 else
b7026657
AC
5288 PATH_SEPARATOR=:
5289 fi
5290 rm -f conf$$.sh
5291fi
5292
5293
5294 as_lineno_1=$LINENO
5295 as_lineno_2=$LINENO
5296 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5297 test "x$as_lineno_1" != "x$as_lineno_2" &&
5298 test "x$as_lineno_3" = "x$as_lineno_2" || {
5299 # Find who we are. Look in the path if we contain no path at all
5300 # relative or not.
5301 case $0 in
5302 *[\\/]* ) as_myself=$0 ;;
5303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5309done
5310
5311 ;;
5312 esac
5313 # We did not find ourselves, most probably we were run as `sh COMMAND'
5314 # in which case we are not to be found in the path.
5315 if test "x$as_myself" = x; then
5316 as_myself=$0
5317 fi
5318 if test ! -f "$as_myself"; then
5319 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5320echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5321 { (exit 1); exit 1; }; }
c906108c 5322 fi
b7026657
AC
5323 case $CONFIG_SHELL in
5324 '')
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for as_base in sh bash ksh sh5; do
5331 case $as_dir in
5332 /*)
5333 if ("$as_dir/$as_base" -c '
5334 as_lineno_1=$LINENO
5335 as_lineno_2=$LINENO
5336 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5337 test "x$as_lineno_1" != "x$as_lineno_2" &&
5338 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5339 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5340 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5341 CONFIG_SHELL=$as_dir/$as_base
5342 export CONFIG_SHELL
5343 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5344 fi;;
5345 esac
5346 done
5347done
5348;;
5349 esac
5350
5351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5352 # uniformly replaced by the line number. The first 'sed' inserts a
5353 # line-number line before each line; the second 'sed' does the real
5354 # work. The second script uses 'N' to pair each line-number line
5355 # with the numbered line, and appends trailing '-' during
5356 # substitution so that $LINENO is not a special case at line end.
5357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5358 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5359 sed '=' <$as_myself |
5360 sed '
5361 N
5362 s,$,-,
5363 : loop
5364 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5365 t loop
5366 s,-$,,
5367 s,^['$as_cr_digits']*\n,,
5368 ' >$as_me.lineno &&
5369 chmod +x $as_me.lineno ||
5370 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5371echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5372 { (exit 1); exit 1; }; }
5373
5374 # Don't try to exec as it changes $[0], causing all sort of problems
5375 # (the dirname of $[0] is not the place where we might find the
5376 # original and so on. Autoconf is especially sensible to this).
5377 . ./$as_me.lineno
5378 # Exit status is that of the last command.
5379 exit
5380}
5381
5382
5383case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5384 *c*,-n*) ECHO_N= ECHO_C='
5385' ECHO_T=' ' ;;
5386 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5387 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5388esac
5389
5390if expr a : '\(a\)' >/dev/null 2>&1; then
5391 as_expr=expr
5392else
5393 as_expr=false
5394fi
5395
5396rm -f conf$$ conf$$.exe conf$$.file
5397echo >conf$$.file
5398if ln -s conf$$.file conf$$ 2>/dev/null; then
5399 # We could just check for DJGPP; but this test a) works b) is more generic
5400 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5401 if test -f conf$$.exe; then
5402 # Don't use ln at all; we don't have any links
5403 as_ln_s='cp -p'
c906108c 5404 else
b7026657 5405 as_ln_s='ln -s'
c906108c 5406 fi
b7026657
AC
5407elif ln conf$$.file conf$$ 2>/dev/null; then
5408 as_ln_s=ln
5409else
5410 as_ln_s='cp -p'
5411fi
5412rm -f conf$$ conf$$.exe conf$$.file
5413
5414if mkdir -p . 2>/dev/null; then
5415 as_mkdir_p=:
5416else
5417 test -d ./-p && rmdir ./-p
5418 as_mkdir_p=false
5419fi
5420
5421as_executable_p="test -f"
5422
5423# Sed expression to map a string onto a valid CPP name.
5424as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5425
5426# Sed expression to map a string onto a valid variable name.
5427as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5428
5429
5430# IFS
5431# We need space, tab and new line, in precisely that order.
5432as_nl='
5433'
5434IFS=" $as_nl"
5435
5436# CDPATH.
5437$as_unset CDPATH
5438
5439exec 6>&1
5440
5441# Open the log real soon, to keep \$[0] and so on meaningful, and to
5442# report actual input values of CONFIG_FILES etc. instead of their
5443# values after options handling. Logging --version etc. is OK.
5444exec 5>>config.log
5445{
5446 echo
5447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5448## Running $as_me. ##
5449_ASBOX
5450} >&5
5451cat >&5 <<_CSEOF
5452
5453This file was extended by $as_me, which was
5454generated by GNU Autoconf 2.59. Invocation command line was
5455
5456 CONFIG_FILES = $CONFIG_FILES
5457 CONFIG_HEADERS = $CONFIG_HEADERS
5458 CONFIG_LINKS = $CONFIG_LINKS
5459 CONFIG_COMMANDS = $CONFIG_COMMANDS
5460 $ $0 $@
5461
5462_CSEOF
5463echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5464echo >&5
5465_ACEOF
5466
5467# Files that config.status was made for.
5468if test -n "$ac_config_files"; then
5469 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5470fi
5471
5472if test -n "$ac_config_headers"; then
5473 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5474fi
5475
5476if test -n "$ac_config_links"; then
5477 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5478fi
5479
5480if test -n "$ac_config_commands"; then
5481 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5482fi
5483
5484cat >>$CONFIG_STATUS <<\_ACEOF
5485
5486ac_cs_usage="\
5487\`$as_me' instantiates files from templates according to the
5488current configuration.
5489
5490Usage: $0 [OPTIONS] [FILE]...
5491
5492 -h, --help print this help, then exit
5493 -V, --version print version number, then exit
5494 -q, --quiet do not print progress messages
5495 -d, --debug don't remove temporary files
5496 --recheck update $as_me by reconfiguring in the same conditions
5497 --file=FILE[:TEMPLATE]
5498 instantiate the configuration file FILE
5499 --header=FILE[:TEMPLATE]
5500 instantiate the configuration header FILE
5501
5502Configuration files:
5503$config_files
5504
5505Configuration headers:
5506$config_headers
5507
5508Configuration links:
5509$config_links
5510
5511Configuration commands:
5512$config_commands
5513
5514Report bugs to <bug-autoconf@gnu.org>."
5515_ACEOF
5516
5517cat >>$CONFIG_STATUS <<_ACEOF
5518ac_cs_version="\\
5519config.status
5520configured by $0, generated by GNU Autoconf 2.59,
5521 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5522
5523Copyright (C) 2003 Free Software Foundation, Inc.
5524This config.status script is free software; the Free Software Foundation
5525gives unlimited permission to copy, distribute and modify it."
5526srcdir=$srcdir
5527INSTALL="$INSTALL"
5528_ACEOF
5529
5530cat >>$CONFIG_STATUS <<\_ACEOF
5531# If no file are specified by the user, then we need to provide default
5532# value. By we need to know if files were specified by the user.
5533ac_need_defaults=:
5534while test $# != 0
5535do
5536 case $1 in
5537 --*=*)
5538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5540 ac_shift=:
5541 ;;
5542 -*)
5543 ac_option=$1
5544 ac_optarg=$2
5545 ac_shift=shift
5546 ;;
5547 *) # This is not an option, so the user has probably given explicit
5548 # arguments.
5549 ac_option=$1
5550 ac_need_defaults=false;;
5551 esac
5552
5553 case $ac_option in
5554 # Handling of the options.
5555_ACEOF
5556cat >>$CONFIG_STATUS <<\_ACEOF
5557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5558 ac_cs_recheck=: ;;
5559 --version | --vers* | -V )
5560 echo "$ac_cs_version"; exit 0 ;;
5561 --he | --h)
5562 # Conflict between --help and --header
5563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5564Try \`$0 --help' for more information." >&5
5565echo "$as_me: error: ambiguous option: $1
5566Try \`$0 --help' for more information." >&2;}
5567 { (exit 1); exit 1; }; };;
5568 --help | --hel | -h )
5569 echo "$ac_cs_usage"; exit 0 ;;
5570 --debug | --d* | -d )
5571 debug=: ;;
5572 --file | --fil | --fi | --f )
5573 $ac_shift
5574 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5575 ac_need_defaults=false;;
5576 --header | --heade | --head | --hea )
5577 $ac_shift
5578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5579 ac_need_defaults=false;;
5580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5582 ac_cs_silent=: ;;
5583
5584 # This is an error.
5585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5586Try \`$0 --help' for more information." >&5
5587echo "$as_me: error: unrecognized option: $1
5588Try \`$0 --help' for more information." >&2;}
5589 { (exit 1); exit 1; }; } ;;
5590
5591 *) ac_config_targets="$ac_config_targets $1" ;;
5592
5593 esac
5594 shift
c906108c 5595done
b7026657
AC
5596
5597ac_configure_extra_args=
5598
5599if $ac_cs_silent; then
5600 exec 6>/dev/null
5601 ac_configure_extra_args="$ac_configure_extra_args --silent"
5602fi
5603
5604_ACEOF
5605cat >>$CONFIG_STATUS <<_ACEOF
5606if \$ac_cs_recheck; then
5607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 5609fi
c906108c 5610
b7026657 5611_ACEOF
c906108c 5612
b7026657
AC
5613
5614
5615
5616
5617cat >>$CONFIG_STATUS <<\_ACEOF
5618for ac_config_target in $ac_config_targets
5619do
5620 case "$ac_config_target" in
5621 # Handling of arguments.
5622 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5623 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5624 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5625 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
5626 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5627 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
5628 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5630echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5631 { (exit 1); exit 1; }; };;
c906108c 5632 esac
b7026657 5633done
c906108c 5634
b7026657
AC
5635# If the user did not use the arguments to specify the items to instantiate,
5636# then the envvar interface is used. Set only those that are not.
5637# We use the long form for the default assignment because of an extremely
5638# bizarre bug on SunOS 4.1.3.
5639if $ac_need_defaults; then
5640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5642 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5644fi
5645
5646# Have a temporary directory for convenience. Make it in the build tree
5647# simply because there is no reason to put it here, and in addition,
5648# creating and moving files from /tmp can sometimes cause problems.
5649# Create a temporary directory, and hook for its removal unless debugging.
5650$debug ||
5651{
5652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5653 trap '{ (exit 1); exit 1; }' 1 2 13 15
5654}
c906108c 5655
b7026657
AC
5656# Create a (secure) tmp directory for tmp files.
5657
5658{
5659 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5660 test -n "$tmp" && test -d "$tmp"
5661} ||
5662{
5663 tmp=./confstat$$-$RANDOM
5664 (umask 077 && mkdir $tmp)
5665} ||
5666{
5667 echo "$me: cannot create a temporary directory in ." >&2
5668 { (exit 1); exit 1; }
5669}
5670
5671_ACEOF
5672
5673cat >>$CONFIG_STATUS <<_ACEOF
5674
5675#
5676# CONFIG_FILES section.
5677#
5678
5679# No need to generate the scripts if there are no CONFIG_FILES.
5680# This happens for instance when ./config.status config.h
5681if test -n "\$CONFIG_FILES"; then
5682 # Protect against being on the right side of a sed subst in config.status.
5683 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5684 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
5685s,@SHELL@,$SHELL,;t t
5686s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5687s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5688s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5689s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5690s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5691s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5692s,@exec_prefix@,$exec_prefix,;t t
5693s,@prefix@,$prefix,;t t
5694s,@program_transform_name@,$program_transform_name,;t t
5695s,@bindir@,$bindir,;t t
5696s,@sbindir@,$sbindir,;t t
5697s,@libexecdir@,$libexecdir,;t t
5698s,@datadir@,$datadir,;t t
5699s,@sysconfdir@,$sysconfdir,;t t
5700s,@sharedstatedir@,$sharedstatedir,;t t
5701s,@localstatedir@,$localstatedir,;t t
5702s,@libdir@,$libdir,;t t
5703s,@includedir@,$includedir,;t t
5704s,@oldincludedir@,$oldincludedir,;t t
5705s,@infodir@,$infodir,;t t
5706s,@mandir@,$mandir,;t t
5707s,@build_alias@,$build_alias,;t t
5708s,@host_alias@,$host_alias,;t t
5709s,@target_alias@,$target_alias,;t t
5710s,@DEFS@,$DEFS,;t t
5711s,@ECHO_C@,$ECHO_C,;t t
5712s,@ECHO_N@,$ECHO_N,;t t
5713s,@ECHO_T@,$ECHO_T,;t t
5714s,@LIBS@,$LIBS,;t t
35695fd6
AC
5715s,@sim_environment@,$sim_environment,;t t
5716s,@sim_alignment@,$sim_alignment,;t t
5717s,@sim_assert@,$sim_assert,;t t
5718s,@sim_bitsize@,$sim_bitsize,;t t
5719s,@sim_endian@,$sim_endian,;t t
5720s,@sim_hostendian@,$sim_hostendian,;t t
5721s,@sim_float@,$sim_float,;t t
5722s,@sim_scache@,$sim_scache,;t t
5723s,@sim_default_model@,$sim_default_model,;t t
5724s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5725s,@sim_hw_objs@,$sim_hw_objs,;t t
5726s,@sim_hw@,$sim_hw,;t t
5727s,@sim_inline@,$sim_inline,;t t
5728s,@sim_packages@,$sim_packages,;t t
5729s,@sim_regparm@,$sim_regparm,;t t
5730s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5731s,@sim_smp@,$sim_smp,;t t
5732s,@sim_stdcall@,$sim_stdcall,;t t
5733s,@sim_xor_endian@,$sim_xor_endian,;t t
5734s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5735s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
5736s,@build@,$build,;t t
5737s,@build_cpu@,$build_cpu,;t t
5738s,@build_vendor@,$build_vendor,;t t
5739s,@build_os@,$build_os,;t t
5740s,@host@,$host,;t t
5741s,@host_cpu@,$host_cpu,;t t
5742s,@host_vendor@,$host_vendor,;t t
5743s,@host_os@,$host_os,;t t
5744s,@target@,$target,;t t
5745s,@target_cpu@,$target_cpu,;t t
5746s,@target_vendor@,$target_vendor,;t t
5747s,@target_os@,$target_os,;t t
5748s,@CC@,$CC,;t t
5749s,@CFLAGS@,$CFLAGS,;t t
5750s,@LDFLAGS@,$LDFLAGS,;t t
5751s,@CPPFLAGS@,$CPPFLAGS,;t t
5752s,@ac_ct_CC@,$ac_ct_CC,;t t
5753s,@EXEEXT@,$EXEEXT,;t t
5754s,@OBJEXT@,$OBJEXT,;t t
5755s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5756s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5757s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5758s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5759s,@HDEFINES@,$HDEFINES,;t t
5760s,@AR@,$AR,;t t
5761s,@RANLIB@,$RANLIB,;t t
5762s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
2f0122dc
DJ
5763s,@USE_NLS@,$USE_NLS,;t t
5764s,@LIBINTL@,$LIBINTL,;t t
5765s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5766s,@INCINTL@,$INCINTL,;t t
5767s,@XGETTEXT@,$XGETTEXT,;t t
5768s,@GMSGFMT@,$GMSGFMT,;t t
5769s,@POSUB@,$POSUB,;t t
5770s,@CATALOGS@,$CATALOGS,;t t
5771s,@DATADIRNAME@,$DATADIRNAME,;t t
5772s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5773s,@GENCAT@,$GENCAT,;t t
5774s,@CATOBJEXT@,$CATOBJEXT,;t t
b7026657
AC
5775s,@CPP@,$CPP,;t t
5776s,@EGREP@,$EGREP,;t t
b7026657
AC
5777s,@MAINT@,$MAINT,;t t
5778s,@sim_bswap@,$sim_bswap,;t t
5779s,@sim_cflags@,$sim_cflags,;t t
5780s,@sim_debug@,$sim_debug,;t t
5781s,@sim_stdio@,$sim_stdio,;t t
5782s,@sim_trace@,$sim_trace,;t t
5783s,@sim_profile@,$sim_profile,;t t
6efef468
JM
5784s,@PKGVERSION@,$PKGVERSION,;t t
5785s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5786s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b7026657
AC
5787s,@cgen_breaks@,$cgen_breaks,;t t
5788s,@LIBOBJS@,$LIBOBJS,;t t
5789s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5790CEOF
5791
5792_ACEOF
5793
5794 cat >>$CONFIG_STATUS <<\_ACEOF
5795 # Split the substitutions into bite-sized pieces for seds with
5796 # small command number limits, like on Digital OSF/1 and HP-UX.
5797 ac_max_sed_lines=48
5798 ac_sed_frag=1 # Number of current file.
5799 ac_beg=1 # First line for current file.
5800 ac_end=$ac_max_sed_lines # Line after last line for current file.
5801 ac_more_lines=:
5802 ac_sed_cmds=
5803 while $ac_more_lines; do
5804 if test $ac_beg -gt 1; then
5805 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5806 else
5807 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5808 fi
5809 if test ! -s $tmp/subs.frag; then
5810 ac_more_lines=false
5811 else
5812 # The purpose of the label and of the branching condition is to
5813 # speed up the sed processing (if there are no `@' at all, there
5814 # is no need to browse any of the substitutions).
5815 # These are the two extra sed commands mentioned above.
5816 (echo ':t
5817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5818 if test -z "$ac_sed_cmds"; then
5819 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5820 else
5821 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5822 fi
5823 ac_sed_frag=`expr $ac_sed_frag + 1`
5824 ac_beg=$ac_end
5825 ac_end=`expr $ac_end + $ac_max_sed_lines`
5826 fi
5827 done
5828 if test -z "$ac_sed_cmds"; then
5829 ac_sed_cmds=cat
c906108c 5830 fi
b7026657 5831fi # test -n "$CONFIG_FILES"
c906108c 5832
b7026657
AC
5833_ACEOF
5834cat >>$CONFIG_STATUS <<\_ACEOF
5835for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5837 case $ac_file in
5838 - | *:- | *:-:* ) # input from stdin
5839 cat >$tmp/stdin
5840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5844 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
5845 esac
5846
b7026657
AC
5847 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5848 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5850 X"$ac_file" : 'X\(//\)[^/]' \| \
5851 X"$ac_file" : 'X\(//\)$' \| \
5852 X"$ac_file" : 'X\(/\)' \| \
5853 . : '\(.\)' 2>/dev/null ||
5854echo X"$ac_file" |
5855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5857 /^X\(\/\/\)$/{ s//\1/; q; }
5858 /^X\(\/\).*/{ s//\1/; q; }
5859 s/.*/./; q'`
5860 { if $as_mkdir_p; then
5861 mkdir -p "$ac_dir"
5862 else
5863 as_dir="$ac_dir"
5864 as_dirs=
5865 while test ! -d "$as_dir"; do
5866 as_dirs="$as_dir $as_dirs"
5867 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5869 X"$as_dir" : 'X\(//\)[^/]' \| \
5870 X"$as_dir" : 'X\(//\)$' \| \
5871 X"$as_dir" : 'X\(/\)' \| \
5872 . : '\(.\)' 2>/dev/null ||
5873echo X"$as_dir" |
5874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5876 /^X\(\/\/\)$/{ s//\1/; q; }
5877 /^X\(\/\).*/{ s//\1/; q; }
5878 s/.*/./; q'`
5879 done
5880 test ! -n "$as_dirs" || mkdir $as_dirs
5881 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5882echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5883 { (exit 1); exit 1; }; }; }
c906108c 5884
b7026657
AC
5885 ac_builddir=.
5886
5887if test "$ac_dir" != .; then
5888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5889 # A "../" for each directory in $ac_dir_suffix.
5890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5891else
5892 ac_dir_suffix= ac_top_builddir=
5893fi
5894
5895case $srcdir in
5896 .) # No --srcdir option. We are building in place.
5897 ac_srcdir=.
5898 if test -z "$ac_top_builddir"; then
5899 ac_top_srcdir=.
5900 else
5901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5902 fi ;;
5903 [\\/]* | ?:[\\/]* ) # Absolute path.
5904 ac_srcdir=$srcdir$ac_dir_suffix;
5905 ac_top_srcdir=$srcdir ;;
5906 *) # Relative path.
5907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5909esac
5910
5911# Do not use `cd foo && pwd` to compute absolute paths, because
5912# the directories may not exist.
5913case `pwd` in
5914.) ac_abs_builddir="$ac_dir";;
5915*)
5916 case "$ac_dir" in
5917 .) ac_abs_builddir=`pwd`;;
5918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5920 esac;;
5921esac
5922case $ac_abs_builddir in
5923.) ac_abs_top_builddir=${ac_top_builddir}.;;
5924*)
5925 case ${ac_top_builddir}. in
5926 .) ac_abs_top_builddir=$ac_abs_builddir;;
5927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5929 esac;;
5930esac
5931case $ac_abs_builddir in
5932.) ac_abs_srcdir=$ac_srcdir;;
5933*)
5934 case $ac_srcdir in
5935 .) ac_abs_srcdir=$ac_abs_builddir;;
5936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5938 esac;;
5939esac
5940case $ac_abs_builddir in
5941.) ac_abs_top_srcdir=$ac_top_srcdir;;
5942*)
5943 case $ac_top_srcdir in
5944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5947 esac;;
5948esac
5949
5950
5951 case $INSTALL in
5952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5953 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
5954 esac
5955
b7026657
AC
5956 if test x"$ac_file" != x-; then
5957 { echo "$as_me:$LINENO: creating $ac_file" >&5
5958echo "$as_me: creating $ac_file" >&6;}
5959 rm -f "$ac_file"
5960 fi
5961 # Let's still pretend it is `configure' which instantiates (i.e., don't
5962 # use $as_me), people would be surprised to read:
5963 # /* config.h. Generated by config.status. */
5964 if test x"$ac_file" = x-; then
5965 configure_input=
5966 else
5967 configure_input="$ac_file. "
5968 fi
5969 configure_input=$configure_input"Generated from `echo $ac_file_in |
5970 sed 's,.*/,,'` by configure."
5971
5972 # First look for the input files in the build tree, otherwise in the
5973 # src tree.
5974 ac_file_inputs=`IFS=:
5975 for f in $ac_file_in; do
5976 case $f in
5977 -) echo $tmp/stdin ;;
5978 [\\/$]*)
5979 # Absolute (can't be DOS-style, as IFS=:)
5980 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5981echo "$as_me: error: cannot find input file: $f" >&2;}
5982 { (exit 1); exit 1; }; }
5983 echo "$f";;
5984 *) # Relative
5985 if test -f "$f"; then
5986 # Build tree
5987 echo "$f"
5988 elif test -f "$srcdir/$f"; then
5989 # Source tree
5990 echo "$srcdir/$f"
5991 else
5992 # /dev/null tree
5993 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5994echo "$as_me: error: cannot find input file: $f" >&2;}
5995 { (exit 1); exit 1; }; }
5996 fi;;
5997 esac
5998 done` || { (exit 1); exit 1; }
5999_ACEOF
6000cat >>$CONFIG_STATUS <<_ACEOF
6001 sed "$ac_vpsub
6002$extrasub
6003_ACEOF
6004cat >>$CONFIG_STATUS <<\_ACEOF
6005:t
6006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6007s,@configure_input@,$configure_input,;t t
6008s,@srcdir@,$ac_srcdir,;t t
6009s,@abs_srcdir@,$ac_abs_srcdir,;t t
6010s,@top_srcdir@,$ac_top_srcdir,;t t
6011s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6012s,@builddir@,$ac_builddir,;t t
6013s,@abs_builddir@,$ac_abs_builddir,;t t
6014s,@top_builddir@,$ac_top_builddir,;t t
6015s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6016s,@INSTALL@,$ac_INSTALL,;t t
6017" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6018 rm -f $tmp/stdin
6019 if test x"$ac_file" != x-; then
6020 mv $tmp/out $ac_file
6021 else
6022 cat $tmp/out
6023 rm -f $tmp/out
6024 fi
6025
6026done
6027_ACEOF
6028cat >>$CONFIG_STATUS <<\_ACEOF
6029
6030#
6031# CONFIG_HEADER section.
6032#
c906108c
SS
6033
6034# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6035# NAME is the cpp macro being defined and VALUE is the value it is being given.
6036#
6037# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
6038ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6039ac_dB='[ ].*$,\1#\2'
6040ac_dC=' '
6041ac_dD=',;t'
6042# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6043ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6044ac_uB='$,\1#\2define\3'
c906108c 6045ac_uC=' '
b7026657
AC
6046ac_uD=',;t'
6047
6048for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 6049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
6050 case $ac_file in
6051 - | *:- | *:-:* ) # input from stdin
6052 cat >$tmp/stdin
6053 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6055 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6057 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
6058 esac
6059
b7026657
AC
6060 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6061echo "$as_me: creating $ac_file" >&6;}
6062
6063 # First look for the input files in the build tree, otherwise in the
6064 # src tree.
6065 ac_file_inputs=`IFS=:
6066 for f in $ac_file_in; do
6067 case $f in
6068 -) echo $tmp/stdin ;;
6069 [\\/$]*)
6070 # Absolute (can't be DOS-style, as IFS=:)
6071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6072echo "$as_me: error: cannot find input file: $f" >&2;}
6073 { (exit 1); exit 1; }; }
6074 # Do quote $f, to prevent DOS paths from being IFS'd.
6075 echo "$f";;
6076 *) # Relative
6077 if test -f "$f"; then
6078 # Build tree
6079 echo "$f"
6080 elif test -f "$srcdir/$f"; then
6081 # Source tree
6082 echo "$srcdir/$f"
6083 else
6084 # /dev/null tree
6085 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6086echo "$as_me: error: cannot find input file: $f" >&2;}
6087 { (exit 1); exit 1; }; }
6088 fi;;
6089 esac
6090 done` || { (exit 1); exit 1; }
6091 # Remove the trailing spaces.
6092 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6093
6094_ACEOF
6095
6096# Transform confdefs.h into two sed scripts, `conftest.defines' and
6097# `conftest.undefs', that substitutes the proper values into
6098# config.h.in to produce config.h. The first handles `#define'
6099# templates, and the second `#undef' templates.
6100# And first: Protect against being on the right side of a sed subst in
6101# config.status. Protect against being in an unquoted here document
6102# in config.status.
6103rm -f conftest.defines conftest.undefs
6104# Using a here document instead of a string reduces the quoting nightmare.
6105# Putting comments in sed scripts is not portable.
6106#
6107# `end' is used to avoid that the second main sed command (meant for
6108# 0-ary CPP macros) applies to n-ary macro definitions.
6109# See the Autoconf documentation for `clear'.
6110cat >confdef2sed.sed <<\_ACEOF
6111s/[\\&,]/\\&/g
6112s,[\\$`],\\&,g
6113t clear
6114: clear
6115s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6116t end
6117s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6118: end
6119_ACEOF
6120# If some macros were called several times there might be several times
6121# the same #defines, which is useless. Nevertheless, we may not want to
6122# sort them, since we want the *last* AC-DEFINE to be honored.
6123uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6124sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6125rm -f confdef2sed.sed
c906108c
SS
6126
6127# This sed command replaces #undef with comments. This is necessary, for
6128# example, in the case of _POSIX_SOURCE, which is predefined and required
6129# on some systems where configure will not decide to define it.
b7026657
AC
6130cat >>conftest.undefs <<\_ACEOF
6131s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6132_ACEOF
6133
6134# Break up conftest.defines because some shells have a limit on the size
6135# of here documents, and old seds have small limits too (100 cmds).
6136echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6137echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6138echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6139echo ' :' >>$CONFIG_STATUS
6140rm -f conftest.tail
6141while grep . conftest.defines >/dev/null
6142do
6143 # Write a limited-size here document to $tmp/defines.sed.
6144 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6145 # Speed up: don't consider the non `#define' lines.
6146 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6147 # Work around the forget-to-reset-the-flag bug.
6148 echo 't clr' >>$CONFIG_STATUS
6149 echo ': clr' >>$CONFIG_STATUS
6150 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6151 echo 'CEOF
6152 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6153 rm -f $tmp/in
6154 mv $tmp/out $tmp/in
6155' >>$CONFIG_STATUS
6156 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6157 rm -f conftest.defines
6158 mv conftest.tail conftest.defines
6159done
6160rm -f conftest.defines
6161echo ' fi # grep' >>$CONFIG_STATUS
6162echo >>$CONFIG_STATUS
c906108c 6163
b7026657
AC
6164# Break up conftest.undefs because some shells have a limit on the size
6165# of here documents, and old seds have small limits too (100 cmds).
6166echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 6167rm -f conftest.tail
b7026657 6168while grep . conftest.undefs >/dev/null
c906108c 6169do
b7026657
AC
6170 # Write a limited-size here document to $tmp/undefs.sed.
6171 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6172 # Speed up: don't consider the non `#undef'
6173 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6174 # Work around the forget-to-reset-the-flag bug.
6175 echo 't clr' >>$CONFIG_STATUS
6176 echo ': clr' >>$CONFIG_STATUS
6177 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 6178 echo 'CEOF
b7026657
AC
6179 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6180 rm -f $tmp/in
6181 mv $tmp/out $tmp/in
6182' >>$CONFIG_STATUS
6183 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6184 rm -f conftest.undefs
6185 mv conftest.tail conftest.undefs
c906108c 6186done
b7026657
AC
6187rm -f conftest.undefs
6188
6189cat >>$CONFIG_STATUS <<\_ACEOF
6190 # Let's still pretend it is `configure' which instantiates (i.e., don't
6191 # use $as_me), people would be surprised to read:
6192 # /* config.h. Generated by config.status. */
6193 if test x"$ac_file" = x-; then
6194 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 6195 else
b7026657 6196 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 6197 fi
b7026657
AC
6198 cat $tmp/in >>$tmp/config.h
6199 rm -f $tmp/in
6200 if test x"$ac_file" != x-; then
6201 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6202 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6203echo "$as_me: $ac_file is unchanged" >&6;}
6204 else
6205 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6207 X"$ac_file" : 'X\(//\)[^/]' \| \
6208 X"$ac_file" : 'X\(//\)$' \| \
6209 X"$ac_file" : 'X\(/\)' \| \
6210 . : '\(.\)' 2>/dev/null ||
6211echo X"$ac_file" |
6212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6214 /^X\(\/\/\)$/{ s//\1/; q; }
6215 /^X\(\/\).*/{ s//\1/; q; }
6216 s/.*/./; q'`
6217 { if $as_mkdir_p; then
6218 mkdir -p "$ac_dir"
6219 else
6220 as_dir="$ac_dir"
6221 as_dirs=
6222 while test ! -d "$as_dir"; do
6223 as_dirs="$as_dir $as_dirs"
6224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6226 X"$as_dir" : 'X\(//\)[^/]' \| \
6227 X"$as_dir" : 'X\(//\)$' \| \
6228 X"$as_dir" : 'X\(/\)' \| \
6229 . : '\(.\)' 2>/dev/null ||
6230echo X"$as_dir" |
6231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6233 /^X\(\/\/\)$/{ s//\1/; q; }
6234 /^X\(\/\).*/{ s//\1/; q; }
6235 s/.*/./; q'`
6236 done
6237 test ! -n "$as_dirs" || mkdir $as_dirs
6238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6240 { (exit 1); exit 1; }; }; }
c906108c 6241
b7026657
AC
6242 rm -f $ac_file
6243 mv $tmp/config.h $ac_file
6244 fi
6245 else
6246 cat $tmp/config.h
6247 rm -f $tmp/config.h
6248 fi
6249done
6250_ACEOF
6251cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 6252
b7026657
AC
6253#
6254# CONFIG_LINKS section.
6255#
c906108c 6256
b7026657
AC
6257for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6258 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6259 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 6260
b7026657
AC
6261 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6262echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
6263
6264 if test ! -r $srcdir/$ac_source; then
b7026657
AC
6265 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6266echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6267 { (exit 1); exit 1; }; }
c906108c
SS
6268 fi
6269 rm -f $ac_dest
6270
6271 # Make relative symlinks.
b7026657
AC
6272 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6273$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6274 X"$ac_dest" : 'X\(//\)[^/]' \| \
6275 X"$ac_dest" : 'X\(//\)$' \| \
6276 X"$ac_dest" : 'X\(/\)' \| \
6277 . : '\(.\)' 2>/dev/null ||
6278echo X"$ac_dest" |
6279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6281 /^X\(\/\/\)$/{ s//\1/; q; }
6282 /^X\(\/\).*/{ s//\1/; q; }
6283 s/.*/./; q'`
6284 { if $as_mkdir_p; then
6285 mkdir -p "$ac_dest_dir"
c906108c 6286 else
b7026657
AC
6287 as_dir="$ac_dest_dir"
6288 as_dirs=
6289 while test ! -d "$as_dir"; do
6290 as_dirs="$as_dir $as_dirs"
6291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6293 X"$as_dir" : 'X\(//\)[^/]' \| \
6294 X"$as_dir" : 'X\(//\)$' \| \
6295 X"$as_dir" : 'X\(/\)' \| \
6296 . : '\(.\)' 2>/dev/null ||
6297echo X"$as_dir" |
6298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6300 /^X\(\/\/\)$/{ s//\1/; q; }
6301 /^X\(\/\).*/{ s//\1/; q; }
6302 s/.*/./; q'`
6303 done
6304 test ! -n "$as_dirs" || mkdir $as_dirs
6305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6306echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6307 { (exit 1); exit 1; }; }; }
6308
6309 ac_builddir=.
6310
6311if test "$ac_dest_dir" != .; then
6312 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6313 # A "../" for each directory in $ac_dir_suffix.
6314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6315else
6316 ac_dir_suffix= ac_top_builddir=
6317fi
6318
6319case $srcdir in
6320 .) # No --srcdir option. We are building in place.
6321 ac_srcdir=.
6322 if test -z "$ac_top_builddir"; then
6323 ac_top_srcdir=.
6324 else
6325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6326 fi ;;
6327 [\\/]* | ?:[\\/]* ) # Absolute path.
6328 ac_srcdir=$srcdir$ac_dir_suffix;
6329 ac_top_srcdir=$srcdir ;;
6330 *) # Relative path.
6331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6333esac
6334
6335# Do not use `cd foo && pwd` to compute absolute paths, because
6336# the directories may not exist.
6337case `pwd` in
6338.) ac_abs_builddir="$ac_dest_dir";;
6339*)
6340 case "$ac_dest_dir" in
6341 .) ac_abs_builddir=`pwd`;;
6342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6343 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6344 esac;;
6345esac
6346case $ac_abs_builddir in
6347.) ac_abs_top_builddir=${ac_top_builddir}.;;
6348*)
6349 case ${ac_top_builddir}. in
6350 .) ac_abs_top_builddir=$ac_abs_builddir;;
6351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6353 esac;;
6354esac
6355case $ac_abs_builddir in
6356.) ac_abs_srcdir=$ac_srcdir;;
6357*)
6358 case $ac_srcdir in
6359 .) ac_abs_srcdir=$ac_abs_builddir;;
6360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6362 esac;;
6363esac
6364case $ac_abs_builddir in
6365.) ac_abs_top_srcdir=$ac_top_srcdir;;
6366*)
6367 case $ac_top_srcdir in
6368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6371 esac;;
6372esac
c906108c 6373
b7026657
AC
6374
6375 case $srcdir in
6376 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6377 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
6378 esac
6379
b7026657
AC
6380 # Try a symlink, then a hard link, then a copy.
6381 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6382 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6383 cp -p $srcdir/$ac_source $ac_dest ||
6384 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6385echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6386 { (exit 1); exit 1; }; }
c906108c 6387done
b7026657
AC
6388_ACEOF
6389cat >>$CONFIG_STATUS <<\_ACEOF
6390
6391#
6392# CONFIG_COMMANDS section.
6393#
6394for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6395 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6396 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6397 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6398$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6399 X"$ac_dest" : 'X\(//\)[^/]' \| \
6400 X"$ac_dest" : 'X\(//\)$' \| \
6401 X"$ac_dest" : 'X\(/\)' \| \
6402 . : '\(.\)' 2>/dev/null ||
6403echo X"$ac_dest" |
6404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6406 /^X\(\/\/\)$/{ s//\1/; q; }
6407 /^X\(\/\).*/{ s//\1/; q; }
6408 s/.*/./; q'`
6409 { if $as_mkdir_p; then
6410 mkdir -p "$ac_dir"
6411 else
6412 as_dir="$ac_dir"
6413 as_dirs=
6414 while test ! -d "$as_dir"; do
6415 as_dirs="$as_dir $as_dirs"
6416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6417$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6418 X"$as_dir" : 'X\(//\)[^/]' \| \
6419 X"$as_dir" : 'X\(//\)$' \| \
6420 X"$as_dir" : 'X\(/\)' \| \
6421 . : '\(.\)' 2>/dev/null ||
6422echo X"$as_dir" |
6423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6425 /^X\(\/\/\)$/{ s//\1/; q; }
6426 /^X\(\/\).*/{ s//\1/; q; }
6427 s/.*/./; q'`
6428 done
6429 test ! -n "$as_dirs" || mkdir $as_dirs
6430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6431echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6432 { (exit 1); exit 1; }; }; }
6433
6434 ac_builddir=.
6435
6436if test "$ac_dir" != .; then
6437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6438 # A "../" for each directory in $ac_dir_suffix.
6439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6440else
6441 ac_dir_suffix= ac_top_builddir=
6442fi
c906108c 6443
b7026657
AC
6444case $srcdir in
6445 .) # No --srcdir option. We are building in place.
6446 ac_srcdir=.
6447 if test -z "$ac_top_builddir"; then
6448 ac_top_srcdir=.
6449 else
6450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6451 fi ;;
6452 [\\/]* | ?:[\\/]* ) # Absolute path.
6453 ac_srcdir=$srcdir$ac_dir_suffix;
6454 ac_top_srcdir=$srcdir ;;
6455 *) # Relative path.
6456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6458esac
6459
6460# Do not use `cd foo && pwd` to compute absolute paths, because
6461# the directories may not exist.
6462case `pwd` in
6463.) ac_abs_builddir="$ac_dir";;
6464*)
6465 case "$ac_dir" in
6466 .) ac_abs_builddir=`pwd`;;
6467 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6468 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6469 esac;;
6470esac
6471case $ac_abs_builddir in
6472.) ac_abs_top_builddir=${ac_top_builddir}.;;
6473*)
6474 case ${ac_top_builddir}. in
6475 .) ac_abs_top_builddir=$ac_abs_builddir;;
6476 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6477 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6478 esac;;
6479esac
6480case $ac_abs_builddir in
6481.) ac_abs_srcdir=$ac_srcdir;;
6482*)
6483 case $ac_srcdir in
6484 .) ac_abs_srcdir=$ac_abs_builddir;;
6485 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6486 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6487 esac;;
6488esac
6489case $ac_abs_builddir in
6490.) ac_abs_top_srcdir=$ac_top_srcdir;;
6491*)
6492 case $ac_top_srcdir in
6493 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6494 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6495 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6496 esac;;
6497esac
6498
6499
6500 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6501echo "$as_me: executing $ac_dest commands" >&6;}
6502 case $ac_dest in
38f48d72
AC
6503 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6504 rm -f Makesim1.tmp Makesim2.tmp Makefile
6505 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6506 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6507 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
6508 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6509 <Makefile.sim >Makefile
38f48d72 6510 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 6511 ;;
38f48d72 6512 stamp-h ) echo > stamp-h ;;
b7026657
AC
6513 esac
6514done
6515_ACEOF
c906108c 6516
b7026657
AC
6517cat >>$CONFIG_STATUS <<\_ACEOF
6518
6519{ (exit 0); exit 0; }
6520_ACEOF
c906108c 6521chmod +x $CONFIG_STATUS
b7026657
AC
6522ac_clean_files=$ac_clean_files_save
6523
6524
6525# configure is writing to config.log, and then calls config.status.
6526# config.status does its own redirection, appending to config.log.
6527# Unfortunately, on DOS this fails, as config.log is still kept open
6528# by configure, so config.status won't be able to write to it; its
6529# output is simply discarded. So we exec the FD to /dev/null,
6530# effectively closing config.log, so it can be properly (re)opened and
6531# appended to by config.status. When coming back to configure, we
6532# need to make the FD available again.
6533if test "$no_create" != yes; then
6534 ac_cs_success=:
6535 ac_config_status_args=
6536 test "$silent" = yes &&
6537 ac_config_status_args="$ac_config_status_args --quiet"
6538 exec 5>/dev/null
6539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6540 exec 5>>config.log
6541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6542 # would make configure fail if this is the last instruction.
6543 $ac_cs_success || { (exit 1); exit 1; }
6544fi
c906108c
SS
6545
6546
This page took 0.739506 seconds and 4 git commands to generate.