merge with trunk @ 139506
[official-gcc.git] / gnattools / configure
blob7e5513b0118b4e2ad45d6f7fe395fc5b284a77f9
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 MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S default_gnattools_target TOOLS_TARGET_PAIRS EXTRA_GNATTOOLS ADA_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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
812 Some influential environment variables:
813 CC C compiler command
814 CFLAGS C compiler flags
815 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
816 nonstandard directory <lib dir>
817 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
818 headers in a nonstandard directory <include dir>
820 Use these variables to override the choices made by `configure' or to help
821 it to find libraries and programs with nonstandard names/locations.
823 _ACEOF
826 if test "$ac_init_help" = "recursive"; then
827 # If there are subdirs, report their specific --help.
828 ac_popdir=`pwd`
829 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
830 test -d $ac_dir || continue
831 ac_builddir=.
833 if test "$ac_dir" != .; then
834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
835 # A "../" for each directory in $ac_dir_suffix.
836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
837 else
838 ac_dir_suffix= ac_top_builddir=
841 case $srcdir in
842 .) # No --srcdir option. We are building in place.
843 ac_srcdir=.
844 if test -z "$ac_top_builddir"; then
845 ac_top_srcdir=.
846 else
847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
848 fi ;;
849 [\\/]* | ?:[\\/]* ) # Absolute path.
850 ac_srcdir=$srcdir$ac_dir_suffix;
851 ac_top_srcdir=$srcdir ;;
852 *) # Relative path.
853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
855 esac
857 # Do not use `cd foo && pwd` to compute absolute paths, because
858 # the directories may not exist.
859 case `pwd` in
860 .) ac_abs_builddir="$ac_dir";;
862 case "$ac_dir" in
863 .) ac_abs_builddir=`pwd`;;
864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
866 esac;;
867 esac
868 case $ac_abs_builddir in
869 .) ac_abs_top_builddir=${ac_top_builddir}.;;
871 case ${ac_top_builddir}. in
872 .) ac_abs_top_builddir=$ac_abs_builddir;;
873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
875 esac;;
876 esac
877 case $ac_abs_builddir in
878 .) ac_abs_srcdir=$ac_srcdir;;
880 case $ac_srcdir in
881 .) ac_abs_srcdir=$ac_abs_builddir;;
882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
884 esac;;
885 esac
886 case $ac_abs_builddir in
887 .) ac_abs_top_srcdir=$ac_top_srcdir;;
889 case $ac_top_srcdir in
890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
893 esac;;
894 esac
896 cd $ac_dir
897 # Check for guested configure; otherwise get Cygnus style configure.
898 if test -f $ac_srcdir/configure.gnu; then
899 echo
900 $SHELL $ac_srcdir/configure.gnu --help=recursive
901 elif test -f $ac_srcdir/configure; then
902 echo
903 $SHELL $ac_srcdir/configure --help=recursive
904 elif test -f $ac_srcdir/configure.ac ||
905 test -f $ac_srcdir/configure.in; then
906 echo
907 $ac_configure --help
908 else
909 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
911 cd $ac_popdir
912 done
915 test -n "$ac_init_help" && exit 0
916 if $ac_init_version; then
917 cat <<\_ACEOF
919 Copyright (C) 2003 Free Software Foundation, Inc.
920 This configure script is free software; the Free Software Foundation
921 gives unlimited permission to copy, distribute and modify it.
922 _ACEOF
923 exit 0
925 exec 5>config.log
926 cat >&5 <<_ACEOF
927 This file contains any messages produced by compilers while
928 running configure, to aid debugging if configure makes a mistake.
930 It was created by $as_me, which was
931 generated by GNU Autoconf 2.59. Invocation command line was
933 $ $0 $@
935 _ACEOF
937 cat <<_ASUNAME
938 ## --------- ##
939 ## Platform. ##
940 ## --------- ##
942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
954 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
959 _ASUNAME
961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
962 for as_dir in $PATH
964 IFS=$as_save_IFS
965 test -z "$as_dir" && as_dir=.
966 echo "PATH: $as_dir"
967 done
969 } >&5
971 cat >&5 <<_ACEOF
974 ## ----------- ##
975 ## Core tests. ##
976 ## ----------- ##
978 _ACEOF
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Strip out --silent because we don't want to record it for future runs.
984 # Also quote any args containing shell meta-characters.
985 # Make two passes to allow for proper duplicate-argument suppression.
986 ac_configure_args=
987 ac_configure_args0=
988 ac_configure_args1=
989 ac_sep=
990 ac_must_keep_next=false
991 for ac_pass in 1 2
993 for ac_arg
995 case $ac_arg in
996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
999 continue ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case $ac_pass in
1004 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1006 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1007 if test $ac_must_keep_next = true; then
1008 ac_must_keep_next=false # Got value, back to normal.
1009 else
1010 case $ac_arg in
1011 *=* | --config-cache | -C | -disable-* | --disable-* \
1012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1014 | -with-* | --with-* | -without-* | --without-* | --x)
1015 case "$ac_configure_args0 " in
1016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1017 esac
1019 -* ) ac_must_keep_next=true ;;
1020 esac
1022 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1023 # Get rid of the leading space.
1024 ac_sep=" "
1026 esac
1027 done
1028 done
1029 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1030 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1032 # When interrupted or exit'd, cleanup temporary files, and complete
1033 # config.log. We remove comments because anyway the quotes in there
1034 # would cause problems or look ugly.
1035 # WARNING: Be sure not to use single quotes in there, as some shells,
1036 # such as our DU 5.0 friend, will then `close' the trap.
1037 trap 'exit_status=$?
1038 # Save into config.log some information that might help in debugging.
1040 echo
1042 cat <<\_ASBOX
1043 ## ---------------- ##
1044 ## Cache variables. ##
1045 ## ---------------- ##
1046 _ASBOX
1047 echo
1048 # The following way of writing the cache mishandles newlines in values,
1050 (set) 2>&1 |
1051 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1052 *ac_space=\ *)
1053 sed -n \
1054 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058 sed -n \
1059 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1061 esac;
1063 echo
1065 cat <<\_ASBOX
1066 ## ----------------- ##
1067 ## Output variables. ##
1068 ## ----------------- ##
1069 _ASBOX
1070 echo
1071 for ac_var in $ac_subst_vars
1073 eval ac_val=$`echo $ac_var`
1074 echo "$ac_var='"'"'$ac_val'"'"'"
1075 done | sort
1076 echo
1078 if test -n "$ac_subst_files"; then
1079 cat <<\_ASBOX
1080 ## ------------- ##
1081 ## Output files. ##
1082 ## ------------- ##
1083 _ASBOX
1084 echo
1085 for ac_var in $ac_subst_files
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1089 done | sort
1090 echo
1093 if test -s confdefs.h; then
1094 cat <<\_ASBOX
1095 ## ----------- ##
1096 ## confdefs.h. ##
1097 ## ----------- ##
1098 _ASBOX
1099 echo
1100 sed "/^$/d" confdefs.h | sort
1101 echo
1103 test "$ac_signal" != 0 &&
1104 echo "$as_me: caught signal $ac_signal"
1105 echo "$as_me: exit $exit_status"
1106 } >&5
1107 rm -f core *.core &&
1108 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1109 exit $exit_status
1111 for ac_signal in 1 2 13 15; do
1112 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1113 done
1114 ac_signal=0
1116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1117 rm -rf conftest* confdefs.h
1118 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1119 echo >confdefs.h
1121 # Predefined preprocessor variables.
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_NAME "$PACKAGE_NAME"
1125 _ACEOF
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1130 _ACEOF
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1135 _ACEOF
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_STRING "$PACKAGE_STRING"
1140 _ACEOF
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1145 _ACEOF
1148 # Let the site file select an alternate cache file if it wants to.
1149 # Prefer explicitly selected file to automatically selected ones.
1150 if test -z "$CONFIG_SITE"; then
1151 if test "x$prefix" != xNONE; then
1152 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1153 else
1154 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1157 for ac_site_file in $CONFIG_SITE; do
1158 if test -r "$ac_site_file"; then
1159 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1160 echo "$as_me: loading site script $ac_site_file" >&6;}
1161 sed 's/^/| /' "$ac_site_file" >&5
1162 . "$ac_site_file"
1164 done
1166 if test -r "$cache_file"; then
1167 # Some versions of bash will fail to source /dev/null (special
1168 # files actually), so we avoid doing that.
1169 if test -f "$cache_file"; then
1170 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1171 echo "$as_me: loading cache $cache_file" >&6;}
1172 case $cache_file in
1173 [\\/]* | ?:[\\/]* ) . $cache_file;;
1174 *) . ./$cache_file;;
1175 esac
1177 else
1178 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1179 echo "$as_me: creating cache $cache_file" >&6;}
1180 >$cache_file
1183 # Check that the precious variables saved in the cache have kept the same
1184 # value.
1185 ac_cache_corrupted=false
1186 for ac_var in `(set) 2>&1 |
1187 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1189 eval ac_new_set=\$ac_env_${ac_var}_set
1190 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1191 eval ac_new_val="\$ac_env_${ac_var}_value"
1192 case $ac_old_set,$ac_new_set in
1193 set,)
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1197 ,set)
1198 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1199 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1200 ac_cache_corrupted=: ;;
1201 ,);;
1203 if test "x$ac_old_val" != "x$ac_new_val"; then
1204 # differences in whitespace do not lead to failure.
1205 ac_old_val_w=`echo x $ac_old_val`
1206 ac_new_val_w=`echo x $ac_new_val`
1207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1208 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1209 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1210 ac_cache_corrupted=:
1211 else
1212 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1213 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1214 eval $ac_var=\$ac_old_val
1216 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1217 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1218 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1219 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1220 fi;;
1221 esac
1222 # Pass precious variables to config.status.
1223 if test "$ac_new_set" = set; then
1224 case $ac_new_val in
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 *) ac_arg=$ac_var=$ac_new_val ;;
1228 esac
1229 case " $ac_configure_args " in
1230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1232 esac
1234 done
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1237 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1238 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242 { (exit 1); exit 1; }; }
1245 ac_ext=c
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 # Command-line options.
1277 # Very limited version of AC_MAINTAINER_MODE.
1278 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1279 if test "${enable_maintainer_mode+set}" = set; then
1280 enableval="$enable_maintainer_mode"
1281 case ${enable_maintainer_mode} in
1282 yes) MAINT='' ;;
1283 no) MAINT='#' ;;
1284 *) { { echo "$as_me:$LINENO: error: --enable-maintainer-mode must be yes or no" >&5
1285 echo "$as_me: error: --enable-maintainer-mode must be yes or no" >&2;}
1286 { (exit 1); exit 1; }; } ;;
1287 esac
1288 maintainer_mode=${enableval}
1289 else
1290 MAINT='#'
1293 # Start of actual configure tests
1295 ac_aux_dir=
1296 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1297 if test -f $ac_dir/install-sh; then
1298 ac_aux_dir=$ac_dir
1299 ac_install_sh="$ac_aux_dir/install-sh -c"
1300 break
1301 elif test -f $ac_dir/install.sh; then
1302 ac_aux_dir=$ac_dir
1303 ac_install_sh="$ac_aux_dir/install.sh -c"
1304 break
1305 elif test -f $ac_dir/shtool; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/shtool install -c"
1308 break
1310 done
1311 if test -z "$ac_aux_dir"; then
1312 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1313 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1314 { (exit 1); exit 1; }; }
1316 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1317 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1318 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320 # Find a good install program. We prefer a C program (faster),
1321 # so one script is as good as another. But avoid the broken or
1322 # incompatible versions:
1323 # SysV /etc/install, /usr/sbin/install
1324 # SunOS /usr/etc/install
1325 # IRIX /sbin/install
1326 # AIX /bin/install
1327 # AmigaOS /C/install, which installs bootblocks on floppy discs
1328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1331 # OS/2's system install, which has a completely different semantic
1332 # ./install, which can be erroneously created by make from ./install.sh.
1333 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1335 if test -z "$INSTALL"; then
1336 if test "${ac_cv_path_install+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 for as_dir in $PATH
1342 IFS=$as_save_IFS
1343 test -z "$as_dir" && as_dir=.
1344 # Account for people who put trailing slashes in PATH elements.
1345 case $as_dir/ in
1346 ./ | .// | /cC/* | \
1347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1348 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1349 /usr/ucb/* ) ;;
1351 # OSF1 and SCO ODT 3.0 have their own names for install.
1352 # Don't use installbsd from OSF since it installs stuff as root
1353 # by default.
1354 for ac_prog in ginstall scoinst install; do
1355 for ac_exec_ext in '' $ac_executable_extensions; do
1356 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1357 if test $ac_prog = install &&
1358 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1359 # AIX install. It has an incompatible calling convention.
1361 elif test $ac_prog = install &&
1362 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1363 # program-specific install script used by HP pwplus--don't use.
1365 else
1366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1367 break 3
1370 done
1371 done
1373 esac
1374 done
1378 if test "${ac_cv_path_install+set}" = set; then
1379 INSTALL=$ac_cv_path_install
1380 else
1381 # As a last resort, use the slow shell script. We don't cache a
1382 # path for INSTALL within a source directory, because that will
1383 # break other packages using the cache if that directory is
1384 # removed, or if the path is relative.
1385 INSTALL=$ac_install_sh
1388 echo "$as_me:$LINENO: result: $INSTALL" >&5
1389 echo "${ECHO_T}$INSTALL" >&6
1391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1392 # It thinks the first close brace ends the variable substitution.
1393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1426 build=$ac_cv_build
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$as_me:$LINENO: checking target system type" >&5
1455 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456 if test "${ac_cv_target+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 ac_cv_target_alias=$target_alias
1460 test "x$ac_cv_target_alias" = "x" &&
1461 ac_cv_target_alias=$ac_cv_host_alias
1462 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1469 echo "${ECHO_T}$ac_cv_target" >&6
1470 target=$ac_cv_target
1471 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 # The aliases save the names the user supplied, while $host etc.
1477 # will get canonicalized.
1478 test -n "$target_alias" &&
1479 test "$program_prefix$program_suffix$program_transform_name" = \
1480 NONENONEs,x,x, &&
1481 program_prefix=${target_alias}-
1483 case ${build_alias} in
1484 "") build_noncanonical=${build} ;;
1485 *) build_noncanonical=${build_alias} ;;
1486 esac
1488 case ${host_alias} in
1489 "") host_noncanonical=${build_noncanonical} ;;
1490 *) host_noncanonical=${host_alias} ;;
1491 esac
1493 case ${target_alias} in
1494 "") target_noncanonical=${host_noncanonical} ;;
1495 *) target_noncanonical=${target_alias} ;;
1496 esac
1501 # Need to pass this down for now :-P
1502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1504 LN_S=$as_ln_s
1505 if test "$LN_S" = "ln -s"; then
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1510 echo "${ECHO_T}no, using $LN_S" >&6
1514 # Determine what to build for 'gnattools'
1515 if test $build = $target ; then
1516 # Note that build=target is almost certainly the wrong test; FIXME
1517 default_gnattools_target="gnattools-native"
1518 else
1519 default_gnattools_target="gnattools-cross"
1523 # Target-specific stuff (defaults)
1524 TOOLS_TARGET_PAIRS=
1526 EXTRA_GNATTOOLS=
1529 # Per-target case statement
1530 # -------------------------
1531 case "${target}" in
1532 alpha*-dec-vx*) # Unlike all other Vxworks
1534 m68k*-wrs-vx* \
1535 | powerpc*-wrs-vxworks \
1536 | sparc*-wrs-vx* \
1537 | *86-wrs-vxworks \
1538 | mips*-wrs-vx*)
1539 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
1541 sparc-sun-solaris*)
1542 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
1544 *86-*-solaris2*)
1545 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
1547 *86-*-linux* \
1548 | powerpc*-*-linux* \
1549 | *ia64-*-linux* \
1550 | alpha*-*-linux* \
1551 | sparc*-*-linux* \
1552 | hppa*-*-linux* \
1553 | *x86_64-*-linux*)
1554 TOOLS_TARGET_PAIRS="\
1555 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1556 indepsw.adb<indepsw-gnu.adb"
1558 s390*-*-linux*)
1559 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
1561 *86-*-freebsd*)
1562 TOOLS_TARGET_PAIRS="\
1563 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1564 indepsw.adb<indepsw-gnu.adb"
1566 mips-sgi-irix*)
1567 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb"
1569 hppa*-hp-hpux10*) # Unlike hpux11
1571 hppa*-hp-hpux11*)
1572 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
1574 *-ibm-aix*)
1575 TOOLS_TARGET_PAIRS="\
1576 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
1577 indepsw.adb<indepsw-aix.adb"
1579 alpha*-dec-osf*)
1580 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb"
1582 alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
1583 | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
1584 TOOLS_TARGET_PAIRS="\
1585 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1586 symbols.adb<symbols-vms.adb \
1587 symbols-processing.adb<symbols-processing-vms-alpha.adb"
1589 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
1591 ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
1592 | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
1593 TOOLS_TARGET_PAIRS="\
1594 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1595 symbols.adb<symbols-vms.adb \
1596 symbols-processing.adb<symbols-processing-vms-ia64.adb"
1598 EXTRA_GNATTOOLS='../../gnatlbr$(exeext) ../../gnatsym$(exeext)'
1600 *-*-cygwin32* | *-*-mingw32* | *-*-pe)
1601 TOOLS_TARGET_PAIRS="\
1602 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1603 indepsw.adb<indepsw-mingw.adb"
1604 EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
1606 powerpc-*-darwin* | *86-*-darwin*)
1607 TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
1609 *-*-lynxos)
1610 TOOLS_TARGET_PAIRS="\
1611 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1612 indepsw.adb<indepsw-gnu.adb"
1614 esac
1616 # From user or toplevel makefile.
1619 ac_ext=c
1620 ac_cpp='$CPP $CPPFLAGS'
1621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1646 done
1647 done
1651 CC=$ac_cv_prog_CC
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1655 else
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$ac_cv_prog_CC"; then
1662 ac_ct_CC=$CC
1663 # Extract the first word of "gcc", so it can be a program name with args.
1664 set dummy gcc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1698 CC=$ac_ct_CC
1699 else
1700 CC="$ac_cv_prog_CC"
1703 if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1706 set dummy ${ac_tool_prefix}cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="${ac_tool_prefix}cc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1726 done
1727 done
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1741 if test -z "$ac_cv_prog_CC"; then
1742 ac_ct_CC=$CC
1743 # Extract the first word of "cc", so it can be a program name with args.
1744 set dummy cc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 if test -n "$ac_ct_CC"; then
1751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_ac_ct_CC="cc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1764 done
1765 done
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 CC=$ac_ct_CC
1779 else
1780 CC="$ac_cv_prog_CC"
1784 if test -z "$CC"; then
1785 # Extract the first word of "cc", so it can be a program name with args.
1786 set dummy cc; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 ac_prog_rejected=no
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1804 ac_prog_rejected=yes
1805 continue
1807 ac_cv_prog_CC="cc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1811 done
1812 done
1814 if test $ac_prog_rejected = yes; then
1815 # We found a bogon in the path, so make sure we never use it.
1816 set dummy $ac_cv_prog_CC
1817 shift
1818 if test $# != 0; then
1819 # We chose a different compiler from the bogus one.
1820 # However, it has the same basename, so the bogon will be chosen
1821 # first if we set CC to just the basename; use the full file name.
1822 shift
1823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1838 if test -z "$CC"; then
1839 if test -n "$ac_tool_prefix"; then
1840 for ac_prog in cl
1842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1877 test -n "$CC" && break
1878 done
1880 if test -z "$CC"; then
1881 ac_ct_CC=$CC
1882 for ac_prog in cl
1884 # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 test -n "$ac_ct_CC" && break
1920 done
1922 CC=$ac_ct_CC
1928 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: no acceptable C compiler found in \$PATH
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1936 # Provide some information about the compiler.
1937 echo "$as_me:$LINENO:" \
1938 "checking for C compiler version" >&5
1939 ac_compiler=`set X $ac_compile; echo $2`
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1941 (eval $ac_compiler --version </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1946 (eval $ac_compiler -v </dev/null >&5) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }
1950 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1951 (eval $ac_compiler -V </dev/null >&5) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }
1956 cat >conftest.$ac_ext <<_ACEOF
1957 /* confdefs.h. */
1958 _ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1964 main ()
1968 return 0;
1970 _ACEOF
1971 ac_clean_files_save=$ac_clean_files
1972 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1973 # Try to create an executable without -o first, disregard a.out.
1974 # It will help us diagnose broken compilers, and finding out an intuition
1975 # of exeext.
1976 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1977 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1978 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1979 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1980 (eval $ac_link_default) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 # Find the output, starting from the most likely. This scheme is
1985 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1986 # resort.
1988 # Be careful to initialize this variable, since it used to be cached.
1989 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1990 ac_cv_exeext=
1991 # b.out is created by i960 compilers.
1992 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1994 test -f "$ac_file" || continue
1995 case $ac_file in
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1998 conftest.$ac_ext )
1999 # This is the source file.
2001 [ab].out )
2002 # We found the default executable, but exeext='' is most
2003 # certainly right.
2004 break;;
2005 *.* )
2006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007 # FIXME: I believe we export ac_cv_exeext for Libtool,
2008 # but it would be cool to find out if it's true. Does anybody
2009 # maintain Libtool? --akim.
2010 export ac_cv_exeext
2011 break;;
2013 break;;
2014 esac
2015 done
2016 else
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2021 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2022 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: C compiler cannot create executables
2025 See \`config.log' for more details." >&2;}
2026 { (exit 77); exit 77; }; }; }
2029 ac_exeext=$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_file" >&5
2031 echo "${ECHO_T}$ac_file" >&6
2033 # Check the compiler produces executables we can run. If not, either
2034 # the compiler is broken, or we cross compile.
2035 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2036 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2037 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2038 # If not cross compiling, check that we can run a simple program.
2039 if test "$cross_compiling" != yes; then
2040 if { ac_try='./$ac_file'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 (eval $ac_try) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2046 cross_compiling=no
2047 else
2048 if test "$cross_compiling" = maybe; then
2049 cross_compiling=yes
2050 else
2051 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2054 If you meant to cross compile, use \`--host'.
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: cannot run C compiled programs.
2057 If you meant to cross compile, use \`--host'.
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }; }
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2066 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 # `rm'.
2086 for ac_file in conftest.exe conftest conftest.*; do
2087 test -f "$ac_file" || continue
2088 case $ac_file in
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 export ac_cv_exeext
2092 break;;
2093 * ) break;;
2094 esac
2095 done
2096 else
2097 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2098 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&2;}
2103 { (exit 1); exit 1; }; }; }
2106 rm -f conftest$ac_cv_exeext
2107 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2108 echo "${ECHO_T}$ac_cv_exeext" >&6
2110 rm -f conftest.$ac_ext
2111 EXEEXT=$ac_cv_exeext
2112 ac_exeext=$EXEEXT
2113 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2114 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2115 if test "${ac_cv_objext+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2126 main ()
2130 return 0;
2132 _ACEOF
2133 rm -f conftest.o conftest.obj
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2142 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2143 break;;
2144 esac
2145 done
2146 else
2147 echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2150 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2151 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h. */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2178 main ()
2180 #ifndef __GNUC__
2181 choke me
2182 #endif
2185 return 0;
2187 _ACEOF
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2191 ac_status=$?
2192 grep -v '^ *+' conftest.er1 >conftest.err
2193 rm -f conftest.er1
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 ac_compiler_gnu=yes
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 ac_compiler_gnu=no
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2226 CFLAGS="-g"
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h. */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2240 main ()
2244 return 0;
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2250 ac_status=$?
2251 grep -v '^ *+' conftest.er1 >conftest.err
2252 rm -f conftest.er1
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 ac_cv_prog_cc_g=yes
2270 else
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 ac_cv_prog_cc_g=no
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281 CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283 if test "$GCC" = yes; then
2284 CFLAGS="-g -O2"
2285 else
2286 CFLAGS="-g"
2288 else
2289 if test "$GCC" = yes; then
2290 CFLAGS="-O2"
2291 else
2292 CFLAGS=
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 ac_cv_prog_cc_stdc=no
2301 ac_save_CC=$CC
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 #include <stdarg.h>
2309 #include <stdio.h>
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2316 char **p;
2317 int i;
2319 return p[i];
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2323 char *s;
2324 va_list v;
2325 va_start (v,p);
2326 s = g (p, va_arg (v,int));
2327 va_end (v);
2328 return s;
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2332 function prototypes and stuff, but not '\xHH' hex character constants.
2333 These don't provoke an error unfortunately, instead are silently treated
2334 as 'x'. The following induces an error, until -std1 is added to get
2335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2336 array size at least. It's necessary to write '\x00'==0 to get something
2337 that's true only with -std1. */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2344 int argc;
2345 char **argv;
2347 main ()
2349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2351 return 0;
2353 _ACEOF
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX -qlanglvl=ansi
2357 # Ultrix and OSF/1 -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions -Aa -D_HPUX_SOURCE
2360 # SVR4 -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363 CC="$ac_save_CC $ac_arg"
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_stdc=$ac_arg
2387 break
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext
2394 done
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2396 CC=$ac_save_CC
2400 case "x$ac_cv_prog_cc_stdc" in
2401 x|xno)
2402 echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407 CC="$CC $ac_cv_prog_cc_stdc" ;;
2408 esac
2410 # Some people use a C++ compiler to compile C. Since we use `exit',
2411 # in C++ we need to declare it. In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #ifndef __cplusplus
2416 choke me
2417 #endif
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2441 for ac_declaration in \
2442 '' \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2447 'void exit (int);'
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2455 $ac_declaration
2456 #include <stdlib.h>
2458 main ()
2460 exit (42);
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 continue
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 $ac_declaration
2503 main ()
2505 exit (42);
2507 return 0;
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2532 break
2533 else
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2547 else
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559 warn_cflags=
2560 if test "x$GCC" = "xyes"; then
2561 warn_cflags='$(GCC_WARN_CFLAGS)'
2565 # Output: create a Makefile.
2566 ac_config_files="$ac_config_files Makefile"
2569 cat >confcache <<\_ACEOF
2570 # This file is a shell script that caches the results of configure
2571 # tests run on this system so they can be shared between configure
2572 # scripts and configure runs, see configure's option --config-cache.
2573 # It is not useful on other systems. If it contains results you don't
2574 # want to keep, you may remove or edit it.
2576 # config.status only pays attention to the cache file if you give it
2577 # the --recheck option to rerun configure.
2579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2581 # following values.
2583 _ACEOF
2585 # The following way of writing the cache mishandles newlines in values,
2586 # but we know of no workaround that is simple, portable, and efficient.
2587 # So, don't put newlines in cache variables' values.
2588 # Ultrix sh set writes to stderr and can't be redirected directly,
2589 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593 *ac_space=\ *)
2594 # `set' does not quote correctly, so add quotes (double-quote
2595 # substitution turns \\\\ into \\, and sed turns \\ into \).
2596 sed -n \
2597 "s/'/'\\\\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2601 # `set' quotes correctly as required by POSIX, so do not add quotes.
2602 sed -n \
2603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2605 esac;
2607 sed '
2608 t clear
2609 : clear
2610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2611 t end
2612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2613 : end' >>confcache
2614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2615 if test -w $cache_file; then
2616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2617 cat confcache >$cache_file
2618 else
2619 echo "not updating unwritable cache $cache_file"
2622 rm -f confcache
2624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2625 # Let make expand exec_prefix.
2626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2630 # trailing colons and then remove the whole line if VPATH becomes empty
2631 # (actually we leave an empty line to preserve line numbers).
2632 if test "x$srcdir" = x.; then
2633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2634 s/:*\$(srcdir):*/:/;
2635 s/:*\${srcdir}:*/:/;
2636 s/:*@srcdir@:*/:/;
2637 s/^\([^=]*=[ ]*\):*/\1/;
2638 s/:*$//;
2639 s/^[^=]*=[ ]*$//;
2643 # Transform confdefs.h into DEFS.
2644 # Protect against shell expansion while executing Makefile rules.
2645 # Protect against Makefile macro expansion.
2647 # If the first sed substitution is executed (which looks for macros that
2648 # take arguments), then we branch to the quote section. Otherwise,
2649 # look for a macro that doesn't take arguments.
2650 cat >confdef2opt.sed <<\_ACEOF
2651 t clear
2652 : clear
2653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2654 t quote
2655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2656 t quote
2658 : quote
2659 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2660 s,\[,\\&,g
2661 s,\],\\&,g
2662 s,\$,$$,g
2664 _ACEOF
2665 # We use echo to avoid assuming a particular line-breaking character.
2666 # The extra dot is to prevent the shell from consuming trailing
2667 # line-breaks from the sub-command output. A line-break within
2668 # single-quotes doesn't work because, if this script is created in a
2669 # platform that uses two characters for line-breaks (e.g., DOS), tr
2670 # would break.
2671 ac_LF_and_DOT=`echo; echo .`
2672 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2673 rm -f confdef2opt.sed
2676 ac_libobjs=
2677 ac_ltlibobjs=
2678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2679 # 1. Remove the extension, and $U if already installed.
2680 ac_i=`echo "$ac_i" |
2681 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2682 # 2. Add them.
2683 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2684 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2685 done
2686 LIBOBJS=$ac_libobjs
2688 LTLIBOBJS=$ac_ltlibobjs
2692 : ${CONFIG_STATUS=./config.status}
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2697 cat >$CONFIG_STATUS <<_ACEOF
2698 #! $SHELL
2699 # Generated by $as_me.
2700 # Run this file to recreate the current configuration.
2701 # Compiler output produced by configure, useful for debugging
2702 # configure, is in config.log if it exists.
2704 debug=false
2705 ac_cs_recheck=false
2706 ac_cs_silent=false
2707 SHELL=\${CONFIG_SHELL-$SHELL}
2708 _ACEOF
2710 cat >>$CONFIG_STATUS <<\_ACEOF
2711 ## --------------------- ##
2712 ## M4sh Initialization. ##
2713 ## --------------------- ##
2715 # Be Bourne compatible
2716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2717 emulate sh
2718 NULLCMD=:
2719 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2720 # is contrary to our usage. Disable this feature.
2721 alias -g '${1+"$@"}'='"$@"'
2722 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2723 set -o posix
2725 DUALCASE=1; export DUALCASE # for MKS sh
2727 # Support unset when possible.
2728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2729 as_unset=unset
2730 else
2731 as_unset=false
2735 # Work around bugs in pre-3.0 UWIN ksh.
2736 $as_unset ENV MAIL MAILPATH
2737 PS1='$ '
2738 PS2='> '
2739 PS4='+ '
2741 # NLS nuisances.
2742 for as_var in \
2743 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2744 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2745 LC_TELEPHONE LC_TIME
2747 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2748 eval $as_var=C; export $as_var
2749 else
2750 $as_unset $as_var
2752 done
2754 # Required to use basename.
2755 if expr a : '\(a\)' >/dev/null 2>&1; then
2756 as_expr=expr
2757 else
2758 as_expr=false
2761 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2762 as_basename=basename
2763 else
2764 as_basename=false
2768 # Name of the executable.
2769 as_me=`$as_basename "$0" ||
2770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2771 X"$0" : 'X\(//\)$' \| \
2772 X"$0" : 'X\(/\)$' \| \
2773 . : '\(.\)' 2>/dev/null ||
2774 echo X/"$0" |
2775 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2776 /^X\/\(\/\/\)$/{ s//\1/; q; }
2777 /^X\/\(\/\).*/{ s//\1/; q; }
2778 s/.*/./; q'`
2781 # PATH needs CR, and LINENO needs CR and PATH.
2782 # Avoid depending upon Character Ranges.
2783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2786 as_cr_digits='0123456789'
2787 as_cr_alnum=$as_cr_Letters$as_cr_digits
2789 # The user is always right.
2790 if test "${PATH_SEPARATOR+set}" != set; then
2791 echo "#! /bin/sh" >conf$$.sh
2792 echo "exit 0" >>conf$$.sh
2793 chmod +x conf$$.sh
2794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2795 PATH_SEPARATOR=';'
2796 else
2797 PATH_SEPARATOR=:
2799 rm -f conf$$.sh
2803 as_lineno_1=$LINENO
2804 as_lineno_2=$LINENO
2805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2806 test "x$as_lineno_1" != "x$as_lineno_2" &&
2807 test "x$as_lineno_3" = "x$as_lineno_2" || {
2808 # Find who we are. Look in the path if we contain no path at all
2809 # relative or not.
2810 case $0 in
2811 *[\\/]* ) as_myself=$0 ;;
2812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2818 done
2821 esac
2822 # We did not find ourselves, most probably we were run as `sh COMMAND'
2823 # in which case we are not to be found in the path.
2824 if test "x$as_myself" = x; then
2825 as_myself=$0
2827 if test ! -f "$as_myself"; then
2828 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2829 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2830 { (exit 1); exit 1; }; }
2832 case $CONFIG_SHELL in
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for as_base in sh bash ksh sh5; do
2840 case $as_dir in
2842 if ("$as_dir/$as_base" -c '
2843 as_lineno_1=$LINENO
2844 as_lineno_2=$LINENO
2845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2846 test "x$as_lineno_1" != "x$as_lineno_2" &&
2847 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2848 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2849 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2850 CONFIG_SHELL=$as_dir/$as_base
2851 export CONFIG_SHELL
2852 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2853 fi;;
2854 esac
2855 done
2856 done
2858 esac
2860 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2861 # uniformly replaced by the line number. The first 'sed' inserts a
2862 # line-number line before each line; the second 'sed' does the real
2863 # work. The second script uses 'N' to pair each line-number line
2864 # with the numbered line, and appends trailing '-' during
2865 # substitution so that $LINENO is not a special case at line end.
2866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2867 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2868 sed '=' <$as_myself |
2869 sed '
2871 s,$,-,
2872 : loop
2873 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2874 t loop
2875 s,-$,,
2876 s,^['$as_cr_digits']*\n,,
2877 ' >$as_me.lineno &&
2878 chmod +x $as_me.lineno ||
2879 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2880 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2881 { (exit 1); exit 1; }; }
2883 # Don't try to exec as it changes $[0], causing all sort of problems
2884 # (the dirname of $[0] is not the place where we might find the
2885 # original and so on. Autoconf is especially sensible to this).
2886 . ./$as_me.lineno
2887 # Exit status is that of the last command.
2888 exit
2892 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2893 *c*,-n*) ECHO_N= ECHO_C='
2894 ' ECHO_T=' ' ;;
2895 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2896 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2897 esac
2899 if expr a : '\(a\)' >/dev/null 2>&1; then
2900 as_expr=expr
2901 else
2902 as_expr=false
2905 rm -f conf$$ conf$$.exe conf$$.file
2906 echo >conf$$.file
2907 if ln -s conf$$.file conf$$ 2>/dev/null; then
2908 # We could just check for DJGPP; but this test a) works b) is more generic
2909 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2910 if test -f conf$$.exe; then
2911 # Don't use ln at all; we don't have any links
2912 as_ln_s='cp -p'
2913 else
2914 as_ln_s='ln -s'
2916 elif ln conf$$.file conf$$ 2>/dev/null; then
2917 as_ln_s=ln
2918 else
2919 as_ln_s='cp -p'
2921 rm -f conf$$ conf$$.exe conf$$.file
2923 if mkdir -p . 2>/dev/null; then
2924 as_mkdir_p=:
2925 else
2926 test -d ./-p && rmdir ./-p
2927 as_mkdir_p=false
2930 as_executable_p="test -f"
2932 # Sed expression to map a string onto a valid CPP name.
2933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2935 # Sed expression to map a string onto a valid variable name.
2936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2939 # IFS
2940 # We need space, tab and new line, in precisely that order.
2941 as_nl='
2943 IFS=" $as_nl"
2945 # CDPATH.
2946 $as_unset CDPATH
2948 exec 6>&1
2950 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2951 # report actual input values of CONFIG_FILES etc. instead of their
2952 # values after options handling. Logging --version etc. is OK.
2953 exec 5>>config.log
2955 echo
2956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2957 ## Running $as_me. ##
2958 _ASBOX
2959 } >&5
2960 cat >&5 <<_CSEOF
2962 This file was extended by $as_me, which was
2963 generated by GNU Autoconf 2.59. Invocation command line was
2965 CONFIG_FILES = $CONFIG_FILES
2966 CONFIG_HEADERS = $CONFIG_HEADERS
2967 CONFIG_LINKS = $CONFIG_LINKS
2968 CONFIG_COMMANDS = $CONFIG_COMMANDS
2969 $ $0 $@
2971 _CSEOF
2972 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2973 echo >&5
2974 _ACEOF
2976 # Files that config.status was made for.
2977 if test -n "$ac_config_files"; then
2978 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2981 if test -n "$ac_config_headers"; then
2982 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2985 if test -n "$ac_config_links"; then
2986 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2989 if test -n "$ac_config_commands"; then
2990 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2993 cat >>$CONFIG_STATUS <<\_ACEOF
2995 ac_cs_usage="\
2996 \`$as_me' instantiates files from templates according to the
2997 current configuration.
2999 Usage: $0 [OPTIONS] [FILE]...
3001 -h, --help print this help, then exit
3002 -V, --version print version number, then exit
3003 -q, --quiet do not print progress messages
3004 -d, --debug don't remove temporary files
3005 --recheck update $as_me by reconfiguring in the same conditions
3006 --file=FILE[:TEMPLATE]
3007 instantiate the configuration file FILE
3009 Configuration files:
3010 $config_files
3012 Report bugs to <bug-autoconf@gnu.org>."
3013 _ACEOF
3015 cat >>$CONFIG_STATUS <<_ACEOF
3016 ac_cs_version="\\
3017 config.status
3018 configured by $0, generated by GNU Autoconf 2.59,
3019 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3021 Copyright (C) 2003 Free Software Foundation, Inc.
3022 This config.status script is free software; the Free Software Foundation
3023 gives unlimited permission to copy, distribute and modify it."
3024 srcdir=$srcdir
3025 INSTALL="$INSTALL"
3026 _ACEOF
3028 cat >>$CONFIG_STATUS <<\_ACEOF
3029 # If no file are specified by the user, then we need to provide default
3030 # value. By we need to know if files were specified by the user.
3031 ac_need_defaults=:
3032 while test $# != 0
3034 case $1 in
3035 --*=*)
3036 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3037 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3038 ac_shift=:
3041 ac_option=$1
3042 ac_optarg=$2
3043 ac_shift=shift
3045 *) # This is not an option, so the user has probably given explicit
3046 # arguments.
3047 ac_option=$1
3048 ac_need_defaults=false;;
3049 esac
3051 case $ac_option in
3052 # Handling of the options.
3053 _ACEOF
3054 cat >>$CONFIG_STATUS <<\_ACEOF
3055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3056 ac_cs_recheck=: ;;
3057 --version | --vers* | -V )
3058 echo "$ac_cs_version"; exit 0 ;;
3059 --he | --h)
3060 # Conflict between --help and --header
3061 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3062 Try \`$0 --help' for more information." >&5
3063 echo "$as_me: error: ambiguous option: $1
3064 Try \`$0 --help' for more information." >&2;}
3065 { (exit 1); exit 1; }; };;
3066 --help | --hel | -h )
3067 echo "$ac_cs_usage"; exit 0 ;;
3068 --debug | --d* | -d )
3069 debug=: ;;
3070 --file | --fil | --fi | --f )
3071 $ac_shift
3072 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3073 ac_need_defaults=false;;
3074 --header | --heade | --head | --hea )
3075 $ac_shift
3076 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3077 ac_need_defaults=false;;
3078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3080 ac_cs_silent=: ;;
3082 # This is an error.
3083 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3084 Try \`$0 --help' for more information." >&5
3085 echo "$as_me: error: unrecognized option: $1
3086 Try \`$0 --help' for more information." >&2;}
3087 { (exit 1); exit 1; }; } ;;
3089 *) ac_config_targets="$ac_config_targets $1" ;;
3091 esac
3092 shift
3093 done
3095 ac_configure_extra_args=
3097 if $ac_cs_silent; then
3098 exec 6>/dev/null
3099 ac_configure_extra_args="$ac_configure_extra_args --silent"
3102 _ACEOF
3103 cat >>$CONFIG_STATUS <<_ACEOF
3104 if \$ac_cs_recheck; then
3105 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3106 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3109 _ACEOF
3115 cat >>$CONFIG_STATUS <<\_ACEOF
3116 for ac_config_target in $ac_config_targets
3118 case "$ac_config_target" in
3119 # Handling of arguments.
3120 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3121 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3122 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3123 { (exit 1); exit 1; }; };;
3124 esac
3125 done
3127 # If the user did not use the arguments to specify the items to instantiate,
3128 # then the envvar interface is used. Set only those that are not.
3129 # We use the long form for the default assignment because of an extremely
3130 # bizarre bug on SunOS 4.1.3.
3131 if $ac_need_defaults; then
3132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3135 # Have a temporary directory for convenience. Make it in the build tree
3136 # simply because there is no reason to put it here, and in addition,
3137 # creating and moving files from /tmp can sometimes cause problems.
3138 # Create a temporary directory, and hook for its removal unless debugging.
3139 $debug ||
3141 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3142 trap '{ (exit 1); exit 1; }' 1 2 13 15
3145 # Create a (secure) tmp directory for tmp files.
3148 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3149 test -n "$tmp" && test -d "$tmp"
3150 } ||
3152 tmp=./confstat$$-$RANDOM
3153 (umask 077 && mkdir $tmp)
3154 } ||
3156 echo "$me: cannot create a temporary directory in ." >&2
3157 { (exit 1); exit 1; }
3160 _ACEOF
3162 cat >>$CONFIG_STATUS <<_ACEOF
3165 # CONFIG_FILES section.
3168 # No need to generate the scripts if there are no CONFIG_FILES.
3169 # This happens for instance when ./config.status config.h
3170 if test -n "\$CONFIG_FILES"; then
3171 # Protect against being on the right side of a sed subst in config.status.
3172 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3173 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3174 s,@SHELL@,$SHELL,;t t
3175 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3176 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3177 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3178 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3179 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3180 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3181 s,@exec_prefix@,$exec_prefix,;t t
3182 s,@prefix@,$prefix,;t t
3183 s,@program_transform_name@,$program_transform_name,;t t
3184 s,@bindir@,$bindir,;t t
3185 s,@sbindir@,$sbindir,;t t
3186 s,@libexecdir@,$libexecdir,;t t
3187 s,@datadir@,$datadir,;t t
3188 s,@sysconfdir@,$sysconfdir,;t t
3189 s,@sharedstatedir@,$sharedstatedir,;t t
3190 s,@localstatedir@,$localstatedir,;t t
3191 s,@libdir@,$libdir,;t t
3192 s,@includedir@,$includedir,;t t
3193 s,@oldincludedir@,$oldincludedir,;t t
3194 s,@infodir@,$infodir,;t t
3195 s,@mandir@,$mandir,;t t
3196 s,@build_alias@,$build_alias,;t t
3197 s,@host_alias@,$host_alias,;t t
3198 s,@target_alias@,$target_alias,;t t
3199 s,@DEFS@,$DEFS,;t t
3200 s,@ECHO_C@,$ECHO_C,;t t
3201 s,@ECHO_N@,$ECHO_N,;t t
3202 s,@ECHO_T@,$ECHO_T,;t t
3203 s,@LIBS@,$LIBS,;t t
3204 s,@MAINT@,$MAINT,;t t
3205 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3206 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3207 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3208 s,@build@,$build,;t t
3209 s,@build_cpu@,$build_cpu,;t t
3210 s,@build_vendor@,$build_vendor,;t t
3211 s,@build_os@,$build_os,;t t
3212 s,@host@,$host,;t t
3213 s,@host_cpu@,$host_cpu,;t t
3214 s,@host_vendor@,$host_vendor,;t t
3215 s,@host_os@,$host_os,;t t
3216 s,@target@,$target,;t t
3217 s,@target_cpu@,$target_cpu,;t t
3218 s,@target_vendor@,$target_vendor,;t t
3219 s,@target_os@,$target_os,;t t
3220 s,@target_noncanonical@,$target_noncanonical,;t t
3221 s,@LN_S@,$LN_S,;t t
3222 s,@default_gnattools_target@,$default_gnattools_target,;t t
3223 s,@TOOLS_TARGET_PAIRS@,$TOOLS_TARGET_PAIRS,;t t
3224 s,@EXTRA_GNATTOOLS@,$EXTRA_GNATTOOLS,;t t
3225 s,@ADA_CFLAGS@,$ADA_CFLAGS,;t t
3226 s,@CC@,$CC,;t t
3227 s,@CFLAGS@,$CFLAGS,;t t
3228 s,@LDFLAGS@,$LDFLAGS,;t t
3229 s,@CPPFLAGS@,$CPPFLAGS,;t t
3230 s,@ac_ct_CC@,$ac_ct_CC,;t t
3231 s,@EXEEXT@,$EXEEXT,;t t
3232 s,@OBJEXT@,$OBJEXT,;t t
3233 s,@warn_cflags@,$warn_cflags,;t t
3234 s,@LIBOBJS@,$LIBOBJS,;t t
3235 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3236 CEOF
3238 _ACEOF
3240 cat >>$CONFIG_STATUS <<\_ACEOF
3241 # Split the substitutions into bite-sized pieces for seds with
3242 # small command number limits, like on Digital OSF/1 and HP-UX.
3243 ac_max_sed_lines=48
3244 ac_sed_frag=1 # Number of current file.
3245 ac_beg=1 # First line for current file.
3246 ac_end=$ac_max_sed_lines # Line after last line for current file.
3247 ac_more_lines=:
3248 ac_sed_cmds=
3249 while $ac_more_lines; do
3250 if test $ac_beg -gt 1; then
3251 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3252 else
3253 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3255 if test ! -s $tmp/subs.frag; then
3256 ac_more_lines=false
3257 else
3258 # The purpose of the label and of the branching condition is to
3259 # speed up the sed processing (if there are no `@' at all, there
3260 # is no need to browse any of the substitutions).
3261 # These are the two extra sed commands mentioned above.
3262 (echo ':t
3263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3264 if test -z "$ac_sed_cmds"; then
3265 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3266 else
3267 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3269 ac_sed_frag=`expr $ac_sed_frag + 1`
3270 ac_beg=$ac_end
3271 ac_end=`expr $ac_end + $ac_max_sed_lines`
3273 done
3274 if test -z "$ac_sed_cmds"; then
3275 ac_sed_cmds=cat
3277 fi # test -n "$CONFIG_FILES"
3279 _ACEOF
3280 cat >>$CONFIG_STATUS <<\_ACEOF
3281 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3283 case $ac_file in
3284 - | *:- | *:-:* ) # input from stdin
3285 cat >$tmp/stdin
3286 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3288 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3290 * ) ac_file_in=$ac_file.in ;;
3291 esac
3293 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3296 X"$ac_file" : 'X\(//\)[^/]' \| \
3297 X"$ac_file" : 'X\(//\)$' \| \
3298 X"$ac_file" : 'X\(/\)' \| \
3299 . : '\(.\)' 2>/dev/null ||
3300 echo X"$ac_file" |
3301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3303 /^X\(\/\/\)$/{ s//\1/; q; }
3304 /^X\(\/\).*/{ s//\1/; q; }
3305 s/.*/./; q'`
3306 { if $as_mkdir_p; then
3307 mkdir -p "$ac_dir"
3308 else
3309 as_dir="$ac_dir"
3310 as_dirs=
3311 while test ! -d "$as_dir"; do
3312 as_dirs="$as_dir $as_dirs"
3313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3315 X"$as_dir" : 'X\(//\)[^/]' \| \
3316 X"$as_dir" : 'X\(//\)$' \| \
3317 X"$as_dir" : 'X\(/\)' \| \
3318 . : '\(.\)' 2>/dev/null ||
3319 echo X"$as_dir" |
3320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3322 /^X\(\/\/\)$/{ s//\1/; q; }
3323 /^X\(\/\).*/{ s//\1/; q; }
3324 s/.*/./; q'`
3325 done
3326 test ! -n "$as_dirs" || mkdir $as_dirs
3327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3329 { (exit 1); exit 1; }; }; }
3331 ac_builddir=.
3333 if test "$ac_dir" != .; then
3334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3335 # A "../" for each directory in $ac_dir_suffix.
3336 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3337 else
3338 ac_dir_suffix= ac_top_builddir=
3341 case $srcdir in
3342 .) # No --srcdir option. We are building in place.
3343 ac_srcdir=.
3344 if test -z "$ac_top_builddir"; then
3345 ac_top_srcdir=.
3346 else
3347 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3348 fi ;;
3349 [\\/]* | ?:[\\/]* ) # Absolute path.
3350 ac_srcdir=$srcdir$ac_dir_suffix;
3351 ac_top_srcdir=$srcdir ;;
3352 *) # Relative path.
3353 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3354 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3355 esac
3357 # Do not use `cd foo && pwd` to compute absolute paths, because
3358 # the directories may not exist.
3359 case `pwd` in
3360 .) ac_abs_builddir="$ac_dir";;
3362 case "$ac_dir" in
3363 .) ac_abs_builddir=`pwd`;;
3364 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3365 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3366 esac;;
3367 esac
3368 case $ac_abs_builddir in
3369 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3371 case ${ac_top_builddir}. in
3372 .) ac_abs_top_builddir=$ac_abs_builddir;;
3373 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3374 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3375 esac;;
3376 esac
3377 case $ac_abs_builddir in
3378 .) ac_abs_srcdir=$ac_srcdir;;
3380 case $ac_srcdir in
3381 .) ac_abs_srcdir=$ac_abs_builddir;;
3382 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3383 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3384 esac;;
3385 esac
3386 case $ac_abs_builddir in
3387 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3389 case $ac_top_srcdir in
3390 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3391 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3392 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3393 esac;;
3394 esac
3397 case $INSTALL in
3398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3399 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3400 esac
3402 if test x"$ac_file" != x-; then
3403 { echo "$as_me:$LINENO: creating $ac_file" >&5
3404 echo "$as_me: creating $ac_file" >&6;}
3405 rm -f "$ac_file"
3407 # Let's still pretend it is `configure' which instantiates (i.e., don't
3408 # use $as_me), people would be surprised to read:
3409 # /* config.h. Generated by config.status. */
3410 if test x"$ac_file" = x-; then
3411 configure_input=
3412 else
3413 configure_input="$ac_file. "
3415 configure_input=$configure_input"Generated from `echo $ac_file_in |
3416 sed 's,.*/,,'` by configure."
3418 # First look for the input files in the build tree, otherwise in the
3419 # src tree.
3420 ac_file_inputs=`IFS=:
3421 for f in $ac_file_in; do
3422 case $f in
3423 -) echo $tmp/stdin ;;
3424 [\\/$]*)
3425 # Absolute (can't be DOS-style, as IFS=:)
3426 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3427 echo "$as_me: error: cannot find input file: $f" >&2;}
3428 { (exit 1); exit 1; }; }
3429 echo "$f";;
3430 *) # Relative
3431 if test -f "$f"; then
3432 # Build tree
3433 echo "$f"
3434 elif test -f "$srcdir/$f"; then
3435 # Source tree
3436 echo "$srcdir/$f"
3437 else
3438 # /dev/null tree
3439 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3440 echo "$as_me: error: cannot find input file: $f" >&2;}
3441 { (exit 1); exit 1; }; }
3442 fi;;
3443 esac
3444 done` || { (exit 1); exit 1; }
3445 _ACEOF
3446 cat >>$CONFIG_STATUS <<_ACEOF
3447 sed "$ac_vpsub
3448 $extrasub
3449 _ACEOF
3450 cat >>$CONFIG_STATUS <<\_ACEOF
3452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3453 s,@configure_input@,$configure_input,;t t
3454 s,@srcdir@,$ac_srcdir,;t t
3455 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3456 s,@top_srcdir@,$ac_top_srcdir,;t t
3457 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3458 s,@builddir@,$ac_builddir,;t t
3459 s,@abs_builddir@,$ac_abs_builddir,;t t
3460 s,@top_builddir@,$ac_top_builddir,;t t
3461 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3462 s,@INSTALL@,$ac_INSTALL,;t t
3463 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3464 rm -f $tmp/stdin
3465 if test x"$ac_file" != x-; then
3466 mv $tmp/out $ac_file
3467 else
3468 cat $tmp/out
3469 rm -f $tmp/out
3472 done
3473 _ACEOF
3475 cat >>$CONFIG_STATUS <<\_ACEOF
3477 { (exit 0); exit 0; }
3478 _ACEOF
3479 chmod +x $CONFIG_STATUS
3480 ac_clean_files=$ac_clean_files_save
3483 # configure is writing to config.log, and then calls config.status.
3484 # config.status does its own redirection, appending to config.log.
3485 # Unfortunately, on DOS this fails, as config.log is still kept open
3486 # by configure, so config.status won't be able to write to it; its
3487 # output is simply discarded. So we exec the FD to /dev/null,
3488 # effectively closing config.log, so it can be properly (re)opened and
3489 # appended to by config.status. When coming back to configure, we
3490 # need to make the FD available again.
3491 if test "$no_create" != yes; then
3492 ac_cs_success=:
3493 ac_config_status_args=
3494 test "$silent" = yes &&
3495 ac_config_status_args="$ac_config_status_args --quiet"
3496 exec 5>/dev/null
3497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3498 exec 5>>config.log
3499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3500 # would make configure fail if this is the last instruction.
3501 $ac_cs_success || { (exit 1); exit 1; }