*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
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
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -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
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
bec39cab
AC
225as_executable_p="test -f"
226
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'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="gdb.base"
275ac_subdirs_all="$ac_subdirs_all gdb.hp"
276ac_subdirs_all="$ac_subdirs_all gdb.stabs"
277ac_subdirs_all="$ac_subdirs_all gdb.gdbtk"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os subdirs RPATH_ENVVAR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
316ac_subst_files=''
c906108c
SS
317
318# Initialize some variables set by options.
bec39cab
AC
319ac_init_help=
320ac_init_version=false
c906108c
SS
321# The variables have the same names as the options, with
322# dashes changed to underlines.
bec39cab 323cache_file=/dev/null
c906108c 324exec_prefix=NONE
c906108c 325no_create=
c906108c
SS
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
c906108c
SS
334verbose=
335x_includes=NONE
336x_libraries=NONE
bec39cab
AC
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
c906108c
SS
356ac_prev=
357for ac_option
358do
c906108c
SS
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
bec39cab 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
bec39cab 370 case $ac_option in
c906108c
SS
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 375 bindir=$ac_optarg ;;
c906108c
SS
376
377 -build | --build | --buil | --bui | --bu)
bec39cab 378 ac_prev=build_alias ;;
c906108c 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 380 build_alias=$ac_optarg ;;
c906108c
SS
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
c906108c
SS
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
bec39cab 396 datadir=$ac_optarg ;;
c906108c
SS
397
398 -disable-* | --disable-*)
bec39cab 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 400 # Reject names that are not valid shell variable names.
bec39cab
AC
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
c906108c
SS
406
407 -enable-* | --enable-*)
bec39cab 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 409 # Reject names that are not valid shell variable names.
bec39cab
AC
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
416 *) ac_optarg=yes ;;
417 esac
bec39cab 418 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
bec39cab 427 exec_prefix=$ac_optarg ;;
c906108c
SS
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
bec39cab
AC
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
c906108c
SS
439
440 -host | --host | --hos | --ho)
bec39cab 441 ac_prev=host_alias ;;
c906108c 442 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 443 host_alias=$ac_optarg ;;
c906108c
SS
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 450 includedir=$ac_optarg ;;
c906108c
SS
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 455 infodir=$ac_optarg ;;
c906108c
SS
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 460 libdir=$ac_optarg ;;
c906108c
SS
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
bec39cab 467 libexecdir=$ac_optarg ;;
c906108c
SS
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 476 localstatedir=$ac_optarg ;;
c906108c
SS
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 481 mandir=$ac_optarg ;;
c906108c
SS
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 488 | --no-cr | --no-c | -n)
c906108c
SS
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 502 oldincludedir=$ac_optarg ;;
c906108c
SS
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 507 prefix=$ac_optarg ;;
c906108c
SS
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 514 program_prefix=$ac_optarg ;;
c906108c
SS
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 521 program_suffix=$ac_optarg ;;
c906108c
SS
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 538 program_transform_name=$ac_optarg ;;
c906108c
SS
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
bec39cab 548 sbindir=$ac_optarg ;;
c906108c
SS
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
bec39cab 559 sharedstatedir=$ac_optarg ;;
c906108c
SS
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
bec39cab 564 site=$ac_optarg ;;
5710a1af 565
c906108c
SS
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 569 srcdir=$ac_optarg ;;
c906108c
SS
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 576 sysconfdir=$ac_optarg ;;
c906108c
SS
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 579 ac_prev=target_alias ;;
c906108c 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 581 target_alias=$ac_optarg ;;
c906108c
SS
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
bec39cab
AC
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
c906108c
SS
588
589 -with-* | --with-*)
bec39cab 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 591 # Reject names that are not valid shell variable names.
bec39cab
AC
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
c906108c 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
598 *) ac_optarg=yes ;;
599 esac
bec39cab 600 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
601
602 -without-* | --without-*)
bec39cab 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 604 # Reject names that are not valid shell variable names.
bec39cab
AC
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
c906108c
SS
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 620 x_includes=$ac_optarg ;;
c906108c
SS
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 627 x_libraries=$ac_optarg ;;
c906108c 628
bec39cab
AC
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
c906108c
SS
632 ;;
633
bec39cab
AC
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
c906108c 644 *)
bec39cab
AC
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
bec39cab
AC
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
c906108c
SS
659fi
660
bec39cab
AC
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
c906108c 671
bec39cab
AC
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 675do
bec39cab
AC
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
c906108c
SS
681 esac
682done
683
bec39cab
AC
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
c906108c 701
bec39cab
AC
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
c906108c 706
c906108c
SS
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
bec39cab
AC
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
c906108c
SS
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
c906108c 735 else
bec39cab
AC
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
c906108c
SS
738 fi
739fi
bec39cab
AC
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
c906108c 776
bec39cab
AC
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784\`configure' configures this package to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 --target=TARGET configure for building compilers for TARGET [HOST]
841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845
846 cat <<\_ACEOF
847
848Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-gtk enable gdbtk graphical user interface (GUI)
852 --enable-shared build shared libraries deault=yes
853
854Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-stabs arrange to use stabs instead of host debug format
858
859Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CPP C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871_ACEOF
872fi
873
874if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
880
881if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885else
886 ac_dir_suffix= ac_top_builddir=
887fi
888
889case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
5710a1af 894 else
bec39cab
AC
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903esac
904
905# Do not use `cd foo && pwd` to compute absolute paths, because
906# the directories may not exist.
907case `pwd` in
908.) ac_abs_builddir="$ac_dir";;
909*)
910 case "$ac_dir" in
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 esac;;
915esac
916case $ac_abs_builddir in
917.) ac_abs_top_builddir=${ac_top_builddir}.;;
918*)
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 esac;;
924esac
925case $ac_abs_builddir in
926.) ac_abs_srcdir=$ac_srcdir;;
927*)
928 case $ac_srcdir in
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_srcdir=$ac_top_srcdir;;
936*)
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 esac;;
942esac
943
944 cd $ac_dir
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
947 echo
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
950 echo
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
954 echo
955 $ac_configure --help
956 else
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 fi
6f8eac0e 959 cd "$ac_popdir"
bec39cab
AC
960 done
961fi
962
963test -n "$ac_init_help" && exit 0
964if $ac_init_version; then
965 cat <<\_ACEOF
966
967Copyright (C) 2003 Free Software Foundation, Inc.
968This configure script is free software; the Free Software Foundation
969gives unlimited permission to copy, distribute and modify it.
970_ACEOF
971 exit 0
972fi
973exec 5>config.log
974cat >&5 <<_ACEOF
975This file contains any messages produced by compilers while
976running configure, to aid debugging if configure makes a mistake.
977
978It was created by $as_me, which was
979generated by GNU Autoconf 2.59. Invocation command line was
980
981 $ $0 $@
982
983_ACEOF
984{
985cat <<_ASUNAME
986## --------- ##
987## Platform. ##
988## --------- ##
989
990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991uname -m = `(uname -m) 2>/dev/null || echo unknown`
992uname -r = `(uname -r) 2>/dev/null || echo unknown`
993uname -s = `(uname -s) 2>/dev/null || echo unknown`
994uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998
999/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1000/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1003/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1004/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1005/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006
1007_ASUNAME
1008
1009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010for as_dir in $PATH
1011do
1012 IFS=$as_save_IFS
1013 test -z "$as_dir" && as_dir=.
1014 echo "PATH: $as_dir"
1015done
1016
1017} >&5
1018
1019cat >&5 <<_ACEOF
1020
1021
1022## ----------- ##
1023## Core tests. ##
1024## ----------- ##
1025
1026_ACEOF
1027
1028
1029# Keep a trace of the command line.
1030# Strip out --no-create and --no-recursion so they do not pile up.
1031# Strip out --silent because we don't want to record it for future runs.
1032# Also quote any args containing shell meta-characters.
1033# Make two passes to allow for proper duplicate-argument suppression.
1034ac_configure_args=
1035ac_configure_args0=
1036ac_configure_args1=
1037ac_sep=
1038ac_must_keep_next=false
1039for ac_pass in 1 2
1040do
1041 for ac_arg
1042 do
1043 case $ac_arg in
1044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 continue ;;
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 esac
1051 case $ac_pass in
1052 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 2)
1054 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055 if test $ac_must_keep_next = true; then
1056 ac_must_keep_next=false # Got value, back to normal.
1057 else
1058 case $ac_arg in
1059 *=* | --config-cache | -C | -disable-* | --disable-* \
1060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062 | -with-* | --with-* | -without-* | --without-* | --x)
1063 case "$ac_configure_args0 " in
1064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 esac
1066 ;;
1067 -* ) ac_must_keep_next=true ;;
1068 esac
1069 fi
1070 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1072 ac_sep=" "
1073 ;;
1074 esac
1075 done
1076done
1077$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
1080# When interrupted or exit'd, cleanup temporary files, and complete
1081# config.log. We remove comments because anyway the quotes in there
1082# would cause problems or look ugly.
1083# WARNING: Be sure not to use single quotes in there, as some shells,
1084# such as our DU 5.0 friend, will then `close' the trap.
1085trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1087 {
1088 echo
1089
1090 cat <<\_ASBOX
1091## ---------------- ##
1092## Cache variables. ##
1093## ---------------- ##
1094_ASBOX
1095 echo
1096 # The following way of writing the cache mishandles newlines in values,
1097{
1098 (set) 2>&1 |
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 *ac_space=\ *)
1101 sed -n \
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 ;;
1105 *)
1106 sed -n \
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ;;
1109 esac;
1110}
1111 echo
1112
1113 cat <<\_ASBOX
1114## ----------------- ##
1115## Output variables. ##
1116## ----------------- ##
1117_ASBOX
1118 echo
1119 for ac_var in $ac_subst_vars
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1125
1126 if test -n "$ac_subst_files"; then
1127 cat <<\_ASBOX
1128## ------------- ##
1129## Output files. ##
1130## ------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_files
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139 fi
1140
1141 if test -s confdefs.h; then
1142 cat <<\_ASBOX
1143## ----------- ##
1144## confdefs.h. ##
1145## ----------- ##
1146_ASBOX
1147 echo
1148 sed "/^$/d" confdefs.h | sort
1149 echo
5710a1af 1150 fi
bec39cab
AC
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1154 } >&5
1155 rm -f core *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157 exit $exit_status
1158 ' 0
1159for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161done
1162ac_signal=0
1163
1164# confdefs.h avoids OS command line length limits that DEFS can exceed.
1165rm -rf conftest* confdefs.h
1166# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167echo >confdefs.h
1168
1169# Predefined preprocessor variables.
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_NAME "$PACKAGE_NAME"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_VERSION "$PACKAGE_VERSION"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_STRING "$PACKAGE_STRING"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193_ACEOF
1194
1195
1196# Let the site file select an alternate cache file if it wants to.
1197# Prefer explicitly selected file to automatically selected ones.
1198if test -z "$CONFIG_SITE"; then
1199 if test "x$prefix" != xNONE; then
1200 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 else
1202 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1203 fi
1204fi
1205for ac_site_file in $CONFIG_SITE; do
1206 if test -r "$ac_site_file"; then
bec39cab
AC
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1210 . "$ac_site_file"
1211 fi
1212done
1213
1214if test -r "$cache_file"; then
bec39cab
AC
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219echo "$as_me: loading cache $cache_file" >&6;}
1220 case $cache_file in
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1223 esac
1224 fi
c906108c 1225else
bec39cab
AC
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227echo "$as_me: creating cache $cache_file" >&6;}
1228 >$cache_file
c906108c
SS
1229fi
1230
bec39cab
AC
1231# Check that the precious variables saved in the cache have kept the same
1232# value.
1233ac_cache_corrupted=false
1234for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1241 set,)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,set)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,);;
1250 *)
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
c906108c 1272 fi
bec39cab
AC
1273done
1274if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
c906108c
SS
1280fi
1281
bec39cab
AC
1282ac_ext=c
1283ac_cpp='$CPP $CPPFLAGS'
1284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
c906108c
SS
1305
1306
c906108c 1307ac_aux_dir=
b39c905e 1308for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
c906108c
SS
1309 if test -f $ac_dir/install-sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install-sh -c"
1312 break
1313 elif test -f $ac_dir/install.sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install.sh -c"
1316 break
bec39cab
AC
1317 elif test -f $ac_dir/shtool; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/shtool install -c"
1320 break
c906108c
SS
1321 fi
1322done
1323if test -z "$ac_aux_dir"; then
bec39cab
AC
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326 { (exit 1); exit 1; }; }
1327fi
1328ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c
SS
1331
1332# Make sure we can run config.sub.
bec39cab
AC
1333$ac_config_sub sun4 >/dev/null 2>&1 ||
1334 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1335echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338echo "$as_me:$LINENO: checking build system type" >&5
1339echo $ECHO_N "checking build system type... $ECHO_C" >&6
1340if test "${ac_cv_build+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342else
1343 ac_cv_build_alias=$build_alias
1344test -z "$ac_cv_build_alias" &&
1345 ac_cv_build_alias=`$ac_config_guess`
1346test -z "$ac_cv_build_alias" &&
1347 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1348echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1349 { (exit 1); exit 1; }; }
1350ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1351 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1352echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1353 { (exit 1); exit 1; }; }
1354
c906108c 1355fi
bec39cab
AC
1356echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1357echo "${ECHO_T}$ac_cv_build" >&6
1358build=$ac_cv_build
1359build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362
1363
1364echo "$as_me:$LINENO: checking host system type" >&5
1365echo $ECHO_N "checking host system type... $ECHO_C" >&6
1366if test "${ac_cv_host+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368else
1369 ac_cv_host_alias=$host_alias
1370test -z "$ac_cv_host_alias" &&
1371 ac_cv_host_alias=$ac_cv_build_alias
1372ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1374echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
c906108c 1376
bec39cab
AC
1377fi
1378echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1379echo "${ECHO_T}$ac_cv_host" >&6
1380host=$ac_cv_host
1381host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386echo "$as_me:$LINENO: checking target system type" >&5
1387echo $ECHO_N "checking target system type... $ECHO_C" >&6
1388if test "${ac_cv_target+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 ac_cv_target_alias=$target_alias
1392test "x$ac_cv_target_alias" = "x" &&
1393 ac_cv_target_alias=$ac_cv_host_alias
1394ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1396echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
c906108c 1398
bec39cab
AC
1399fi
1400echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1401echo "${ECHO_T}$ac_cv_target" >&6
1402target=$ac_cv_target
1403target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 1406
c906108c 1407
bec39cab
AC
1408# The aliases save the names the user supplied, while $host etc.
1409# will get canonicalized.
1410test -n "$target_alias" &&
1411 test "$program_prefix$program_suffix$program_transform_name" = \
1412 NONENONEs,x,x, &&
1413 program_prefix=${target_alias}-
c906108c 1414
b39c905e
MK
1415# Add HP-specific tests when appropriate.
1416case $target in
1417 hppa*-*-hpux*)
bec39cab
AC
1418
1419
1420subdirs="$subdirs gdb.hp"
3ace7edb 1421 ;;
c906108c
SS
1422esac
1423
b39c905e 1424# With stabs.
bec39cab 1425
b39c905e
MK
1426# Check whether --with-stabs or --without-stabs was given.
1427if test "${with_stabs+set}" = set; then
1428 withval="$with_stabs"
bec39cab 1429
b39c905e
MK
1430else
1431 # We enable stabs tests by default on selected targets.
1432case $target in
1433 powerpc-*-aix* \
1434 | rs6000-*-aix* \
3224a706 1435 | *-*-*bsd* \
b39c905e
MK
1436 | *-*-go32* \
1437 | *-*-linux* \
1438 | *-*-lynxos* \
1439 | *-sun-* \
1440 | hppa*-*-* \
1441 | *-*-elf* \
1442 )
1443 with_stabs=yes ;;
1444 *)
1445 with_stabs=no ;;
c906108c 1446esac
bec39cab 1447fi;
b39c905e
MK
1448
1449# Add stabs tests when appropriate.
1450if test $with_stabs = yes; then
bec39cab
AC
1451
1452
1453subdirs="$subdirs gdb.stabs"
3ace7edb 1454
c906108c
SS
1455fi
1456
b39c905e 1457# Enable gdbtk.
3fc11d3e
JM
1458# Check whether --enable-gdbtk or --disable-gdbtk was given.
1459if test "${enable_gdbtk+set}" = set; then
1460 enableval="$enable_gdbtk"
bec39cab 1461
3fc11d3e 1462else
b39c905e
MK
1463 if test -d $srcdir/gdb.gdbtk; then
1464 enable_gdbtk=yes
1465 else
1466 enable_gdbtk=no
1467 fi
bec39cab 1468fi;
b39c905e
MK
1469# We unconditionally disable gdbtk tests on selected platforms.
1470case $host_os in
1471 go32* | windows*)
1472 enable_gdbtk=no ;;
1473esac
1474
1475# Add gdbtk tests when appropriate.
1476if test $enable_gdbtk = yes; then
bec39cab
AC
1477
1478
1479subdirs="$subdirs gdb.gdbtk"
3ace7edb 1480
3fc11d3e
JM
1481fi
1482
b39c905e
MK
1483# Enable shared libraries.
1484# Check whether --enable-shared or --disable-shared was given.
1485if test "${enable_shared+set}" = set; then
1486 enableval="$enable_shared"
bec39cab 1487
b39c905e
MK
1488else
1489 enable_shared=yes
bec39cab 1490fi;
b39c905e
MK
1491
1492# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
1493# such that we can find the shared libraries in the build tree.
1494if test $enable_shared = no; then
1495 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
1496 # platform.
1497 RPATH_ENVVAR=RPATH_ENVVAR
1498else
1499 # The variable `LD_LIBRARY_PATH' is used on most platforms.
1500 RPATH_ENVVAR=LD_LIBRARY_PATH
1501 # The following exceptions are taken from Libtool 1.4.3.
1502 case $host_os in
1503 aix*)
1504 if test $host_cpu != ia64; then
1505 RPATH_ENVVAR=LIBPATH
1506 fi ;;
1507 darwin* | rhapsody*)
1508 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
1509 hpux*)
1510 RPATH_ENVVAR=SHLIB_PATH ;;
1511 esac
3fc11d3e 1512fi
b39c905e 1513
c906108c 1514
bec39cab
AC
1515ac_ext=c
1516ac_cpp='$CPP $CPPFLAGS'
1517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1522set dummy ${ac_tool_prefix}gcc; ac_word=$2
1523echo "$as_me:$LINENO: checking for $ac_word" >&5
1524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530else
1531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542done
1543done
1544
1545fi
1546fi
1547CC=$ac_cv_prog_CC
1548if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550echo "${ECHO_T}$CC" >&6
1551else
1552 echo "$as_me:$LINENO: result: no" >&5
1553echo "${ECHO_T}no" >&6
1554fi
1555
1556fi
1557if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "gcc", so it can be a program name with args.
1560set dummy gcc; ac_word=$2
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568else
1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="gcc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580done
1581done
1582
1583fi
1584fi
1585ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588echo "${ECHO_T}$ac_ct_CC" >&6
1589else
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
1592fi
1593
1594 CC=$ac_ct_CC
1595else
1596 CC="$ac_cv_prog_CC"
1597fi
1598
1599if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1602set dummy ${ac_tool_prefix}cc; ac_word=$2
1603echo "$as_me:$LINENO: checking for $ac_word" >&5
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="${ac_tool_prefix}cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636fi
1637if test -z "$ac_cv_prog_CC"; then
1638 ac_ct_CC=$CC
1639 # Extract the first word of "cc", so it can be a program name with args.
1640set dummy cc; ac_word=$2
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648else
1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_ac_ct_CC="cc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1659 fi
1660done
1661done
1662
1663fi
1664fi
1665ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666if test -n "$ac_ct_CC"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668echo "${ECHO_T}$ac_ct_CC" >&6
1669else
1670 echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674 CC=$ac_ct_CC
1675else
1676 CC="$ac_cv_prog_CC"
1677fi
1678
1679fi
1680if test -z "$CC"; then
1681 # Extract the first word of "cc", so it can be a program name with args.
1682set dummy cc; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
1691 ac_prog_rejected=no
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1700 ac_prog_rejected=yes
1701 continue
1702 fi
1703 ac_cv_prog_CC="cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707done
1708done
1709
1710if test $ac_prog_rejected = yes; then
1711 # We found a bogon in the path, so make sure we never use it.
1712 set dummy $ac_cv_prog_CC
1713 shift
1714 if test $# != 0; then
1715 # We chose a different compiler from the bogus one.
1716 # However, it has the same basename, so the bogon will be chosen
1717 # first if we set CC to just the basename; use the full file name.
1718 shift
1719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1720 fi
1721fi
1722fi
1723fi
1724CC=$ac_cv_prog_CC
1725if test -n "$CC"; then
1726 echo "$as_me:$LINENO: result: $CC" >&5
1727echo "${ECHO_T}$CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733fi
1734if test -z "$CC"; then
1735 if test -n "$ac_tool_prefix"; then
1736 for ac_prog in cl
1737 do
1738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1758 fi
1759done
1760done
1761
1762fi
1763fi
1764CC=$ac_cv_prog_CC
1765if test -n "$CC"; then
1766 echo "$as_me:$LINENO: result: $CC" >&5
1767echo "${ECHO_T}$CC" >&6
1768else
1769 echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771fi
1772
1773 test -n "$CC" && break
1774 done
1775fi
1776if test -z "$CC"; then
1777 ac_ct_CC=$CC
1778 for ac_prog in cl
1779do
1780 # Extract the first word of "$ac_prog", so it can be a program name with args.
1781set dummy $ac_prog; ac_word=$2
1782echo "$as_me:$LINENO: checking for $ac_word" >&5
1783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786else
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789else
1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="$ac_prog"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804fi
1805fi
1806ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807if test -n "$ac_ct_CC"; then
1808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809echo "${ECHO_T}$ac_ct_CC" >&6
1810else
1811 echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815 test -n "$ac_ct_CC" && break
1816done
1817
1818 CC=$ac_ct_CC
1819fi
1820
1821fi
1822
1823
1824test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825See \`config.log' for more details." >&5
1826echo "$as_me: error: no acceptable C compiler found in \$PATH
1827See \`config.log' for more details." >&2;}
1828 { (exit 1); exit 1; }; }
1829
1830# Provide some information about the compiler.
1831echo "$as_me:$LINENO:" \
1832 "checking for C compiler version" >&5
1833ac_compiler=`set X $ac_compile; echo $2`
1834{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835 (eval $ac_compiler --version </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840 (eval $ac_compiler -v </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845 (eval $ac_compiler -V </dev/null >&5) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849
1850cat >conftest.$ac_ext <<_ACEOF
1851/* confdefs.h. */
1852_ACEOF
1853cat confdefs.h >>conftest.$ac_ext
1854cat >>conftest.$ac_ext <<_ACEOF
1855/* end confdefs.h. */
1856
1857int
1858main ()
1859{
1860
1861 ;
1862 return 0;
1863}
1864_ACEOF
1865ac_clean_files_save=$ac_clean_files
1866ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867# Try to create an executable without -o first, disregard a.out.
1868# It will help us diagnose broken compilers, and finding out an intuition
1869# of exeext.
1870echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874 (eval $ac_link_default) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 # Find the output, starting from the most likely. This scheme is
1879# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880# resort.
1881
1882# Be careful to initialize this variable, since it used to be cached.
1883# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1884ac_cv_exeext=
1885# b.out is created by i960 compilers.
1886for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1887do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 ;;
1892 conftest.$ac_ext )
1893 # This is the source file.
1894 ;;
1895 [ab].out )
1896 # We found the default executable, but exeext='' is most
1897 # certainly right.
1898 break;;
1899 *.* )
1900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 # FIXME: I believe we export ac_cv_exeext for Libtool,
1902 # but it would be cool to find out if it's true. Does anybody
1903 # maintain Libtool? --akim.
1904 export ac_cv_exeext
1905 break;;
1906 * )
1907 break;;
1908 esac
1909done
1910else
1911 echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1915See \`config.log' for more details." >&5
1916echo "$as_me: error: C compiler cannot create executables
1917See \`config.log' for more details." >&2;}
1918 { (exit 77); exit 77; }; }
1919fi
1920
1921ac_exeext=$ac_cv_exeext
1922echo "$as_me:$LINENO: result: $ac_file" >&5
1923echo "${ECHO_T}$ac_file" >&6
1924
1925# Check the compiler produces executables we can run. If not, either
1926# the compiler is broken, or we cross compile.
1927echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1928echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1929# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1930# If not cross compiling, check that we can run a simple program.
1931if test "$cross_compiling" != yes; then
1932 if { ac_try='./$ac_file'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1938 cross_compiling=no
1939 else
1940 if test "$cross_compiling" = maybe; then
1941 cross_compiling=yes
1942 else
1943 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1944If you meant to cross compile, use \`--host'.
1945See \`config.log' for more details." >&5
1946echo "$as_me: error: cannot run C compiled programs.
1947If you meant to cross compile, use \`--host'.
1948See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1950 fi
1951 fi
1952fi
1953echo "$as_me:$LINENO: result: yes" >&5
1954echo "${ECHO_T}yes" >&6
1955
1956rm -f a.out a.exe conftest$ac_cv_exeext b.out
1957ac_clean_files=$ac_clean_files_save
1958# Check the compiler produces executables we can run. If not, either
1959# the compiler is broken, or we cross compile.
1960echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1961echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1962echo "$as_me:$LINENO: result: $cross_compiling" >&5
1963echo "${ECHO_T}$cross_compiling" >&6
1964
1965echo "$as_me:$LINENO: checking for suffix of executables" >&5
1966echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1973# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1974# work properly (i.e., refer to `conftest.exe'), while it won't with
1975# `rm'.
1976for ac_file in conftest.exe conftest conftest.*; do
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 export ac_cv_exeext
1982 break;;
1983 * ) break;;
1984 esac
1985done
1986else
1987 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1988See \`config.log' for more details." >&5
1989echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1990See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1992fi
1993
1994rm -f conftest$ac_cv_exeext
1995echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996echo "${ECHO_T}$ac_cv_exeext" >&6
1997
1998rm -f conftest.$ac_ext
1999EXEEXT=$ac_cv_exeext
2000ac_exeext=$EXEEXT
2001echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003if test "${ac_cv_objext+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 cat >conftest.$ac_ext <<_ACEOF
2007/* confdefs.h. */
2008_ACEOF
2009cat confdefs.h >>conftest.$ac_ext
2010cat >>conftest.$ac_ext <<_ACEOF
2011/* end confdefs.h. */
2012
2013int
2014main ()
2015{
2016
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021rm -f conftest.o conftest.obj
2022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; then
2027 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 case $ac_file in
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2031 break;;
2032 esac
2033done
2034else
2035 echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: cannot compute suffix of object files: cannot compile
2041See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2043fi
2044
2045rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046fi
2047echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048echo "${ECHO_T}$ac_cv_objext" >&6
2049OBJEXT=$ac_cv_objext
2050ac_objext=$OBJEXT
2051echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056 cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h. */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h. */
2062
2063int
2064main ()
2065{
2066#ifndef __GNUC__
2067 choke me
2068#endif
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074rm -f conftest.$ac_objext
2075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
2077 ac_status=$?
2078 grep -v '^ *+' conftest.er1 >conftest.err
2079 rm -f conftest.er1
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
6f8eac0e 2083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 ac_compiler_gnu=yes
2096else
2097 echo "$as_me: failed program was:" >&5
2098sed 's/^/| /' conftest.$ac_ext >&5
2099
2100ac_compiler_gnu=no
2101fi
2102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2103ac_cv_c_compiler_gnu=$ac_compiler_gnu
2104
2105fi
2106echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2107echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2108GCC=`test $ac_compiler_gnu = yes && echo yes`
2109ac_test_CFLAGS=${CFLAGS+set}
2110ac_save_CFLAGS=$CFLAGS
2111CFLAGS="-g"
2112echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2113echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2114if test "${ac_cv_prog_cc_g+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 cat >conftest.$ac_ext <<_ACEOF
2118/* confdefs.h. */
2119_ACEOF
2120cat confdefs.h >>conftest.$ac_ext
2121cat >>conftest.$ac_ext <<_ACEOF
2122/* end confdefs.h. */
2123
2124int
2125main ()
2126{
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132rm -f conftest.$ac_objext
2133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>conftest.er1
2135 ac_status=$?
2136 grep -v '^ *+' conftest.er1 >conftest.err
2137 rm -f conftest.er1
2138 cat conftest.err >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
6f8eac0e 2141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 ac_cv_prog_cc_g=yes
2154else
2155 echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158ac_cv_prog_cc_g=no
2159fi
2160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2163echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2164if test "$ac_test_CFLAGS" = set; then
2165 CFLAGS=$ac_save_CFLAGS
2166elif test $ac_cv_prog_cc_g = yes; then
2167 if test "$GCC" = yes; then
2168 CFLAGS="-g -O2"
2169 else
2170 CFLAGS="-g"
2171 fi
2172else
2173 if test "$GCC" = yes; then
2174 CFLAGS="-O2"
2175 else
2176 CFLAGS=
2177 fi
2178fi
2179echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2180echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2181if test "${ac_cv_prog_cc_stdc+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 ac_cv_prog_cc_stdc=no
2185ac_save_CC=$CC
2186cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192#include <stdarg.h>
2193#include <stdio.h>
2194#include <sys/types.h>
2195#include <sys/stat.h>
2196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2197struct buf { int x; };
2198FILE * (*rcsopen) (struct buf *, struct stat *, int);
2199static char *e (p, i)
2200 char **p;
2201 int i;
2202{
2203 return p[i];
2204}
2205static char *f (char * (*g) (char **, int), char **p, ...)
2206{
2207 char *s;
2208 va_list v;
2209 va_start (v,p);
2210 s = g (p, va_arg (v,int));
2211 va_end (v);
2212 return s;
2213}
2214
2215/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2216 function prototypes and stuff, but not '\xHH' hex character constants.
2217 These don't provoke an error unfortunately, instead are silently treated
2218 as 'x'. The following induces an error, until -std1 is added to get
2219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2220 array size at least. It's necessary to write '\x00'==0 to get something
2221 that's true only with -std1. */
2222int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2223
2224int test (int i, double x);
2225struct s1 {int (*f) (int a);};
2226struct s2 {int (*f) (double a);};
2227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2228int argc;
2229char **argv;
2230int
2231main ()
2232{
2233return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238# Don't try gcc -ansi; that turns off useful extensions and
2239# breaks some systems' header files.
2240# AIX -qlanglvl=ansi
2241# Ultrix and OSF/1 -std1
2242# HP-UX 10.20 and later -Ae
2243# HP-UX older versions -Aa -D_HPUX_SOURCE
2244# SVR4 -Xc -D__EXTENSIONS__
2245for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2246do
2247 CC="$ac_save_CC $ac_arg"
2248 rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
6f8eac0e 2257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 ac_cv_prog_cc_stdc=$ac_arg
2270break
2271else
2272 echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275fi
2276rm -f conftest.err conftest.$ac_objext
2277done
2278rm -f conftest.$ac_ext conftest.$ac_objext
2279CC=$ac_save_CC
2280
2281fi
2282
2283case "x$ac_cv_prog_cc_stdc" in
2284 x|xno)
2285 echo "$as_me:$LINENO: result: none needed" >&5
2286echo "${ECHO_T}none needed" >&6 ;;
2287 *)
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2289echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2290 CC="$CC $ac_cv_prog_cc_stdc" ;;
2291esac
2292
2293# Some people use a C++ compiler to compile C. Since we use `exit',
2294# in C++ we need to declare it. In case someone uses the same compiler
2295# for both compiling C and C++ we need to have the C++ compiler decide
2296# the declaration of exit, since it's the most demanding environment.
2297cat >conftest.$ac_ext <<_ACEOF
2298#ifndef __cplusplus
2299 choke me
2300#endif
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>conftest.er1
2305 ac_status=$?
2306 grep -v '^ *+' conftest.er1 >conftest.err
2307 rm -f conftest.er1
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
6f8eac0e 2311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 for ac_declaration in \
2324 '' \
2325 'extern "C" void std::exit (int) throw (); using std::exit;' \
2326 'extern "C" void std::exit (int); using std::exit;' \
2327 'extern "C" void exit (int) throw ();' \
2328 'extern "C" void exit (int);' \
2329 'void exit (int);'
2330do
2331 cat >conftest.$ac_ext <<_ACEOF
2332/* confdefs.h. */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
2336/* end confdefs.h. */
2337$ac_declaration
2338#include <stdlib.h>
2339int
2340main ()
2341{
2342exit (42);
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
6f8eac0e 2356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 :
2369else
2370 echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373continue
2374fi
2375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 cat >conftest.$ac_ext <<_ACEOF
2377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382$ac_declaration
2383int
2384main ()
2385{
2386exit (42);
2387 ;
2388 return 0;
2389}
2390_ACEOF
2391rm -f conftest.$ac_objext
2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
6f8eac0e 2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 break
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419done
2420rm -f conftest*
2421if test -n "$ac_declaration"; then
2422 echo '#ifdef __cplusplus' >>confdefs.h
2423 echo $ac_declaration >>confdefs.h
2424 echo '#endif' >>confdefs.h
2425fi
2426
2427else
2428 echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431fi
2432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433ac_ext=c
2434ac_cpp='$CPP $CPPFLAGS'
2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438
2439
2440ac_ext=c
2441ac_cpp='$CPP $CPPFLAGS'
2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2446echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
dc62bfc2
MK
2447# On Suns, sometimes $CPP names a directory.
2448if test -n "$CPP" && test -d "$CPP"; then
2449 CPP=
2450fi
2451if test -z "$CPP"; then
bec39cab
AC
2452 if test "${ac_cv_prog_CPP+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
dc62bfc2 2454else
bec39cab
AC
2455 # Double quotes because CPP needs to be expanded
2456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2457 do
2458 ac_preproc_ok=false
2459for ac_c_preproc_warn_flag in '' yes
2460do
2461 # Use a header file that comes with gcc, so configuring glibc
2462 # with a fresh cross-compiler works.
2463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 # <limits.h> exists even on freestanding compilers.
dc62bfc2 2465 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab
AC
2466 # not just through cpp. "Syntax error" is here to catch this case.
2467 cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h. */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h. */
2473#ifdef __STDC__
2474# include <limits.h>
2475#else
2476# include <assert.h>
2477#endif
2478 Syntax error
2479_ACEOF
2480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2482 ac_status=$?
2483 grep -v '^ *+' conftest.er1 >conftest.err
2484 rm -f conftest.er1
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } >/dev/null; then
2488 if test -s conftest.err; then
2489 ac_cpp_err=$ac_c_preproc_warn_flag
2490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2491 else
2492 ac_cpp_err=
2493 fi
dc62bfc2 2494else
bec39cab
AC
2495 ac_cpp_err=yes
2496fi
2497if test -z "$ac_cpp_err"; then
dc62bfc2
MK
2498 :
2499else
bec39cab
AC
2500 echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 # Broken: fails on valid input.
2504continue
2505fi
2506rm -f conftest.err conftest.$ac_ext
2507
2508 # OK, works on sane cases. Now check whether non-existent headers
2509 # can be detected and how.
2510 cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
2516#include <ac_nonexistent.h>
2517_ACEOF
2518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } >/dev/null; then
2526 if test -s conftest.err; then
2527 ac_cpp_err=$ac_c_preproc_warn_flag
2528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2529 else
2530 ac_cpp_err=
2531 fi
dc62bfc2 2532else
bec39cab 2533 ac_cpp_err=yes
dc62bfc2 2534fi
bec39cab
AC
2535if test -z "$ac_cpp_err"; then
2536 # Broken: success on invalid input.
2537continue
2538else
2539 echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 # Passes both tests.
2543ac_preproc_ok=:
2544break
dc62bfc2 2545fi
bec39cab
AC
2546rm -f conftest.err conftest.$ac_ext
2547
2548done
2549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550rm -f conftest.err conftest.$ac_ext
2551if $ac_preproc_ok; then
2552 break
dc62bfc2 2553fi
bec39cab
AC
2554
2555 done
2556 ac_cv_prog_CPP=$CPP
2557
dc62bfc2 2558fi
bec39cab 2559 CPP=$ac_cv_prog_CPP
dc62bfc2 2560else
bec39cab 2561 ac_cv_prog_CPP=$CPP
dc62bfc2 2562fi
bec39cab
AC
2563echo "$as_me:$LINENO: result: $CPP" >&5
2564echo "${ECHO_T}$CPP" >&6
2565ac_preproc_ok=false
2566for ac_c_preproc_warn_flag in '' yes
dc62bfc2 2567do
bec39cab
AC
2568 # Use a header file that comes with gcc, so configuring glibc
2569 # with a fresh cross-compiler works.
2570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 # <limits.h> exists even on freestanding compilers.
2572 # On the NeXT, cc -E runs the code through the compiler's parser,
2573 # not just through cpp. "Syntax error" is here to catch this case.
2574 cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h. */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h. */
2580#ifdef __STDC__
2581# include <limits.h>
2582#else
2583# include <assert.h>
2584#endif
2585 Syntax error
2586_ACEOF
2587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589 ac_status=$?
2590 grep -v '^ *+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev/null; then
2595 if test -s conftest.err; then
2596 ac_cpp_err=$ac_c_preproc_warn_flag
2597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2598 else
2599 ac_cpp_err=
2600 fi
2601else
2602 ac_cpp_err=yes
dc62bfc2 2603fi
bec39cab
AC
2604if test -z "$ac_cpp_err"; then
2605 :
2606else
2607 echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 # Broken: fails on valid input.
2611continue
2612fi
2613rm -f conftest.err conftest.$ac_ext
2614
2615 # OK, works on sane cases. Now check whether non-existent headers
2616 # can be detected and how.
2617 cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
2623#include <ac_nonexistent.h>
2624_ACEOF
2625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } >/dev/null; then
2633 if test -s conftest.err; then
2634 ac_cpp_err=$ac_c_preproc_warn_flag
2635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2636 else
2637 ac_cpp_err=
2638 fi
2639else
2640 ac_cpp_err=yes
dc62bfc2 2641fi
bec39cab
AC
2642if test -z "$ac_cpp_err"; then
2643 # Broken: success on invalid input.
2644continue
dc62bfc2 2645else
bec39cab
AC
2646 echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649 # Passes both tests.
2650ac_preproc_ok=:
2651break
dc62bfc2 2652fi
bec39cab
AC
2653rm -f conftest.err conftest.$ac_ext
2654
dc62bfc2 2655done
bec39cab
AC
2656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2657rm -f conftest.err conftest.$ac_ext
2658if $ac_preproc_ok; then
2659 :
2660else
2661 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2666fi
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
dc62bfc2
MK
2673
2674
bec39cab
AC
2675echo "$as_me:$LINENO: checking for egrep" >&5
2676echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2677if test "${ac_cv_prog_egrep+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
93076499 2679else
bec39cab
AC
2680 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2681 then ac_cv_prog_egrep='grep -E'
2682 else ac_cv_prog_egrep='egrep'
2683 fi
2684fi
2685echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2686echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2687 EGREP=$ac_cv_prog_egrep
93076499 2688
93076499 2689
bec39cab
AC
2690echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2691echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2692if test "${ac_cv_header_stdc+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695 cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h. */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h. */
2701#include <stdlib.h>
2702#include <stdarg.h>
2703#include <string.h>
2704#include <float.h>
2705
2706int
2707main ()
2708{
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
6f8eac0e 2723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_header_stdc=yes
2736else
2737 echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740ac_cv_header_stdc=no
2741fi
2742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743
2744if test $ac_cv_header_stdc = yes; then
2745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752#include <string.h>
2753
2754_ACEOF
2755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 $EGREP "memchr" >/dev/null 2>&1; then
2757 :
2758else
2759 ac_cv_header_stdc=no
93076499
ND
2760fi
2761rm -f conftest*
bec39cab
AC
2762
2763fi
2764
2765if test $ac_cv_header_stdc = yes; then
2766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2767 cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
2773#include <stdlib.h>
2774
2775_ACEOF
2776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2777 $EGREP "free" >/dev/null 2>&1; then
2778 :
2779else
2780 ac_cv_header_stdc=no
2781fi
93076499 2782rm -f conftest*
bec39cab 2783
93076499
ND
2784fi
2785
bec39cab
AC
2786if test $ac_cv_header_stdc = yes; then
2787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2788 if test "$cross_compiling" = yes; then
2789 :
93076499 2790else
bec39cab
AC
2791 cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797#include <ctype.h>
2798#if ((' ' & 0x0FF) == 0x020)
2799# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2800# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2801#else
2802# define ISLOWER(c) \
2803 (('a' <= (c) && (c) <= 'i') \
2804 || ('j' <= (c) && (c) <= 'r') \
2805 || ('s' <= (c) && (c) <= 'z'))
2806# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2807#endif
93076499 2808
bec39cab
AC
2809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2810int
2811main ()
2812{
2813 int i;
2814 for (i = 0; i < 256; i++)
2815 if (XOR (islower (i), ISLOWER (i))
2816 || toupper (i) != TOUPPER (i))
2817 exit(2);
2818 exit (0);
2819}
2820_ACEOF
2821rm -f conftest$ac_exeext
2822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823 (eval $ac_link) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 :
93076499 2833else
bec39cab
AC
2834 echo "$as_me: program exited with status $ac_status" >&5
2835echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838( exit $ac_status )
2839ac_cv_header_stdc=no
93076499 2840fi
bec39cab
AC
2841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2842fi
2843fi
2844fi
2845echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2846echo "${ECHO_T}$ac_cv_header_stdc" >&6
2847if test $ac_cv_header_stdc = yes; then
2848
2849cat >>confdefs.h <<\_ACEOF
2850#define STDC_HEADERS 1
2851_ACEOF
2852
2853fi
2854
2855# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2866 inttypes.h stdint.h unistd.h
2867do
2868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2869echo "$as_me:$LINENO: checking for $ac_header" >&5
2870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2871if eval "test \"\${$as_ac_Header+set}\" = set"; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
2880$ac_includes_default
2881
2882#include <$ac_header>
2883_ACEOF
2884rm -f conftest.$ac_objext
2885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
6f8eac0e 2893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; } &&
2899 { ac_try='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 (eval $ac_try) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 eval "$as_ac_Header=yes"
2906else
2907 echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910eval "$as_ac_Header=no"
2911fi
2912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913fi
2914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2916if test `eval echo '${'$as_ac_Header'}'` = yes; then
2917 cat >>confdefs.h <<_ACEOF
2918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2919_ACEOF
2920
93076499
ND
2921fi
2922
bec39cab
AC
2923done
2924
93076499
ND
2925
2926
bec39cab
AC
2927for ac_header in pthread.h
2928do
2929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2930if eval "test \"\${$as_ac_Header+set}\" = set"; then
2931 echo "$as_me:$LINENO: checking for $ac_header" >&5
2932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2933if eval "test \"\${$as_ac_Header+set}\" = set"; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935fi
2936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
93076499 2938else
bec39cab
AC
2939 # Is the header compilable?
2940echo "$as_me:$LINENO: checking $ac_header usability" >&5
2941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948$ac_includes_default
2949#include <$ac_header>
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
6f8eac0e 2960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 ac_header_compiler=yes
93076499 2973else
bec39cab
AC
2974 echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977ac_header_compiler=no
2978fi
2979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2981echo "${ECHO_T}$ac_header_compiler" >&6
2982
2983# Is the header present?
2984echo "$as_me:$LINENO: checking $ac_header presence" >&5
2985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2986cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
2992#include <$ac_header>
2993_ACEOF
2994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
93076499 3005 else
bec39cab 3006 ac_cpp_err=
93076499 3007 fi
bec39cab
AC
3008else
3009 ac_cpp_err=yes
3010fi
3011if test -z "$ac_cpp_err"; then
3012 ac_header_preproc=yes
3013else
3014 echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 ac_header_preproc=no
93076499 3018fi
bec39cab
AC
3019rm -f conftest.err conftest.$ac_ext
3020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3021echo "${ECHO_T}$ac_header_preproc" >&6
3022
3023# So? What about this header?
3024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3025 yes:no: )
3026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3030 ac_header_preproc=yes
3031 ;;
3032 no:yes:* )
3033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3045 (
3046 cat <<\_ASBOX
3047## ------------------------------------------ ##
3048## Report this to the AC_PACKAGE_NAME lists. ##
3049## ------------------------------------------ ##
3050_ASBOX
3051 ) |
3052 sed "s/^/$as_me: WARNING: /" >&2
3053 ;;
3054esac
3055echo "$as_me:$LINENO: checking for $ac_header" >&5
3056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3057if eval "test \"\${$as_ac_Header+set}\" = set"; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060 eval "$as_ac_Header=\$ac_header_preproc"
93076499 3061fi
bec39cab
AC
3062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
93076499 3064
bec39cab
AC
3065fi
3066if test `eval echo '${'$as_ac_Header'}'` = yes; then
3067 cat >>confdefs.h <<_ACEOF
3068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3069_ACEOF
93076499 3070
bec39cab 3071fi
93076499 3072
bec39cab
AC
3073done
3074
3075
3076
3077
9494c6a5 3078 ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.server/Makefile gdb.java/Makefile gdb.mi/Makefile gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"
bec39cab 3079cat >confcache <<\_ACEOF
c906108c
SS
3080# This file is a shell script that caches the results of configure
3081# tests run on this system so they can be shared between configure
bec39cab
AC
3082# scripts and configure runs, see configure's option --config-cache.
3083# It is not useful on other systems. If it contains results you don't
3084# want to keep, you may remove or edit it.
c906108c 3085#
bec39cab
AC
3086# config.status only pays attention to the cache file if you give it
3087# the --recheck option to rerun configure.
c906108c 3088#
bec39cab
AC
3089# `ac_cv_env_foo' variables (set or unset) will be overridden when
3090# loading this file, other *unset* `ac_cv_foo' will be assigned the
3091# following values.
3092
3093_ACEOF
3094
c906108c
SS
3095# The following way of writing the cache mishandles newlines in values,
3096# but we know of no workaround that is simple, portable, and efficient.
3097# So, don't put newlines in cache variables' values.
3098# Ultrix sh set writes to stderr and can't be redirected directly,
3099# and sets the high bit in the cache file unless we assign to the vars.
bec39cab
AC
3100{
3101 (set) 2>&1 |
3102 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3103 *ac_space=\ *)
3104 # `set' does not quote correctly, so add quotes (double-quote
3105 # substitution turns \\\\ into \\, and sed turns \\ into \).
3106 sed -n \
3107 "s/'/'\\\\''/g;
3108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3109 ;;
3110 *)
3111 # `set' quotes correctly as required by POSIX, so do not add quotes.
3112 sed -n \
3113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3114 ;;
3115 esac;
3116} |
3117 sed '
3118 t clear
3119 : clear
3120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3121 t end
3122 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3123 : end' >>confcache
3124if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 3125 if test -w $cache_file; then
bec39cab
AC
3126 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3127 cat confcache >$cache_file
c906108c
SS
3128 else
3129 echo "not updating unwritable cache $cache_file"
3130 fi
3131fi
3132rm -f confcache
3133
c906108c
SS
3134test "x$prefix" = xNONE && prefix=$ac_default_prefix
3135# Let make expand exec_prefix.
3136test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3137
bec39cab
AC
3138# VPATH may cause trouble with some makes, so we remove $(srcdir),
3139# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3140# trailing colons and then remove the whole line if VPATH becomes empty
3141# (actually we leave an empty line to preserve line numbers).
c906108c 3142if test "x$srcdir" = x.; then
bec39cab
AC
3143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3144s/:*\$(srcdir):*/:/;
3145s/:*\${srcdir}:*/:/;
3146s/:*@srcdir@:*/:/;
3147s/^\([^=]*=[ ]*\):*/\1/;
3148s/:*$//;
3149s/^[^=]*=[ ]*$//;
3150}'
c906108c
SS
3151fi
3152
5710a1af
EZ
3153# Transform confdefs.h into DEFS.
3154# Protect against shell expansion while executing Makefile rules.
3155# Protect against Makefile macro expansion.
bec39cab
AC
3156#
3157# If the first sed substitution is executed (which looks for macros that
3158# take arguments), then we branch to the quote section. Otherwise,
3159# look for a macro that doesn't take arguments.
3160cat >confdef2opt.sed <<\_ACEOF
3161t clear
3162: clear
3163s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3164t quote
3165s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3166t quote
3167d
3168: quote
3169s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3170s,\[,\\&,g
3171s,\],\\&,g
3172s,\$,$$,g
3173p
3174_ACEOF
3175# We use echo to avoid assuming a particular line-breaking character.
3176# The extra dot is to prevent the shell from consuming trailing
3177# line-breaks from the sub-command output. A line-break within
3178# single-quotes doesn't work because, if this script is created in a
3179# platform that uses two characters for line-breaks (e.g., DOS), tr
3180# would break.
3181ac_LF_and_DOT=`echo; echo .`
3182DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3183rm -f confdef2opt.sed
3184
3185
3186ac_libobjs=
3187ac_ltlibobjs=
3188for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3189 # 1. Remove the extension, and $U if already installed.
3190 ac_i=`echo "$ac_i" |
3191 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3192 # 2. Add them.
3193 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3194 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3195done
3196LIBOBJS=$ac_libobjs
c906108c 3197
bec39cab
AC
3198LTLIBOBJS=$ac_ltlibobjs
3199
3200
3201
3202: ${CONFIG_STATUS=./config.status}
3203ac_clean_files_save=$ac_clean_files
3204ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3205{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3206echo "$as_me: creating $CONFIG_STATUS" >&6;}
3207cat >$CONFIG_STATUS <<_ACEOF
3208#! $SHELL
3209# Generated by $as_me.
c906108c 3210# Run this file to recreate the current configuration.
c906108c 3211# Compiler output produced by configure, useful for debugging
bec39cab
AC
3212# configure, is in config.log if it exists.
3213
3214debug=false
3215ac_cs_recheck=false
3216ac_cs_silent=false
3217SHELL=\${CONFIG_SHELL-$SHELL}
3218_ACEOF
3219
3220cat >>$CONFIG_STATUS <<\_ACEOF
3221## --------------------- ##
3222## M4sh Initialization. ##
3223## --------------------- ##
3224
3225# Be Bourne compatible
3226if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3227 emulate sh
3228 NULLCMD=:
3229 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3230 # is contrary to our usage. Disable this feature.
3231 alias -g '${1+"$@"}'='"$@"'
3232elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3233 set -o posix
3234fi
3235DUALCASE=1; export DUALCASE # for MKS sh
c906108c 3236
bec39cab
AC
3237# Support unset when possible.
3238if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3239 as_unset=unset
3240else
3241 as_unset=false
3242fi
3243
3244
3245# Work around bugs in pre-3.0 UWIN ksh.
3246$as_unset ENV MAIL MAILPATH
3247PS1='$ '
3248PS2='> '
3249PS4='+ '
3250
3251# NLS nuisances.
3252for as_var in \
3253 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3254 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3255 LC_TELEPHONE LC_TIME
c906108c 3256do
bec39cab
AC
3257 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3258 eval $as_var=C; export $as_var
3259 else
3260 $as_unset $as_var
3261 fi
c906108c
SS
3262done
3263
bec39cab
AC
3264# Required to use basename.
3265if expr a : '\(a\)' >/dev/null 2>&1; then
3266 as_expr=expr
3267else
3268 as_expr=false
3269fi
c906108c 3270
bec39cab
AC
3271if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3272 as_basename=basename
3273else
3274 as_basename=false
3275fi
3276
3277
3278# Name of the executable.
3279as_me=`$as_basename "$0" ||
3280$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3281 X"$0" : 'X\(//\)$' \| \
3282 X"$0" : 'X\(/\)$' \| \
3283 . : '\(.\)' 2>/dev/null ||
3284echo X/"$0" |
3285 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3286 /^X\/\(\/\/\)$/{ s//\1/; q; }
3287 /^X\/\(\/\).*/{ s//\1/; q; }
3288 s/.*/./; q'`
3289
3290
3291# PATH needs CR, and LINENO needs CR and PATH.
3292# Avoid depending upon Character Ranges.
3293as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3294as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3295as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3296as_cr_digits='0123456789'
3297as_cr_alnum=$as_cr_Letters$as_cr_digits
3298
3299# The user is always right.
3300if test "${PATH_SEPARATOR+set}" != set; then
3301 echo "#! /bin/sh" >conf$$.sh
3302 echo "exit 0" >>conf$$.sh
3303 chmod +x conf$$.sh
3304 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3305 PATH_SEPARATOR=';'
c906108c 3306 else
bec39cab 3307 PATH_SEPARATOR=:
c906108c 3308 fi
bec39cab
AC
3309 rm -f conf$$.sh
3310fi
3311
3312
3313 as_lineno_1=$LINENO
3314 as_lineno_2=$LINENO
3315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3316 test "x$as_lineno_1" != "x$as_lineno_2" &&
3317 test "x$as_lineno_3" = "x$as_lineno_2" || {
3318 # Find who we are. Look in the path if we contain no path at all
3319 # relative or not.
3320 case $0 in
3321 *[\\/]* ) as_myself=$0 ;;
3322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3328done
3329
3330 ;;
3331 esac
3332 # We did not find ourselves, most probably we were run as `sh COMMAND'
3333 # in which case we are not to be found in the path.
3334 if test "x$as_myself" = x; then
3335 as_myself=$0
3336 fi
3337 if test ! -f "$as_myself"; then
3338 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3339echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3340 { (exit 1); exit 1; }; }
c906108c 3341 fi
bec39cab
AC
3342 case $CONFIG_SHELL in
3343 '')
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3346do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for as_base in sh bash ksh sh5; do
3350 case $as_dir in
3351 /*)
3352 if ("$as_dir/$as_base" -c '
3353 as_lineno_1=$LINENO
3354 as_lineno_2=$LINENO
3355 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3356 test "x$as_lineno_1" != "x$as_lineno_2" &&
3357 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3358 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3359 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3360 CONFIG_SHELL=$as_dir/$as_base
3361 export CONFIG_SHELL
3362 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3363 fi;;
3364 esac
3365 done
c906108c 3366done
bec39cab 3367;;
c906108c
SS
3368 esac
3369
bec39cab
AC
3370 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3371 # uniformly replaced by the line number. The first 'sed' inserts a
3372 # line-number line before each line; the second 'sed' does the real
3373 # work. The second script uses 'N' to pair each line-number line
3374 # with the numbered line, and appends trailing '-' during
3375 # substitution so that $LINENO is not a special case at line end.
3376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3377 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3378 sed '=' <$as_myself |
3379 sed '
3380 N
3381 s,$,-,
3382 : loop
3383 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3384 t loop
3385 s,-$,,
3386 s,^['$as_cr_digits']*\n,,
3387 ' >$as_me.lineno &&
3388 chmod +x $as_me.lineno ||
3389 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3390echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3391 { (exit 1); exit 1; }; }
3392
3393 # Don't try to exec as it changes $[0], causing all sort of problems
3394 # (the dirname of $[0] is not the place where we might find the
3395 # original and so on. Autoconf is especially sensible to this).
3396 . ./$as_me.lineno
3397 # Exit status is that of the last command.
3398 exit
3399}
3400
3401
3402case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3403 *c*,-n*) ECHO_N= ECHO_C='
3404' ECHO_T=' ' ;;
3405 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3406 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3407esac
3408
3409if expr a : '\(a\)' >/dev/null 2>&1; then
3410 as_expr=expr
3411else
3412 as_expr=false
3413fi
c906108c 3414
bec39cab
AC
3415rm -f conf$$ conf$$.exe conf$$.file
3416echo >conf$$.file
3417if ln -s conf$$.file conf$$ 2>/dev/null; then
3418 # We could just check for DJGPP; but this test a) works b) is more generic
3419 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3420 if test -f conf$$.exe; then
3421 # Don't use ln at all; we don't have any links
3422 as_ln_s='cp -p'
c906108c 3423 else
bec39cab 3424 as_ln_s='ln -s'
c906108c 3425 fi
bec39cab
AC
3426elif ln conf$$.file conf$$ 2>/dev/null; then
3427 as_ln_s=ln
3428else
3429 as_ln_s='cp -p'
3430fi
3431rm -f conf$$ conf$$.exe conf$$.file
3432
3433if mkdir -p . 2>/dev/null; then
3434 as_mkdir_p=:
3435else
3436 test -d ./-p && rmdir ./-p
3437 as_mkdir_p=false
3438fi
3439
3440as_executable_p="test -f"
3441
3442# Sed expression to map a string onto a valid CPP name.
3443as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3444
3445# Sed expression to map a string onto a valid variable name.
3446as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3447
3448
3449# IFS
3450# We need space, tab and new line, in precisely that order.
3451as_nl='
3452'
3453IFS=" $as_nl"
3454
3455# CDPATH.
3456$as_unset CDPATH
3457
3458exec 6>&1
3459
3460# Open the log real soon, to keep \$[0] and so on meaningful, and to
3461# report actual input values of CONFIG_FILES etc. instead of their
3462# values after options handling. Logging --version etc. is OK.
3463exec 5>>config.log
3464{
3465 echo
3466 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3467## Running $as_me. ##
3468_ASBOX
3469} >&5
3470cat >&5 <<_CSEOF
3471
3472This file was extended by $as_me, which was
3473generated by GNU Autoconf 2.59. Invocation command line was
3474
3475 CONFIG_FILES = $CONFIG_FILES
3476 CONFIG_HEADERS = $CONFIG_HEADERS
3477 CONFIG_LINKS = $CONFIG_LINKS
3478 CONFIG_COMMANDS = $CONFIG_COMMANDS
3479 $ $0 $@
3480
3481_CSEOF
3482echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3483echo >&5
3484_ACEOF
3485
3486# Files that config.status was made for.
3487if test -n "$ac_config_files"; then
3488 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3489fi
3490
3491if test -n "$ac_config_headers"; then
3492 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3493fi
3494
3495if test -n "$ac_config_links"; then
3496 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3497fi
3498
3499if test -n "$ac_config_commands"; then
3500 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3501fi
3502
3503cat >>$CONFIG_STATUS <<\_ACEOF
3504
3505ac_cs_usage="\
3506\`$as_me' instantiates files from templates according to the
3507current configuration.
3508
3509Usage: $0 [OPTIONS] [FILE]...
3510
3511 -h, --help print this help, then exit
3512 -V, --version print version number, then exit
3513 -q, --quiet do not print progress messages
3514 -d, --debug don't remove temporary files
3515 --recheck update $as_me by reconfiguring in the same conditions
3516 --file=FILE[:TEMPLATE]
3517 instantiate the configuration file FILE
3518
3519Configuration files:
3520$config_files
3521
3522Report bugs to <bug-autoconf@gnu.org>."
3523_ACEOF
3524
3525cat >>$CONFIG_STATUS <<_ACEOF
3526ac_cs_version="\\
3527config.status
3528configured by $0, generated by GNU Autoconf 2.59,
3529 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3530
3531Copyright (C) 2003 Free Software Foundation, Inc.
3532This config.status script is free software; the Free Software Foundation
3533gives unlimited permission to copy, distribute and modify it."
3534srcdir=$srcdir
3535_ACEOF
3536
3537cat >>$CONFIG_STATUS <<\_ACEOF
3538# If no file are specified by the user, then we need to provide default
3539# value. By we need to know if files were specified by the user.
3540ac_need_defaults=:
3541while test $# != 0
3542do
3543 case $1 in
3544 --*=*)
3545 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3546 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3547 ac_shift=:
3548 ;;
3549 -*)
3550 ac_option=$1
3551 ac_optarg=$2
3552 ac_shift=shift
3553 ;;
3554 *) # This is not an option, so the user has probably given explicit
3555 # arguments.
3556 ac_option=$1
3557 ac_need_defaults=false;;
3558 esac
3559
3560 case $ac_option in
3561 # Handling of the options.
3562_ACEOF
3563cat >>$CONFIG_STATUS <<\_ACEOF
3564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3565 ac_cs_recheck=: ;;
3566 --version | --vers* | -V )
3567 echo "$ac_cs_version"; exit 0 ;;
3568 --he | --h)
3569 # Conflict between --help and --header
3570 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3571Try \`$0 --help' for more information." >&5
3572echo "$as_me: error: ambiguous option: $1
3573Try \`$0 --help' for more information." >&2;}
3574 { (exit 1); exit 1; }; };;
3575 --help | --hel | -h )
3576 echo "$ac_cs_usage"; exit 0 ;;
3577 --debug | --d* | -d )
3578 debug=: ;;
3579 --file | --fil | --fi | --f )
3580 $ac_shift
3581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3582 ac_need_defaults=false;;
3583 --header | --heade | --head | --hea )
3584 $ac_shift
3585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3586 ac_need_defaults=false;;
3587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3589 ac_cs_silent=: ;;
3590
3591 # This is an error.
3592 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3593Try \`$0 --help' for more information." >&5
3594echo "$as_me: error: unrecognized option: $1
3595Try \`$0 --help' for more information." >&2;}
3596 { (exit 1); exit 1; }; } ;;
3597
3598 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 3599
c906108c 3600 esac
bec39cab
AC
3601 shift
3602done
3603
3604ac_configure_extra_args=
3605
3606if $ac_cs_silent; then
3607 exec 6>/dev/null
3608 ac_configure_extra_args="$ac_configure_extra_args --silent"
3609fi
3610
3611_ACEOF
3612cat >>$CONFIG_STATUS <<_ACEOF
3613if \$ac_cs_recheck; then
3614 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3615 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3616fi
3617
3618_ACEOF
c906108c
SS
3619
3620
bec39cab
AC
3621
3622
3623
3624cat >>$CONFIG_STATUS <<\_ACEOF
3625for ac_config_target in $ac_config_targets
3626do
3627 case "$ac_config_target" in
3628 # Handling of arguments.
3629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3630 "gdb.ada/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
bec39cab
AC
3631 "gdb.arch/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
3632 "gdb.asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
3633 "gdb.base/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
3634 "gdb.cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
3635 "gdb.disasm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
3636 "gdb.dwarf2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
3637 "gdb.fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
9494c6a5 3638 "gdb.server/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
bec39cab
AC
3639 "gdb.java/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
3640 "gdb.mi/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
3641 "gdb.objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
3642 "gdb.threads/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
3643 "gdb.trace/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
3644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3645echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3646 { (exit 1); exit 1; }; };;
c906108c 3647 esac
bec39cab
AC
3648done
3649
3650# If the user did not use the arguments to specify the items to instantiate,
3651# then the envvar interface is used. Set only those that are not.
3652# We use the long form for the default assignment because of an extremely
3653# bizarre bug on SunOS 4.1.3.
3654if $ac_need_defaults; then
3655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3656fi
3657
3658# Have a temporary directory for convenience. Make it in the build tree
3659# simply because there is no reason to put it here, and in addition,
3660# creating and moving files from /tmp can sometimes cause problems.
3661# Create a temporary directory, and hook for its removal unless debugging.
3662$debug ||
3663{
3664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3665 trap '{ (exit 1); exit 1; }' 1 2 13 15
3666}
3667
3668# Create a (secure) tmp directory for tmp files.
3669
3670{
3671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3672 test -n "$tmp" && test -d "$tmp"
3673} ||
3674{
3675 tmp=./confstat$$-$RANDOM
3676 (umask 077 && mkdir $tmp)
3677} ||
3678{
3679 echo "$me: cannot create a temporary directory in ." >&2
3680 { (exit 1); exit 1; }
3681}
3682
3683_ACEOF
3684
3685cat >>$CONFIG_STATUS <<_ACEOF
c906108c 3686
bec39cab
AC
3687#
3688# CONFIG_FILES section.
3689#
c906108c 3690
bec39cab
AC
3691# No need to generate the scripts if there are no CONFIG_FILES.
3692# This happens for instance when ./config.status config.h
3693if test -n "\$CONFIG_FILES"; then
3694 # Protect against being on the right side of a sed subst in config.status.
3695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3697s,@SHELL@,$SHELL,;t t
3698s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3699s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3700s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3701s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3702s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3703s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3704s,@exec_prefix@,$exec_prefix,;t t
3705s,@prefix@,$prefix,;t t
3706s,@program_transform_name@,$program_transform_name,;t t
3707s,@bindir@,$bindir,;t t
3708s,@sbindir@,$sbindir,;t t
3709s,@libexecdir@,$libexecdir,;t t
3710s,@datadir@,$datadir,;t t
3711s,@sysconfdir@,$sysconfdir,;t t
3712s,@sharedstatedir@,$sharedstatedir,;t t
3713s,@localstatedir@,$localstatedir,;t t
3714s,@libdir@,$libdir,;t t
3715s,@includedir@,$includedir,;t t
3716s,@oldincludedir@,$oldincludedir,;t t
3717s,@infodir@,$infodir,;t t
3718s,@mandir@,$mandir,;t t
3719s,@build_alias@,$build_alias,;t t
3720s,@host_alias@,$host_alias,;t t
3721s,@target_alias@,$target_alias,;t t
3722s,@DEFS@,$DEFS,;t t
3723s,@ECHO_C@,$ECHO_C,;t t
3724s,@ECHO_N@,$ECHO_N,;t t
3725s,@ECHO_T@,$ECHO_T,;t t
3726s,@LIBS@,$LIBS,;t t
3727s,@build@,$build,;t t
3728s,@build_cpu@,$build_cpu,;t t
3729s,@build_vendor@,$build_vendor,;t t
3730s,@build_os@,$build_os,;t t
3731s,@host@,$host,;t t
3732s,@host_cpu@,$host_cpu,;t t
3733s,@host_vendor@,$host_vendor,;t t
3734s,@host_os@,$host_os,;t t
3735s,@target@,$target,;t t
3736s,@target_cpu@,$target_cpu,;t t
3737s,@target_vendor@,$target_vendor,;t t
3738s,@target_os@,$target_os,;t t
3739s,@subdirs@,$subdirs,;t t
3740s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3741s,@CC@,$CC,;t t
3742s,@CFLAGS@,$CFLAGS,;t t
3743s,@LDFLAGS@,$LDFLAGS,;t t
3744s,@CPPFLAGS@,$CPPFLAGS,;t t
3745s,@ac_ct_CC@,$ac_ct_CC,;t t
3746s,@EXEEXT@,$EXEEXT,;t t
3747s,@OBJEXT@,$OBJEXT,;t t
3748s,@CPP@,$CPP,;t t
3749s,@EGREP@,$EGREP,;t t
3750s,@LIBOBJS@,$LIBOBJS,;t t
3751s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3752CEOF
c906108c 3753
bec39cab
AC
3754_ACEOF
3755
3756 cat >>$CONFIG_STATUS <<\_ACEOF
3757 # Split the substitutions into bite-sized pieces for seds with
3758 # small command number limits, like on Digital OSF/1 and HP-UX.
3759 ac_max_sed_lines=48
3760 ac_sed_frag=1 # Number of current file.
3761 ac_beg=1 # First line for current file.
3762 ac_end=$ac_max_sed_lines # Line after last line for current file.
3763 ac_more_lines=:
3764 ac_sed_cmds=
3765 while $ac_more_lines; do
3766 if test $ac_beg -gt 1; then
3767 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3768 else
3769 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3770 fi
3771 if test ! -s $tmp/subs.frag; then
3772 ac_more_lines=false
3773 else
3774 # The purpose of the label and of the branching condition is to
3775 # speed up the sed processing (if there are no `@' at all, there
3776 # is no need to browse any of the substitutions).
3777 # These are the two extra sed commands mentioned above.
3778 (echo ':t
3779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3780 if test -z "$ac_sed_cmds"; then
3781 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3782 else
3783 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3784 fi
3785 ac_sed_frag=`expr $ac_sed_frag + 1`
3786 ac_beg=$ac_end
3787 ac_end=`expr $ac_end + $ac_max_sed_lines`
3788 fi
3789 done
3790 if test -z "$ac_sed_cmds"; then
3791 ac_sed_cmds=cat
3792 fi
3793fi # test -n "$CONFIG_FILES"
c906108c 3794
bec39cab
AC
3795_ACEOF
3796cat >>$CONFIG_STATUS <<\_ACEOF
3797for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3799 case $ac_file in
3800 - | *:- | *:-:* ) # input from stdin
3801 cat >$tmp/stdin
3802 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3804 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3806 * ) ac_file_in=$ac_file.in ;;
3807 esac
3808
3809 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3810 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3812 X"$ac_file" : 'X\(//\)[^/]' \| \
3813 X"$ac_file" : 'X\(//\)$' \| \
3814 X"$ac_file" : 'X\(/\)' \| \
3815 . : '\(.\)' 2>/dev/null ||
3816echo X"$ac_file" |
3817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3819 /^X\(\/\/\)$/{ s//\1/; q; }
3820 /^X\(\/\).*/{ s//\1/; q; }
3821 s/.*/./; q'`
3822 { if $as_mkdir_p; then
3823 mkdir -p "$ac_dir"
3824 else
3825 as_dir="$ac_dir"
3826 as_dirs=
3827 while test ! -d "$as_dir"; do
3828 as_dirs="$as_dir $as_dirs"
3829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3831 X"$as_dir" : 'X\(//\)[^/]' \| \
3832 X"$as_dir" : 'X\(//\)$' \| \
3833 X"$as_dir" : 'X\(/\)' \| \
3834 . : '\(.\)' 2>/dev/null ||
3835echo X"$as_dir" |
3836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3838 /^X\(\/\/\)$/{ s//\1/; q; }
3839 /^X\(\/\).*/{ s//\1/; q; }
3840 s/.*/./; q'`
3841 done
3842 test ! -n "$as_dirs" || mkdir $as_dirs
3843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3844echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3845 { (exit 1); exit 1; }; }; }
3846
3847 ac_builddir=.
3848
3849if test "$ac_dir" != .; then
3850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3851 # A "../" for each directory in $ac_dir_suffix.
3852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3853else
3854 ac_dir_suffix= ac_top_builddir=
3855fi
3856
3857case $srcdir in
3858 .) # No --srcdir option. We are building in place.
3859 ac_srcdir=.
3860 if test -z "$ac_top_builddir"; then
3861 ac_top_srcdir=.
3862 else
3863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3864 fi ;;
3865 [\\/]* | ?:[\\/]* ) # Absolute path.
3866 ac_srcdir=$srcdir$ac_dir_suffix;
3867 ac_top_srcdir=$srcdir ;;
3868 *) # Relative path.
3869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3871esac
3872
3873# Do not use `cd foo && pwd` to compute absolute paths, because
3874# the directories may not exist.
3875case `pwd` in
3876.) ac_abs_builddir="$ac_dir";;
3877*)
3878 case "$ac_dir" in
3879 .) ac_abs_builddir=`pwd`;;
3880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3882 esac;;
3883esac
3884case $ac_abs_builddir in
3885.) ac_abs_top_builddir=${ac_top_builddir}.;;
3886*)
3887 case ${ac_top_builddir}. in
3888 .) ac_abs_top_builddir=$ac_abs_builddir;;
3889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3891 esac;;
3892esac
3893case $ac_abs_builddir in
3894.) ac_abs_srcdir=$ac_srcdir;;
3895*)
3896 case $ac_srcdir in
3897 .) ac_abs_srcdir=$ac_abs_builddir;;
3898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3900 esac;;
3901esac
3902case $ac_abs_builddir in
3903.) ac_abs_top_srcdir=$ac_top_srcdir;;
3904*)
3905 case $ac_top_srcdir in
3906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3909 esac;;
3910esac
3911
3912
3913
bec39cab
AC
3914 # Let's still pretend it is `configure' which instantiates (i.e., don't
3915 # use $as_me), people would be surprised to read:
3916 # /* config.h. Generated by config.status. */
3917 if test x"$ac_file" = x-; then
3918 configure_input=
3919 else
3920 configure_input="$ac_file. "
3921 fi
3922 configure_input=$configure_input"Generated from `echo $ac_file_in |
3923 sed 's,.*/,,'` by configure."
3924
3925 # First look for the input files in the build tree, otherwise in the
3926 # src tree.
3927 ac_file_inputs=`IFS=:
3928 for f in $ac_file_in; do
3929 case $f in
3930 -) echo $tmp/stdin ;;
3931 [\\/$]*)
3932 # Absolute (can't be DOS-style, as IFS=:)
3933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3934echo "$as_me: error: cannot find input file: $f" >&2;}
3935 { (exit 1); exit 1; }; }
3936 echo "$f";;
3937 *) # Relative
3938 if test -f "$f"; then
3939 # Build tree
3940 echo "$f"
3941 elif test -f "$srcdir/$f"; then
3942 # Source tree
3943 echo "$srcdir/$f"
3944 else
3945 # /dev/null tree
3946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3947echo "$as_me: error: cannot find input file: $f" >&2;}
3948 { (exit 1); exit 1; }; }
3949 fi;;
3950 esac
3951 done` || { (exit 1); exit 1; }
6f8eac0e
DJ
3952
3953 if test x"$ac_file" != x-; then
3954 { echo "$as_me:$LINENO: creating $ac_file" >&5
3955echo "$as_me: creating $ac_file" >&6;}
3956 rm -f "$ac_file"
3957 fi
bec39cab
AC
3958_ACEOF
3959cat >>$CONFIG_STATUS <<_ACEOF
3960 sed "$ac_vpsub
3961$extrasub
3962_ACEOF
3963cat >>$CONFIG_STATUS <<\_ACEOF
3964:t
3965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3966s,@configure_input@,$configure_input,;t t
3967s,@srcdir@,$ac_srcdir,;t t
3968s,@abs_srcdir@,$ac_abs_srcdir,;t t
3969s,@top_srcdir@,$ac_top_srcdir,;t t
3970s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3971s,@builddir@,$ac_builddir,;t t
3972s,@abs_builddir@,$ac_abs_builddir,;t t
3973s,@top_builddir@,$ac_top_builddir,;t t
3974s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3975" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3976 rm -f $tmp/stdin
3977 if test x"$ac_file" != x-; then
3978 mv $tmp/out $ac_file
3979 else
3980 cat $tmp/out
3981 rm -f $tmp/out
3982 fi
3983
3984done
3985_ACEOF
3986
3987cat >>$CONFIG_STATUS <<\_ACEOF
3988
3989{ (exit 0); exit 0; }
3990_ACEOF
c906108c 3991chmod +x $CONFIG_STATUS
bec39cab
AC
3992ac_clean_files=$ac_clean_files_save
3993
3994
3995# configure is writing to config.log, and then calls config.status.
3996# config.status does its own redirection, appending to config.log.
3997# Unfortunately, on DOS this fails, as config.log is still kept open
3998# by configure, so config.status won't be able to write to it; its
3999# output is simply discarded. So we exec the FD to /dev/null,
4000# effectively closing config.log, so it can be properly (re)opened and
4001# appended to by config.status. When coming back to configure, we
4002# need to make the FD available again.
4003if test "$no_create" != yes; then
4004 ac_cs_success=:
4005 ac_config_status_args=
4006 test "$silent" = yes &&
4007 ac_config_status_args="$ac_config_status_args --quiet"
4008 exec 5>/dev/null
4009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4010 exec 5>>config.log
4011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4012 # would make configure fail if this is the last instruction.
4013 $ac_cs_success || { (exit 1); exit 1; }
4014fi
c906108c 4015
bec39cab
AC
4016#
4017# CONFIG_SUBDIRS section.
4018#
c906108c
SS
4019if test "$no_recursion" != yes; then
4020
4021 # Remove --cache-file and --srcdir arguments so they do not pile up.
4022 ac_sub_configure_args=
4023 ac_prev=
4024 for ac_arg in $ac_configure_args; do
4025 if test -n "$ac_prev"; then
4026 ac_prev=
4027 continue
4028 fi
bec39cab 4029 case $ac_arg in
c906108c
SS
4030 -cache-file | --cache-file | --cache-fil | --cache-fi \
4031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4032 ac_prev=cache_file ;;
4033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
4034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4035 | --c=*)
4036 ;;
4037 --config-cache | -C)
c906108c
SS
4038 ;;
4039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4040 ac_prev=srcdir ;;
4041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4042 ;;
bec39cab
AC
4043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4044 ac_prev=prefix ;;
4045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4046 ;;
c906108c
SS
4047 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4048 esac
4049 done
4050
bec39cab
AC
4051 # Always prepend --prefix to ensure using the same prefix
4052 # in subdir configurations.
4053 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4054
4055 ac_popdir=`pwd`
4056 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
4057
4058 # Do not complain, so a configure script can configure whichever
4059 # parts of a large source tree are present.
bec39cab 4060 test -d $srcdir/$ac_dir || continue
c906108c 4061
bec39cab
AC
4062 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4063echo "$as_me: configuring in $ac_dir" >&6;}
4064 { if $as_mkdir_p; then
4065 mkdir -p "$ac_dir"
4066 else
4067 as_dir="$ac_dir"
4068 as_dirs=
4069 while test ! -d "$as_dir"; do
4070 as_dirs="$as_dir $as_dirs"
4071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4073 X"$as_dir" : 'X\(//\)[^/]' \| \
4074 X"$as_dir" : 'X\(//\)$' \| \
4075 X"$as_dir" : 'X\(/\)' \| \
4076 . : '\(.\)' 2>/dev/null ||
4077echo X"$as_dir" |
4078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4080 /^X\(\/\/\)$/{ s//\1/; q; }
4081 /^X\(\/\).*/{ s//\1/; q; }
4082 s/.*/./; q'`
4083 done
4084 test ! -n "$as_dirs" || mkdir $as_dirs
4085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4086echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4087 { (exit 1); exit 1; }; }; }
c906108c 4088
bec39cab 4089 ac_builddir=.
c906108c 4090
bec39cab
AC
4091if test "$ac_dir" != .; then
4092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4093 # A "../" for each directory in $ac_dir_suffix.
4094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4095else
4096 ac_dir_suffix= ac_top_builddir=
4097fi
c906108c 4098
bec39cab
AC
4099case $srcdir in
4100 .) # No --srcdir option. We are building in place.
4101 ac_srcdir=.
4102 if test -z "$ac_top_builddir"; then
4103 ac_top_srcdir=.
4104 else
4105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4106 fi ;;
4107 [\\/]* | ?:[\\/]* ) # Absolute path.
4108 ac_srcdir=$srcdir$ac_dir_suffix;
4109 ac_top_srcdir=$srcdir ;;
4110 *) # Relative path.
4111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4113esac
c906108c 4114
bec39cab
AC
4115# Do not use `cd foo && pwd` to compute absolute paths, because
4116# the directories may not exist.
4117case `pwd` in
4118.) ac_abs_builddir="$ac_dir";;
4119*)
4120 case "$ac_dir" in
4121 .) ac_abs_builddir=`pwd`;;
4122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4124 esac;;
4125esac
4126case $ac_abs_builddir in
4127.) ac_abs_top_builddir=${ac_top_builddir}.;;
4128*)
4129 case ${ac_top_builddir}. in
4130 .) ac_abs_top_builddir=$ac_abs_builddir;;
4131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4133 esac;;
4134esac
4135case $ac_abs_builddir in
4136.) ac_abs_srcdir=$ac_srcdir;;
4137*)
4138 case $ac_srcdir in
4139 .) ac_abs_srcdir=$ac_abs_builddir;;
4140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4142 esac;;
4143esac
4144case $ac_abs_builddir in
4145.) ac_abs_top_srcdir=$ac_top_srcdir;;
4146*)
4147 case $ac_top_srcdir in
4148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4151 esac;;
4152esac
4153
4154
4155 cd $ac_dir
c906108c
SS
4156
4157 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
4158 if test -f $ac_srcdir/configure.gnu; then
4159 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4160 elif test -f $ac_srcdir/configure; then
4161 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4162 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
4163 ac_sub_configure=$ac_configure
4164 else
bec39cab
AC
4165 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4166echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
4167 ac_sub_configure=
4168 fi
4169
4170 # The recursion is here.
4171 if test -n "$ac_sub_configure"; then
c906108c 4172 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
4173 case $cache_file in
4174 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 4175 *) # Relative path.
bec39cab 4176 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c
SS
4177 esac
4178
bec39cab
AC
4179 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4180echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 4181 # The eval makes quoting arguments work.
bec39cab
AC
4182 eval $ac_sub_configure $ac_sub_configure_args \
4183 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4184 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4185echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4186 { (exit 1); exit 1; }; }
c906108c
SS
4187 fi
4188
6f8eac0e 4189 cd "$ac_popdir"
c906108c
SS
4190 done
4191fi
4192
This page took 0.749708 seconds and 4 git commands to generate.