Release coccinelle-0.1
[bpt/coccinelle.git] / pycaml / configure
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
14 if 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+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_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.
230 as_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.
235 as_nl='
236 '
237 IFS=" $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.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${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.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="pycaml_ml.c"
274 # Factoring default headers for most tests.
275 ac_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
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP PYPACKAGE haveldd PY_LIBS PY_VERSION PY_PREFIX LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_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.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
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
626 Try \`$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
649 done
650
651 if 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; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
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
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
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
678 done
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.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if 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
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if 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 ||
714 echo 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
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if 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
735 fi
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; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if 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
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
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
803 Installation 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
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine 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
833 fi
834
835 if test -n "$ac_init_help"; then
836
837 cat <<\_ACEOF
838
839 Optional 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
844 Some 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
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
855
856 _ACEOF
857 fi
858
859 if 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
866 if 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'`
870 else
871 ac_dir_suffix= ac_top_builddir=
872 fi
873
874 case $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 ;;
888 esac
889 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
890 # absolute.
891 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
892 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
893 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
894 ac_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
913 fi
914
915 test -n "$ac_init_help" && exit 0
916 if $ac_init_version; then
917 cat <<\_ACEOF
918
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
923 _ACEOF
924 exit 0
925 fi
926 exec 5>config.log
927 cat >&5 <<_ACEOF
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
930
931 It was created by $as_me, which was
932 generated by GNU Autoconf 2.57. Invocation command line was
933
934 $ $0 $@
935
936 _ACEOF
937 {
938 cat <<_ASUNAME
939 ## --------- ##
940 ## Platform. ##
941 ## --------- ##
942
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -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`
955 hostinfo = `(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
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 for as_dir in $PATH
964 do
965 IFS=$as_save_IFS
966 test -z "$as_dir" && as_dir=.
967 echo "PATH: $as_dir"
968 done
969
970 } >&5
971
972 cat >&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.
987 ac_configure_args=
988 ac_configure_args0=
989 ac_configure_args1=
990 ac_sep=
991 ac_must_keep_next=false
992 for ac_pass in 1 2
993 do
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
1029 done
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.
1038 trap '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
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>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.
1151 if 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
1157 fi
1158 for 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
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1163 . "$ac_site_file"
1164 fi
1165 done
1166
1167 if 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
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173 case $cache_file in
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1176 esac
1177 fi
1178 else
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181 >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for 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
1196 echo "$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
1200 echo "$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
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$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
1226 done
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$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
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_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
1261 ac_ext=c
1262 ac_cpp='$CPP $CPPFLAGS'
1263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266 if 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.
1268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1269 echo "$as_me:$LINENO: checking for $ac_word" >&5
1270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1271 if test "${ac_cv_prog_CC+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 else
1274 if test -n "$CC"; then
1275 ac_cv_prog_CC="$CC" # Let the user override the test.
1276 else
1277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278 for as_dir in $PATH
1279 do
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
1288 done
1289 done
1290
1291 fi
1292 fi
1293 CC=$ac_cv_prog_CC
1294 if test -n "$CC"; then
1295 echo "$as_me:$LINENO: result: $CC" >&5
1296 echo "${ECHO_T}$CC" >&6
1297 else
1298 echo "$as_me:$LINENO: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1300 fi
1301
1302 fi
1303 if 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.
1306 set dummy gcc; ac_word=$2
1307 echo "$as_me:$LINENO: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 if test -n "$ac_ct_CC"; then
1313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1314 else
1315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316 for as_dir in $PATH
1317 do
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
1326 done
1327 done
1328
1329 fi
1330 fi
1331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1332 if test -n "$ac_ct_CC"; then
1333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1334 echo "${ECHO_T}$ac_ct_CC" >&6
1335 else
1336 echo "$as_me:$LINENO: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1338 fi
1339
1340 CC=$ac_ct_CC
1341 else
1342 CC="$ac_cv_prog_CC"
1343 fi
1344
1345 if 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.
1348 set dummy ${ac_tool_prefix}cc; ac_word=$2
1349 echo "$as_me:$LINENO: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 if test -n "$CC"; then
1355 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 else
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 for as_dir in $PATH
1359 do
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
1368 done
1369 done
1370
1371 fi
1372 fi
1373 CC=$ac_cv_prog_CC
1374 if test -n "$CC"; then
1375 echo "$as_me:$LINENO: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1377 else
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1380 fi
1381
1382 fi
1383 if 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.
1386 set dummy cc; ac_word=$2
1387 echo "$as_me:$LINENO: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1394 else
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396 for as_dir in $PATH
1397 do
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
1406 done
1407 done
1408
1409 fi
1410 fi
1411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1412 if test -n "$ac_ct_CC"; then
1413 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1414 echo "${ECHO_T}$ac_ct_CC" >&6
1415 else
1416 echo "$as_me:$LINENO: result: no" >&5
1417 echo "${ECHO_T}no" >&6
1418 fi
1419
1420 CC=$ac_ct_CC
1421 else
1422 CC="$ac_cv_prog_CC"
1423 fi
1424
1425 fi
1426 if test -z "$CC"; then
1427 # Extract the first word of "cc", so it can be a program name with args.
1428 set dummy cc; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$CC"; then
1435 ac_cv_prog_CC="$CC" # Let the user override the test.
1436 else
1437 ac_prog_rejected=no
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
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
1453 done
1454 done
1455
1456 if 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
1467 fi
1468 fi
1469 fi
1470 CC=$ac_cv_prog_CC
1471 if test -n "$CC"; then
1472 echo "$as_me:$LINENO: result: $CC" >&5
1473 echo "${ECHO_T}$CC" >&6
1474 else
1475 echo "$as_me:$LINENO: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1477 fi
1478
1479 fi
1480 if 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.
1485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
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
1505 done
1506 done
1507
1508 fi
1509 fi
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519 test -n "$CC" && break
1520 done
1521 fi
1522 if test -z "$CC"; then
1523 ac_ct_CC=$CC
1524 for ac_prog in cl
1525 do
1526 # Extract the first word of "$ac_prog", so it can be a program name with args.
1527 set dummy $ac_prog; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
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
1547 done
1548 done
1549
1550 fi
1551 fi
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 test -n "$ac_ct_CC" && break
1562 done
1563
1564 CC=$ac_ct_CC
1565 fi
1566
1567 fi
1568
1569
1570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1571 See \`config.log' for more details." >&5
1572 echo "$as_me: error: no acceptable C compiler found in \$PATH
1573 See \`config.log' for more details." >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576 # Provide some information about the compiler.
1577 echo "$as_me:$LINENO:" \
1578 "checking for C compiler version" >&5
1579 ac_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
1596 cat >conftest.$ac_ext <<_ACEOF
1597 #line $LINENO "configure"
1598 /* confdefs.h. */
1599 _ACEOF
1600 cat confdefs.h >>conftest.$ac_ext
1601 cat >>conftest.$ac_ext <<_ACEOF
1602 /* end confdefs.h. */
1603
1604 int
1605 main ()
1606 {
1607
1608 ;
1609 return 0;
1610 }
1611 _ACEOF
1612 ac_clean_files_save=$ac_clean_files
1613 ac_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.
1617 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1618 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1619 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1620 if { (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.
1631 ac_cv_exeext=
1632 # b.out is created by i960 compilers.
1633 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1634 do
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
1656 done
1657 else
1658 echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1662 See \`config.log' for more details." >&5
1663 echo "$as_me: error: C compiler cannot create executables
1664 See \`config.log' for more details." >&2;}
1665 { (exit 77); exit 77; }; }
1666 fi
1667
1668 ac_exeext=$ac_cv_exeext
1669 echo "$as_me:$LINENO: result: $ac_file" >&5
1670 echo "${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.
1674 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1675 echo $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.
1678 if 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.
1691 If you meant to cross compile, use \`--host'.
1692 See \`config.log' for more details." >&5
1693 echo "$as_me: error: cannot run C compiled programs.
1694 If you meant to cross compile, use \`--host'.
1695 See \`config.log' for more details." >&2;}
1696 { (exit 1); exit 1; }; }
1697 fi
1698 fi
1699 fi
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1702
1703 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1704 ac_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.
1707 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1708 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1709 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1710 echo "${ECHO_T}$cross_compiling" >&6
1711
1712 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1713 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1714 if { (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'.
1723 for 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
1732 done
1733 else
1734 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739 fi
1740
1741 rm -f conftest$ac_cv_exeext
1742 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1743 echo "${ECHO_T}$ac_cv_exeext" >&6
1744
1745 rm -f conftest.$ac_ext
1746 EXEEXT=$ac_cv_exeext
1747 ac_exeext=$EXEEXT
1748 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1749 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1750 if test "${ac_cv_objext+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 cat >conftest.$ac_ext <<_ACEOF
1754 #line $LINENO "configure"
1755 /* confdefs.h. */
1756 _ACEOF
1757 cat confdefs.h >>conftest.$ac_ext
1758 cat >>conftest.$ac_ext <<_ACEOF
1759 /* end confdefs.h. */
1760
1761 int
1762 main ()
1763 {
1764
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 rm -f conftest.o conftest.obj
1770 if { (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
1781 done
1782 else
1783 echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1787 See \`config.log' for more details." >&5
1788 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1789 See \`config.log' for more details." >&2;}
1790 { (exit 1); exit 1; }; }
1791 fi
1792
1793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1794 fi
1795 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1796 echo "${ECHO_T}$ac_cv_objext" >&6
1797 OBJEXT=$ac_cv_objext
1798 ac_objext=$OBJEXT
1799 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1806 /* confdefs.h. */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1811
1812 int
1813 main ()
1814 {
1815 #ifndef __GNUC__
1816 choke me
1817 #endif
1818
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 rm -f conftest.$ac_objext
1824 if { (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
1836 else
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_compiler_gnu=no
1841 fi
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1844
1845 fi
1846 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1847 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1848 GCC=`test $ac_compiler_gnu = yes && echo yes`
1849 ac_test_CFLAGS=${CFLAGS+set}
1850 ac_save_CFLAGS=$CFLAGS
1851 CFLAGS="-g"
1852 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1853 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1854 if test "${ac_cv_prog_cc_g+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1864
1865 int
1866 main ()
1867 {
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 rm -f conftest.$ac_objext
1874 if { (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
1886 else
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_cv_prog_cc_g=no
1891 fi
1892 rm -f conftest.$ac_objext conftest.$ac_ext
1893 fi
1894 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1895 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1896 if test "$ac_test_CFLAGS" = set; then
1897 CFLAGS=$ac_save_CFLAGS
1898 elif 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
1904 else
1905 if test "$GCC" = yes; then
1906 CFLAGS="-O2"
1907 else
1908 CFLAGS=
1909 fi
1910 fi
1911 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1912 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1913 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 ac_cv_prog_cc_stdc=no
1917 ac_save_CC=$CC
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line $LINENO "configure"
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>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. */
1930 struct buf { int x; };
1931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1932 static char *e (p, i)
1933 char **p;
1934 int i;
1935 {
1936 return p[i];
1937 }
1938 static 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 }
1947 int test (int i, double x);
1948 struct s1 {int (*f) (int a);};
1949 struct s2 {int (*f) (double a);};
1950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1951 int argc;
1952 char **argv;
1953 int
1954 main ()
1955 {
1956 return 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__
1968 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1969 do
1970 CC="$ac_save_CC $ac_arg"
1971 rm -f conftest.$ac_objext
1972 if { (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
1984 break
1985 else
1986 echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 fi
1990 rm -f conftest.$ac_objext
1991 done
1992 rm -f conftest.$ac_ext conftest.$ac_objext
1993 CC=$ac_save_CC
1994
1995 fi
1996
1997 case "x$ac_cv_prog_cc_stdc" in
1998 x|xno)
1999 echo "$as_me:$LINENO: result: none needed" >&5
2000 echo "${ECHO_T}none needed" >&6 ;;
2001 *)
2002 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2003 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2004 CC="$CC $ac_cv_prog_cc_stdc" ;;
2005 esac
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.
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #ifndef __cplusplus
2013 choke me
2014 #endif
2015 _ACEOF
2016 rm -f conftest.$ac_objext
2017 if { (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);'
2036 do
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 /* confdefs.h. */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2044 #include <stdlib.h>
2045 $ac_declaration
2046 int
2047 main ()
2048 {
2049 exit (42);
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (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 :
2067 else
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 continue
2072 fi
2073 rm -f conftest.$ac_objext conftest.$ac_ext
2074 cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 /* confdefs.h. */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2081 $ac_declaration
2082 int
2083 main ()
2084 {
2085 exit (42);
2086 ;
2087 return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (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
2103 else
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 fi
2108 rm -f conftest.$ac_objext conftest.$ac_ext
2109 done
2110 rm -f conftest*
2111 if test -n "$ac_declaration"; then
2112 echo '#ifdef __cplusplus' >>confdefs.h
2113 echo $ac_declaration >>confdefs.h
2114 echo '#endif' >>confdefs.h
2115 fi
2116
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 fi
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2123 ac_ext=c
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128
2129
2130
2131 echo "$as_me:$LINENO: checking for main in -lpython" >&5
2132 echo $ECHO_N "checking for main in -lpython... $ECHO_C" >&6
2133 if test "${ac_cv_lib_python_main+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_check_lib_save_LIBS=$LIBS
2137 LIBS="-lpython $LIBS"
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145
2146
2147 int
2148 main ()
2149 {
2150 main ();
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 rm -f conftest.$ac_objext conftest$ac_exeext
2156 if { (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
2168 else
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_cv_lib_python_main=no
2173 fi
2174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2175 LIBS=$ac_check_lib_save_LIBS
2176 fi
2177 echo "$as_me:$LINENO: result: $ac_cv_lib_python_main" >&5
2178 echo "${ECHO_T}$ac_cv_lib_python_main" >&6
2179 if 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
2186 fi
2187
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2196 # On Suns, sometimes $CPP names a directory.
2197 if test -n "$CPP" && test -d "$CPP"; then
2198 CPP=
2199 fi
2200 if test -z "$CPP"; then
2201 if test "${ac_cv_prog_CPP+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
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
2208 for ac_c_preproc_warn_flag in '' yes
2209 do
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
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>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
2230 if { (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
2243 else
2244 ac_cpp_err=yes
2245 fi
2246 if test -z "$ac_cpp_err"; then
2247 :
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 # Broken: fails on valid input.
2253 continue
2254 fi
2255 rm -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
2263 cat confdefs.h >>conftest.$ac_ext
2264 cat >>conftest.$ac_ext <<_ACEOF
2265 /* end confdefs.h. */
2266 #include <ac_nonexistent.h>
2267 _ACEOF
2268 if { (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
2281 else
2282 ac_cpp_err=yes
2283 fi
2284 if test -z "$ac_cpp_err"; then
2285 # Broken: success on invalid input.
2286 continue
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 # Passes both tests.
2292 ac_preproc_ok=:
2293 break
2294 fi
2295 rm -f conftest.err conftest.$ac_ext
2296
2297 done
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2301 break
2302 fi
2303
2304 done
2305 ac_cv_prog_CPP=$CPP
2306
2307 fi
2308 CPP=$ac_cv_prog_CPP
2309 else
2310 ac_cv_prog_CPP=$CPP
2311 fi
2312 echo "$as_me:$LINENO: result: $CPP" >&5
2313 echo "${ECHO_T}$CPP" >&6
2314 ac_preproc_ok=false
2315 for ac_c_preproc_warn_flag in '' yes
2316 do
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
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>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
2337 if { (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
2350 else
2351 ac_cpp_err=yes
2352 fi
2353 if test -z "$ac_cpp_err"; then
2354 :
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 # Broken: fails on valid input.
2360 continue
2361 fi
2362 rm -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
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2373 #include <ac_nonexistent.h>
2374 _ACEOF
2375 if { (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
2388 else
2389 ac_cpp_err=yes
2390 fi
2391 if test -z "$ac_cpp_err"; then
2392 # Broken: success on invalid input.
2393 continue
2394 else
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 # Passes both tests.
2399 ac_preproc_ok=:
2400 break
2401 fi
2402 rm -f conftest.err conftest.$ac_ext
2403
2404 done
2405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2406 rm -f conftest.err conftest.$ac_ext
2407 if $ac_preproc_ok; then
2408 :
2409 else
2410 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2415 fi
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422
2423
2424 echo "$as_me:$LINENO: checking for egrep" >&5
2425 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2426 if test "${ac_cv_prog_egrep+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
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
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2435 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2436 EGREP=$ac_cv_prog_egrep
2437
2438
2439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2441 if test "${ac_cv_header_stdc+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>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
2456 int
2457 main ()
2458 {
2459
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (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
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 ac_cv_header_stdc=no
2482 fi
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484
2485 if 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
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 #include <string.h>
2495
2496 _ACEOF
2497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2498 $EGREP "memchr" >/dev/null 2>&1; then
2499 :
2500 else
2501 ac_cv_header_stdc=no
2502 fi
2503 rm -f conftest*
2504
2505 fi
2506
2507 if 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
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516 #include <stdlib.h>
2517
2518 _ACEOF
2519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2520 $EGREP "free" >/dev/null 2>&1; then
2521 :
2522 else
2523 ac_cv_header_stdc=no
2524 fi
2525 rm -f conftest*
2526
2527 fi
2528
2529 if 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 :
2533 else
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>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)))
2554 int
2555 main ()
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
2565 rm -f conftest$ac_exeext
2566 if { (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 :
2577 else
2578 echo "$as_me: program exited with status $ac_status" >&5
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 ( exit $ac_status )
2583 ac_cv_header_stdc=no
2584 fi
2585 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 fi
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2590 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2591 if test $ac_cv_header_stdc = yes; then
2592
2593 cat >>confdefs.h <<\_ACEOF
2594 #define STDC_HEADERS 1
2595 _ACEOF
2596
2597 fi
2598
2599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2610 inttypes.h stdint.h unistd.h
2611 do
2612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2613 echo "$as_me:$LINENO: checking for $ac_header" >&5
2614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 /* confdefs.h. */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2625 $ac_includes_default
2626
2627 #include <$ac_header>
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (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"
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 eval "$as_ac_Header=no"
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2652 if 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
2657 fi
2658
2659 done
2660
2661
2662
2663 for ac_header in unistd.h
2664 do
2665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2667 echo "$as_me:$LINENO: checking for $ac_header" >&5
2668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 fi
2672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2674 else
2675 # Is the header compilable?
2676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 $ac_includes_default
2686 #include <$ac_header>
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (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
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_header_compiler=no
2706 fi
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2709 echo "${ECHO_T}$ac_header_compiler" >&6
2710
2711 # Is the header present?
2712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2721 #include <$ac_header>
2722 _ACEOF
2723 if { (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
2736 else
2737 ac_cpp_err=yes
2738 fi
2739 if test -z "$ac_cpp_err"; then
2740 ac_header_preproc=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_header_preproc=no
2746 fi
2747 rm -f conftest.err conftest.$ac_ext
2748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2749 echo "${ECHO_T}$ac_header_preproc" >&6
2750
2751 # So? What about this header?
2752 case $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
2755 echo "$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
2757 echo "$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
2769 echo "$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
2771 echo "$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
2773 echo "$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 ;;
2783 esac
2784 echo "$as_me:$LINENO: checking for $ac_header" >&5
2785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 eval "$as_ac_Header=$ac_header_preproc"
2790 fi
2791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2793
2794 fi
2795 if 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
2800 fi
2801
2802 done
2803
2804
2805 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2806 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2807 if test "${ac_cv_c_const+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817
2818 int
2819 main ()
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
2872 rm -f conftest.$ac_objext
2873 if { (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
2885 else
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 ac_cv_c_const=no
2890 fi
2891 rm -f conftest.$ac_objext conftest.$ac_ext
2892 fi
2893 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2894 echo "${ECHO_T}$ac_cv_c_const" >&6
2895 if test $ac_cv_c_const = no; then
2896
2897 cat >>confdefs.h <<\_ACEOF
2898 #define const
2899 _ACEOF
2900
2901 fi
2902
2903
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>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
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (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
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 ac_cv_header_stdc=no
2947 fi
2948 rm -f conftest.$ac_objext conftest.$ac_ext
2949
2950 if 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
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <string.h>
2960
2961 _ACEOF
2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963 $EGREP "memchr" >/dev/null 2>&1; then
2964 :
2965 else
2966 ac_cv_header_stdc=no
2967 fi
2968 rm -f conftest*
2969
2970 fi
2971
2972 if 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
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <stdlib.h>
2982
2983 _ACEOF
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 $EGREP "free" >/dev/null 2>&1; then
2986 :
2987 else
2988 ac_cv_header_stdc=no
2989 fi
2990 rm -f conftest*
2991
2992 fi
2993
2994 if 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 :
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>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)))
3019 int
3020 main ()
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
3030 rm -f conftest$ac_exeext
3031 if { (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 :
3042 else
3043 echo "$as_me: program exited with status $ac_status" >&5
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ( exit $ac_status )
3048 ac_cv_header_stdc=no
3049 fi
3050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3051 fi
3052 fi
3053 fi
3054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3056 if test $ac_cv_header_stdc = yes; then
3057
3058 cat >>confdefs.h <<\_ACEOF
3059 #define STDC_HEADERS 1
3060 _ACEOF
3061
3062 fi
3063
3064
3065
3066
3067
3068 # Check whether --with-python-prefix or --without-python-prefix was given.
3069 if 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
3076 else
3077 PYPACKAGE=""
3078 fi;
3079
3080
3081
3082 for ac_prog in python
3083 do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 if test "${ac_cv_path_PYPACKAGE+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
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
3097 for as_dir in $PATH
3098 do
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
3107 done
3108 done
3109
3110 ;;
3111 esac
3112 fi
3113 PYPACKAGE=$ac_cv_path_PYPACKAGE
3114
3115 if test -n "$PYPACKAGE"; then
3116 echo "$as_me:$LINENO: result: $PYPACKAGE" >&5
3117 echo "${ECHO_T}$PYPACKAGE" >&6
3118 else
3119 echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6
3121 fi
3122
3123 test -n "$PYPACKAGE" && break
3124 done
3125
3126
3127
3128
3129 PY_PREFIX=`$PYPACKAGE getprefix.py`
3130 PY_VERSION=`$PYPACKAGE getversion.py`
3131
3132
3133 if test `echo $PY_VERSION | tr -d .` -lt 15; then
3134 echo "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
3136 echo "$as_me: error: *** Python 1.5 or better required" >&2;}
3137 { (exit 1); exit 1; }; }
3138 fi
3139
3140
3141 echo "$as_me:$LINENO: checking for Python header files" >&5
3142 echo $ECHO_N "checking for Python header files... $ECHO_C" >&6
3143
3144 PY_INCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[:3])'`
3145
3146
3147 if test -r "$PY_INCLUDE/Python.h"; then
3148 PY_CFLAGS="-I$PY_INCLUDE"
3149 else
3150 { { echo "$as_me:$LINENO: error: Could not find Python.h in $PY_INCLUDE" >&5
3151 echo "$as_me: error: Could not find Python.h in $PY_INCLUDE" >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154 echo "$as_me:$LINENO: result: found" >&5
3155 echo "${ECHO_T}found" >&6
3156
3157
3158 echo "$as_me:$LINENO: checking for Python library" >&5
3159 echo $ECHO_N "checking for Python library... $ECHO_C" >&6
3160 PYLIB=""
3161
3162 PY_PREFIX=`$PYPACKAGE -c 'import sys; print sys.prefix'`
3163 PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version[:3]'`
3164
3165
3166 py_paths="$PY_PREFIX/lib/python$PYLIBVER/config $PYPREFIX/lib"
3167 py_suffix="$PYLIBVER.so $PYLIBVER.a .so .a"
3168
3169
3170 for 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
3182 done
3183
3184 if test "x$PYLIB" != x ; then
3185 PY_LIBS="$PYLIB $PY_LIBS"
3186 echo "$as_me:$LINENO: result: found" >&5
3187 echo "${ECHO_T}found" >&6
3188 else
3189 { { echo "$as_me:$LINENO: error: *** Python library not found" >&5
3190 echo "$as_me: error: *** Python library not found" >&2;}
3191 { (exit 1); exit 1; }; }
3192 fi
3193
3194
3195 # Extract the first word of "ldd", so it can be a program name with args.
3196 set dummy ldd; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_path_haveldd+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
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
3208 for as_dir in $PATH
3209 do
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
3218 done
3219 done
3220
3221 ;;
3222 esac
3223 fi
3224 haveldd=$ac_cv_path_haveldd
3225
3226 if test -n "$haveldd"; then
3227 echo "$as_me:$LINENO: result: $haveldd" >&5
3228 echo "${ECHO_T}$haveldd" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232 fi
3233
3234 echo "$as_me:$LINENO: checking for Python's dependencies" >&5
3235 echo $ECHO_N "checking for Python's dependencies... $ECHO_C" >&6
3236
3237 if 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
3246 fi
3247
3248
3249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3250 PY_LIBS="-Wl,-E $PY_LIBS $PY_DEPS"
3251 else
3252 PY_LIBS="$PY_LIBS $PY_DEPS"
3253 fi
3254
3255 export PY_LIBS
3256 export PY_VERSION
3257 export PY_PREFIX
3258
3259
3260
3261
3262
3263 ac_config_files="$ac_config_files Makefile"
3264 cat >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
3309 if 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
3316 fi
3317 rm -f confcache
3318
3319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3320 # Let make expand exec_prefix.
3321 test "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).
3327 if test "x$srcdir" = x.; then
3328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3329 s/:*\$(srcdir):*/:/;
3330 s/:*\${srcdir}:*/:/;
3331 s/:*@srcdir@:*/:/;
3332 s/^\([^=]*=[ ]*\):*/\1/;
3333 s/:*$//;
3334 s/^[^=]*=[ ]*$//;
3335 }'
3336 fi
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.
3345 cat >confdef2opt.sed <<\_ACEOF
3346 t clear
3347 : clear
3348 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3349 t quote
3350 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3351 t quote
3352 d
3353 : quote
3354 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3355 s,\[,\\&,g
3356 s,\],\\&,g
3357 s,\$,$$,g
3358 p
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.
3366 ac_LF_and_DOT=`echo; echo .`
3367 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3368 rm -f confdef2opt.sed
3369
3370
3371 ac_libobjs=
3372 ac_ltlibobjs=
3373 for 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'
3380 done
3381 LIBOBJS=$ac_libobjs
3382
3383 LTLIBOBJS=$ac_ltlibobjs
3384
3385
3386
3387 : ${CONFIG_STATUS=./config.status}
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3390 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3391 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3392 cat >$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
3399 debug=false
3400 ac_cs_recheck=false
3401 ac_cs_silent=false
3402 SHELL=\${CONFIG_SHELL-$SHELL}
3403 _ACEOF
3404
3405 cat >>$CONFIG_STATUS <<\_ACEOF
3406 ## --------------------- ##
3407 ## M4sh Initialization. ##
3408 ## --------------------- ##
3409
3410 # Be Bourne compatible
3411 if 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+"$@"}'='"$@"'
3417 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3418 set -o posix
3419 fi
3420
3421 # Support unset when possible.
3422 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3423 as_unset=unset
3424 else
3425 as_unset=false
3426 fi
3427
3428
3429 # Work around bugs in pre-3.0 UWIN ksh.
3430 $as_unset ENV MAIL MAILPATH
3431 PS1='$ '
3432 PS2='> '
3433 PS4='+ '
3434
3435 # NLS nuisances.
3436 for 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
3440 do
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
3446 done
3447
3448 # Required to use basename.
3449 if expr a : '\(a\)' >/dev/null 2>&1; then
3450 as_expr=expr
3451 else
3452 as_expr=false
3453 fi
3454
3455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3456 as_basename=basename
3457 else
3458 as_basename=false
3459 fi
3460
3461
3462 # Name of the executable.
3463 as_me=`$as_basename "$0" ||
3464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3465 X"$0" : 'X\(//\)$' \| \
3466 X"$0" : 'X\(/\)$' \| \
3467 . : '\(.\)' 2>/dev/null ||
3468 echo 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.
3477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3480 as_cr_digits='0123456789'
3481 as_cr_alnum=$as_cr_Letters$as_cr_digits
3482
3483 # The user is always right.
3484 if 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
3494 fi
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
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3512 done
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
3523 echo "$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
3529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3530 do
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
3550 done
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
3574 echo "$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
3586 case `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= ;;
3591 esac
3592
3593 if expr a : '\(a\)' >/dev/null 2>&1; then
3594 as_expr=expr
3595 else
3596 as_expr=false
3597 fi
3598
3599 rm -f conf$$ conf$$.exe conf$$.file
3600 echo >conf$$.file
3601 if 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
3610 elif ln conf$$.file conf$$ 2>/dev/null; then
3611 as_ln_s=ln
3612 else
3613 as_ln_s='cp -p'
3614 fi
3615 rm -f conf$$ conf$$.exe conf$$.file
3616
3617 if mkdir -p . 2>/dev/null; then
3618 as_mkdir_p=:
3619 else
3620 as_mkdir_p=false
3621 fi
3622
3623 as_executable_p="test -f"
3624
3625 # Sed expression to map a string onto a valid CPP name.
3626 as_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.
3629 as_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.
3634 as_nl='
3635 '
3636 IFS=" $as_nl"
3637
3638 # CDPATH.
3639 $as_unset CDPATH
3640
3641 exec 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.
3646 exec 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
3653 cat >&5 <<_CSEOF
3654
3655 This file was extended by $as_me, which was
3656 generated 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
3665 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3666 echo >&5
3667 _ACEOF
3668
3669 # Files that config.status was made for.
3670 if test -n "$ac_config_files"; then
3671 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3672 fi
3673
3674 if test -n "$ac_config_headers"; then
3675 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3676 fi
3677
3678 if test -n "$ac_config_links"; then
3679 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3680 fi
3681
3682 if test -n "$ac_config_commands"; then
3683 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3684 fi
3685
3686 cat >>$CONFIG_STATUS <<\_ACEOF
3687
3688 ac_cs_usage="\
3689 \`$as_me' instantiates files from templates according to the
3690 current configuration.
3691
3692 Usage: $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
3702 Configuration files:
3703 $config_files
3704
3705 Report bugs to <bug-autoconf@gnu.org>."
3706 _ACEOF
3707
3708 cat >>$CONFIG_STATUS <<_ACEOF
3709 ac_cs_version="\\
3710 config.status
3711 configured by $0, generated by GNU Autoconf 2.57,
3712 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3713
3714 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3715 Free Software Foundation, Inc.
3716 This config.status script is free software; the Free Software Foundation
3717 gives unlimited permission to copy, distribute and modify it."
3718 srcdir=$srcdir
3719 _ACEOF
3720
3721 cat >>$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.
3724 ac_need_defaults=:
3725 while test $# != 0
3726 do
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
3747 cat >>$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
3755 Try \`$0 --help' for more information." >&5
3756 echo "$as_me: error: ambiguous option: $1
3757 Try \`$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
3777 Try \`$0 --help' for more information." >&5
3778 echo "$as_me: error: unrecognized option: $1
3779 Try \`$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
3786 done
3787
3788 ac_configure_extra_args=
3789
3790 if $ac_cs_silent; then
3791 exec 6>/dev/null
3792 ac_configure_extra_args="$ac_configure_extra_args --silent"
3793 fi
3794
3795 _ACEOF
3796 cat >>$CONFIG_STATUS <<_ACEOF
3797 if \$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
3800 fi
3801
3802 _ACEOF
3803
3804
3805
3806
3807
3808 cat >>$CONFIG_STATUS <<\_ACEOF
3809 for ac_config_target in $ac_config_targets
3810 do
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
3815 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3816 { (exit 1); exit 1; }; };;
3817 esac
3818 done
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.
3824 if $ac_need_defaults; then
3825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3826 fi
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
3855 cat >>$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
3863 if 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
3867 s,@SHELL@,$SHELL,;t t
3868 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3869 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3870 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3871 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3872 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3873 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3874 s,@exec_prefix@,$exec_prefix,;t t
3875 s,@prefix@,$prefix,;t t
3876 s,@program_transform_name@,$program_transform_name,;t t
3877 s,@bindir@,$bindir,;t t
3878 s,@sbindir@,$sbindir,;t t
3879 s,@libexecdir@,$libexecdir,;t t
3880 s,@datadir@,$datadir,;t t
3881 s,@sysconfdir@,$sysconfdir,;t t
3882 s,@sharedstatedir@,$sharedstatedir,;t t
3883 s,@localstatedir@,$localstatedir,;t t
3884 s,@libdir@,$libdir,;t t
3885 s,@includedir@,$includedir,;t t
3886 s,@oldincludedir@,$oldincludedir,;t t
3887 s,@infodir@,$infodir,;t t
3888 s,@mandir@,$mandir,;t t
3889 s,@build_alias@,$build_alias,;t t
3890 s,@host_alias@,$host_alias,;t t
3891 s,@target_alias@,$target_alias,;t t
3892 s,@DEFS@,$DEFS,;t t
3893 s,@ECHO_C@,$ECHO_C,;t t
3894 s,@ECHO_N@,$ECHO_N,;t t
3895 s,@ECHO_T@,$ECHO_T,;t t
3896 s,@LIBS@,$LIBS,;t t
3897 s,@CC@,$CC,;t t
3898 s,@CFLAGS@,$CFLAGS,;t t
3899 s,@LDFLAGS@,$LDFLAGS,;t t
3900 s,@CPPFLAGS@,$CPPFLAGS,;t t
3901 s,@ac_ct_CC@,$ac_ct_CC,;t t
3902 s,@EXEEXT@,$EXEEXT,;t t
3903 s,@OBJEXT@,$OBJEXT,;t t
3904 s,@CPP@,$CPP,;t t
3905 s,@EGREP@,$EGREP,;t t
3906 s,@PYPACKAGE@,$PYPACKAGE,;t t
3907 s,@haveldd@,$haveldd,;t t
3908 s,@PY_LIBS@,$PY_LIBS,;t t
3909 s,@PY_VERSION@,$PY_VERSION,;t t
3910 s,@PY_PREFIX@,$PY_PREFIX,;t t
3911 s,@LIBOBJS@,$LIBOBJS,;t t
3912 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3913 CEOF
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
3954 fi # test -n "$CONFIG_FILES"
3955
3956 _ACEOF
3957 cat >>$CONFIG_STATUS <<\_ACEOF
3958 for 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 ||
3977 echo 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 ||
3996 echo 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
4005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4006 { (exit 1); exit 1; }; }; }
4007
4008 ac_builddir=.
4009
4010 if 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'`
4014 else
4015 ac_dir_suffix= ac_top_builddir=
4016 fi
4017
4018 case $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 ;;
4032 esac
4033 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4034 # absolute.
4035 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4036 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4037 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4038 ac_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
4044 echo "$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
4067 echo "$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
4080 echo "$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
4086 cat >>$CONFIG_STATUS <<_ACEOF
4087 sed "$ac_vpsub
4088 $extrasub
4089 _ACEOF
4090 cat >>$CONFIG_STATUS <<\_ACEOF
4091 :t
4092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4093 s,@configure_input@,$configure_input,;t t
4094 s,@srcdir@,$ac_srcdir,;t t
4095 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4096 s,@top_srcdir@,$ac_top_srcdir,;t t
4097 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4098 s,@builddir@,$ac_builddir,;t t
4099 s,@abs_builddir@,$ac_abs_builddir,;t t
4100 s,@top_builddir@,$ac_top_builddir,;t t
4101 s,@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
4111 done
4112 _ACEOF
4113
4114 cat >>$CONFIG_STATUS <<\_ACEOF
4115
4116 { (exit 0); exit 0; }
4117 _ACEOF
4118 chmod +x $CONFIG_STATUS
4119 ac_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.
4130 if 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; }
4141 fi
4142