updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / da / makedepf90-2.8.8 / configure
blob18d2a2dafed486489d93b2bf651b7798a8ea7e58
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="main.c"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r "$srcdir/$ac_unique_file"; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r "$srcdir/$ac_unique_file"; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CPP_set=${CPP+set}
733 ac_env_CPP_value=$CPP
734 ac_cv_env_CPP_set=${CPP+set}
735 ac_cv_env_CPP_value=$CPP
738 # Report the --help message.
740 if test "$ac_init_help" = "long"; then
741 # Omit some internal or obsolete options to make the list less imposing.
742 # This message is too long to be a string in the A/UX 3.1 sh.
743 cat <<_ACEOF
744 \`configure' configures this package to adapt to many kinds of systems.
746 Usage: $0 [OPTION]... [VAR=VALUE]...
748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
749 VAR=VALUE. See below for descriptions of some of the useful variables.
751 Defaults for the options are specified in brackets.
753 Configuration:
754 -h, --help display this help and exit
755 --help=short display options specific to this package
756 --help=recursive display the short help of all the included packages
757 -V, --version display version information and exit
758 -q, --quiet, --silent do not print \`checking...' messages
759 --cache-file=FILE cache test results in FILE [disabled]
760 -C, --config-cache alias for \`--cache-file=config.cache'
761 -n, --no-create do not create output files
762 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764 _ACEOF
766 cat <<_ACEOF
767 Installation directories:
768 --prefix=PREFIX install architecture-independent files in PREFIX
769 [$ac_default_prefix]
770 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
771 [PREFIX]
773 By default, \`make install' will install all the files in
774 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
775 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776 for instance \`--prefix=\$HOME'.
778 For better control, use the options below.
780 Fine tuning of the installation directories:
781 --bindir=DIR user executables [EPREFIX/bin]
782 --sbindir=DIR system admin executables [EPREFIX/sbin]
783 --libexecdir=DIR program executables [EPREFIX/libexec]
784 --datadir=DIR read-only architecture-independent data [PREFIX/share]
785 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
786 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
787 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
788 --libdir=DIR object code libraries [EPREFIX/lib]
789 --includedir=DIR C header files [PREFIX/include]
790 --oldincludedir=DIR C header files for non-gcc [/usr/include]
791 --infodir=DIR info documentation [PREFIX/info]
792 --mandir=DIR man documentation [PREFIX/man]
793 _ACEOF
795 cat <<\_ACEOF
796 _ACEOF
799 if test -n "$ac_init_help"; then
801 cat <<\_ACEOF
803 Some influential environment variables:
804 CC C compiler command
805 CFLAGS C compiler flags
806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
807 nonstandard directory <lib dir>
808 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
809 headers in a nonstandard directory <include dir>
810 CPP C preprocessor
812 Use these variables to override the choices made by `configure' or to help
813 it to find libraries and programs with nonstandard names/locations.
815 _ACEOF
818 if test "$ac_init_help" = "recursive"; then
819 # If there are subdirs, report their specific --help.
820 ac_popdir=`pwd`
821 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
822 test -d $ac_dir || continue
823 ac_builddir=.
825 if test "$ac_dir" != .; then
826 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
827 # A "../" for each directory in $ac_dir_suffix.
828 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
829 else
830 ac_dir_suffix= ac_top_builddir=
833 case $srcdir in
834 .) # No --srcdir option. We are building in place.
835 ac_srcdir=.
836 if test -z "$ac_top_builddir"; then
837 ac_top_srcdir=.
838 else
839 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
840 fi ;;
841 [\\/]* | ?:[\\/]* ) # Absolute path.
842 ac_srcdir=$srcdir$ac_dir_suffix;
843 ac_top_srcdir=$srcdir ;;
844 *) # Relative path.
845 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
846 ac_top_srcdir=$ac_top_builddir$srcdir ;;
847 esac
849 # Do not use `cd foo && pwd` to compute absolute paths, because
850 # the directories may not exist.
851 case `pwd` in
852 .) ac_abs_builddir="$ac_dir";;
854 case "$ac_dir" in
855 .) ac_abs_builddir=`pwd`;;
856 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
857 *) ac_abs_builddir=`pwd`/"$ac_dir";;
858 esac;;
859 esac
860 case $ac_abs_builddir in
861 .) ac_abs_top_builddir=${ac_top_builddir}.;;
863 case ${ac_top_builddir}. in
864 .) ac_abs_top_builddir=$ac_abs_builddir;;
865 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
867 esac;;
868 esac
869 case $ac_abs_builddir in
870 .) ac_abs_srcdir=$ac_srcdir;;
872 case $ac_srcdir in
873 .) ac_abs_srcdir=$ac_abs_builddir;;
874 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
875 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
876 esac;;
877 esac
878 case $ac_abs_builddir in
879 .) ac_abs_top_srcdir=$ac_top_srcdir;;
881 case $ac_top_srcdir in
882 .) ac_abs_top_srcdir=$ac_abs_builddir;;
883 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
885 esac;;
886 esac
888 cd $ac_dir
889 # Check for guested configure; otherwise get Cygnus style configure.
890 if test -f $ac_srcdir/configure.gnu; then
891 echo
892 $SHELL $ac_srcdir/configure.gnu --help=recursive
893 elif test -f $ac_srcdir/configure; then
894 echo
895 $SHELL $ac_srcdir/configure --help=recursive
896 elif test -f $ac_srcdir/configure.ac ||
897 test -f $ac_srcdir/configure.in; then
898 echo
899 $ac_configure --help
900 else
901 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
903 cd $ac_popdir
904 done
907 test -n "$ac_init_help" && exit 0
908 if $ac_init_version; then
909 cat <<\_ACEOF
911 Copyright (C) 2003 Free Software Foundation, Inc.
912 This configure script is free software; the Free Software Foundation
913 gives unlimited permission to copy, distribute and modify it.
914 _ACEOF
915 exit 0
917 exec 5>config.log
918 cat >&5 <<_ACEOF
919 This file contains any messages produced by compilers while
920 running configure, to aid debugging if configure makes a mistake.
922 It was created by $as_me, which was
923 generated by GNU Autoconf 2.59. Invocation command line was
925 $ $0 $@
927 _ACEOF
929 cat <<_ASUNAME
930 ## --------- ##
931 ## Platform. ##
932 ## --------- ##
934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
946 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
951 _ASUNAME
953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
954 for as_dir in $PATH
956 IFS=$as_save_IFS
957 test -z "$as_dir" && as_dir=.
958 echo "PATH: $as_dir"
959 done
961 } >&5
963 cat >&5 <<_ACEOF
966 ## ----------- ##
967 ## Core tests. ##
968 ## ----------- ##
970 _ACEOF
973 # Keep a trace of the command line.
974 # Strip out --no-create and --no-recursion so they do not pile up.
975 # Strip out --silent because we don't want to record it for future runs.
976 # Also quote any args containing shell meta-characters.
977 # Make two passes to allow for proper duplicate-argument suppression.
978 ac_configure_args=
979 ac_configure_args0=
980 ac_configure_args1=
981 ac_sep=
982 ac_must_keep_next=false
983 for ac_pass in 1 2
985 for ac_arg
987 case $ac_arg in
988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
991 continue ;;
992 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
993 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
994 esac
995 case $ac_pass in
996 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
998 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
999 if test $ac_must_keep_next = true; then
1000 ac_must_keep_next=false # Got value, back to normal.
1001 else
1002 case $ac_arg in
1003 *=* | --config-cache | -C | -disable-* | --disable-* \
1004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1006 | -with-* | --with-* | -without-* | --without-* | --x)
1007 case "$ac_configure_args0 " in
1008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1009 esac
1011 -* ) ac_must_keep_next=true ;;
1012 esac
1014 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015 # Get rid of the leading space.
1016 ac_sep=" "
1018 esac
1019 done
1020 done
1021 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1022 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log. We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
1029 trap 'exit_status=$?
1030 # Save into config.log some information that might help in debugging.
1032 echo
1034 cat <<\_ASBOX
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1038 _ASBOX
1039 echo
1040 # The following way of writing the cache mishandles newlines in values,
1042 (set) 2>&1 |
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1044 *ac_space=\ *)
1045 sed -n \
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1050 sed -n \
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053 esac;
1055 echo
1057 cat <<\_ASBOX
1058 ## ----------------- ##
1059 ## Output variables. ##
1060 ## ----------------- ##
1061 _ASBOX
1062 echo
1063 for ac_var in $ac_subst_vars
1065 eval ac_val=$`echo $ac_var`
1066 echo "$ac_var='"'"'$ac_val'"'"'"
1067 done | sort
1068 echo
1070 if test -n "$ac_subst_files"; then
1071 cat <<\_ASBOX
1072 ## ------------- ##
1073 ## Output files. ##
1074 ## ------------- ##
1075 _ASBOX
1076 echo
1077 for ac_var in $ac_subst_files
1079 eval ac_val=$`echo $ac_var`
1080 echo "$ac_var='"'"'$ac_val'"'"'"
1081 done | sort
1082 echo
1085 if test -s confdefs.h; then
1086 cat <<\_ASBOX
1087 ## ----------- ##
1088 ## confdefs.h. ##
1089 ## ----------- ##
1090 _ASBOX
1091 echo
1092 sed "/^$/d" confdefs.h | sort
1093 echo
1095 test "$ac_signal" != 0 &&
1096 echo "$as_me: caught signal $ac_signal"
1097 echo "$as_me: exit $exit_status"
1098 } >&5
1099 rm -f core *.core &&
1100 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1101 exit $exit_status
1103 for ac_signal in 1 2 13 15; do
1104 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1105 done
1106 ac_signal=0
1108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1109 rm -rf conftest* confdefs.h
1110 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1111 echo >confdefs.h
1113 # Predefined preprocessor variables.
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_NAME "$PACKAGE_NAME"
1117 _ACEOF
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1122 _ACEOF
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1127 _ACEOF
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_STRING "$PACKAGE_STRING"
1132 _ACEOF
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1137 _ACEOF
1140 # Let the site file select an alternate cache file if it wants to.
1141 # Prefer explicitly selected file to automatically selected ones.
1142 if test -z "$CONFIG_SITE"; then
1143 if test "x$prefix" != xNONE; then
1144 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1145 else
1146 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1149 for ac_site_file in $CONFIG_SITE; do
1150 if test -r "$ac_site_file"; then
1151 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1152 echo "$as_me: loading site script $ac_site_file" >&6;}
1153 sed 's/^/| /' "$ac_site_file" >&5
1154 . "$ac_site_file"
1156 done
1158 if test -r "$cache_file"; then
1159 # Some versions of bash will fail to source /dev/null (special
1160 # files actually), so we avoid doing that.
1161 if test -f "$cache_file"; then
1162 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1163 echo "$as_me: loading cache $cache_file" >&6;}
1164 case $cache_file in
1165 [\\/]* | ?:[\\/]* ) . $cache_file;;
1166 *) . ./$cache_file;;
1167 esac
1169 else
1170 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1171 echo "$as_me: creating cache $cache_file" >&6;}
1172 >$cache_file
1175 # Check that the precious variables saved in the cache have kept the same
1176 # value.
1177 ac_cache_corrupted=false
1178 for ac_var in `(set) 2>&1 |
1179 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1181 eval ac_new_set=\$ac_env_${ac_var}_set
1182 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1183 eval ac_new_val="\$ac_env_${ac_var}_value"
1184 case $ac_old_set,$ac_new_set in
1185 set,)
1186 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1188 ac_cache_corrupted=: ;;
1189 ,set)
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1193 ,);;
1195 if test "x$ac_old_val" != "x$ac_new_val"; then
1196 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1197 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1198 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1199 echo "$as_me: former value: $ac_old_val" >&2;}
1200 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1201 echo "$as_me: current value: $ac_new_val" >&2;}
1202 ac_cache_corrupted=:
1203 fi;;
1204 esac
1205 # Pass precious variables to config.status.
1206 if test "$ac_new_set" = set; then
1207 case $ac_new_val in
1208 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1210 *) ac_arg=$ac_var=$ac_new_val ;;
1211 esac
1212 case " $ac_configure_args " in
1213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1214 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1215 esac
1217 done
1218 if $ac_cache_corrupted; then
1219 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1220 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1221 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1222 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1223 { (exit 1); exit 1; }; }
1226 ac_ext=c
1227 ac_cpp='$CPP $CPPFLAGS'
1228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1250 ac_config_headers="$ac_config_headers config.h"
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 if test -n "$ac_tool_prefix"; then
1258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1260 echo "$as_me:$LINENO: checking for $ac_word" >&5
1261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1262 if test "${ac_cv_prog_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 else
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 else
1268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269 for as_dir in $PATH
1271 IFS=$as_save_IFS
1272 test -z "$as_dir" && as_dir=.
1273 for ac_exec_ext in '' $ac_executable_extensions; do
1274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1277 break 2
1279 done
1280 done
1284 CC=$ac_cv_prog_CC
1285 if test -n "$CC"; then
1286 echo "$as_me:$LINENO: result: $CC" >&5
1287 echo "${ECHO_T}$CC" >&6
1288 else
1289 echo "$as_me:$LINENO: result: no" >&5
1290 echo "${ECHO_T}no" >&6
1294 if test -z "$ac_cv_prog_CC"; then
1295 ac_ct_CC=$CC
1296 # Extract the first word of "gcc", so it can be a program name with args.
1297 set dummy gcc; ac_word=$2
1298 echo "$as_me:$LINENO: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303 if test -n "$ac_ct_CC"; then
1304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1305 else
1306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1307 for as_dir in $PATH
1309 IFS=$as_save_IFS
1310 test -z "$as_dir" && as_dir=.
1311 for ac_exec_ext in '' $ac_executable_extensions; do
1312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1313 ac_cv_prog_ac_ct_CC="gcc"
1314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1315 break 2
1317 done
1318 done
1322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1323 if test -n "$ac_ct_CC"; then
1324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1325 echo "${ECHO_T}$ac_ct_CC" >&6
1326 else
1327 echo "$as_me:$LINENO: result: no" >&5
1328 echo "${ECHO_T}no" >&6
1331 CC=$ac_ct_CC
1332 else
1333 CC="$ac_cv_prog_CC"
1336 if test -z "$CC"; then
1337 if test -n "$ac_tool_prefix"; then
1338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1339 set dummy ${ac_tool_prefix}cc; ac_word=$2
1340 echo "$as_me:$LINENO: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_CC+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345 if test -n "$CC"; then
1346 ac_cv_prog_CC="$CC" # Let the user override the test.
1347 else
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 for as_dir in $PATH
1351 IFS=$as_save_IFS
1352 test -z "$as_dir" && as_dir=.
1353 for ac_exec_ext in '' $ac_executable_extensions; do
1354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1355 ac_cv_prog_CC="${ac_tool_prefix}cc"
1356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1357 break 2
1359 done
1360 done
1364 CC=$ac_cv_prog_CC
1365 if test -n "$CC"; then
1366 echo "$as_me:$LINENO: result: $CC" >&5
1367 echo "${ECHO_T}$CC" >&6
1368 else
1369 echo "$as_me:$LINENO: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1374 if test -z "$ac_cv_prog_CC"; then
1375 ac_ct_CC=$CC
1376 # Extract the first word of "cc", so it can be a program name with args.
1377 set dummy cc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 if test -n "$ac_ct_CC"; then
1384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_ac_ct_CC="cc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1397 done
1398 done
1402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1403 if test -n "$ac_ct_CC"; then
1404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1405 echo "${ECHO_T}$ac_ct_CC" >&6
1406 else
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1411 CC=$ac_ct_CC
1412 else
1413 CC="$ac_cv_prog_CC"
1417 if test -z "$CC"; then
1418 # Extract the first word of "cc", so it can be a program name with args.
1419 set dummy cc; ac_word=$2
1420 echo "$as_me:$LINENO: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 else
1428 ac_prog_rejected=no
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1437 ac_prog_rejected=yes
1438 continue
1440 ac_cv_prog_CC="cc"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 break 2
1444 done
1445 done
1447 if test $ac_prog_rejected = yes; then
1448 # We found a bogon in the path, so make sure we never use it.
1449 set dummy $ac_cv_prog_CC
1450 shift
1451 if test $# != 0; then
1452 # We chose a different compiler from the bogus one.
1453 # However, it has the same basename, so the bogon will be chosen
1454 # first if we set CC to just the basename; use the full file name.
1455 shift
1456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$CC"; then
1472 if test -n "$ac_tool_prefix"; then
1473 for ac_prog in cl
1475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1496 done
1497 done
1501 CC=$ac_cv_prog_CC
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1505 else
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1510 test -n "$CC" && break
1511 done
1513 if test -z "$CC"; then
1514 ac_ct_CC=$CC
1515 for ac_prog in cl
1517 # Extract the first word of "$ac_prog", so it can be a program name with args.
1518 set dummy $ac_prog; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="$ac_prog"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1538 done
1539 done
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1547 else
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1552 test -n "$ac_ct_CC" && break
1553 done
1555 CC=$ac_ct_CC
1561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1562 See \`config.log' for more details." >&5
1563 echo "$as_me: error: no acceptable C compiler found in \$PATH
1564 See \`config.log' for more details." >&2;}
1565 { (exit 1); exit 1; }; }
1567 # Provide some information about the compiler.
1568 echo "$as_me:$LINENO:" \
1569 "checking for C compiler version" >&5
1570 ac_compiler=`set X $ac_compile; echo $2`
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1572 (eval $ac_compiler --version </dev/null >&5) 2>&5
1573 ac_status=$?
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1577 (eval $ac_compiler -v </dev/null >&5) 2>&5
1578 ac_status=$?
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1582 (eval $ac_compiler -V </dev/null >&5) 2>&5
1583 ac_status=$?
1584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585 (exit $ac_status); }
1587 cat >conftest.$ac_ext <<_ACEOF
1588 /* confdefs.h. */
1589 _ACEOF
1590 cat confdefs.h >>conftest.$ac_ext
1591 cat >>conftest.$ac_ext <<_ACEOF
1592 /* end confdefs.h. */
1595 main ()
1599 return 0;
1601 _ACEOF
1602 ac_clean_files_save=$ac_clean_files
1603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1604 # Try to create an executable without -o first, disregard a.out.
1605 # It will help us diagnose broken compilers, and finding out an intuition
1606 # of exeext.
1607 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1608 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1609 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1611 (eval $ac_link_default) 2>&5
1612 ac_status=$?
1613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 # Find the output, starting from the most likely. This scheme is
1616 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1617 # resort.
1619 # Be careful to initialize this variable, since it used to be cached.
1620 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1621 ac_cv_exeext=
1622 # b.out is created by i960 compilers.
1623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1625 test -f "$ac_file" || continue
1626 case $ac_file in
1627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1629 conftest.$ac_ext )
1630 # This is the source file.
1632 [ab].out )
1633 # We found the default executable, but exeext='' is most
1634 # certainly right.
1635 break;;
1636 *.* )
1637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1638 # FIXME: I believe we export ac_cv_exeext for Libtool,
1639 # but it would be cool to find out if it's true. Does anybody
1640 # maintain Libtool? --akim.
1641 export ac_cv_exeext
1642 break;;
1644 break;;
1645 esac
1646 done
1647 else
1648 echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1652 See \`config.log' for more details." >&5
1653 echo "$as_me: error: C compiler cannot create executables
1654 See \`config.log' for more details." >&2;}
1655 { (exit 77); exit 77; }; }
1658 ac_exeext=$ac_cv_exeext
1659 echo "$as_me:$LINENO: result: $ac_file" >&5
1660 echo "${ECHO_T}$ac_file" >&6
1662 # Check the compiler produces executables we can run. If not, either
1663 # the compiler is broken, or we cross compile.
1664 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1667 # If not cross compiling, check that we can run a simple program.
1668 if test "$cross_compiling" != yes; then
1669 if { ac_try='./$ac_file'
1670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1671 (eval $ac_try) 2>&5
1672 ac_status=$?
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }; }; then
1675 cross_compiling=no
1676 else
1677 if test "$cross_compiling" = maybe; then
1678 cross_compiling=yes
1679 else
1680 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1681 If you meant to cross compile, use \`--host'.
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: cannot run C compiled programs.
1684 If you meant to cross compile, use \`--host'.
1685 See \`config.log' for more details." >&2;}
1686 { (exit 1); exit 1; }; }
1690 echo "$as_me:$LINENO: result: yes" >&5
1691 echo "${ECHO_T}yes" >&6
1693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1694 ac_clean_files=$ac_clean_files_save
1695 # Check the compiler produces executables we can run. If not, either
1696 # the compiler is broken, or we cross compile.
1697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1700 echo "${ECHO_T}$cross_compiling" >&6
1702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1705 (eval $ac_link) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; then
1709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1711 # work properly (i.e., refer to `conftest.exe'), while it won't with
1712 # `rm'.
1713 for ac_file in conftest.exe conftest conftest.*; do
1714 test -f "$ac_file" || continue
1715 case $ac_file in
1716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1718 export ac_cv_exeext
1719 break;;
1720 * ) break;;
1721 esac
1722 done
1723 else
1724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1725 See \`config.log' for more details." >&5
1726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1727 See \`config.log' for more details." >&2;}
1728 { (exit 1); exit 1; }; }
1731 rm -f conftest$ac_cv_exeext
1732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1733 echo "${ECHO_T}$ac_cv_exeext" >&6
1735 rm -f conftest.$ac_ext
1736 EXEEXT=$ac_cv_exeext
1737 ac_exeext=$EXEEXT
1738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1740 if test "${ac_cv_objext+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 cat >conftest.$ac_ext <<_ACEOF
1744 /* confdefs.h. */
1745 _ACEOF
1746 cat confdefs.h >>conftest.$ac_ext
1747 cat >>conftest.$ac_ext <<_ACEOF
1748 /* end confdefs.h. */
1751 main ()
1755 return 0;
1757 _ACEOF
1758 rm -f conftest.o conftest.obj
1759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1760 (eval $ac_compile) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1765 case $ac_file in
1766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1768 break;;
1769 esac
1770 done
1771 else
1772 echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1778 See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1785 echo "${ECHO_T}$ac_cv_objext" >&6
1786 OBJEXT=$ac_cv_objext
1787 ac_objext=$OBJEXT
1788 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 cat >conftest.$ac_ext <<_ACEOF
1794 /* confdefs.h. */
1795 _ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1801 main ()
1803 #ifndef __GNUC__
1804 choke me
1805 #endif
1808 return 0;
1810 _ACEOF
1811 rm -f conftest.$ac_objext
1812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>conftest.er1
1814 ac_status=$?
1815 grep -v '^ *+' conftest.er1 >conftest.err
1816 rm -f conftest.er1
1817 cat conftest.err >&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -z "$ac_c_werror_flag"
1821 || test ! -s conftest.err'
1822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1823 (eval $ac_try) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; } &&
1827 { ac_try='test -s conftest.$ac_objext'
1828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1829 (eval $ac_try) 2>&5
1830 ac_status=$?
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; }; then
1833 ac_compiler_gnu=yes
1834 else
1835 echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_compiler_gnu=no
1840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1844 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1846 GCC=`test $ac_compiler_gnu = yes && echo yes`
1847 ac_test_CFLAGS=${CFLAGS+set}
1848 ac_save_CFLAGS=$CFLAGS
1849 CFLAGS="-g"
1850 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1852 if test "${ac_cv_prog_cc_g+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 cat >conftest.$ac_ext <<_ACEOF
1856 /* confdefs.h. */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1863 main ()
1867 return 0;
1869 _ACEOF
1870 rm -f conftest.$ac_objext
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>conftest.er1
1873 ac_status=$?
1874 grep -v '^ *+' conftest.er1 >conftest.err
1875 rm -f conftest.er1
1876 cat conftest.err >&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); } &&
1879 { ac_try='test -z "$ac_c_werror_flag"
1880 || test ! -s conftest.err'
1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 (eval $ac_try) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; } &&
1886 { ac_try='test -s conftest.$ac_objext'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1892 ac_cv_prog_cc_g=yes
1893 else
1894 echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_cv_prog_cc_g=no
1899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1901 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1903 if test "$ac_test_CFLAGS" = set; then
1904 CFLAGS=$ac_save_CFLAGS
1905 elif test $ac_cv_prog_cc_g = yes; then
1906 if test "$GCC" = yes; then
1907 CFLAGS="-g -O2"
1908 else
1909 CFLAGS="-g"
1911 else
1912 if test "$GCC" = yes; then
1913 CFLAGS="-O2"
1914 else
1915 CFLAGS=
1918 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1919 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 ac_cv_prog_cc_stdc=no
1924 ac_save_CC=$CC
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1931 #include <stdarg.h>
1932 #include <stdio.h>
1933 #include <sys/types.h>
1934 #include <sys/stat.h>
1935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1936 struct buf { int x; };
1937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1938 static char *e (p, i)
1939 char **p;
1940 int i;
1942 return p[i];
1944 static char *f (char * (*g) (char **, int), char **p, ...)
1946 char *s;
1947 va_list v;
1948 va_start (v,p);
1949 s = g (p, va_arg (v,int));
1950 va_end (v);
1951 return s;
1954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1955 function prototypes and stuff, but not '\xHH' hex character constants.
1956 These don't provoke an error unfortunately, instead are silently treated
1957 as 'x'. The following induces an error, until -std1 is added to get
1958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1959 array size at least. It's necessary to write '\x00'==0 to get something
1960 that's true only with -std1. */
1961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1963 int test (int i, double x);
1964 struct s1 {int (*f) (int a);};
1965 struct s2 {int (*f) (double a);};
1966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1967 int argc;
1968 char **argv;
1970 main ()
1972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1974 return 0;
1976 _ACEOF
1977 # Don't try gcc -ansi; that turns off useful extensions and
1978 # breaks some systems' header files.
1979 # AIX -qlanglvl=ansi
1980 # Ultrix and OSF/1 -std1
1981 # HP-UX 10.20 and later -Ae
1982 # HP-UX older versions -Aa -D_HPUX_SOURCE
1983 # SVR4 -Xc -D__EXTENSIONS__
1984 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1986 CC="$ac_save_CC $ac_arg"
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_cv_prog_cc_stdc=$ac_arg
2010 break
2011 else
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext
2017 done
2018 rm -f conftest.$ac_ext conftest.$ac_objext
2019 CC=$ac_save_CC
2023 case "x$ac_cv_prog_cc_stdc" in
2024 x|xno)
2025 echo "$as_me:$LINENO: result: none needed" >&5
2026 echo "${ECHO_T}none needed" >&6 ;;
2028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2030 CC="$CC $ac_cv_prog_cc_stdc" ;;
2031 esac
2033 # Some people use a C++ compiler to compile C. Since we use `exit',
2034 # in C++ we need to declare it. In case someone uses the same compiler
2035 # for both compiling C and C++ we need to have the C++ compiler decide
2036 # the declaration of exit, since it's the most demanding environment.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #ifndef __cplusplus
2039 choke me
2040 #endif
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2045 ac_status=$?
2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 for ac_declaration in \
2065 '' \
2066 'extern "C" void std::exit (int) throw (); using std::exit;' \
2067 'extern "C" void std::exit (int); using std::exit;' \
2068 'extern "C" void exit (int) throw ();' \
2069 'extern "C" void exit (int);' \
2070 'void exit (int);'
2072 cat >conftest.$ac_ext <<_ACEOF
2073 /* confdefs.h. */
2074 _ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2078 $ac_declaration
2079 #include <stdlib.h>
2081 main ()
2083 exit (42);
2085 return 0;
2087 _ACEOF
2088 rm -f conftest.$ac_objext
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>conftest.er1
2091 ac_status=$?
2092 grep -v '^ *+' conftest.er1 >conftest.err
2093 rm -f conftest.er1
2094 cat conftest.err >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -z "$ac_c_werror_flag"
2098 || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 continue
2117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
2124 $ac_declaration
2126 main ()
2128 exit (42);
2130 return 0;
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2136 ac_status=$?
2137 grep -v '^ *+' conftest.er1 >conftest.err
2138 rm -f conftest.er1
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 break
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2162 done
2163 rm -f conftest*
2164 if test -n "$ac_declaration"; then
2165 echo '#ifdef __cplusplus' >>confdefs.h
2166 echo $ac_declaration >>confdefs.h
2167 echo '#endif' >>confdefs.h
2170 else
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2176 ac_ext=c
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183 for ac_prog in flex lex
2185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy $ac_prog; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_LEX+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 if test -n "$LEX"; then
2193 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_LEX="$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2206 done
2207 done
2211 LEX=$ac_cv_prog_LEX
2212 if test -n "$LEX"; then
2213 echo "$as_me:$LINENO: result: $LEX" >&5
2214 echo "${ECHO_T}$LEX" >&6
2215 else
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2220 test -n "$LEX" && break
2221 done
2222 test -n "$LEX" || LEX=":"
2224 if test -z "$LEXLIB"
2225 then
2226 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2227 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2228 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 ac_check_lib_save_LIBS=$LIBS
2232 LIBS="-lfl $LIBS"
2233 cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h. */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 #ifdef __cplusplus
2242 extern "C"
2243 #endif
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2246 char yywrap ();
2248 main ()
2250 yywrap ();
2252 return 0;
2254 _ACEOF
2255 rm -f conftest.$ac_objext conftest$ac_exeext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257 (eval $ac_link) 2>conftest.er1
2258 ac_status=$?
2259 grep -v '^ *+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest$ac_exeext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_lib_fl_yywrap=yes
2278 else
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 ac_cv_lib_fl_yywrap=no
2284 rm -f conftest.err conftest.$ac_objext \
2285 conftest$ac_exeext conftest.$ac_ext
2286 LIBS=$ac_check_lib_save_LIBS
2288 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2290 if test $ac_cv_lib_fl_yywrap = yes; then
2291 LEXLIB="-lfl"
2292 else
2293 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 ac_check_lib_save_LIBS=$LIBS
2299 LIBS="-ll $LIBS"
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 #ifdef __cplusplus
2309 extern "C"
2310 #endif
2311 /* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
2313 char yywrap ();
2315 main ()
2317 yywrap ();
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.$ac_objext conftest$ac_exeext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324 (eval $ac_link) 2>conftest.er1
2325 ac_status=$?
2326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest$ac_exeext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_lib_l_yywrap=yes
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 ac_cv_lib_l_yywrap=no
2351 rm -f conftest.err conftest.$ac_objext \
2352 conftest$ac_exeext conftest.$ac_ext
2353 LIBS=$ac_check_lib_save_LIBS
2355 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2356 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2357 if test $ac_cv_lib_l_yywrap = yes; then
2358 LEXLIB="-ll"
2365 if test "x$LEX" != "x:"; then
2366 echo "$as_me:$LINENO: checking lex output file root" >&5
2367 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2368 if test "${ac_cv_prog_lex_root+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 # The minimal lex program is just a single line: %%. But some broken lexes
2372 # (Solaris, I think it was) want two %% lines, so accommodate them.
2373 cat >conftest.l <<_ACEOF
2376 _ACEOF
2377 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2378 (eval $LEX conftest.l) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382 if test -f lex.yy.c; then
2383 ac_cv_prog_lex_root=lex.yy
2384 elif test -f lexyy.c; then
2385 ac_cv_prog_lex_root=lexyy
2386 else
2387 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2388 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2389 { (exit 1); exit 1; }; }
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2393 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2394 rm -f conftest.l
2395 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2397 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2398 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2399 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 # POSIX says lex can declare yytext either as a pointer or an array; the
2403 # default is implementation-dependent. Figure out which it is, since
2404 # not all implementations provide the %pointer and %array declarations.
2405 ac_cv_prog_lex_yytext_pointer=no
2406 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2407 ac_save_LIBS=$LIBS
2408 LIBS="$LIBS $LEXLIB"
2409 cat >conftest.$ac_ext <<_ACEOF
2410 `cat $LEX_OUTPUT_ROOT.c`
2411 _ACEOF
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try='test -s conftest$ac_exeext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_prog_lex_yytext_pointer=yes
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f conftest.err conftest.$ac_objext \
2441 conftest$ac_exeext conftest.$ac_ext
2442 LIBS=$ac_save_LIBS
2443 rm -f "${LEX_OUTPUT_ROOT}.c"
2446 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2447 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2448 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2450 cat >>confdefs.h <<\_ACEOF
2451 #define YYTEXT_POINTER 1
2452 _ACEOF
2457 for ac_prog in 'bison -y' byacc
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_YACC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$YACC"; then
2467 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_YACC="$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2485 YACC=$ac_cv_prog_YACC
2486 if test -n "$YACC"; then
2487 echo "$as_me:$LINENO: result: $YACC" >&5
2488 echo "${ECHO_T}$YACC" >&6
2489 else
2490 echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$YACC" && break
2495 done
2496 test -n "$YACC" || YACC="yacc"
2498 ac_aux_dir=
2499 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2500 if test -f $ac_dir/install-sh; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/install-sh -c"
2503 break
2504 elif test -f $ac_dir/install.sh; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/install.sh -c"
2507 break
2508 elif test -f $ac_dir/shtool; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/shtool install -c"
2511 break
2513 done
2514 if test -z "$ac_aux_dir"; then
2515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2516 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2517 { (exit 1); exit 1; }; }
2519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2521 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2523 # Find a good install program. We prefer a C program (faster),
2524 # so one script is as good as another. But avoid the broken or
2525 # incompatible versions:
2526 # SysV /etc/install, /usr/sbin/install
2527 # SunOS /usr/etc/install
2528 # IRIX /sbin/install
2529 # AIX /bin/install
2530 # AmigaOS /C/install, which installs bootblocks on floppy discs
2531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534 # OS/2's system install, which has a completely different semantic
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in
2549 ./ | .// | /cC/* | \
2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2552 /usr/ucb/* ) ;;
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2556 # by default.
2557 for ac_prog in ginstall scoinst install; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2568 else
2569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570 break 3
2573 done
2574 done
2576 esac
2577 done
2581 if test "${ac_cv_path_install+set}" = set; then
2582 INSTALL=$ac_cv_path_install
2583 else
2584 # As a last resort, use the slow shell script. We don't cache a
2585 # path for INSTALL within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the path is relative.
2588 INSTALL=$ac_install_sh
2591 echo "$as_me:$LINENO: result: $INSTALL" >&5
2592 echo "${ECHO_T}$INSTALL" >&6
2594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595 # It thinks the first close brace ends the variable substitution.
2596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2608 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2609 # On Suns, sometimes $CPP names a directory.
2610 if test -n "$CPP" && test -d "$CPP"; then
2611 CPP=
2613 if test -z "$CPP"; then
2614 if test "${ac_cv_prog_CPP+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 # Double quotes because CPP needs to be expanded
2618 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2620 ac_preproc_ok=false
2621 for ac_c_preproc_warn_flag in '' yes
2623 # Use a header file that comes with gcc, so configuring glibc
2624 # with a fresh cross-compiler works.
2625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2626 # <limits.h> exists even on freestanding compilers.
2627 # On the NeXT, cc -E runs the code through the compiler's parser,
2628 # not just through cpp. "Syntax error" is here to catch this case.
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635 #ifdef __STDC__
2636 # include <limits.h>
2637 #else
2638 # include <assert.h>
2639 #endif
2640 Syntax error
2641 _ACEOF
2642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } >/dev/null; then
2650 if test -s conftest.err; then
2651 ac_cpp_err=$ac_c_preproc_warn_flag
2652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2653 else
2654 ac_cpp_err=
2656 else
2657 ac_cpp_err=yes
2659 if test -z "$ac_cpp_err"; then
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 # Broken: fails on valid input.
2666 continue
2668 rm -f conftest.err conftest.$ac_ext
2670 # OK, works on sane cases. Now check whether non-existent headers
2671 # can be detected and how.
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #include <ac_nonexistent.h>
2679 _ACEOF
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2682 ac_status=$?
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } >/dev/null; then
2688 if test -s conftest.err; then
2689 ac_cpp_err=$ac_c_preproc_warn_flag
2690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2691 else
2692 ac_cpp_err=
2694 else
2695 ac_cpp_err=yes
2697 if test -z "$ac_cpp_err"; then
2698 # Broken: success on invalid input.
2699 continue
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 # Passes both tests.
2705 ac_preproc_ok=:
2706 break
2708 rm -f conftest.err conftest.$ac_ext
2710 done
2711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2712 rm -f conftest.err conftest.$ac_ext
2713 if $ac_preproc_ok; then
2714 break
2717 done
2718 ac_cv_prog_CPP=$CPP
2721 CPP=$ac_cv_prog_CPP
2722 else
2723 ac_cv_prog_CPP=$CPP
2725 echo "$as_me:$LINENO: result: $CPP" >&5
2726 echo "${ECHO_T}$CPP" >&6
2727 ac_preproc_ok=false
2728 for ac_c_preproc_warn_flag in '' yes
2730 # Use a header file that comes with gcc, so configuring glibc
2731 # with a fresh cross-compiler works.
2732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2733 # <limits.h> exists even on freestanding compilers.
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp. "Syntax error" is here to catch this case.
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 #ifdef __STDC__
2743 # include <limits.h>
2744 #else
2745 # include <assert.h>
2746 #endif
2747 Syntax error
2748 _ACEOF
2749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } >/dev/null; then
2757 if test -s conftest.err; then
2758 ac_cpp_err=$ac_c_preproc_warn_flag
2759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2760 else
2761 ac_cpp_err=
2763 else
2764 ac_cpp_err=yes
2766 if test -z "$ac_cpp_err"; then
2768 else
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 # Broken: fails on valid input.
2773 continue
2775 rm -f conftest.err conftest.$ac_ext
2777 # OK, works on sane cases. Now check whether non-existent headers
2778 # can be detected and how.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <ac_nonexistent.h>
2786 _ACEOF
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2798 else
2799 ac_cpp_err=
2801 else
2802 ac_cpp_err=yes
2804 if test -z "$ac_cpp_err"; then
2805 # Broken: success on invalid input.
2806 continue
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Passes both tests.
2812 ac_preproc_ok=:
2813 break
2815 rm -f conftest.err conftest.$ac_ext
2817 done
2818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2819 rm -f conftest.err conftest.$ac_ext
2820 if $ac_preproc_ok; then
2822 else
2823 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 echo "$as_me:$LINENO: checking for egrep" >&5
2838 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2839 if test "${ac_cv_prog_egrep+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2843 then ac_cv_prog_egrep='grep -E'
2844 else ac_cv_prog_egrep='egrep'
2847 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2848 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2849 EGREP=$ac_cv_prog_egrep
2852 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2853 # for constant arguments. Useless!
2854 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2855 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2856 if test "${ac_cv_working_alloca_h+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 #include <alloca.h>
2867 main ()
2869 char *p = (char *) alloca (2 * sizeof (int));
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.$ac_objext conftest$ac_exeext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2876 (eval $ac_link) 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest$ac_exeext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_cv_working_alloca_h=yes
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 ac_cv_working_alloca_h=no
2903 rm -f conftest.err conftest.$ac_objext \
2904 conftest$ac_exeext conftest.$ac_ext
2906 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2907 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2908 if test $ac_cv_working_alloca_h = yes; then
2910 cat >>confdefs.h <<\_ACEOF
2911 #define HAVE_ALLOCA_H 1
2912 _ACEOF
2916 echo "$as_me:$LINENO: checking for alloca" >&5
2917 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2918 if test "${ac_cv_func_alloca_works+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #ifdef __GNUC__
2928 # define alloca __builtin_alloca
2929 #else
2930 # ifdef _MSC_VER
2931 # include <malloc.h>
2932 # define alloca _alloca
2933 # else
2934 # if HAVE_ALLOCA_H
2935 # include <alloca.h>
2936 # else
2937 # ifdef _AIX
2938 #pragma alloca
2939 # else
2940 # ifndef alloca /* predefined by HP cc +Olibcalls */
2941 char *alloca ();
2942 # endif
2943 # endif
2944 # endif
2945 # endif
2946 #endif
2949 main ()
2951 char *p = (char *) alloca (1);
2953 return 0;
2955 _ACEOF
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_func_alloca_works=yes
2979 else
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 ac_cv_func_alloca_works=no
2985 rm -f conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2989 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2991 if test $ac_cv_func_alloca_works = yes; then
2993 cat >>confdefs.h <<\_ACEOF
2994 #define HAVE_ALLOCA 1
2995 _ACEOF
2997 else
2998 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2999 # that cause trouble. Some versions do not even contain alloca or
3000 # contain a buggy version. If you still want to use their alloca,
3001 # use ar to extract alloca.o from them instead of compiling alloca.c.
3003 ALLOCA=alloca.$ac_objext
3005 cat >>confdefs.h <<\_ACEOF
3006 #define C_ALLOCA 1
3007 _ACEOF
3010 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3011 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3012 if test "${ac_cv_os_cray+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #if defined(CRAY) && ! defined(CRAY2)
3022 webecray
3023 #else
3024 wenotbecray
3025 #endif
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "webecray" >/dev/null 2>&1; then
3030 ac_cv_os_cray=yes
3031 else
3032 ac_cv_os_cray=no
3034 rm -f conftest*
3037 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3038 echo "${ECHO_T}$ac_cv_os_cray" >&6
3039 if test $ac_cv_os_cray = yes; then
3040 for ac_func in _getb67 GETB67 getb67; do
3041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3042 echo "$as_me:$LINENO: checking for $ac_func" >&5
3043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3044 if eval "test \"\${$as_ac_var+set}\" = set"; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3055 #define $ac_func innocuous_$ac_func
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char $ac_func (); below.
3059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 <limits.h> exists even on freestanding compilers. */
3062 #ifdef __STDC__
3063 # include <limits.h>
3064 #else
3065 # include <assert.h>
3066 #endif
3068 #undef $ac_func
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 #ifdef __cplusplus
3072 extern "C"
3074 #endif
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3077 char $ac_func ();
3078 /* The GNU C library defines this for functions which it implements
3079 to always fail with ENOSYS. Some functions are actually named
3080 something starting with __ and the normal name is an alias. */
3081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3082 choke me
3083 #else
3084 char (*f) () = $ac_func;
3085 #endif
3086 #ifdef __cplusplus
3088 #endif
3091 main ()
3093 return f != $ac_func;
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.$ac_objext conftest$ac_exeext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100 (eval $ac_link) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag"
3108 || test ! -s conftest.err'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 (eval $ac_try) 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest$ac_exeext'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 eval "$as_ac_var=yes"
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 eval "$as_ac_var=no"
3127 rm -f conftest.err conftest.$ac_objext \
3128 conftest$ac_exeext conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3132 if test `eval echo '${'$as_ac_var'}'` = yes; then
3134 cat >>confdefs.h <<_ACEOF
3135 #define CRAY_STACKSEG_END $ac_func
3136 _ACEOF
3138 break
3141 done
3144 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3146 if test "${ac_cv_c_stack_direction+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test "$cross_compiling" = yes; then
3150 ac_cv_c_stack_direction=0
3151 else
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3159 find_stack_direction ()
3161 static char *addr = 0;
3162 auto char dummy;
3163 if (addr == 0)
3165 addr = &dummy;
3166 return find_stack_direction ();
3168 else
3169 return (&dummy > addr) ? 1 : -1;
3173 main ()
3175 exit (find_stack_direction () < 0);
3177 _ACEOF
3178 rm -f conftest$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180 (eval $ac_link) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_c_stack_direction=1
3190 else
3191 echo "$as_me: program exited with status $ac_status" >&5
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 ( exit $ac_status )
3196 ac_cv_c_stack_direction=-1
3198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3202 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3204 cat >>confdefs.h <<_ACEOF
3205 #define STACK_DIRECTION $ac_cv_c_stack_direction
3206 _ACEOF
3212 for ac_func in strcasecmp
3214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3215 echo "$as_me:$LINENO: checking for $ac_func" >&5
3216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3217 if eval "test \"\${$as_ac_var+set}\" = set"; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3228 #define $ac_func innocuous_$ac_func
3230 /* System header to define __stub macros and hopefully few prototypes,
3231 which can conflict with char $ac_func (); below.
3232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 <limits.h> exists even on freestanding compilers. */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3241 #undef $ac_func
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 #ifdef __cplusplus
3245 extern "C"
3247 #endif
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3250 char $ac_func ();
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3255 choke me
3256 #else
3257 char (*f) () = $ac_func;
3258 #endif
3259 #ifdef __cplusplus
3261 #endif
3264 main ()
3266 return f != $ac_func;
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.$ac_objext conftest$ac_exeext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3273 (eval $ac_link) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest$ac_exeext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 eval "$as_ac_var=yes"
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 eval "$as_ac_var=no"
3300 rm -f conftest.err conftest.$ac_objext \
3301 conftest$ac_exeext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3305 if test `eval echo '${'$as_ac_var'}'` = yes; then
3306 cat >>confdefs.h <<_ACEOF
3307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3308 _ACEOF
3310 else
3311 case $LIBOBJS in
3312 "$ac_func.$ac_objext" | \
3313 *" $ac_func.$ac_objext" | \
3314 "$ac_func.$ac_objext "* | \
3315 *" $ac_func.$ac_objext "* ) ;;
3316 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3317 esac
3320 done
3325 ac_config_files="$ac_config_files Makefile"
3326 cat >confcache <<\_ACEOF
3327 # This file is a shell script that caches the results of configure
3328 # tests run on this system so they can be shared between configure
3329 # scripts and configure runs, see configure's option --config-cache.
3330 # It is not useful on other systems. If it contains results you don't
3331 # want to keep, you may remove or edit it.
3333 # config.status only pays attention to the cache file if you give it
3334 # the --recheck option to rerun configure.
3336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3338 # following values.
3340 _ACEOF
3342 # The following way of writing the cache mishandles newlines in values,
3343 # but we know of no workaround that is simple, portable, and efficient.
3344 # So, don't put newlines in cache variables' values.
3345 # Ultrix sh set writes to stderr and can't be redirected directly,
3346 # and sets the high bit in the cache file unless we assign to the vars.
3348 (set) 2>&1 |
3349 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3350 *ac_space=\ *)
3351 # `set' does not quote correctly, so add quotes (double-quote
3352 # substitution turns \\\\ into \\, and sed turns \\ into \).
3353 sed -n \
3354 "s/'/'\\\\''/g;
3355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3358 # `set' quotes correctly as required by POSIX, so do not add quotes.
3359 sed -n \
3360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3362 esac;
3364 sed '
3365 t clear
3366 : clear
3367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3368 t end
3369 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3370 : end' >>confcache
3371 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3372 if test -w $cache_file; then
3373 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3374 cat confcache >$cache_file
3375 else
3376 echo "not updating unwritable cache $cache_file"
3379 rm -f confcache
3381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3382 # Let make expand exec_prefix.
3383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3385 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3386 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3387 # trailing colons and then remove the whole line if VPATH becomes empty
3388 # (actually we leave an empty line to preserve line numbers).
3389 if test "x$srcdir" = x.; then
3390 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3391 s/:*\$(srcdir):*/:/;
3392 s/:*\${srcdir}:*/:/;
3393 s/:*@srcdir@:*/:/;
3394 s/^\([^=]*=[ ]*\):*/\1/;
3395 s/:*$//;
3396 s/^[^=]*=[ ]*$//;
3400 DEFS=-DHAVE_CONFIG_H
3402 ac_libobjs=
3403 ac_ltlibobjs=
3404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3405 # 1. Remove the extension, and $U if already installed.
3406 ac_i=`echo "$ac_i" |
3407 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3408 # 2. Add them.
3409 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3410 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3411 done
3412 LIBOBJS=$ac_libobjs
3414 LTLIBOBJS=$ac_ltlibobjs
3418 : ${CONFIG_STATUS=./config.status}
3419 ac_clean_files_save=$ac_clean_files
3420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3421 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3422 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3423 cat >$CONFIG_STATUS <<_ACEOF
3424 #! $SHELL
3425 # Generated by $as_me.
3426 # Run this file to recreate the current configuration.
3427 # Compiler output produced by configure, useful for debugging
3428 # configure, is in config.log if it exists.
3430 debug=false
3431 ac_cs_recheck=false
3432 ac_cs_silent=false
3433 SHELL=\${CONFIG_SHELL-$SHELL}
3434 _ACEOF
3436 cat >>$CONFIG_STATUS <<\_ACEOF
3437 ## --------------------- ##
3438 ## M4sh Initialization. ##
3439 ## --------------------- ##
3441 # Be Bourne compatible
3442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3443 emulate sh
3444 NULLCMD=:
3445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3446 # is contrary to our usage. Disable this feature.
3447 alias -g '${1+"$@"}'='"$@"'
3448 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3449 set -o posix
3451 DUALCASE=1; export DUALCASE # for MKS sh
3453 # Support unset when possible.
3454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3455 as_unset=unset
3456 else
3457 as_unset=false
3461 # Work around bugs in pre-3.0 UWIN ksh.
3462 $as_unset ENV MAIL MAILPATH
3463 PS1='$ '
3464 PS2='> '
3465 PS4='+ '
3467 # NLS nuisances.
3468 for as_var in \
3469 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3470 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3471 LC_TELEPHONE LC_TIME
3473 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3474 eval $as_var=C; export $as_var
3475 else
3476 $as_unset $as_var
3478 done
3480 # Required to use basename.
3481 if expr a : '\(a\)' >/dev/null 2>&1; then
3482 as_expr=expr
3483 else
3484 as_expr=false
3487 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3488 as_basename=basename
3489 else
3490 as_basename=false
3494 # Name of the executable.
3495 as_me=`$as_basename "$0" ||
3496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3497 X"$0" : 'X\(//\)$' \| \
3498 X"$0" : 'X\(/\)$' \| \
3499 . : '\(.\)' 2>/dev/null ||
3500 echo X/"$0" |
3501 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3502 /^X\/\(\/\/\)$/{ s//\1/; q; }
3503 /^X\/\(\/\).*/{ s//\1/; q; }
3504 s/.*/./; q'`
3507 # PATH needs CR, and LINENO needs CR and PATH.
3508 # Avoid depending upon Character Ranges.
3509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3512 as_cr_digits='0123456789'
3513 as_cr_alnum=$as_cr_Letters$as_cr_digits
3515 # The user is always right.
3516 if test "${PATH_SEPARATOR+set}" != set; then
3517 echo "#! /bin/sh" >conf$$.sh
3518 echo "exit 0" >>conf$$.sh
3519 chmod +x conf$$.sh
3520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3521 PATH_SEPARATOR=';'
3522 else
3523 PATH_SEPARATOR=:
3525 rm -f conf$$.sh
3529 as_lineno_1=$LINENO
3530 as_lineno_2=$LINENO
3531 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3532 test "x$as_lineno_1" != "x$as_lineno_2" &&
3533 test "x$as_lineno_3" = "x$as_lineno_2" || {
3534 # Find who we are. Look in the path if we contain no path at all
3535 # relative or not.
3536 case $0 in
3537 *[\\/]* ) as_myself=$0 ;;
3538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3544 done
3547 esac
3548 # We did not find ourselves, most probably we were run as `sh COMMAND'
3549 # in which case we are not to be found in the path.
3550 if test "x$as_myself" = x; then
3551 as_myself=$0
3553 if test ! -f "$as_myself"; then
3554 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3555 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3556 { (exit 1); exit 1; }; }
3558 case $CONFIG_SHELL in
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for as_base in sh bash ksh sh5; do
3566 case $as_dir in
3568 if ("$as_dir/$as_base" -c '
3569 as_lineno_1=$LINENO
3570 as_lineno_2=$LINENO
3571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3572 test "x$as_lineno_1" != "x$as_lineno_2" &&
3573 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3574 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3575 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3576 CONFIG_SHELL=$as_dir/$as_base
3577 export CONFIG_SHELL
3578 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3579 fi;;
3580 esac
3581 done
3582 done
3584 esac
3586 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3587 # uniformly replaced by the line number. The first 'sed' inserts a
3588 # line-number line before each line; the second 'sed' does the real
3589 # work. The second script uses 'N' to pair each line-number line
3590 # with the numbered line, and appends trailing '-' during
3591 # substitution so that $LINENO is not a special case at line end.
3592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3593 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3594 sed '=' <$as_myself |
3595 sed '
3597 s,$,-,
3598 : loop
3599 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3600 t loop
3601 s,-$,,
3602 s,^['$as_cr_digits']*\n,,
3603 ' >$as_me.lineno &&
3604 chmod +x $as_me.lineno ||
3605 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3606 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3607 { (exit 1); exit 1; }; }
3609 # Don't try to exec as it changes $[0], causing all sort of problems
3610 # (the dirname of $[0] is not the place where we might find the
3611 # original and so on. Autoconf is especially sensible to this).
3612 . ./$as_me.lineno
3613 # Exit status is that of the last command.
3614 exit
3618 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3619 *c*,-n*) ECHO_N= ECHO_C='
3620 ' ECHO_T=' ' ;;
3621 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3622 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3623 esac
3625 if expr a : '\(a\)' >/dev/null 2>&1; then
3626 as_expr=expr
3627 else
3628 as_expr=false
3631 rm -f conf$$ conf$$.exe conf$$.file
3632 echo >conf$$.file
3633 if ln -s conf$$.file conf$$ 2>/dev/null; then
3634 # We could just check for DJGPP; but this test a) works b) is more generic
3635 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3636 if test -f conf$$.exe; then
3637 # Don't use ln at all; we don't have any links
3638 as_ln_s='cp -p'
3639 else
3640 as_ln_s='ln -s'
3642 elif ln conf$$.file conf$$ 2>/dev/null; then
3643 as_ln_s=ln
3644 else
3645 as_ln_s='cp -p'
3647 rm -f conf$$ conf$$.exe conf$$.file
3649 if mkdir -p . 2>/dev/null; then
3650 as_mkdir_p=:
3651 else
3652 test -d ./-p && rmdir ./-p
3653 as_mkdir_p=false
3656 as_executable_p="test -f"
3658 # Sed expression to map a string onto a valid CPP name.
3659 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3661 # Sed expression to map a string onto a valid variable name.
3662 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3665 # IFS
3666 # We need space, tab and new line, in precisely that order.
3667 as_nl='
3669 IFS=" $as_nl"
3671 # CDPATH.
3672 $as_unset CDPATH
3674 exec 6>&1
3676 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3677 # report actual input values of CONFIG_FILES etc. instead of their
3678 # values after options handling. Logging --version etc. is OK.
3679 exec 5>>config.log
3681 echo
3682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3683 ## Running $as_me. ##
3684 _ASBOX
3685 } >&5
3686 cat >&5 <<_CSEOF
3688 This file was extended by $as_me, which was
3689 generated by GNU Autoconf 2.59. Invocation command line was
3691 CONFIG_FILES = $CONFIG_FILES
3692 CONFIG_HEADERS = $CONFIG_HEADERS
3693 CONFIG_LINKS = $CONFIG_LINKS
3694 CONFIG_COMMANDS = $CONFIG_COMMANDS
3695 $ $0 $@
3697 _CSEOF
3698 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3699 echo >&5
3700 _ACEOF
3702 # Files that config.status was made for.
3703 if test -n "$ac_config_files"; then
3704 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3707 if test -n "$ac_config_headers"; then
3708 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3711 if test -n "$ac_config_links"; then
3712 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3715 if test -n "$ac_config_commands"; then
3716 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3719 cat >>$CONFIG_STATUS <<\_ACEOF
3721 ac_cs_usage="\
3722 \`$as_me' instantiates files from templates according to the
3723 current configuration.
3725 Usage: $0 [OPTIONS] [FILE]...
3727 -h, --help print this help, then exit
3728 -V, --version print version number, then exit
3729 -q, --quiet do not print progress messages
3730 -d, --debug don't remove temporary files
3731 --recheck update $as_me by reconfiguring in the same conditions
3732 --file=FILE[:TEMPLATE]
3733 instantiate the configuration file FILE
3734 --header=FILE[:TEMPLATE]
3735 instantiate the configuration header FILE
3737 Configuration files:
3738 $config_files
3740 Configuration headers:
3741 $config_headers
3743 Report bugs to <bug-autoconf@gnu.org>."
3744 _ACEOF
3746 cat >>$CONFIG_STATUS <<_ACEOF
3747 ac_cs_version="\\
3748 config.status
3749 configured by $0, generated by GNU Autoconf 2.59,
3750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3752 Copyright (C) 2003 Free Software Foundation, Inc.
3753 This config.status script is free software; the Free Software Foundation
3754 gives unlimited permission to copy, distribute and modify it."
3755 srcdir=$srcdir
3756 INSTALL="$INSTALL"
3757 _ACEOF
3759 cat >>$CONFIG_STATUS <<\_ACEOF
3760 # If no file are specified by the user, then we need to provide default
3761 # value. By we need to know if files were specified by the user.
3762 ac_need_defaults=:
3763 while test $# != 0
3765 case $1 in
3766 --*=*)
3767 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3768 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3769 ac_shift=:
3772 ac_option=$1
3773 ac_optarg=$2
3774 ac_shift=shift
3776 *) # This is not an option, so the user has probably given explicit
3777 # arguments.
3778 ac_option=$1
3779 ac_need_defaults=false;;
3780 esac
3782 case $ac_option in
3783 # Handling of the options.
3784 _ACEOF
3785 cat >>$CONFIG_STATUS <<\_ACEOF
3786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3787 ac_cs_recheck=: ;;
3788 --version | --vers* | -V )
3789 echo "$ac_cs_version"; exit 0 ;;
3790 --he | --h)
3791 # Conflict between --help and --header
3792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3793 Try \`$0 --help' for more information." >&5
3794 echo "$as_me: error: ambiguous option: $1
3795 Try \`$0 --help' for more information." >&2;}
3796 { (exit 1); exit 1; }; };;
3797 --help | --hel | -h )
3798 echo "$ac_cs_usage"; exit 0 ;;
3799 --debug | --d* | -d )
3800 debug=: ;;
3801 --file | --fil | --fi | --f )
3802 $ac_shift
3803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3804 ac_need_defaults=false;;
3805 --header | --heade | --head | --hea )
3806 $ac_shift
3807 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3808 ac_need_defaults=false;;
3809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3811 ac_cs_silent=: ;;
3813 # This is an error.
3814 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3815 Try \`$0 --help' for more information." >&5
3816 echo "$as_me: error: unrecognized option: $1
3817 Try \`$0 --help' for more information." >&2;}
3818 { (exit 1); exit 1; }; } ;;
3820 *) ac_config_targets="$ac_config_targets $1" ;;
3822 esac
3823 shift
3824 done
3826 ac_configure_extra_args=
3828 if $ac_cs_silent; then
3829 exec 6>/dev/null
3830 ac_configure_extra_args="$ac_configure_extra_args --silent"
3833 _ACEOF
3834 cat >>$CONFIG_STATUS <<_ACEOF
3835 if \$ac_cs_recheck; then
3836 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3837 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3840 _ACEOF
3846 cat >>$CONFIG_STATUS <<\_ACEOF
3847 for ac_config_target in $ac_config_targets
3849 case "$ac_config_target" in
3850 # Handling of arguments.
3851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3852 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3855 { (exit 1); exit 1; }; };;
3856 esac
3857 done
3859 # If the user did not use the arguments to specify the items to instantiate,
3860 # then the envvar interface is used. Set only those that are not.
3861 # We use the long form for the default assignment because of an extremely
3862 # bizarre bug on SunOS 4.1.3.
3863 if $ac_need_defaults; then
3864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3868 # Have a temporary directory for convenience. Make it in the build tree
3869 # simply because there is no reason to put it here, and in addition,
3870 # creating and moving files from /tmp can sometimes cause problems.
3871 # Create a temporary directory, and hook for its removal unless debugging.
3872 $debug ||
3874 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3875 trap '{ (exit 1); exit 1; }' 1 2 13 15
3878 # Create a (secure) tmp directory for tmp files.
3881 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3882 test -n "$tmp" && test -d "$tmp"
3883 } ||
3885 tmp=./confstat$$-$RANDOM
3886 (umask 077 && mkdir $tmp)
3887 } ||
3889 echo "$me: cannot create a temporary directory in ." >&2
3890 { (exit 1); exit 1; }
3893 _ACEOF
3895 cat >>$CONFIG_STATUS <<_ACEOF
3898 # CONFIG_FILES section.
3901 # No need to generate the scripts if there are no CONFIG_FILES.
3902 # This happens for instance when ./config.status config.h
3903 if test -n "\$CONFIG_FILES"; then
3904 # Protect against being on the right side of a sed subst in config.status.
3905 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3906 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3907 s,@SHELL@,$SHELL,;t t
3908 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3909 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3910 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3911 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3912 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3913 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3914 s,@exec_prefix@,$exec_prefix,;t t
3915 s,@prefix@,$prefix,;t t
3916 s,@program_transform_name@,$program_transform_name,;t t
3917 s,@bindir@,$bindir,;t t
3918 s,@sbindir@,$sbindir,;t t
3919 s,@libexecdir@,$libexecdir,;t t
3920 s,@datadir@,$datadir,;t t
3921 s,@sysconfdir@,$sysconfdir,;t t
3922 s,@sharedstatedir@,$sharedstatedir,;t t
3923 s,@localstatedir@,$localstatedir,;t t
3924 s,@libdir@,$libdir,;t t
3925 s,@includedir@,$includedir,;t t
3926 s,@oldincludedir@,$oldincludedir,;t t
3927 s,@infodir@,$infodir,;t t
3928 s,@mandir@,$mandir,;t t
3929 s,@build_alias@,$build_alias,;t t
3930 s,@host_alias@,$host_alias,;t t
3931 s,@target_alias@,$target_alias,;t t
3932 s,@DEFS@,$DEFS,;t t
3933 s,@ECHO_C@,$ECHO_C,;t t
3934 s,@ECHO_N@,$ECHO_N,;t t
3935 s,@ECHO_T@,$ECHO_T,;t t
3936 s,@LIBS@,$LIBS,;t t
3937 s,@CC@,$CC,;t t
3938 s,@CFLAGS@,$CFLAGS,;t t
3939 s,@LDFLAGS@,$LDFLAGS,;t t
3940 s,@CPPFLAGS@,$CPPFLAGS,;t t
3941 s,@ac_ct_CC@,$ac_ct_CC,;t t
3942 s,@EXEEXT@,$EXEEXT,;t t
3943 s,@OBJEXT@,$OBJEXT,;t t
3944 s,@LEX@,$LEX,;t t
3945 s,@LEXLIB@,$LEXLIB,;t t
3946 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3947 s,@YACC@,$YACC,;t t
3948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3951 s,@ALLOCA@,$ALLOCA,;t t
3952 s,@CPP@,$CPP,;t t
3953 s,@EGREP@,$EGREP,;t t
3954 s,@LIBOBJS@,$LIBOBJS,;t t
3955 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3956 CEOF
3958 _ACEOF
3960 cat >>$CONFIG_STATUS <<\_ACEOF
3961 # Split the substitutions into bite-sized pieces for seds with
3962 # small command number limits, like on Digital OSF/1 and HP-UX.
3963 ac_max_sed_lines=48
3964 ac_sed_frag=1 # Number of current file.
3965 ac_beg=1 # First line for current file.
3966 ac_end=$ac_max_sed_lines # Line after last line for current file.
3967 ac_more_lines=:
3968 ac_sed_cmds=
3969 while $ac_more_lines; do
3970 if test $ac_beg -gt 1; then
3971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3972 else
3973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3975 if test ! -s $tmp/subs.frag; then
3976 ac_more_lines=false
3977 else
3978 # The purpose of the label and of the branching condition is to
3979 # speed up the sed processing (if there are no `@' at all, there
3980 # is no need to browse any of the substitutions).
3981 # These are the two extra sed commands mentioned above.
3982 (echo ':t
3983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3984 if test -z "$ac_sed_cmds"; then
3985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3986 else
3987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3989 ac_sed_frag=`expr $ac_sed_frag + 1`
3990 ac_beg=$ac_end
3991 ac_end=`expr $ac_end + $ac_max_sed_lines`
3993 done
3994 if test -z "$ac_sed_cmds"; then
3995 ac_sed_cmds=cat
3997 fi # test -n "$CONFIG_FILES"
3999 _ACEOF
4000 cat >>$CONFIG_STATUS <<\_ACEOF
4001 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4003 case $ac_file in
4004 - | *:- | *:-:* ) # input from stdin
4005 cat >$tmp/stdin
4006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4010 * ) ac_file_in=$ac_file.in ;;
4011 esac
4013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4016 X"$ac_file" : 'X\(//\)[^/]' \| \
4017 X"$ac_file" : 'X\(//\)$' \| \
4018 X"$ac_file" : 'X\(/\)' \| \
4019 . : '\(.\)' 2>/dev/null ||
4020 echo X"$ac_file" |
4021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4023 /^X\(\/\/\)$/{ s//\1/; q; }
4024 /^X\(\/\).*/{ s//\1/; q; }
4025 s/.*/./; q'`
4026 { if $as_mkdir_p; then
4027 mkdir -p "$ac_dir"
4028 else
4029 as_dir="$ac_dir"
4030 as_dirs=
4031 while test ! -d "$as_dir"; do
4032 as_dirs="$as_dir $as_dirs"
4033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4035 X"$as_dir" : 'X\(//\)[^/]' \| \
4036 X"$as_dir" : 'X\(//\)$' \| \
4037 X"$as_dir" : 'X\(/\)' \| \
4038 . : '\(.\)' 2>/dev/null ||
4039 echo X"$as_dir" |
4040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4042 /^X\(\/\/\)$/{ s//\1/; q; }
4043 /^X\(\/\).*/{ s//\1/; q; }
4044 s/.*/./; q'`
4045 done
4046 test ! -n "$as_dirs" || mkdir $as_dirs
4047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4049 { (exit 1); exit 1; }; }; }
4051 ac_builddir=.
4053 if test "$ac_dir" != .; then
4054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4055 # A "../" for each directory in $ac_dir_suffix.
4056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4057 else
4058 ac_dir_suffix= ac_top_builddir=
4061 case $srcdir in
4062 .) # No --srcdir option. We are building in place.
4063 ac_srcdir=.
4064 if test -z "$ac_top_builddir"; then
4065 ac_top_srcdir=.
4066 else
4067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4068 fi ;;
4069 [\\/]* | ?:[\\/]* ) # Absolute path.
4070 ac_srcdir=$srcdir$ac_dir_suffix;
4071 ac_top_srcdir=$srcdir ;;
4072 *) # Relative path.
4073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4075 esac
4077 # Do not use `cd foo && pwd` to compute absolute paths, because
4078 # the directories may not exist.
4079 case `pwd` in
4080 .) ac_abs_builddir="$ac_dir";;
4082 case "$ac_dir" in
4083 .) ac_abs_builddir=`pwd`;;
4084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4086 esac;;
4087 esac
4088 case $ac_abs_builddir in
4089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4091 case ${ac_top_builddir}. in
4092 .) ac_abs_top_builddir=$ac_abs_builddir;;
4093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4095 esac;;
4096 esac
4097 case $ac_abs_builddir in
4098 .) ac_abs_srcdir=$ac_srcdir;;
4100 case $ac_srcdir in
4101 .) ac_abs_srcdir=$ac_abs_builddir;;
4102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4104 esac;;
4105 esac
4106 case $ac_abs_builddir in
4107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4109 case $ac_top_srcdir in
4110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4113 esac;;
4114 esac
4117 case $INSTALL in
4118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4119 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4120 esac
4122 if test x"$ac_file" != x-; then
4123 { echo "$as_me:$LINENO: creating $ac_file" >&5
4124 echo "$as_me: creating $ac_file" >&6;}
4125 rm -f "$ac_file"
4127 # Let's still pretend it is `configure' which instantiates (i.e., don't
4128 # use $as_me), people would be surprised to read:
4129 # /* config.h. Generated by config.status. */
4130 if test x"$ac_file" = x-; then
4131 configure_input=
4132 else
4133 configure_input="$ac_file. "
4135 configure_input=$configure_input"Generated from `echo $ac_file_in |
4136 sed 's,.*/,,'` by configure."
4138 # First look for the input files in the build tree, otherwise in the
4139 # src tree.
4140 ac_file_inputs=`IFS=:
4141 for f in $ac_file_in; do
4142 case $f in
4143 -) echo $tmp/stdin ;;
4144 [\\/$]*)
4145 # Absolute (can't be DOS-style, as IFS=:)
4146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4147 echo "$as_me: error: cannot find input file: $f" >&2;}
4148 { (exit 1); exit 1; }; }
4149 echo "$f";;
4150 *) # Relative
4151 if test -f "$f"; then
4152 # Build tree
4153 echo "$f"
4154 elif test -f "$srcdir/$f"; then
4155 # Source tree
4156 echo "$srcdir/$f"
4157 else
4158 # /dev/null tree
4159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4160 echo "$as_me: error: cannot find input file: $f" >&2;}
4161 { (exit 1); exit 1; }; }
4162 fi;;
4163 esac
4164 done` || { (exit 1); exit 1; }
4165 _ACEOF
4166 cat >>$CONFIG_STATUS <<_ACEOF
4167 sed "$ac_vpsub
4168 $extrasub
4169 _ACEOF
4170 cat >>$CONFIG_STATUS <<\_ACEOF
4172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4173 s,@configure_input@,$configure_input,;t t
4174 s,@srcdir@,$ac_srcdir,;t t
4175 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4176 s,@top_srcdir@,$ac_top_srcdir,;t t
4177 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4178 s,@builddir@,$ac_builddir,;t t
4179 s,@abs_builddir@,$ac_abs_builddir,;t t
4180 s,@top_builddir@,$ac_top_builddir,;t t
4181 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4182 s,@INSTALL@,$ac_INSTALL,;t t
4183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4184 rm -f $tmp/stdin
4185 if test x"$ac_file" != x-; then
4186 mv $tmp/out $ac_file
4187 else
4188 cat $tmp/out
4189 rm -f $tmp/out
4192 done
4193 _ACEOF
4194 cat >>$CONFIG_STATUS <<\_ACEOF
4197 # CONFIG_HEADER section.
4200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4203 # ac_d sets the value in "#define NAME VALUE" lines.
4204 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4205 ac_dB='[ ].*$,\1#\2'
4206 ac_dC=' '
4207 ac_dD=',;t'
4208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4209 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4210 ac_uB='$,\1#\2define\3'
4211 ac_uC=' '
4212 ac_uD=',;t'
4214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4216 case $ac_file in
4217 - | *:- | *:-:* ) # input from stdin
4218 cat >$tmp/stdin
4219 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4220 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4221 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4223 * ) ac_file_in=$ac_file.in ;;
4224 esac
4226 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4227 echo "$as_me: creating $ac_file" >&6;}
4229 # First look for the input files in the build tree, otherwise in the
4230 # src tree.
4231 ac_file_inputs=`IFS=:
4232 for f in $ac_file_in; do
4233 case $f in
4234 -) echo $tmp/stdin ;;
4235 [\\/$]*)
4236 # Absolute (can't be DOS-style, as IFS=:)
4237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4238 echo "$as_me: error: cannot find input file: $f" >&2;}
4239 { (exit 1); exit 1; }; }
4240 # Do quote $f, to prevent DOS paths from being IFS'd.
4241 echo "$f";;
4242 *) # Relative
4243 if test -f "$f"; then
4244 # Build tree
4245 echo "$f"
4246 elif test -f "$srcdir/$f"; then
4247 # Source tree
4248 echo "$srcdir/$f"
4249 else
4250 # /dev/null tree
4251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4252 echo "$as_me: error: cannot find input file: $f" >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi;;
4255 esac
4256 done` || { (exit 1); exit 1; }
4257 # Remove the trailing spaces.
4258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4260 _ACEOF
4262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4263 # `conftest.undefs', that substitutes the proper values into
4264 # config.h.in to produce config.h. The first handles `#define'
4265 # templates, and the second `#undef' templates.
4266 # And first: Protect against being on the right side of a sed subst in
4267 # config.status. Protect against being in an unquoted here document
4268 # in config.status.
4269 rm -f conftest.defines conftest.undefs
4270 # Using a here document instead of a string reduces the quoting nightmare.
4271 # Putting comments in sed scripts is not portable.
4273 # `end' is used to avoid that the second main sed command (meant for
4274 # 0-ary CPP macros) applies to n-ary macro definitions.
4275 # See the Autoconf documentation for `clear'.
4276 cat >confdef2sed.sed <<\_ACEOF
4277 s/[\\&,]/\\&/g
4278 s,[\\$`],\\&,g
4279 t clear
4280 : clear
4281 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4282 t end
4283 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4284 : end
4285 _ACEOF
4286 # If some macros were called several times there might be several times
4287 # the same #defines, which is useless. Nevertheless, we may not want to
4288 # sort them, since we want the *last* AC-DEFINE to be honored.
4289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4291 rm -f confdef2sed.sed
4293 # This sed command replaces #undef with comments. This is necessary, for
4294 # example, in the case of _POSIX_SOURCE, which is predefined and required
4295 # on some systems where configure will not decide to define it.
4296 cat >>conftest.undefs <<\_ACEOF
4297 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4298 _ACEOF
4300 # Break up conftest.defines because some shells have a limit on the size
4301 # of here documents, and old seds have small limits too (100 cmds).
4302 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4303 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4304 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4305 echo ' :' >>$CONFIG_STATUS
4306 rm -f conftest.tail
4307 while grep . conftest.defines >/dev/null
4309 # Write a limited-size here document to $tmp/defines.sed.
4310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4311 # Speed up: don't consider the non `#define' lines.
4312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4313 # Work around the forget-to-reset-the-flag bug.
4314 echo 't clr' >>$CONFIG_STATUS
4315 echo ': clr' >>$CONFIG_STATUS
4316 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4317 echo 'CEOF
4318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4319 rm -f $tmp/in
4320 mv $tmp/out $tmp/in
4321 ' >>$CONFIG_STATUS
4322 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4323 rm -f conftest.defines
4324 mv conftest.tail conftest.defines
4325 done
4326 rm -f conftest.defines
4327 echo ' fi # grep' >>$CONFIG_STATUS
4328 echo >>$CONFIG_STATUS
4330 # Break up conftest.undefs because some shells have a limit on the size
4331 # of here documents, and old seds have small limits too (100 cmds).
4332 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4333 rm -f conftest.tail
4334 while grep . conftest.undefs >/dev/null
4336 # Write a limited-size here document to $tmp/undefs.sed.
4337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4338 # Speed up: don't consider the non `#undef'
4339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4340 # Work around the forget-to-reset-the-flag bug.
4341 echo 't clr' >>$CONFIG_STATUS
4342 echo ': clr' >>$CONFIG_STATUS
4343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4344 echo 'CEOF
4345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4346 rm -f $tmp/in
4347 mv $tmp/out $tmp/in
4348 ' >>$CONFIG_STATUS
4349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4350 rm -f conftest.undefs
4351 mv conftest.tail conftest.undefs
4352 done
4353 rm -f conftest.undefs
4355 cat >>$CONFIG_STATUS <<\_ACEOF
4356 # Let's still pretend it is `configure' which instantiates (i.e., don't
4357 # use $as_me), people would be surprised to read:
4358 # /* config.h. Generated by config.status. */
4359 if test x"$ac_file" = x-; then
4360 echo "/* Generated by configure. */" >$tmp/config.h
4361 else
4362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4364 cat $tmp/in >>$tmp/config.h
4365 rm -f $tmp/in
4366 if test x"$ac_file" != x-; then
4367 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4369 echo "$as_me: $ac_file is unchanged" >&6;}
4370 else
4371 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4373 X"$ac_file" : 'X\(//\)[^/]' \| \
4374 X"$ac_file" : 'X\(//\)$' \| \
4375 X"$ac_file" : 'X\(/\)' \| \
4376 . : '\(.\)' 2>/dev/null ||
4377 echo X"$ac_file" |
4378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4380 /^X\(\/\/\)$/{ s//\1/; q; }
4381 /^X\(\/\).*/{ s//\1/; q; }
4382 s/.*/./; q'`
4383 { if $as_mkdir_p; then
4384 mkdir -p "$ac_dir"
4385 else
4386 as_dir="$ac_dir"
4387 as_dirs=
4388 while test ! -d "$as_dir"; do
4389 as_dirs="$as_dir $as_dirs"
4390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4392 X"$as_dir" : 'X\(//\)[^/]' \| \
4393 X"$as_dir" : 'X\(//\)$' \| \
4394 X"$as_dir" : 'X\(/\)' \| \
4395 . : '\(.\)' 2>/dev/null ||
4396 echo X"$as_dir" |
4397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4399 /^X\(\/\/\)$/{ s//\1/; q; }
4400 /^X\(\/\).*/{ s//\1/; q; }
4401 s/.*/./; q'`
4402 done
4403 test ! -n "$as_dirs" || mkdir $as_dirs
4404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4406 { (exit 1); exit 1; }; }; }
4408 rm -f $ac_file
4409 mv $tmp/config.h $ac_file
4411 else
4412 cat $tmp/config.h
4413 rm -f $tmp/config.h
4415 done
4416 _ACEOF
4418 cat >>$CONFIG_STATUS <<\_ACEOF
4420 { (exit 0); exit 0; }
4421 _ACEOF
4422 chmod +x $CONFIG_STATUS
4423 ac_clean_files=$ac_clean_files_save
4426 # configure is writing to config.log, and then calls config.status.
4427 # config.status does its own redirection, appending to config.log.
4428 # Unfortunately, on DOS this fails, as config.log is still kept open
4429 # by configure, so config.status won't be able to write to it; its
4430 # output is simply discarded. So we exec the FD to /dev/null,
4431 # effectively closing config.log, so it can be properly (re)opened and
4432 # appended to by config.status. When coming back to configure, we
4433 # need to make the FD available again.
4434 if test "$no_create" != yes; then
4435 ac_cs_success=:
4436 ac_config_status_args=
4437 test "$silent" = yes &&
4438 ac_config_status_args="$ac_config_status_args --quiet"
4439 exec 5>/dev/null
4440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4441 exec 5>>config.log
4442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4443 # would make configure fail if this is the last instruction.
4444 $ac_cs_success || { (exit 1); exit 1; }