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