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