2008-11-19 Andrew Stubbs <ams@codesourcery.com>
[official-gcc.git] / libada / configure
blob56a4b48113648b96256a1f1aca5d5abc00b2cb93
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="Makefile.in"
275 ac_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'
276 ac_subst_files=''
277 ac_pwd=`pwd`
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
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.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
317 ac_prev=
318 for ac_option
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
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
331 case $ac_option in
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
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 ;;
350 --config-cache | -C)
351 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
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 ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
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 ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
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 ;;
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 ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
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 ;;
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 ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
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 ;;
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 ;;
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
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 ;;
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 ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
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'" ;;
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" ;;
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
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 ;;
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 ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
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 ;;
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}
613 esac
614 done
616 if 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; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
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
631 done
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
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
643 done
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.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
652 # FIXME: To remove some day.
653 if 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
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo 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=..
689 else
690 ac_srcdir_defaulted=no
692 if 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; }; }
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; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 # Report the --help message.
737 if 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
741 \`configure' configures this package to adapt to many kinds of systems.
743 Usage: $0 [OPTION]... [VAR=VALUE]...
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE. See below for descriptions of some of the useful variables.
748 Defaults for the options are specified in brackets.
750 Configuration:
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 \`..']
761 _ACEOF
763 cat <<_ACEOF
764 Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
766 [$ac_default_prefix]
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
768 [PREFIX]
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
775 For better control, use the options below.
777 Fine 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
792 cat <<\_ACEOF
794 System 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
801 if test -n "$ac_init_help"; then
803 cat <<\_ACEOF
805 Optional 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
811 --enable-multilib build many library versions (default)
812 --disable-shared don't provide a shared libgnat
814 Optional 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
819 Some 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>
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
830 _ACEOF
833 if 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=.
840 if 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'`
844 else
845 ac_dir_suffix= ac_top_builddir=
848 case $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 ;;
862 esac
864 # Do not use `cd foo && pwd` to compute absolute paths, because
865 # the directories may not exist.
866 case `pwd` in
867 .) ac_abs_builddir="$ac_dir";;
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;;
874 esac
875 case $ac_abs_builddir in
876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
883 esac
884 case $ac_abs_builddir in
885 .) ac_abs_srcdir=$ac_srcdir;;
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;;
892 esac
893 case $ac_abs_builddir in
894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
901 esac
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 ||
912 test -f $ac_srcdir/configure.in; then
913 echo
914 $ac_configure --help
915 else
916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 cd $ac_popdir
919 done
922 test -n "$ac_init_help" && exit 0
923 if $ac_init_version; then
924 cat <<\_ACEOF
926 Copyright (C) 2003 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930 exit 0
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.59. Invocation command line was
940 $ $0 $@
942 _ACEOF
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
961 hostinfo = `(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`
966 _ASUNAME
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974 done
976 } >&5
978 cat >&5 <<_ACEOF
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
985 _ACEOF
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.
993 ac_configure_args=
994 ac_configure_args0=
995 ac_configure_args1=
996 ac_sep=
997 ac_must_keep_next=false
998 for ac_pass in 1 2
1000 for ac_arg
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'" ;;
1013 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1014 if test $ac_must_keep_next = true; then
1015 ac_must_keep_next=false # Got value, back to normal.
1016 else
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
1026 -* ) ac_must_keep_next=true ;;
1027 esac
1029 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030 # Get rid of the leading space.
1031 ac_sep=" "
1033 esac
1034 done
1035 done
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; }
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.
1044 trap 'exit_status=$?
1045 # Save into config.log some information that might help in debugging.
1047 echo
1049 cat <<\_ASBOX
1050 ## ---------------- ##
1051 ## Cache variables. ##
1052 ## ---------------- ##
1053 _ASBOX
1054 echo
1055 # The following way of writing the cache mishandles newlines in values,
1057 (set) 2>&1 |
1058 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059 *ac_space=\ *)
1060 sed -n \
1061 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065 sed -n \
1066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1068 esac;
1070 echo
1072 cat <<\_ASBOX
1073 ## ----------------- ##
1074 ## Output variables. ##
1075 ## ----------------- ##
1076 _ASBOX
1077 echo
1078 for ac_var in $ac_subst_vars
1080 eval ac_val=$`echo $ac_var`
1081 echo "$ac_var='"'"'$ac_val'"'"'"
1082 done | sort
1083 echo
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
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
1096 done | sort
1097 echo
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
1110 test "$ac_signal" != 0 &&
1111 echo "$as_me: caught signal $ac_signal"
1112 echo "$as_me: exit $exit_status"
1113 } >&5
1114 rm -f core *.core &&
1115 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1116 exit $exit_status
1118 for ac_signal in 1 2 13 15; do
1119 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1120 done
1121 ac_signal=0
1123 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1124 rm -rf conftest* confdefs.h
1125 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1126 echo >confdefs.h
1128 # Predefined preprocessor variables.
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_NAME "$PACKAGE_NAME"
1132 _ACEOF
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1137 _ACEOF
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_STRING "$PACKAGE_STRING"
1147 _ACEOF
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1152 _ACEOF
1155 # Let the site file select an alternate cache file if it wants to.
1156 # Prefer explicitly selected file to automatically selected ones.
1157 if 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"
1164 for 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
1167 echo "$as_me: loading site script $ac_site_file" >&6;}
1168 sed 's/^/| /' "$ac_site_file" >&5
1169 . "$ac_site_file"
1171 done
1173 if 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
1178 echo "$as_me: loading cache $cache_file" >&6;}
1179 case $cache_file in
1180 [\\/]* | ?:[\\/]* ) . $cache_file;;
1181 *) . ./$cache_file;;
1182 esac
1184 else
1185 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1186 echo "$as_me: creating cache $cache_file" >&6;}
1187 >$cache_file
1190 # Check that the precious variables saved in the cache have kept the same
1191 # value.
1192 ac_cache_corrupted=false
1193 for ac_var in `(set) 2>&1 |
1194 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
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
1202 echo "$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
1206 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1207 ac_cache_corrupted=: ;;
1208 ,);;
1210 if test "x$ac_old_val" != "x$ac_new_val"; then
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
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217 ac_cache_corrupted=:
1218 else
1219 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1220 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1221 eval $ac_var=\$ac_old_val
1223 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1224 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1225 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1226 echo "$as_me: current value: \`$ac_new_val'" >&2;}
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
1241 done
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1244 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$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
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 # Determine the host, build, and target systems
1284 ac_aux_dir=
1285 for 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
1299 done
1300 if test -z "$ac_aux_dir"; then
1301 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1302 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1303 { (exit 1); exit 1; }; }
1305 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1306 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1307 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1335 build=$ac_cv_build
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1357 host=$ac_cv_host
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 echo "$as_me:$LINENO: checking target system type" >&5
1364 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1365 if test "${ac_cv_target+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 ac_cv_target_alias=$target_alias
1369 test "x$ac_cv_target_alias" = "x" &&
1370 ac_cv_target_alias=$ac_cv_host_alias
1371 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1378 echo "${ECHO_T}$ac_cv_target" >&6
1379 target=$ac_cv_target
1380 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 # The aliases save the names the user supplied, while $host etc.
1386 # will get canonicalized.
1387 test -n "$target_alias" &&
1388 test "$program_prefix$program_suffix$program_transform_name" = \
1389 NONENONEs,x,x, &&
1390 program_prefix=${target_alias}-
1392 # Determine the noncanonical target name, for directory use.
1393 case ${build_alias} in
1394 "") build_noncanonical=${build} ;;
1395 *) build_noncanonical=${build_alias} ;;
1396 esac
1398 case ${host_alias} in
1399 "") host_noncanonical=${build_noncanonical} ;;
1400 *) host_noncanonical=${host_alias} ;;
1401 esac
1403 case ${target_alias} in
1404 "") target_noncanonical=${host_noncanonical} ;;
1405 *) target_noncanonical=${target_alias} ;;
1406 esac
1411 # Determine the target- and build-specific subdirectories
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.
1422 # Prefix 'build-' so this never conflicts with target_subdir.
1423 build_subdir="build-${build_noncanonical}"
1425 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1426 if test "${with_build_libsubdir+set}" = set; then
1427 withval="$with_build_libsubdir"
1428 build_libsubdir="$withval"
1429 else
1430 build_libsubdir="$build_subdir"
1432 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1433 if ( test $srcdir = . && test -d gcc ) \
1434 || test -d $srcdir/../host-${host_noncanonical}; then
1435 host_subdir="host-${host_noncanonical}"
1436 else
1437 host_subdir=.
1439 # No prefix.
1440 target_subdir=${target_noncanonical}
1443 # Command-line options.
1444 # Very limited version of AC_MAINTAINER_MODE.
1445 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1446 if 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
1452 echo "$as_me: error: --enable-maintainer-mode must be yes or no" >&2;}
1453 { (exit 1); exit 1; }; } ;;
1454 esac
1455 maintainer_mode=${enableval}
1456 else
1457 MAINT='#'
1461 target_alias=${target_alias-$host_alias}
1463 # Default to --enable-multilib
1464 # Check whether --enable-multilib or --disable-multilib was given.
1465 if 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
1471 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1472 { (exit 1); exit 1; }; } ;;
1473 esac
1474 else
1475 multilib=yes
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.
1482 if test "$srcdir" = "."; then
1483 if test "$with_target_subdir" != "."; then
1484 multi_basedir="$srcdir/$with_multisrctop../.."
1485 else
1486 multi_basedir="$srcdir/$with_multisrctop.."
1488 else
1489 multi_basedir="$srcdir/.."
1493 ac_config_commands="$ac_config_commands default-1"
1495 # Calculate toolexeclibdir
1496 # Also toolexecdir, though it's only used in toolexeclibdir
1497 case ${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)'
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)'
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
1521 esac
1524 #TODO: toolexeclibdir is currently disregarded
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.
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if 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.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
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
1561 done
1562 done
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1576 if 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.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
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
1599 done
1600 done
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1608 else
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1613 CC=$ac_ct_CC
1614 else
1615 CC="$ac_cv_prog_CC"
1618 if 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.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
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
1641 done
1642 done
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if 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.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
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
1679 done
1680 done
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 CC=$ac_ct_CC
1694 else
1695 CC="$ac_cv_prog_CC"
1699 if test -z "$CC"; then
1700 # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710 ac_prog_rejected=no
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
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
1722 ac_cv_prog_CC="cc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1726 done
1727 done
1729 if 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+' '}$@"
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$CC"; then
1754 if test -n "$ac_tool_prefix"; then
1755 for ac_prog in cl
1757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
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
1778 done
1779 done
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 test -n "$CC" && break
1793 done
1795 if test -z "$CC"; then
1796 ac_ct_CC=$CC
1797 for ac_prog in cl
1799 # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
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
1820 done
1821 done
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1834 test -n "$ac_ct_CC" && break
1835 done
1837 CC=$ac_ct_CC
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1844 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1845 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&5
1847 echo "$as_me: error: no acceptable C compiler found in \$PATH
1848 See \`config.log' for more details." >&2;}
1849 { (exit 1); exit 1; }; }; }
1851 # Provide some information about the compiler.
1852 echo "$as_me:$LINENO:" \
1853 "checking for C compiler version" >&5
1854 ac_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); }
1871 cat >conftest.$ac_ext <<_ACEOF
1872 /* confdefs.h. */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1879 main ()
1883 return 0;
1885 _ACEOF
1886 ac_clean_files_save=$ac_clean_files
1887 ac_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.
1891 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1892 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1893 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1894 if { (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.
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.
1905 ac_cv_exeext=
1906 # b.out is created by i960 compilers.
1907 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1909 test -f "$ac_file" || continue
1910 case $ac_file in
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1913 conftest.$ac_ext )
1914 # This is the source file.
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;;
1928 break;;
1929 esac
1930 done
1931 else
1932 echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1936 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1937 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&2;}
1941 { (exit 77); exit 77; }; }; }
1944 ac_exeext=$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_file" >&5
1946 echo "${ECHO_T}$ac_file" >&6
1948 # Check the compiler produces executables we can run. If not, either
1949 # the compiler is broken, or we cross compile.
1950 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1951 echo $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.
1954 if 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
1967 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1968 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }; }
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_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.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (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'.
2001 for 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
2010 done
2011 else
2012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2017 See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }; }
2021 rm -f conftest$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023 echo "${ECHO_T}$ac_cv_exeext" >&6
2025 rm -f conftest.$ac_ext
2026 EXEEXT=$ac_cv_exeext
2027 ac_exeext=$EXEEXT
2028 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2029 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2030 if test "${ac_cv_objext+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.o conftest.obj
2049 if { (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
2060 done
2061 else
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }; }
2074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2077 echo "${ECHO_T}$ac_cv_objext" >&6
2078 OBJEXT=$ac_cv_objext
2079 ac_objext=$OBJEXT
2080 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2081 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 cat >conftest.$ac_ext <<_ACEOF
2086 /* confdefs.h. */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2093 main ()
2095 #ifndef __GNUC__
2096 choke me
2097 #endif
2100 return 0;
2102 _ACEOF
2103 rm -f conftest.$ac_objext
2104 if { (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
2126 else
2127 echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2130 ac_compiler_gnu=no
2132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2136 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2137 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2138 GCC=`test $ac_compiler_gnu = yes && echo yes`
2139 ac_test_CFLAGS=${CFLAGS+set}
2140 ac_save_CFLAGS=$CFLAGS
2141 CFLAGS="-g"
2142 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2143 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2144 if test "${ac_cv_prog_cc_g+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h. */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2155 main ()
2159 return 0;
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (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
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 ac_cv_prog_cc_g=no
2191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2195 if test "$ac_test_CFLAGS" = set; then
2196 CFLAGS=$ac_save_CFLAGS
2197 elif test $ac_cv_prog_cc_g = yes; then
2198 if test "$GCC" = yes; then
2199 CFLAGS="-g -O2"
2200 else
2201 CFLAGS="-g"
2203 else
2204 if test "$GCC" = yes; then
2205 CFLAGS="-O2"
2206 else
2207 CFLAGS=
2210 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2211 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 ac_cv_prog_cc_stdc=no
2216 ac_save_CC=$CC
2217 cat >conftest.$ac_ext <<_ACEOF
2218 /* confdefs.h. */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>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. */
2228 struct buf { int x; };
2229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2230 static char *e (p, i)
2231 char **p;
2232 int i;
2234 return p[i];
2236 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
2253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2255 int test (int i, double x);
2256 struct s1 {int (*f) (int a);};
2257 struct s2 {int (*f) (double a);};
2258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2259 int argc;
2260 char **argv;
2262 main ()
2264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2266 return 0;
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__
2276 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2278 CC="$ac_save_CC $ac_arg"
2279 rm -f conftest.$ac_objext
2280 if { (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
2302 break
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.err conftest.$ac_objext
2309 done
2310 rm -f conftest.$ac_ext conftest.$ac_objext
2311 CC=$ac_save_CC
2315 case "x$ac_cv_prog_cc_stdc" in
2316 x|xno)
2317 echo "$as_me:$LINENO: result: none needed" >&5
2318 echo "${ECHO_T}none needed" >&6 ;;
2320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2321 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2322 CC="$CC $ac_cv_prog_cc_stdc" ;;
2323 esac
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.
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #ifndef __cplusplus
2331 choke me
2332 #endif
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (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);'
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2370 $ac_declaration
2371 #include <stdlib.h>
2373 main ()
2375 exit (42);
2377 return 0;
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (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
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 continue
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2416 $ac_declaration
2418 main ()
2420 exit (42);
2422 return 0;
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (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
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 done
2455 rm -f conftest*
2456 if test -n "$ac_declaration"; then
2457 echo '#ifdef __cplusplus' >>confdefs.h
2458 echo $ac_declaration >>confdefs.h
2459 echo '#endif' >>confdefs.h
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 # Check whether --enable-shared or --disable-shared was given.
2479 if test "${enable_shared+set}" = set; then
2480 enableval="$enable_shared"
2482 case $enable_shared in
2483 yes | no) ;;
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"
2495 esac
2497 else
2498 enable_shared=yes
2502 # Need to pass this down for now :-P
2503 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2504 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2505 LN_S=$as_ln_s
2506 if test "$LN_S" = "ln -s"; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2511 echo "${ECHO_T}no, using $LN_S" >&6
2515 # Determine what to build for 'gnatlib'
2516 if 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"
2520 else
2521 default_gnatlib_target="gnatlib-plain"
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 if 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.
2532 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2533 echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
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
2552 done
2553 done
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6
2561 else
2562 echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2567 if 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.
2570 set dummy gcc; ac_word=$2
2571 echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
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
2590 done
2591 done
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 echo "${ECHO_T}$ac_ct_CC" >&6
2599 else
2600 echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2604 CC=$ac_ct_CC
2605 else
2606 CC="$ac_cv_prog_CC"
2609 if 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.
2612 set dummy ${ac_tool_prefix}cc; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
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
2632 done
2633 done
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639 echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6
2641 else
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2647 if 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.
2650 set dummy cc; ac_word=$2
2651 echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
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
2670 done
2671 done
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678 echo "${ECHO_T}$ac_ct_CC" >&6
2679 else
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2684 CC=$ac_ct_CC
2685 else
2686 CC="$ac_cv_prog_CC"
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 ac_prog_rejected=no
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
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
2713 ac_cv_prog_CC="cc"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2720 if 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+' '}$@"
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2744 if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
2746 for ac_prog in cl
2748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
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
2769 done
2770 done
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 echo "$as_me:$LINENO: result: $CC" >&5
2777 echo "${ECHO_T}$CC" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2783 test -n "$CC" && break
2784 done
2786 if test -z "$CC"; then
2787 ac_ct_CC=$CC
2788 for ac_prog in cl
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
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
2811 done
2812 done
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2819 echo "${ECHO_T}$ac_ct_CC" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2825 test -n "$ac_ct_CC" && break
2826 done
2828 CC=$ac_ct_CC
2834 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: no acceptable C compiler found in \$PATH
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }; }
2842 # Provide some information about the compiler.
2843 echo "$as_me:$LINENO:" \
2844 "checking for C compiler version" >&5
2845 ac_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); }
2862 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2863 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2877 #ifndef __GNUC__
2878 choke me
2879 #endif
2882 return 0;
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (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
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 ac_compiler_gnu=no
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2918 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2920 GCC=`test $ac_compiler_gnu = yes && echo yes`
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 CFLAGS="-g"
2924 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_g+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2937 main ()
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (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
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 ac_cv_prog_cc_g=no
2973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977 if test "$ac_test_CFLAGS" = set; then
2978 CFLAGS=$ac_save_CFLAGS
2979 elif test $ac_cv_prog_cc_g = yes; then
2980 if test "$GCC" = yes; then
2981 CFLAGS="-g -O2"
2982 else
2983 CFLAGS="-g"
2985 else
2986 if test "$GCC" = yes; then
2987 CFLAGS="-O2"
2988 else
2989 CFLAGS=
2992 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 ac_cv_prog_cc_stdc=no
2998 ac_save_CC=$CC
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>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. */
3010 struct buf { int x; };
3011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3012 static char *e (p, i)
3013 char **p;
3014 int i;
3016 return p[i];
3018 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
3035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037 int test (int i, double x);
3038 struct s1 {int (*f) (int a);};
3039 struct s2 {int (*f) (double a);};
3040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3041 int argc;
3042 char **argv;
3044 main ()
3046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3048 return 0;
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__
3058 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 CC="$ac_save_CC $ac_arg"
3061 rm -f conftest.$ac_objext
3062 if { (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
3084 break
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext
3091 done
3092 rm -f conftest.$ac_ext conftest.$ac_objext
3093 CC=$ac_save_CC
3097 case "x$ac_cv_prog_cc_stdc" in
3098 x|xno)
3099 echo "$as_me:$LINENO: result: none needed" >&5
3100 echo "${ECHO_T}none needed" >&6 ;;
3102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3103 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3104 CC="$CC $ac_cv_prog_cc_stdc" ;;
3105 esac
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.
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #ifndef __cplusplus
3113 choke me
3114 #endif
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (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);'
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 $ac_declaration
3153 #include <stdlib.h>
3155 main ()
3157 exit (42);
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (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
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 continue
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 $ac_declaration
3200 main ()
3202 exit (42);
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (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
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 done
3237 rm -f conftest*
3238 if test -n "$ac_declaration"; then
3239 echo '#ifdef __cplusplus' >>confdefs.h
3240 echo $ac_declaration >>confdefs.h
3241 echo '#endif' >>confdefs.h
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 warn_cflags=
3257 if test "x$GCC" = "xyes"; then
3258 warn_cflags='$(GCC_WARN_CFLAGS)'
3262 # Output: create a Makefile.
3263 ac_config_files="$ac_config_files Makefile"
3266 cat >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.
3273 # config.status only pays attention to the cache file if you give it
3274 # the --recheck option to rerun configure.
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.
3280 _ACEOF
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.
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 \
3294 "s/'/'\\\\''/g;
3295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3298 # `set' quotes correctly as required by POSIX, so do not add quotes.
3299 sed -n \
3300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3302 esac;
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
3311 if 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"
3319 rm -f confcache
3321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3322 # Let make expand exec_prefix.
3323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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).
3329 if test "x$srcdir" = x.; then
3330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3331 s/:*\$(srcdir):*/:/;
3332 s/:*\${srcdir}:*/:/;
3333 s/:*@srcdir@:*/:/;
3334 s/^\([^=]*=[ ]*\):*/\1/;
3335 s/:*$//;
3336 s/^[^=]*=[ ]*$//;
3340 # Transform confdefs.h into DEFS.
3341 # Protect against shell expansion while executing Makefile rules.
3342 # Protect against Makefile macro expansion.
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.
3347 cat >confdef2opt.sed <<\_ACEOF
3348 t clear
3349 : clear
3350 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3351 t quote
3352 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3353 t quote
3355 : quote
3356 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3357 s,\[,\\&,g
3358 s,\],\\&,g
3359 s,\$,$$,g
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.
3368 ac_LF_and_DOT=`echo; echo .`
3369 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3370 rm -f confdef2opt.sed
3373 ac_libobjs=
3374 ac_ltlibobjs=
3375 for 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" |
3378 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3379 # 2. Add them.
3380 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3381 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3382 done
3383 LIBOBJS=$ac_libobjs
3385 LTLIBOBJS=$ac_ltlibobjs
3389 : ${CONFIG_STATUS=./config.status}
3390 ac_clean_files_save=$ac_clean_files
3391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3392 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3393 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3394 cat >$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.
3401 debug=false
3402 ac_cs_recheck=false
3403 ac_cs_silent=false
3404 SHELL=\${CONFIG_SHELL-$SHELL}
3405 _ACEOF
3407 cat >>$CONFIG_STATUS <<\_ACEOF
3408 ## --------------------- ##
3409 ## M4sh Initialization. ##
3410 ## --------------------- ##
3412 # Be Bourne compatible
3413 if 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+"$@"}'='"$@"'
3419 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3420 set -o posix
3422 DUALCASE=1; export DUALCASE # for MKS sh
3424 # Support unset when possible.
3425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3426 as_unset=unset
3427 else
3428 as_unset=false
3432 # Work around bugs in pre-3.0 UWIN ksh.
3433 $as_unset ENV MAIL MAILPATH
3434 PS1='$ '
3435 PS2='> '
3436 PS4='+ '
3438 # NLS nuisances.
3439 for 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
3444 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3445 eval $as_var=C; export $as_var
3446 else
3447 $as_unset $as_var
3449 done
3451 # Required to use basename.
3452 if expr a : '\(a\)' >/dev/null 2>&1; then
3453 as_expr=expr
3454 else
3455 as_expr=false
3458 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3459 as_basename=basename
3460 else
3461 as_basename=false
3465 # Name of the executable.
3466 as_me=`$as_basename "$0" ||
3467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3468 X"$0" : 'X\(//\)$' \| \
3469 X"$0" : 'X\(/\)$' \| \
3470 . : '\(.\)' 2>/dev/null ||
3471 echo X/"$0" |
3472 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3473 /^X\/\(\/\/\)$/{ s//\1/; q; }
3474 /^X\/\(\/\).*/{ s//\1/; q; }
3475 s/.*/./; q'`
3478 # PATH needs CR, and LINENO needs CR and PATH.
3479 # Avoid depending upon Character Ranges.
3480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3483 as_cr_digits='0123456789'
3484 as_cr_alnum=$as_cr_Letters$as_cr_digits
3486 # The user is always right.
3487 if 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=:
3496 rm -f conf$$.sh
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
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3515 done
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
3524 if test ! -f "$as_myself"; then
3525 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3526 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3527 { (exit 1); exit 1; }; }
3529 case $CONFIG_SHELL in
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
3553 done
3555 esac
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 '
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
3577 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3578 { (exit 1); exit 1; }; }
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
3589 case `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= ;;
3594 esac
3596 if expr a : '\(a\)' >/dev/null 2>&1; then
3597 as_expr=expr
3598 else
3599 as_expr=false
3602 rm -f conf$$ conf$$.exe conf$$.file
3603 echo >conf$$.file
3604 if 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'
3613 elif ln conf$$.file conf$$ 2>/dev/null; then
3614 as_ln_s=ln
3615 else
3616 as_ln_s='cp -p'
3618 rm -f conf$$ conf$$.exe conf$$.file
3620 if mkdir -p . 2>/dev/null; then
3621 as_mkdir_p=:
3622 else
3623 test -d ./-p && rmdir ./-p
3624 as_mkdir_p=false
3627 as_executable_p="test -f"
3629 # Sed expression to map a string onto a valid CPP name.
3630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3632 # Sed expression to map a string onto a valid variable name.
3633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3636 # IFS
3637 # We need space, tab and new line, in precisely that order.
3638 as_nl='
3640 IFS=" $as_nl"
3642 # CDPATH.
3643 $as_unset CDPATH
3645 exec 6>&1
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.
3650 exec 5>>config.log
3652 echo
3653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3654 ## Running $as_me. ##
3655 _ASBOX
3656 } >&5
3657 cat >&5 <<_CSEOF
3659 This file was extended by $as_me, which was
3660 generated by GNU Autoconf 2.59. Invocation command line was
3662 CONFIG_FILES = $CONFIG_FILES
3663 CONFIG_HEADERS = $CONFIG_HEADERS
3664 CONFIG_LINKS = $CONFIG_LINKS
3665 CONFIG_COMMANDS = $CONFIG_COMMANDS
3666 $ $0 $@
3668 _CSEOF
3669 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3670 echo >&5
3671 _ACEOF
3673 # Files that config.status was made for.
3674 if test -n "$ac_config_files"; then
3675 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3678 if test -n "$ac_config_headers"; then
3679 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3682 if test -n "$ac_config_links"; then
3683 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3686 if test -n "$ac_config_commands"; then
3687 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3690 cat >>$CONFIG_STATUS <<\_ACEOF
3692 ac_cs_usage="\
3693 \`$as_me' instantiates files from templates according to the
3694 current configuration.
3696 Usage: $0 [OPTIONS] [FILE]...
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]
3704 instantiate the configuration file FILE
3706 Configuration files:
3707 $config_files
3709 Configuration commands:
3710 $config_commands
3712 Report bugs to <bug-autoconf@gnu.org>."
3713 _ACEOF
3715 cat >>$CONFIG_STATUS <<_ACEOF
3716 ac_cs_version="\\
3717 config.status
3718 configured by $0, generated by GNU Autoconf 2.59,
3719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3721 Copyright (C) 2003 Free Software Foundation, Inc.
3722 This config.status script is free software; the Free Software Foundation
3723 gives unlimited permission to copy, distribute and modify it."
3724 srcdir=$srcdir
3725 _ACEOF
3727 cat >>$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.
3730 ac_need_defaults=:
3731 while test $# != 0
3733 case $1 in
3734 --*=*)
3735 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3736 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3737 ac_shift=:
3740 ac_option=$1
3741 ac_optarg=$2
3742 ac_shift=shift
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
3750 case $ac_option in
3751 # Handling of the options.
3752 _ACEOF
3753 cat >>$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
3761 Try \`$0 --help' for more information." >&5
3762 echo "$as_me: error: ambiguous option: $1
3763 Try \`$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=: ;;
3781 # This is an error.
3782 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3783 Try \`$0 --help' for more information." >&5
3784 echo "$as_me: error: unrecognized option: $1
3785 Try \`$0 --help' for more information." >&2;}
3786 { (exit 1); exit 1; }; } ;;
3788 *) ac_config_targets="$ac_config_targets $1" ;;
3790 esac
3791 shift
3792 done
3794 ac_configure_extra_args=
3796 if $ac_cs_silent; then
3797 exec 6>/dev/null
3798 ac_configure_extra_args="$ac_configure_extra_args --silent"
3801 _ACEOF
3802 cat >>$CONFIG_STATUS <<_ACEOF
3803 if \$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
3808 _ACEOF
3810 cat >>$CONFIG_STATUS <<_ACEOF
3812 # INIT-COMMANDS section.
3816 srcdir="$srcdir"
3817 host="$host"
3818 target="$target"
3819 with_multisubdir="$with_multisubdir"
3820 with_multisrctop="$with_multisrctop"
3821 with_target_subdir="$with_target_subdir"
3822 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3823 multi_basedir="$multi_basedir"
3824 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3825 CC="$CC"
3827 _ACEOF
3831 cat >>$CONFIG_STATUS <<\_ACEOF
3832 for ac_config_target in $ac_config_targets
3834 case "$ac_config_target" in
3835 # Handling of arguments.
3836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3837 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3838 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3839 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3840 { (exit 1); exit 1; }; };;
3841 esac
3842 done
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.
3848 if $ac_need_defaults; then
3849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
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 ||
3859 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3860 trap '{ (exit 1); exit 1; }' 1 2 13 15
3863 # Create a (secure) tmp directory for tmp files.
3866 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3867 test -n "$tmp" && test -d "$tmp"
3868 } ||
3870 tmp=./confstat$$-$RANDOM
3871 (umask 077 && mkdir $tmp)
3872 } ||
3874 echo "$me: cannot create a temporary directory in ." >&2
3875 { (exit 1); exit 1; }
3878 _ACEOF
3880 cat >>$CONFIG_STATUS <<_ACEOF
3883 # CONFIG_FILES section.
3886 # No need to generate the scripts if there are no CONFIG_FILES.
3887 # This happens for instance when ./config.status config.h
3888 if 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
3892 s,@SHELL@,$SHELL,;t t
3893 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3894 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3895 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3896 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3897 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3898 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3899 s,@exec_prefix@,$exec_prefix,;t t
3900 s,@prefix@,$prefix,;t t
3901 s,@program_transform_name@,$program_transform_name,;t t
3902 s,@bindir@,$bindir,;t t
3903 s,@sbindir@,$sbindir,;t t
3904 s,@libexecdir@,$libexecdir,;t t
3905 s,@datadir@,$datadir,;t t
3906 s,@sysconfdir@,$sysconfdir,;t t
3907 s,@sharedstatedir@,$sharedstatedir,;t t
3908 s,@localstatedir@,$localstatedir,;t t
3909 s,@libdir@,$libdir,;t t
3910 s,@includedir@,$includedir,;t t
3911 s,@oldincludedir@,$oldincludedir,;t t
3912 s,@infodir@,$infodir,;t t
3913 s,@mandir@,$mandir,;t t
3914 s,@build_alias@,$build_alias,;t t
3915 s,@host_alias@,$host_alias,;t t
3916 s,@target_alias@,$target_alias,;t t
3917 s,@DEFS@,$DEFS,;t t
3918 s,@ECHO_C@,$ECHO_C,;t t
3919 s,@ECHO_N@,$ECHO_N,;t t
3920 s,@ECHO_T@,$ECHO_T,;t t
3921 s,@LIBS@,$LIBS,;t t
3922 s,@build@,$build,;t t
3923 s,@build_cpu@,$build_cpu,;t t
3924 s,@build_vendor@,$build_vendor,;t t
3925 s,@build_os@,$build_os,;t t
3926 s,@host@,$host,;t t
3927 s,@host_cpu@,$host_cpu,;t t
3928 s,@host_vendor@,$host_vendor,;t t
3929 s,@host_os@,$host_os,;t t
3930 s,@target@,$target,;t t
3931 s,@target_cpu@,$target_cpu,;t t
3932 s,@target_vendor@,$target_vendor,;t t
3933 s,@target_os@,$target_os,;t t
3934 s,@target_noncanonical@,$target_noncanonical,;t t
3935 s,@build_libsubdir@,$build_libsubdir,;t t
3936 s,@build_subdir@,$build_subdir,;t t
3937 s,@host_subdir@,$host_subdir,;t t
3938 s,@target_subdir@,$target_subdir,;t t
3939 s,@MAINT@,$MAINT,;t t
3940 s,@multi_basedir@,$multi_basedir,;t t
3941 s,@toolexecdir@,$toolexecdir,;t t
3942 s,@toolexeclibdir@,$toolexeclibdir,;t t
3943 s,@CC@,$CC,;t t
3944 s,@ac_ct_CC@,$ac_ct_CC,;t t
3945 s,@EXEEXT@,$EXEEXT,;t t
3946 s,@OBJEXT@,$OBJEXT,;t t
3947 s,@CFLAGS@,$CFLAGS,;t t
3948 s,@enable_shared@,$enable_shared,;t t
3949 s,@LN_S@,$LN_S,;t t
3950 s,@default_gnatlib_target@,$default_gnatlib_target,;t t
3951 s,@LDFLAGS@,$LDFLAGS,;t t
3952 s,@CPPFLAGS@,$CPPFLAGS,;t t
3953 s,@warn_cflags@,$warn_cflags,;t t
3954 s,@LIBOBJS@,$LIBOBJS,;t t
3955 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3956 CEOF
3958 _ACEOF
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
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
3985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3986 else
3987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3989 ac_sed_frag=`expr $ac_sed_frag + 1`
3990 ac_beg=$ac_end
3991 ac_end=`expr $ac_end + $ac_max_sed_lines`
3993 done
3994 if test -z "$ac_sed_cmds"; then
3995 ac_sed_cmds=cat
3997 fi # test -n "$CONFIG_FILES"
3999 _ACEOF
4000 cat >>$CONFIG_STATUS <<\_ACEOF
4001 for 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
4005 cat >$tmp/stdin
4006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4010 * ) ac_file_in=$ac_file.in ;;
4011 esac
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
4016 X"$ac_file" : 'X\(//\)[^/]' \| \
4017 X"$ac_file" : 'X\(//\)$' \| \
4018 X"$ac_file" : 'X\(/\)' \| \
4019 . : '\(.\)' 2>/dev/null ||
4020 echo 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
4035 X"$as_dir" : 'X\(//\)[^/]' \| \
4036 X"$as_dir" : 'X\(//\)$' \| \
4037 X"$as_dir" : 'X\(/\)' \| \
4038 . : '\(.\)' 2>/dev/null ||
4039 echo 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
4048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4049 { (exit 1); exit 1; }; }; }
4051 ac_builddir=.
4053 if 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'`
4057 else
4058 ac_dir_suffix= ac_top_builddir=
4061 case $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 ;;
4075 esac
4077 # Do not use `cd foo && pwd` to compute absolute paths, because
4078 # the directories may not exist.
4079 case `pwd` in
4080 .) ac_abs_builddir="$ac_dir";;
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;;
4087 esac
4088 case $ac_abs_builddir in
4089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
4096 esac
4097 case $ac_abs_builddir in
4098 .) ac_abs_srcdir=$ac_srcdir;;
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;;
4105 esac
4106 case $ac_abs_builddir in
4107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
4114 esac
4118 if test x"$ac_file" != x-; then
4119 { echo "$as_me:$LINENO: creating $ac_file" >&5
4120 echo "$as_me: creating $ac_file" >&6;}
4121 rm -f "$ac_file"
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. "
4131 configure_input=$configure_input"Generated from `echo $ac_file_in |
4132 sed 's,.*/,,'` by configure."
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 [\\/$]*)
4141 # Absolute (can't be DOS-style, as IFS=:)
4142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4143 echo "$as_me: error: cannot find input file: $f" >&2;}
4144 { (exit 1); exit 1; }; }
4145 echo "$f";;
4146 *) # Relative
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
4156 echo "$as_me: error: cannot find input file: $f" >&2;}
4157 { (exit 1); exit 1; }; }
4158 fi;;
4159 esac
4160 done` || { (exit 1); exit 1; }
4161 _ACEOF
4162 cat >>$CONFIG_STATUS <<_ACEOF
4163 sed "$ac_vpsub
4164 $extrasub
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<\_ACEOF
4168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4169 s,@configure_input@,$configure_input,;t t
4170 s,@srcdir@,$ac_srcdir,;t t
4171 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4172 s,@top_srcdir@,$ac_top_srcdir,;t t
4173 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4174 s,@builddir@,$ac_builddir,;t t
4175 s,@abs_builddir@,$ac_abs_builddir,;t t
4176 s,@top_builddir@,$ac_top_builddir,;t t
4177 s,@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
4187 done
4188 _ACEOF
4189 cat >>$CONFIG_STATUS <<\_ACEOF
4192 # CONFIG_COMMANDS section.
4194 for 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 ||
4203 echo 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 ||
4222 echo 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
4231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4232 { (exit 1); exit 1; }; }; }
4234 ac_builddir=.
4236 if 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'`
4240 else
4241 ac_dir_suffix= ac_top_builddir=
4244 case $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 ;;
4258 esac
4260 # Do not use `cd foo && pwd` to compute absolute paths, because
4261 # the directories may not exist.
4262 case `pwd` in
4263 .) ac_abs_builddir="$ac_dir";;
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;;
4270 esac
4271 case $ac_abs_builddir in
4272 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
4279 esac
4280 case $ac_abs_builddir in
4281 .) ac_abs_srcdir=$ac_srcdir;;
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;;
4288 esac
4289 case $ac_abs_builddir in
4290 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
4297 esac
4300 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4301 echo "$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.
4306 case " $CONFIG_FILES " in
4307 *" Makefile "*)
4308 ac_file=Makefile . ${multi_basedir}/config-ml.in
4310 esac ;;
4311 esac
4312 done
4313 _ACEOF
4315 cat >>$CONFIG_STATUS <<\_ACEOF
4317 { (exit 0); exit 0; }
4318 _ACEOF
4319 chmod +x $CONFIG_STATUS
4320 ac_clean_files=$ac_clean_files_save
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.
4331 if 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; }