2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.53.
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.
10
if expr a : '\(a\)' >/dev/null 2>&1; then
17
## --------------------- ##
18
## M4sh Initialization. ##
19
## --------------------- ##
21
# Be Bourne compatible
22
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
# Support unset when possible.
31
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38
{ $as_unset LANG || test "${LANG+set}" != set; } ||
39
{ LANG=C; export LANG; }
40
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42
{ LC_ALL=C; export LC_ALL; }
43
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45
{ LC_TIME=C; export LC_TIME; }
46
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48
{ LC_CTYPE=C; export LC_CTYPE; }
49
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51
{ LANGUAGE=C; export LANGUAGE; }
52
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54
{ LC_COLLATE=C; export LC_COLLATE; }
55
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57
{ LC_NUMERIC=C; export LC_NUMERIC; }
58
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60
{ LC_MESSAGES=C; export LC_MESSAGES; }
63
# Name of the executable.
64
as_me=`(basename "$0") 2>/dev/null ||
65
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66
X"$0" : 'X\(//\)$' \| \
67
X"$0" : 'X\(/\)$' \| \
68
. : '\(.\)' 2>/dev/null ||
70
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71
/^X\/\(\/\/\)$/{ s//\1/; q; }
72
/^X\/\(\/\).*/{ s//\1/; q; }
75
# PATH needs CR, and LINENO needs CR and PATH.
76
# Avoid depending upon Character Ranges.
77
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80
as_cr_digits='0123456789'
81
as_cr_alnum=$as_cr_Letters$as_cr_digits
83
# The user is always right.
84
if test "${PATH_SEPARATOR+set}" != set; then
85
echo "#! /bin/sh" >conftest.sh
86
echo "exit 0" >>conftest.sh
88
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100
test "x$as_lineno_1" != "x$as_lineno_2" &&
101
test "x$as_lineno_3" = "x$as_lineno_2" || {
102
# Find who we are. Look in the path if we contain no path at all
105
*[\\/]* ) as_myself=$0 ;;
106
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
test -z "$as_dir" && as_dir=.
111
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116
# We did not find ourselves, most probably we were run as `sh COMMAND'
117
# in which case we are not to be found in the path.
118
if test "x$as_myself" = x; then
121
if test ! -f "$as_myself"; then
122
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123
{ (exit 1); exit 1; }; }
125
case $CONFIG_SHELL in
127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131
test -z "$as_dir" && as_dir=.
132
for as_base in sh bash ksh sh5; do
135
if ("$as_dir/$as_base" -c '
138
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139
test "x$as_lineno_1" != "x$as_lineno_2" &&
140
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141
CONFIG_SHELL=$as_dir/$as_base
143
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152
# uniformly replaced by the line number. The first 'sed' inserts a
153
# line-number line before each line; the second 'sed' does the real
154
# work. The second script uses 'N' to pair each line-number line
155
# with the numbered line, and appends trailing '-' during
156
# substitution so that $LINENO is not a special case at line end.
157
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159
sed '=' <$as_myself |
164
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167
s,^['$as_cr_digits']*\n,,
169
chmod +x $as_me.lineno ||
170
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171
{ (exit 1); exit 1; }; }
173
# Don't try to exec as it changes $[0], causing all sort of problems
174
# (the dirname of $[0] is not the place where we might find the
175
# original and so on. Autoconf is especially sensible to this).
177
# Exit status is that of the last command.
182
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183
*c*,-n*) ECHO_N= ECHO_C='
185
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189
if expr a : '\(a\)' >/dev/null 2>&1; then
195
rm -f conf$$ conf$$.exe conf$$.file
197
if ln -s conf$$.file conf$$ 2>/dev/null; then
198
# We could just check for DJGPP; but this test a) works b) is more generic
199
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200
if test -f conf$$.exe; then
201
# Don't use ln at all; we don't have any links
206
elif ln conf$$.file conf$$ 2>/dev/null; then
211
rm -f conf$$ conf$$.exe conf$$.file
213
as_executable_p="test -f"
215
# Sed expression to map a string onto a valid CPP name.
216
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
# Sed expression to map a string onto a valid variable name.
219
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223
# We need space, tab and new line, in precisely that order.
229
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234
# so uname gets run too.
235
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242
ac_default_prefix=/usr/local
247
SHELL=${CONFIG_SHELL-/bin/sh}
249
# Maximum number of lines to put in a shell here document.
250
# This variable seems obsolete. It should probably be removed, and
251
# only ac_max_sed_lines should be used.
252
: ${ac_max_here_lines=38}
254
# Identity of this package.
261
ac_unique_file="src/mod_python.c"
263
# Initialize some variables set by options.
265
ac_init_version=false
266
# The variables have the same names as the options, with
267
# dashes changed to underlines.
275
program_transform_name=s,x,x,
283
# Installation directory options.
284
# These are left unexpanded so users can "make install exec_prefix=/foo"
285
# and all the variables that are supposed to be based on exec_prefix
286
# by default will actually change.
287
# Use braces instead of parens because sh, perl, etc. also accept them.
288
bindir='${exec_prefix}/bin'
289
sbindir='${exec_prefix}/sbin'
290
libexecdir='${exec_prefix}/libexec'
291
datadir='${prefix}/share'
292
sysconfdir='${prefix}/etc'
293
sharedstatedir='${prefix}/com'
294
localstatedir='${prefix}/var'
295
libdir='${exec_prefix}/lib'
296
includedir='${prefix}/include'
297
oldincludedir='/usr/include'
298
infodir='${prefix}/info'
299
mandir='${prefix}/man'
304
# If the previous option needs an argument, assign it.
305
if test -n "$ac_prev"; then
306
eval "$ac_prev=\$ac_option"
311
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
313
# Accept the important Cygnus configure options, so we can diagnose typos.
317
-bindir | --bindir | --bindi | --bind | --bin | --bi)
319
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
322
-build | --build | --buil | --bui | --bu)
323
ac_prev=build_alias ;;
324
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
325
build_alias=$ac_optarg ;;
327
-cache-file | --cache-file | --cache-fil | --cache-fi \
328
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
329
ac_prev=cache_file ;;
330
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
331
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
332
cache_file=$ac_optarg ;;
335
cache_file=config.cache ;;
337
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
339
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
341
datadir=$ac_optarg ;;
343
-disable-* | --disable-*)
344
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
345
# Reject names that are not valid shell variable names.
346
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
347
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
348
{ (exit 1); exit 1; }; }
349
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
350
eval "enable_$ac_feature=no" ;;
352
-enable-* | --enable-*)
353
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
354
# Reject names that are not valid shell variable names.
355
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
357
{ (exit 1); exit 1; }; }
358
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
360
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
363
eval "enable_$ac_feature='$ac_optarg'" ;;
365
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
366
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
367
| --exec | --exe | --ex)
368
ac_prev=exec_prefix ;;
369
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
370
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
371
| --exec=* | --exe=* | --ex=*)
372
exec_prefix=$ac_optarg ;;
374
-gas | --gas | --ga | --g)
375
# Obsolete; use --with-gas.
378
-help | --help | --hel | --he | -h)
380
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
381
ac_init_help=recursive ;;
382
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
383
ac_init_help=short ;;
385
-host | --host | --hos | --ho)
386
ac_prev=host_alias ;;
387
-host=* | --host=* | --hos=* | --ho=*)
388
host_alias=$ac_optarg ;;
390
-includedir | --includedir | --includedi | --included | --include \
391
| --includ | --inclu | --incl | --inc)
392
ac_prev=includedir ;;
393
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
394
| --includ=* | --inclu=* | --incl=* | --inc=*)
395
includedir=$ac_optarg ;;
397
-infodir | --infodir | --infodi | --infod | --info | --inf)
399
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
400
infodir=$ac_optarg ;;
402
-libdir | --libdir | --libdi | --libd)
404
-libdir=* | --libdir=* | --libdi=* | --libd=*)
407
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
408
| --libexe | --libex | --libe)
409
ac_prev=libexecdir ;;
410
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
411
| --libexe=* | --libex=* | --libe=*)
412
libexecdir=$ac_optarg ;;
414
-localstatedir | --localstatedir | --localstatedi | --localstated \
415
| --localstate | --localstat | --localsta | --localst \
416
| --locals | --local | --loca | --loc | --lo)
417
ac_prev=localstatedir ;;
418
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
419
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
420
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
421
localstatedir=$ac_optarg ;;
423
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
425
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
429
# Obsolete; use --without-fp.
432
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
433
| --no-cr | --no-c | -n)
436
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
437
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
440
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
441
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
442
| --oldin | --oldi | --old | --ol | --o)
443
ac_prev=oldincludedir ;;
444
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
445
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
446
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
447
oldincludedir=$ac_optarg ;;
449
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
451
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
454
-program-prefix | --program-prefix | --program-prefi | --program-pref \
455
| --program-pre | --program-pr | --program-p)
456
ac_prev=program_prefix ;;
457
-program-prefix=* | --program-prefix=* | --program-prefi=* \
458
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
459
program_prefix=$ac_optarg ;;
461
-program-suffix | --program-suffix | --program-suffi | --program-suff \
462
| --program-suf | --program-su | --program-s)
463
ac_prev=program_suffix ;;
464
-program-suffix=* | --program-suffix=* | --program-suffi=* \
465
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
466
program_suffix=$ac_optarg ;;
468
-program-transform-name | --program-transform-name \
469
| --program-transform-nam | --program-transform-na \
470
| --program-transform-n | --program-transform- \
471
| --program-transform | --program-transfor \
472
| --program-transfo | --program-transf \
473
| --program-trans | --program-tran \
474
| --progr-tra | --program-tr | --program-t)
475
ac_prev=program_transform_name ;;
476
-program-transform-name=* | --program-transform-name=* \
477
| --program-transform-nam=* | --program-transform-na=* \
478
| --program-transform-n=* | --program-transform-=* \
479
| --program-transform=* | --program-transfor=* \
480
| --program-transfo=* | --program-transf=* \
481
| --program-trans=* | --program-tran=* \
482
| --progr-tra=* | --program-tr=* | --program-t=*)
483
program_transform_name=$ac_optarg ;;
485
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
486
| -silent | --silent | --silen | --sile | --sil)
489
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
491
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
493
sbindir=$ac_optarg ;;
495
-sharedstatedir | --sharedstatedir | --sharedstatedi \
496
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
497
| --sharedst | --shareds | --shared | --share | --shar \
499
ac_prev=sharedstatedir ;;
500
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
501
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
502
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
504
sharedstatedir=$ac_optarg ;;
506
-site | --site | --sit)
508
-site=* | --site=* | --sit=*)
511
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
513
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
516
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
517
| --syscon | --sysco | --sysc | --sys | --sy)
518
ac_prev=sysconfdir ;;
519
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
520
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
521
sysconfdir=$ac_optarg ;;
523
-target | --target | --targe | --targ | --tar | --ta | --t)
524
ac_prev=target_alias ;;
525
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
526
target_alias=$ac_optarg ;;
528
-v | -verbose | --verbose | --verbos | --verbo | --verb)
531
-version | --version | --versio | --versi | --vers | -V)
535
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
536
# Reject names that are not valid shell variable names.
537
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
538
{ echo "$as_me: error: invalid package name: $ac_package" >&2
539
{ (exit 1); exit 1; }; }
540
ac_package=`echo $ac_package| sed 's/-/_/g'`
542
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
545
eval "with_$ac_package='$ac_optarg'" ;;
547
-without-* | --without-*)
548
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
549
# Reject names that are not valid shell variable names.
550
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551
{ echo "$as_me: error: invalid package name: $ac_package" >&2
552
{ (exit 1); exit 1; }; }
553
ac_package=`echo $ac_package | sed 's/-/_/g'`
554
eval "with_$ac_package=no" ;;
557
# Obsolete; use --with-x.
560
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
561
| --x-incl | --x-inc | --x-in | --x-i)
562
ac_prev=x_includes ;;
563
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
564
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
565
x_includes=$ac_optarg ;;
567
-x-libraries | --x-libraries | --x-librarie | --x-librari \
568
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
569
ac_prev=x_libraries ;;
570
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
571
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
572
x_libraries=$ac_optarg ;;
574
-*) { echo "$as_me: error: unrecognized option: $ac_option
575
Try \`$0 --help' for more information." >&2
576
{ (exit 1); exit 1; }; }
580
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
581
# Reject names that are not valid shell variable names.
582
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
583
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
584
{ (exit 1); exit 1; }; }
585
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
586
eval "$ac_envvar='$ac_optarg'"
590
# FIXME: should be removed in autoconf 3.0.
591
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
592
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
593
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
594
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
600
if test -n "$ac_prev"; then
601
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
602
{ echo "$as_me: error: missing argument to $ac_option" >&2
603
{ (exit 1); exit 1; }; }
606
# Be sure to have absolute paths.
607
for ac_var in exec_prefix prefix
609
eval ac_val=$`echo $ac_var`
611
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
612
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
613
{ (exit 1); exit 1; }; };;
617
# Be sure to have absolute paths.
618
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
619
localstatedir libdir includedir oldincludedir infodir mandir
621
eval ac_val=$`echo $ac_var`
623
[\\/$]* | ?:[\\/]* ) ;;
624
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
625
{ (exit 1); exit 1; }; };;
629
# There might be people who depend on the old broken behavior: `$host'
630
# used to hold the argument of --host etc.
631
# FIXME: To remove some day.
636
# FIXME: To remove some day.
637
if test "x$host_alias" != x; then
638
if test "x$build_alias" = x; then
639
cross_compiling=maybe
640
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
641
If a cross compiler is detected then cross compile mode will be used." >&2
642
elif test "x$build_alias" != "x$host_alias"; then
648
test -n "$host_alias" && ac_tool_prefix=$host_alias-
650
test "$silent" = yes && exec 6>/dev/null
653
# Find the source files, if location was not specified.
654
if test -z "$srcdir"; then
655
ac_srcdir_defaulted=yes
656
# Try the directory containing this script, then its parent.
657
ac_confdir=`(dirname "$0") 2>/dev/null ||
658
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
659
X"$0" : 'X\(//\)[^/]' \| \
660
X"$0" : 'X\(//\)$' \| \
661
X"$0" : 'X\(/\)' \| \
662
. : '\(.\)' 2>/dev/null ||
664
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
665
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
666
/^X\(\/\/\)$/{ s//\1/; q; }
667
/^X\(\/\).*/{ s//\1/; q; }
670
if test ! -r $srcdir/$ac_unique_file; then
674
ac_srcdir_defaulted=no
676
if test ! -r $srcdir/$ac_unique_file; then
677
if test "$ac_srcdir_defaulted" = yes; then
678
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
679
{ (exit 1); exit 1; }; }
681
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
682
{ (exit 1); exit 1; }; }
685
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
686
ac_env_build_alias_set=${build_alias+set}
687
ac_env_build_alias_value=$build_alias
688
ac_cv_env_build_alias_set=${build_alias+set}
689
ac_cv_env_build_alias_value=$build_alias
690
ac_env_host_alias_set=${host_alias+set}
691
ac_env_host_alias_value=$host_alias
692
ac_cv_env_host_alias_set=${host_alias+set}
693
ac_cv_env_host_alias_value=$host_alias
694
ac_env_target_alias_set=${target_alias+set}
695
ac_env_target_alias_value=$target_alias
696
ac_cv_env_target_alias_set=${target_alias+set}
697
ac_cv_env_target_alias_value=$target_alias
698
ac_env_CC_set=${CC+set}
700
ac_cv_env_CC_set=${CC+set}
701
ac_cv_env_CC_value=$CC
702
ac_env_CFLAGS_set=${CFLAGS+set}
703
ac_env_CFLAGS_value=$CFLAGS
704
ac_cv_env_CFLAGS_set=${CFLAGS+set}
705
ac_cv_env_CFLAGS_value=$CFLAGS
706
ac_env_LDFLAGS_set=${LDFLAGS+set}
707
ac_env_LDFLAGS_value=$LDFLAGS
708
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
709
ac_cv_env_LDFLAGS_value=$LDFLAGS
710
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
711
ac_env_CPPFLAGS_value=$CPPFLAGS
712
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
713
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
716
# Report the --help message.
718
if test "$ac_init_help" = "long"; then
719
# Omit some internal or obsolete options to make the list less imposing.
720
# This message is too long to be a string in the A/UX 3.1 sh.
722
\`configure' configures this package to adapt to many kinds of systems.
724
Usage: $0 [OPTION]... [VAR=VALUE]...
726
To assign environment variables (e.g., CC, CFLAGS...), specify them as
727
VAR=VALUE. See below for descriptions of some of the useful variables.
729
Defaults for the options are specified in brackets.
732
-h, --help display this help and exit
733
--help=short display options specific to this package
734
--help=recursive display the short help of all the included packages
735
-V, --version display version information and exit
736
-q, --quiet, --silent do not print \`checking...' messages
737
--cache-file=FILE cache test results in FILE [disabled]
738
-C, --config-cache alias for \`--cache-file=config.cache'
739
-n, --no-create do not create output files
740
--srcdir=DIR find the sources in DIR [configure dir or \`..']
745
Installation directories:
746
--prefix=PREFIX install architecture-independent files in PREFIX
748
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
751
By default, \`make install' will install all the files in
752
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
753
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
754
for instance \`--prefix=\$HOME'.
756
For better control, use the options below.
758
Fine tuning of the installation directories:
759
--bindir=DIR user executables [EPREFIX/bin]
760
--sbindir=DIR system admin executables [EPREFIX/sbin]
761
--libexecdir=DIR program executables [EPREFIX/libexec]
762
--datadir=DIR read-only architecture-independent data [PREFIX/share]
763
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
764
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
765
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
766
--libdir=DIR object code libraries [EPREFIX/lib]
767
--includedir=DIR C header files [PREFIX/include]
768
--oldincludedir=DIR C header files for non-gcc [/usr/include]
769
--infodir=DIR info documentation [PREFIX/info]
770
--mandir=DIR man documentation [PREFIX/man]
777
if test -n "$ac_init_help"; then
782
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
783
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
784
--with-apxs=PATH Path to apxs
785
--with-apache=DIR Path to Apache sources
786
--with-python=DIR Path to specific Python binary
788
Some influential environment variables:
789
CC C compiler command
790
CFLAGS C compiler flags
791
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
792
nonstandard directory <lib dir>
793
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
794
headers in a nonstandard directory <include dir>
796
Use these variables to override the choices made by `configure' or to help
797
it to find libraries and programs with nonstandard names/locations.
802
if test "$ac_init_help" = "recursive"; then
803
# If there are subdirs, report their specific --help.
805
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
806
test -d $ac_dir || continue
809
if test "$ac_dir" != .; then
810
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
811
# A "../" for each directory in $ac_dir_suffix.
812
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
814
ac_dir_suffix= ac_top_builddir=
818
.) # No --srcdir option. We are building in place.
820
if test -z "$ac_top_builddir"; then
823
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
825
[\\/]* | ?:[\\/]* ) # Absolute path.
826
ac_srcdir=$srcdir$ac_dir_suffix;
827
ac_top_srcdir=$srcdir ;;
829
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
830
ac_top_srcdir=$ac_top_builddir$srcdir ;;
832
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
834
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
835
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
836
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
837
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
840
# Check for guested configure; otherwise get Cygnus style configure.
841
if test -f $ac_srcdir/configure.gnu; then
843
$SHELL $ac_srcdir/configure.gnu --help=recursive
844
elif test -f $ac_srcdir/configure; then
846
$SHELL $ac_srcdir/configure --help=recursive
847
elif test -f $ac_srcdir/configure.ac ||
848
test -f $ac_srcdir/configure.in; then
852
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
858
test -n "$ac_init_help" && exit 0
859
if $ac_init_version; then
862
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
863
Free Software Foundation, Inc.
864
This configure script is free software; the Free Software Foundation
865
gives unlimited permission to copy, distribute and modify it.
871
This file contains any messages produced by compilers while
872
running configure, to aid debugging if configure makes a mistake.
874
It was created by $as_me, which was
875
generated by GNU Autoconf 2.53. Invocation command line was
886
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
887
uname -m = `(uname -m) 2>/dev/null || echo unknown`
888
uname -r = `(uname -r) 2>/dev/null || echo unknown`
889
uname -s = `(uname -s) 2>/dev/null || echo unknown`
890
uname -v = `(uname -v) 2>/dev/null || echo unknown`
892
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
893
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
895
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
896
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
897
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
898
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
899
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
900
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
901
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
909
test -z "$as_dir" && as_dir=.
925
# Keep a trace of the command line.
926
# Strip out --no-create and --no-recursion so they do not pile up.
927
# Also quote any args containing shell meta-characters.
933
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
934
| --no-cr | --no-c | -n ) continue ;;
935
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
936
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
941
case " $ac_configure_args " in
942
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
943
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
946
# Get rid of the leading space.
949
# When interrupted or exit'd, cleanup temporary files, and complete
950
# config.log. We remove comments because anyway the quotes in there
951
# would cause problems or look ugly.
952
# WARNING: Be sure not to use single quotes in there, as some shells,
953
# such as our DU 5.0 friend, will then `close' the trap.
955
# Save into config.log some information that might help in debugging.
959
## ---------------- ##
960
## Cache variables. ##
961
## ---------------- ##
964
# The following way of writing the cache mishandles newlines in values,
967
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
970
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
971
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
975
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
980
if test -s confdefs.h; then
987
sed "/^$/d" confdefs.h
990
test "$ac_signal" != 0 &&
991
echo "$as_me: caught signal $ac_signal"
992
echo "$as_me: exit $exit_status"
994
rm -f core core.* *.core &&
995
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
998
for ac_signal in 1 2 13 15; do
999
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1003
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1004
rm -rf conftest* confdefs.h
1005
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1008
# Predefined preprocessor variables.
1010
cat >>confdefs.h <<_ACEOF
1011
#define PACKAGE_NAME "$PACKAGE_NAME"
1015
cat >>confdefs.h <<_ACEOF
1016
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1020
cat >>confdefs.h <<_ACEOF
1021
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1025
cat >>confdefs.h <<_ACEOF
1026
#define PACKAGE_STRING "$PACKAGE_STRING"
1030
cat >>confdefs.h <<_ACEOF
1031
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1035
# Let the site file select an alternate cache file if it wants to.
1036
# Prefer explicitly selected file to automatically selected ones.
1037
if test -z "$CONFIG_SITE"; then
1038
if test "x$prefix" != xNONE; then
1039
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1041
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1044
for ac_site_file in $CONFIG_SITE; do
1045
if test -r "$ac_site_file"; then
1046
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1047
echo "$as_me: loading site script $ac_site_file" >&6;}
1048
sed 's/^/| /' "$ac_site_file" >&5
1053
if test -r "$cache_file"; then
1054
# Some versions of bash will fail to source /dev/null (special
1055
# files actually), so we avoid doing that.
1056
if test -f "$cache_file"; then
1057
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1058
echo "$as_me: loading cache $cache_file" >&6;}
1060
[\\/]* | ?:[\\/]* ) . $cache_file;;
1061
*) . ./$cache_file;;
1065
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1066
echo "$as_me: creating cache $cache_file" >&6;}
1070
# Check that the precious variables saved in the cache have kept the same
1072
ac_cache_corrupted=false
1073
for ac_var in `(set) 2>&1 |
1074
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1075
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1076
eval ac_new_set=\$ac_env_${ac_var}_set
1077
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1078
eval ac_new_val="\$ac_env_${ac_var}_value"
1079
case $ac_old_set,$ac_new_set in
1081
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1082
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1083
ac_cache_corrupted=: ;;
1085
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1086
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1087
ac_cache_corrupted=: ;;
1090
if test "x$ac_old_val" != "x$ac_new_val"; then
1091
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1092
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1093
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1094
echo "$as_me: former value: $ac_old_val" >&2;}
1095
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1096
echo "$as_me: current value: $ac_new_val" >&2;}
1097
ac_cache_corrupted=:
1100
# Pass precious variables to config.status.
1101
if test "$ac_new_set" = set; then
1103
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1105
*) ac_arg=$ac_var=$ac_new_val ;;
1107
case " $ac_configure_args " in
1108
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1109
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1113
if $ac_cache_corrupted; then
1114
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1115
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1116
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1117
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1118
{ (exit 1); exit 1; }; }
1122
ac_cpp='$CPP $CPPFLAGS'
1123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1146
INCLUDES="-I`pwd`/src/include"
1149
ac_cpp='$CPP $CPPFLAGS'
1150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153
if test -n "$ac_tool_prefix"; then
1154
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1155
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1156
echo "$as_me:$LINENO: checking for $ac_word" >&5
1157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1158
if test "${ac_cv_prog_CC+set}" = set; then
1159
echo $ECHO_N "(cached) $ECHO_C" >&6
1161
if test -n "$CC"; then
1162
ac_cv_prog_CC="$CC" # Let the user override the test.
1164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168
test -z "$as_dir" && as_dir=.
1169
for ac_exec_ext in '' $ac_executable_extensions; do
1170
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1171
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1172
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1181
if test -n "$CC"; then
1182
echo "$as_me:$LINENO: result: $CC" >&5
1183
echo "${ECHO_T}$CC" >&6
1185
echo "$as_me:$LINENO: result: no" >&5
1186
echo "${ECHO_T}no" >&6
1190
if test -z "$ac_cv_prog_CC"; then
1192
# Extract the first word of "gcc", so it can be a program name with args.
1193
set dummy gcc; ac_word=$2
1194
echo "$as_me:$LINENO: checking for $ac_word" >&5
1195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1197
echo $ECHO_N "(cached) $ECHO_C" >&6
1199
if test -n "$ac_ct_CC"; then
1200
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206
test -z "$as_dir" && as_dir=.
1207
for ac_exec_ext in '' $ac_executable_extensions; do
1208
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1209
ac_cv_prog_ac_ct_CC="gcc"
1210
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1218
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1219
if test -n "$ac_ct_CC"; then
1220
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1221
echo "${ECHO_T}$ac_ct_CC" >&6
1223
echo "$as_me:$LINENO: result: no" >&5
1224
echo "${ECHO_T}no" >&6
1232
if test -z "$CC"; then
1233
if test -n "$ac_tool_prefix"; then
1234
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1235
set dummy ${ac_tool_prefix}cc; ac_word=$2
1236
echo "$as_me:$LINENO: checking for $ac_word" >&5
1237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238
if test "${ac_cv_prog_CC+set}" = set; then
1239
echo $ECHO_N "(cached) $ECHO_C" >&6
1241
if test -n "$CC"; then
1242
ac_cv_prog_CC="$CC" # Let the user override the test.
1244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248
test -z "$as_dir" && as_dir=.
1249
for ac_exec_ext in '' $ac_executable_extensions; do
1250
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1251
ac_cv_prog_CC="${ac_tool_prefix}cc"
1252
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1261
if test -n "$CC"; then
1262
echo "$as_me:$LINENO: result: $CC" >&5
1263
echo "${ECHO_T}$CC" >&6
1265
echo "$as_me:$LINENO: result: no" >&5
1266
echo "${ECHO_T}no" >&6
1270
if test -z "$ac_cv_prog_CC"; then
1272
# Extract the first word of "cc", so it can be a program name with args.
1273
set dummy cc; ac_word=$2
1274
echo "$as_me:$LINENO: checking for $ac_word" >&5
1275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1276
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1277
echo $ECHO_N "(cached) $ECHO_C" >&6
1279
if test -n "$ac_ct_CC"; then
1280
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286
test -z "$as_dir" && as_dir=.
1287
for ac_exec_ext in '' $ac_executable_extensions; do
1288
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1289
ac_cv_prog_ac_ct_CC="cc"
1290
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1298
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1299
if test -n "$ac_ct_CC"; then
1300
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1301
echo "${ECHO_T}$ac_ct_CC" >&6
1303
echo "$as_me:$LINENO: result: no" >&5
1304
echo "${ECHO_T}no" >&6
1313
if test -z "$CC"; then
1314
# Extract the first word of "cc", so it can be a program name with args.
1315
set dummy cc; ac_word=$2
1316
echo "$as_me:$LINENO: checking for $ac_word" >&5
1317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318
if test "${ac_cv_prog_CC+set}" = set; then
1319
echo $ECHO_N "(cached) $ECHO_C" >&6
1321
if test -n "$CC"; then
1322
ac_cv_prog_CC="$CC" # Let the user override the test.
1325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1329
test -z "$as_dir" && as_dir=.
1330
for ac_exec_ext in '' $ac_executable_extensions; do
1331
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1333
ac_prog_rejected=yes
1337
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343
if test $ac_prog_rejected = yes; then
1344
# We found a bogon in the path, so make sure we never use it.
1345
set dummy $ac_cv_prog_CC
1347
if test $# != 0; then
1348
# We chose a different compiler from the bogus one.
1349
# However, it has the same basename, so the bogon will be chosen
1350
# first if we set CC to just the basename; use the full file name.
1352
set dummy "$as_dir/$ac_word" ${1+"$@"}
1360
if test -n "$CC"; then
1361
echo "$as_me:$LINENO: result: $CC" >&5
1362
echo "${ECHO_T}$CC" >&6
1364
echo "$as_me:$LINENO: result: no" >&5
1365
echo "${ECHO_T}no" >&6
1369
if test -z "$CC"; then
1370
if test -n "$ac_tool_prefix"; then
1373
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1374
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1375
echo "$as_me:$LINENO: checking for $ac_word" >&5
1376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377
if test "${ac_cv_prog_CC+set}" = set; then
1378
echo $ECHO_N "(cached) $ECHO_C" >&6
1380
if test -n "$CC"; then
1381
ac_cv_prog_CC="$CC" # Let the user override the test.
1383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387
test -z "$as_dir" && as_dir=.
1388
for ac_exec_ext in '' $ac_executable_extensions; do
1389
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1391
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400
if test -n "$CC"; then
1401
echo "$as_me:$LINENO: result: $CC" >&5
1402
echo "${ECHO_T}$CC" >&6
1404
echo "$as_me:$LINENO: result: no" >&5
1405
echo "${ECHO_T}no" >&6
1408
test -n "$CC" && break
1411
if test -z "$CC"; then
1415
# Extract the first word of "$ac_prog", so it can be a program name with args.
1416
set dummy $ac_prog; ac_word=$2
1417
echo "$as_me:$LINENO: checking for $ac_word" >&5
1418
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1420
echo $ECHO_N "(cached) $ECHO_C" >&6
1422
if test -n "$ac_ct_CC"; then
1423
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429
test -z "$as_dir" && as_dir=.
1430
for ac_exec_ext in '' $ac_executable_extensions; do
1431
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432
ac_cv_prog_ac_ct_CC="$ac_prog"
1433
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1441
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1442
if test -n "$ac_ct_CC"; then
1443
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1444
echo "${ECHO_T}$ac_ct_CC" >&6
1446
echo "$as_me:$LINENO: result: no" >&5
1447
echo "${ECHO_T}no" >&6
1450
test -n "$ac_ct_CC" && break
1459
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1460
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1461
{ (exit 1); exit 1; }; }
1463
# Provide some information about the compiler.
1464
echo "$as_me:$LINENO:" \
1465
"checking for C compiler version" >&5
1466
ac_compiler=`set X $ac_compile; echo $2`
1467
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1468
(eval $ac_compiler --version </dev/null >&5) 2>&5
1470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1471
(exit $ac_status); }
1472
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1473
(eval $ac_compiler -v </dev/null >&5) 2>&5
1475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1476
(exit $ac_status); }
1477
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1478
(eval $ac_compiler -V </dev/null >&5) 2>&5
1480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1481
(exit $ac_status); }
1483
cat >conftest.$ac_ext <<_ACEOF
1484
#line $LINENO "configure"
1485
#include "confdefs.h"
1487
#ifdef F77_DUMMY_MAIN
1491
int F77_DUMMY_MAIN() { return 1; }
1501
ac_clean_files_save=$ac_clean_files
1502
ac_clean_files="$ac_clean_files a.out a.exe"
1503
# Try to create an executable without -o first, disregard a.out.
1504
# It will help us diagnose broken compilers, and finding out an intuition
1506
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1507
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1508
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1509
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1510
(eval $ac_link_default) 2>&5
1512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1513
(exit $ac_status); }; then
1514
# Find the output, starting from the most likely. This scheme is
1515
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1518
# Be careful to initialize this variable, since it used to be cached.
1519
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1521
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1522
ls a.out conftest 2>/dev/null;
1523
ls a.* conftest.* 2>/dev/null`; do
1525
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1526
a.out ) # We found the default executable, but exeext='' is most
1529
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1530
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1537
echo "$as_me: failed program was:" >&5
1538
cat conftest.$ac_ext >&5
1539
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1540
echo "$as_me: error: C compiler cannot create executables" >&2;}
1541
{ (exit 77); exit 77; }; }
1544
ac_exeext=$ac_cv_exeext
1545
echo "$as_me:$LINENO: result: $ac_file" >&5
1546
echo "${ECHO_T}$ac_file" >&6
1548
# Check the compiler produces executables we can run. If not, either
1549
# the compiler is broken, or we cross compile.
1550
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1551
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1552
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1553
# If not cross compiling, check that we can run a simple program.
1554
if test "$cross_compiling" != yes; then
1555
if { ac_try='./$ac_file'
1556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1560
(exit $ac_status); }; }; then
1563
if test "$cross_compiling" = maybe; then
1566
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1567
If you meant to cross compile, use \`--host'." >&5
1568
echo "$as_me: error: cannot run C compiled programs.
1569
If you meant to cross compile, use \`--host'." >&2;}
1570
{ (exit 1); exit 1; }; }
1574
echo "$as_me:$LINENO: result: yes" >&5
1575
echo "${ECHO_T}yes" >&6
1577
rm -f a.out a.exe conftest$ac_cv_exeext
1578
ac_clean_files=$ac_clean_files_save
1579
# Check the compiler produces executables we can run. If not, either
1580
# the compiler is broken, or we cross compile.
1581
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1582
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1583
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1584
echo "${ECHO_T}$cross_compiling" >&6
1586
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1587
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1589
(eval $ac_link) 2>&5
1591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1592
(exit $ac_status); }; then
1593
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1594
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1595
# work properly (i.e., refer to `conftest.exe'), while it won't with
1597
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1599
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1600
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1607
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1608
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1609
{ (exit 1); exit 1; }; }
1612
rm -f conftest$ac_cv_exeext
1613
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1614
echo "${ECHO_T}$ac_cv_exeext" >&6
1616
rm -f conftest.$ac_ext
1617
EXEEXT=$ac_cv_exeext
1619
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1620
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1621
if test "${ac_cv_objext+set}" = set; then
1622
echo $ECHO_N "(cached) $ECHO_C" >&6
1624
cat >conftest.$ac_ext <<_ACEOF
1625
#line $LINENO "configure"
1626
#include "confdefs.h"
1628
#ifdef F77_DUMMY_MAIN
1632
int F77_DUMMY_MAIN() { return 1; }
1642
rm -f conftest.o conftest.obj
1643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1644
(eval $ac_compile) 2>&5
1646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1647
(exit $ac_status); }; then
1648
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1650
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1651
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1656
echo "$as_me: failed program was:" >&5
1657
cat conftest.$ac_ext >&5
1658
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1659
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1660
{ (exit 1); exit 1; }; }
1663
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1665
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1666
echo "${ECHO_T}$ac_cv_objext" >&6
1667
OBJEXT=$ac_cv_objext
1669
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1670
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1671
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1672
echo $ECHO_N "(cached) $ECHO_C" >&6
1674
cat >conftest.$ac_ext <<_ACEOF
1675
#line $LINENO "configure"
1676
#include "confdefs.h"
1678
#ifdef F77_DUMMY_MAIN
1682
int F77_DUMMY_MAIN() { return 1; }
1695
rm -f conftest.$ac_objext
1696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1697
(eval $ac_compile) 2>&5
1699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700
(exit $ac_status); } &&
1701
{ ac_try='test -s conftest.$ac_objext'
1702
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706
(exit $ac_status); }; }; then
1709
echo "$as_me: failed program was:" >&5
1710
cat conftest.$ac_ext >&5
1713
rm -f conftest.$ac_objext conftest.$ac_ext
1714
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1717
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1718
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1719
GCC=`test $ac_compiler_gnu = yes && echo yes`
1720
ac_test_CFLAGS=${CFLAGS+set}
1721
ac_save_CFLAGS=$CFLAGS
1723
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1724
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1725
if test "${ac_cv_prog_cc_g+set}" = set; then
1726
echo $ECHO_N "(cached) $ECHO_C" >&6
1728
cat >conftest.$ac_ext <<_ACEOF
1729
#line $LINENO "configure"
1730
#include "confdefs.h"
1732
#ifdef F77_DUMMY_MAIN
1736
int F77_DUMMY_MAIN() { return 1; }
1746
rm -f conftest.$ac_objext
1747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1748
(eval $ac_compile) 2>&5
1750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751
(exit $ac_status); } &&
1752
{ ac_try='test -s conftest.$ac_objext'
1753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757
(exit $ac_status); }; }; then
1760
echo "$as_me: failed program was:" >&5
1761
cat conftest.$ac_ext >&5
1764
rm -f conftest.$ac_objext conftest.$ac_ext
1766
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1767
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1768
if test "$ac_test_CFLAGS" = set; then
1769
CFLAGS=$ac_save_CFLAGS
1770
elif test $ac_cv_prog_cc_g = yes; then
1771
if test "$GCC" = yes; then
1777
if test "$GCC" = yes; then
1783
# Some people use a C++ compiler to compile C. Since we use `exit',
1784
# in C++ we need to declare it. In case someone uses the same compiler
1785
# for both compiling C and C++ we need to have the C++ compiler decide
1786
# the declaration of exit, since it's the most demanding environment.
1787
cat >conftest.$ac_ext <<_ACEOF
1792
rm -f conftest.$ac_objext
1793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1794
(eval $ac_compile) 2>&5
1796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797
(exit $ac_status); } &&
1798
{ ac_try='test -s conftest.$ac_objext'
1799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803
(exit $ac_status); }; }; then
1804
for ac_declaration in \
1806
'#include <stdlib.h>' \
1807
'extern "C" void std::exit (int) throw (); using std::exit;' \
1808
'extern "C" void std::exit (int); using std::exit;' \
1809
'extern "C" void exit (int) throw ();' \
1810
'extern "C" void exit (int);' \
1813
cat >conftest.$ac_ext <<_ACEOF
1814
#line $LINENO "configure"
1815
#include "confdefs.h"
1818
#ifdef F77_DUMMY_MAIN
1822
int F77_DUMMY_MAIN() { return 1; }
1832
rm -f conftest.$ac_objext
1833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1834
(eval $ac_compile) 2>&5
1836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837
(exit $ac_status); } &&
1838
{ ac_try='test -s conftest.$ac_objext'
1839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843
(exit $ac_status); }; }; then
1846
echo "$as_me: failed program was:" >&5
1847
cat conftest.$ac_ext >&5
1850
rm -f conftest.$ac_objext conftest.$ac_ext
1851
cat >conftest.$ac_ext <<_ACEOF
1852
#line $LINENO "configure"
1853
#include "confdefs.h"
1855
#ifdef F77_DUMMY_MAIN
1859
int F77_DUMMY_MAIN() { return 1; }
1869
rm -f conftest.$ac_objext
1870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871
(eval $ac_compile) 2>&5
1873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874
(exit $ac_status); } &&
1875
{ ac_try='test -s conftest.$ac_objext'
1876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880
(exit $ac_status); }; }; then
1883
echo "$as_me: failed program was:" >&5
1884
cat conftest.$ac_ext >&5
1886
rm -f conftest.$ac_objext conftest.$ac_ext
1889
if test -n "$ac_declaration"; then
1890
echo '#ifdef __cplusplus' >>confdefs.h
1891
echo $ac_declaration >>confdefs.h
1892
echo '#endif' >>confdefs.h
1896
echo "$as_me: failed program was:" >&5
1897
cat conftest.$ac_ext >&5
1899
rm -f conftest.$ac_objext conftest.$ac_ext
1901
ac_cpp='$CPP $CPPFLAGS'
1902
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907
for ac_prog in ar aal
1909
# Extract the first word of "$ac_prog", so it can be a program name with args.
1910
set dummy $ac_prog; ac_word=$2
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913
if test "${ac_cv_prog_AR+set}" = set; then
1914
echo $ECHO_N "(cached) $ECHO_C" >&6
1916
if test -n "$AR"; then
1917
ac_cv_prog_AR="$AR" # Let the user override the test.
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923
test -z "$as_dir" && as_dir=.
1924
for ac_exec_ext in '' $ac_executable_extensions; do
1925
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926
ac_cv_prog_AR="$ac_prog"
1927
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936
if test -n "$AR"; then
1937
echo "$as_me:$LINENO: result: $AR" >&5
1938
echo "${ECHO_T}$AR" >&6
1940
echo "$as_me:$LINENO: result: no" >&5
1941
echo "${ECHO_T}no" >&6
1944
test -n "$AR" && break
1946
test -n "$AR" || AR="ar"
1949
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1950
if test -f $ac_dir/install-sh; then
1952
ac_install_sh="$ac_aux_dir/install-sh -c"
1954
elif test -f $ac_dir/install.sh; then
1956
ac_install_sh="$ac_aux_dir/install.sh -c"
1958
elif test -f $ac_dir/shtool; then
1960
ac_install_sh="$ac_aux_dir/shtool install -c"
1964
if test -z "$ac_aux_dir"; then
1965
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1966
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1967
{ (exit 1); exit 1; }; }
1969
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1970
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1971
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1973
# Find a good install program. We prefer a C program (faster),
1974
# so one script is as good as another. But avoid the broken or
1975
# incompatible versions:
1976
# SysV /etc/install, /usr/sbin/install
1977
# SunOS /usr/etc/install
1978
# IRIX /sbin/install
1980
# AmigaOS /C/install, which installs bootblocks on floppy discs
1981
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984
# ./install, which can be erroneously created by make from ./install.sh.
1985
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1987
if test -z "$INSTALL"; then
1988
if test "${ac_cv_path_install+set}" = set; then
1989
echo $ECHO_N "(cached) $ECHO_C" >&6
1991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995
test -z "$as_dir" && as_dir=.
1996
# Account for people who put trailing slashes in PATH elements.
1998
./ | .// | /cC/* | \
1999
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002
# OSF1 and SCO ODT 3.0 have their own names for install.
2003
# Don't use installbsd from OSF since it installs stuff as root
2005
for ac_prog in ginstall scoinst install; do
2006
for ac_exec_ext in '' $ac_executable_extensions; do
2007
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2008
if test $ac_prog = install &&
2009
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010
# AIX install. It has an incompatible calling convention.
2012
elif test $ac_prog = install &&
2013
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014
# program-specific install script used by HP pwplus--don't use.
2017
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2029
if test "${ac_cv_path_install+set}" = set; then
2030
INSTALL=$ac_cv_path_install
2032
# As a last resort, use the slow shell script. We don't cache a
2033
# path for INSTALL within a source directory, because that will
2034
# break other packages using the cache if that directory is
2035
# removed, or if the path is relative.
2036
INSTALL=$ac_install_sh
2039
echo "$as_me:$LINENO: result: $INSTALL" >&5
2040
echo "${ECHO_T}$INSTALL" >&6
2042
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2043
# It thinks the first close brace ends the variable substitution.
2044
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2046
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2048
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2050
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2051
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2052
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2053
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2054
echo $ECHO_N "(cached) $ECHO_C" >&6
2056
cat >conftest.make <<\_ACEOF
2058
@echo 'ac_maketemp="${MAKE}"'
2060
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2061
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2062
if test -n "$ac_maketemp"; then
2063
eval ac_cv_prog_make_${ac_make}_set=yes
2065
eval ac_cv_prog_make_${ac_make}_set=no
2069
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2070
echo "$as_me:$LINENO: result: yes" >&5
2071
echo "${ECHO_T}yes" >&6
2074
echo "$as_me:$LINENO: result: no" >&5
2075
echo "${ECHO_T}no" >&6
2076
SET_MAKE="MAKE=${MAKE-make}"
2082
echo "$as_me:$LINENO: checking for main in -lm" >&5
2083
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2084
if test "${ac_cv_lib_m_main+set}" = set; then
2085
echo $ECHO_N "(cached) $ECHO_C" >&6
2087
ac_check_lib_save_LIBS=$LIBS
2089
cat >conftest.$ac_ext <<_ACEOF
2090
#line $LINENO "configure"
2091
#include "confdefs.h"
2094
#ifdef F77_DUMMY_MAIN
2098
int F77_DUMMY_MAIN() { return 1; }
2108
rm -f conftest.$ac_objext conftest$ac_exeext
2109
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2110
(eval $ac_link) 2>&5
2112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113
(exit $ac_status); } &&
2114
{ ac_try='test -s conftest$ac_exeext'
2115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119
(exit $ac_status); }; }; then
2120
ac_cv_lib_m_main=yes
2122
echo "$as_me: failed program was:" >&5
2123
cat conftest.$ac_ext >&5
2126
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2127
LIBS=$ac_check_lib_save_LIBS
2129
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2130
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2131
if test $ac_cv_lib_m_main = yes; then
2132
cat >>confdefs.h <<_ACEOF
2142
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2143
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2144
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2145
echo $ECHO_N "(cached) $ECHO_C" >&6
2147
ac_cv_prog_cc_stdc=no
2149
cat >conftest.$ac_ext <<_ACEOF
2150
#line $LINENO "configure"
2151
#include "confdefs.h"
2154
#include <sys/types.h>
2155
#include <sys/stat.h>
2156
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2157
struct buf { int x; };
2158
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2159
static char *e (p, i)
2165
static char *f (char * (*g) (char **, int), char **p, ...)
2170
s = g (p, va_arg (v,int));
2174
int test (int i, double x);
2175
struct s1 {int (*f) (int a);};
2176
struct s2 {int (*f) (double a);};
2177
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180
#ifdef F77_DUMMY_MAIN
2184
int F77_DUMMY_MAIN() { return 1; }
2189
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2194
# Don't try gcc -ansi; that turns off useful extensions and
2195
# breaks some systems' header files.
2196
# AIX -qlanglvl=ansi
2197
# Ultrix and OSF/1 -std1
2198
# HP-UX 10.20 and later -Ae
2199
# HP-UX older versions -Aa -D_HPUX_SOURCE
2200
# SVR4 -Xc -D__EXTENSIONS__
2201
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2203
CC="$ac_save_CC $ac_arg"
2204
rm -f conftest.$ac_objext
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>&5
2208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
(exit $ac_status); } &&
2210
{ ac_try='test -s conftest.$ac_objext'
2211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
(exit $ac_status); }; }; then
2216
ac_cv_prog_cc_stdc=$ac_arg
2219
echo "$as_me: failed program was:" >&5
2220
cat conftest.$ac_ext >&5
2222
rm -f conftest.$ac_objext
2224
rm -f conftest.$ac_ext conftest.$ac_objext
2229
case "x$ac_cv_prog_cc_stdc" in
2231
echo "$as_me:$LINENO: result: none needed" >&5
2232
echo "${ECHO_T}none needed" >&6 ;;
2234
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236
CC="$CC $ac_cv_prog_cc_stdc" ;;
2239
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2240
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2241
if test "${ac_cv_c_const+set}" = set; then
2242
echo $ECHO_N "(cached) $ECHO_C" >&6
2244
cat >conftest.$ac_ext <<_ACEOF
2245
#line $LINENO "configure"
2246
#include "confdefs.h"
2248
#ifdef F77_DUMMY_MAIN
2252
int F77_DUMMY_MAIN() { return 1; }
2257
/* FIXME: Include the comments suggested by Paul. */
2259
/* Ultrix mips cc rejects this. */
2260
typedef int charset[2];
2262
/* SunOS 4.1.1 cc rejects this. */
2263
char const *const *ccp;
2265
/* NEC SVR4.0.2 mips cc rejects this. */
2266
struct point {int x, y;};
2267
static struct point const zero = {0,0};
2268
/* AIX XL C 1.02.0.0 rejects this.
2269
It does not let you subtract one const X* pointer from another in
2270
an arm of an if-expression whose if-part is not a constant
2272
const char *g = "string";
2273
ccp = &g + (g ? g-g : 0);
2274
/* HPUX 7.0 cc rejects these. */
2277
ccp = (char const *const *) p;
2278
{ /* SCO 3.2v4 cc rejects this. */
2280
char const *s = 0 ? (char *) 0 : (char const *) 0;
2284
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2286
const int *foo = &x[0];
2289
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2290
typedef const int *iptr;
2294
{ /* AIX XL C 1.02.0.0 rejects this saying
2295
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2296
struct s { int j; const int *ap[3]; };
2297
struct s *b; b->j = 5;
2299
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2308
rm -f conftest.$ac_objext
2309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310
(eval $ac_compile) 2>&5
2312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313
(exit $ac_status); } &&
2314
{ ac_try='test -s conftest.$ac_objext'
2315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319
(exit $ac_status); }; }; then
2322
echo "$as_me: failed program was:" >&5
2323
cat conftest.$ac_ext >&5
2326
rm -f conftest.$ac_objext conftest.$ac_ext
2328
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2329
echo "${ECHO_T}$ac_cv_c_const" >&6
2330
if test $ac_cv_c_const = no; then
2332
cat >>confdefs.h <<\_ACEOF
2339
### humor lowers blood pressure
2340
echo "$as_me:$LINENO: checking your blood pressure" >&5
2341
echo $ECHO_N "checking your blood pressure... $ECHO_C" >&6
2342
echo "$as_me:$LINENO: result: a bit high, but we can proceed" >&5
2343
echo "${ECHO_T}a bit high, but we can proceed" >&6
2345
## The goal is to find apxs
2346
{ echo "$as_me:$LINENO: checking whether apxs is available..." >&5
2347
echo "$as_me: checking whether apxs is available..." >&6;}
2352
# check for --with-apxs
2353
echo "$as_me:$LINENO: checking for --with-apxs" >&5
2354
echo $ECHO_N "checking for --with-apxs... $ECHO_C" >&6
2356
# Check whether --with-apxs or --without-apxs was given.
2357
if test "${with_apxs+set}" = set; then
2358
withval="$with_apxs"
2360
if test -x "$withval"
2362
echo "$as_me:$LINENO: result: $withval executable, good" >&5
2363
echo "${ECHO_T}$withval executable, good" >&6
2367
{ { echo "$as_me:$LINENO: error: $withval not found or not executable" >&5
2368
echo "$as_me: error: $withval not found or not executable" >&2;}
2369
{ (exit 1); exit 1; }; }
2373
echo "$as_me:$LINENO: result: no" >&5
2374
echo "${ECHO_T}no" >&6
2377
# if no apxs found yet, check /usr/local/apache/sbin
2378
# since it's the default Apache location
2379
if test -z "$APXS"; then
2380
echo "$as_me:$LINENO: checking for apxs in /usr/local/apache/sbin" >&5
2381
echo $ECHO_N "checking for apxs in /usr/local/apache/sbin... $ECHO_C" >&6
2382
if test -x /usr/local/apache/sbin/apxs; then
2383
APXS=/usr/local/apache/sbin/apxs
2384
echo "$as_me:$LINENO: result: found, we'll use this. Use --with-apxs to specify another." >&5
2385
echo "${ECHO_T}found, we'll use this. Use --with-apxs to specify another." >&6
2387
echo "$as_me:$LINENO: result: no" >&5
2388
echo "${ECHO_T}no" >&6
2393
if test -z "$APXS"; then
2394
echo "$as_me:$LINENO: checking for apxs in your PATH" >&5
2395
echo $ECHO_N "checking for apxs in your PATH... $ECHO_C" >&6
2396
# Extract the first word of "apxs", so it can be a program name with args.
2397
set dummy apxs; ac_word=$2
2398
echo "$as_me:$LINENO: checking for $ac_word" >&5
2399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400
if test "${ac_cv_path_APXS+set}" = set; then
2401
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
2408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412
test -z "$as_dir" && as_dir=.
2413
for ac_exec_ext in '' $ac_executable_extensions; do
2414
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415
ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2416
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425
APXS=$ac_cv_path_APXS
2427
if test -n "$APXS"; then
2428
echo "$as_me:$LINENO: result: $APXS" >&5
2429
echo "${ECHO_T}$APXS" >&6
2431
echo "$as_me:$LINENO: result: no" >&5
2432
echo "${ECHO_T}no" >&6
2435
if test -n "$APXS"; then
2436
echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
2437
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6
2441
# if apxs was still not found, then no DSO
2445
if test -z "$APXS"; then
2446
{ echo "$as_me:$LINENO: WARNING: **** apxs was not found, DSO compilation will not be available." >&5
2447
echo "$as_me: WARNING: **** apxs was not found, DSO compilation will not be available." >&2;}
2448
{ echo "$as_me:$LINENO: WARNING: **** You can use --with-apxs to specify where your apxs is." >&5
2449
echo "$as_me: WARNING: **** You can use --with-apxs to specify where your apxs is." >&2;}
2456
# check Apache version
2457
echo "$as_me:$LINENO: checking Apache version" >&5
2458
echo $ECHO_N "checking Apache version... $ECHO_C" >&6
2459
HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
2460
ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
2461
echo "$as_me:$LINENO: result: $ver" >&5
2462
echo "${ECHO_T}$ver" >&6
2464
# make sure version begins with 2
2465
if test -z "`echo $ver | egrep \^2`"; then
2466
{ { echo "$as_me:$LINENO: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&5
2467
echo "$as_me: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&2;}
2468
{ (exit 1); exit 1; }; }
2472
echo "$as_me:$LINENO: checking for Apache libexec directory" >&5
2473
echo $ECHO_N "checking for Apache libexec directory... $ECHO_C" >&6
2474
LIBEXECDIR=`${APXS} -q LIBEXECDIR`
2475
echo "$as_me:$LINENO: result: $LIBEXECDIR" >&5
2476
echo "${ECHO_T}$LIBEXECDIR" >&6
2478
# determine INCLUDES
2479
echo "$as_me:$LINENO: checking for Apache include directory" >&5
2480
echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6
2481
AP_INCLUDES="-I`${APXS} -q INCLUDEDIR`"
2482
echo "$as_me:$LINENO: result: $AP_INCLUDES" >&5
2483
echo "${ECHO_T}$AP_INCLUDES" >&6
2485
if test "`uname`" = "SunOS"; then
2486
echo "$as_me:$LINENO: checking for gcc on Solaris possible missing _eprintf problem" >&5
2487
echo $ECHO_N "checking for gcc on Solaris possible missing _eprintf problem... $ECHO_C" >&6
2488
if test "$CC" = "gcc"; then
2489
SOLARIS_HACKS="_eprintf.o _floatdidf.o _muldi3.o"
2491
echo "$as_me:$LINENO: result: \"done\"" >&5
2492
echo "${ECHO_T}\"done\"" >&6
2497
# check for --with-apache
2501
## static is disabled, thus no --with-apache
2502
##AC_MSG_CHECKING(for --with-apache)
2504
# Check whether --with-apache or --without-apache was given.
2505
if test "${with_apache+set}" = set; then
2506
withval="$with_apache"
2509
# temporarily disable static on 2.0 until I figure out how to
2511
{ { echo "$as_me:$LINENO: error: Sorry, --with-apache (static compilation) is not supported at this time!" >&5
2512
echo "$as_me: error: Sorry, --with-apache (static compilation) is not supported at this time!" >&2;}
2513
{ (exit 1); exit 1; }; }
2515
AP_SRC=`cd $withval; pwd`
2517
if test ! -f "$AP_SRC/include/httpd.h"; then
2518
{ { echo "$as_me:$LINENO: error: $withval does not look like an Apache 2.0 source directory." >&5
2519
echo "$as_me: error: $withval does not look like an Apache 2.0 source directory." >&2;}
2520
{ (exit 1); exit 1; }; }
2523
echo "$as_me:$LINENO: result: $AP_SRC" >&5
2524
echo "${ECHO_T}$AP_SRC" >&6
2525
AP_INCLUDES="-I${AP_SRC}/src/include -I${AP_SRC}/src/os/unix"
2527
# note who owns the apache source directory
2528
AP_SRC_OWN="`ls -ld $AP_SRC | awk '{print $3}'`"
2529
AP_SRC_GRP="`ls -ld $AP_SRC | awk '{print $4}'`"
2532
##AC_MSG_RESULT(no))
2535
if test -z "$AP_SRC"; then
2536
## AC_MSG_WARN([**** No apache sources specified, static compilation will not be available.])
2537
## AC_MSG_WARN([**** You can use --with-apache to specify where your Apache sources are.])
2543
if test "$STATIC" = "no_static" -a "$DSO" = "no_dso"; then
2544
{ { echo "$as_me:$LINENO: error: Neither static nor DSO option available, there is no point in continuing." >&5
2545
echo "$as_me: error: Neither static nor DSO option available, there is no point in continuing." >&2;}
2546
{ (exit 1); exit 1; }; }
2550
echo "$as_me:$LINENO: checking for --with-python" >&5
2551
echo $ECHO_N "checking for --with-python... $ECHO_C" >&6
2553
# Check whether --with-python or --without-python was given.
2554
if test "${with_python+set}" = set; then
2555
withval="$with_python"
2557
PYTHON_BIN="$withval"
2558
echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
2559
echo "${ECHO_T}$PYTHON_BIN" >&6
2562
echo "$as_me:$LINENO: result: no" >&5
2563
echo "${ECHO_T}no" >&6
2566
# check for Python executable
2567
if test -z "$PYTHON_BIN"; then
2568
# Extract the first word of "python", so it can be a program name with args.
2569
set dummy python; ac_word=$2
2570
echo "$as_me:$LINENO: checking for $ac_word" >&5
2571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572
if test "${ac_cv_path_PYTHON_BIN+set}" = set; then
2573
echo $ECHO_N "(cached) $ECHO_C" >&6
2577
ac_cv_path_PYTHON_BIN="$PYTHON_BIN" # Let the user override the test with a path.
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584
test -z "$as_dir" && as_dir=.
2585
for ac_exec_ext in '' $ac_executable_extensions; do
2586
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587
ac_cv_path_PYTHON_BIN="$as_dir/$ac_word$ac_exec_ext"
2588
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597
PYTHON_BIN=$ac_cv_path_PYTHON_BIN
2599
if test -n "$PYTHON_BIN"; then
2600
echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
2601
echo "${ECHO_T}$PYTHON_BIN" >&6
2603
echo "$as_me:$LINENO: result: no" >&5
2604
echo "${ECHO_T}no" >&6
2607
if test -z "$PYTHON_BIN"; then
2608
{ { echo "$as_me:$LINENO: error: python binary not found in path" >&5
2609
echo "$as_me: error: python binary not found in path" >&2;}
2610
{ (exit 1); exit 1; }; }
2614
# find out python version
2615
echo "$as_me:$LINENO: checking Python version" >&5
2616
echo $ECHO_N "checking Python version... $ECHO_C" >&6
2617
PyVERSION=`$PYTHON_BIN -c 'import sys; print sys.version[:3]'`
2618
PyMAJVERSION=`$PYTHON_BIN -c 'import sys; print sys.version[:1]'`
2619
echo "$as_me:$LINENO: result: $PyVERSION" >&5
2620
echo "${ECHO_T}$PyVERSION" >&6
2622
# make sure Python is version 2
2623
if test "$PyMAJVERSION" != "2"; then
2624
{ { echo "$as_me:$LINENO: error: This version of mod_python only works with Python major version 2. The one you have seems to be $PyVERSION." >&5
2625
echo "$as_me: error: This version of mod_python only works with Python major version 2. The one you have seems to be $PyVERSION." >&2;}
2626
{ (exit 1); exit 1; }; }
2629
# find out compiled in install prefix
2630
echo "$as_me:$LINENO: checking Python install prefix" >&5
2631
echo $ECHO_N "checking Python install prefix... $ECHO_C" >&6
2632
PyEXEC_INSTALLDIR=`$PYTHON_BIN -c "import sys; print sys.exec_prefix"`
2633
echo "$as_me:$LINENO: result: $PyEXEC_INSTALLDIR" >&5
2634
echo "${ECHO_T}$PyEXEC_INSTALLDIR" >&6
2636
# this is where the Python libraries will get installed
2638
PY_STD_LIB=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION}
2640
# set python std library variable
2643
PyLIBP=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION}
2644
PyLIBPL=${PyLIBP}/config
2645
PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a
2646
PyLIBS=`grep "^LIB[SMC]=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
2647
PyMODLIBS=`grep "^LOCALMODLIBS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
2648
PyFRAMEWORK=`grep "^PYTHONFRAMEWORK=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
2649
PyFRAMEWORKDIR=`grep "^PYTHONFRAMEWORKDIR=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' ' | awk '{print $1}'`
2651
save_LDFLAGS="$LDFLAGS"
2653
if test "$PyFRAMEWORKDIR" != "no-framework"; then
2654
if test -n "$PyFRAMEWORK"; then
2655
PyPYTHONLIBS="-framework $PyFRAMEWORK"
2656
LDFLAGS="${LDFLAGS} -Wl,-framework,Python"
2659
LDFLAGS="${LDFLAGS} -L${PyLIBPL}"
2660
as_ac_Lib=`echo "ac_cv_lib_python${PyVERSION}''_Py_NewInterpreter" | $as_tr_sh`
2661
echo "$as_me:$LINENO: checking for Py_NewInterpreter in -lpython${PyVERSION}" >&5
2662
echo $ECHO_N "checking for Py_NewInterpreter in -lpython${PyVERSION}... $ECHO_C" >&6
2663
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2664
echo $ECHO_N "(cached) $ECHO_C" >&6
2666
ac_check_lib_save_LIBS=$LIBS
2667
LIBS="-lpython${PyVERSION} ${PyLIBS} ${PyMODLIBS} $LIBS"
2668
cat >conftest.$ac_ext <<_ACEOF
2669
#line $LINENO "configure"
2670
#include "confdefs.h"
2672
/* Override any gcc2 internal prototype to avoid an error. */
2676
/* We use char because int might match the return type of a gcc2
2677
builtin and then its argument prototype would still apply. */
2678
char Py_NewInterpreter ();
2679
#ifdef F77_DUMMY_MAIN
2683
int F77_DUMMY_MAIN() { return 1; }
2688
Py_NewInterpreter ();
2693
rm -f conftest.$ac_objext conftest$ac_exeext
2694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695
(eval $ac_link) 2>&5
2697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698
(exit $ac_status); } &&
2699
{ ac_try='test -s conftest$ac_exeext'
2700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
(exit $ac_status); }; }; then
2705
eval "$as_ac_Lib=yes"
2707
echo "$as_me: failed program was:" >&5
2708
cat conftest.$ac_ext >&5
2709
eval "$as_ac_Lib=no"
2711
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2712
LIBS=$ac_check_lib_save_LIBS
2714
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2715
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2716
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2717
PyPYTHONLIBS="-lpython${PyVERSION}"
2719
LDFLAGS="$save_LDFLAGS"
2720
if test -f ${PyLIBPL}/libpython${PyVERSION}.a; then
2721
PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a
2723
{ { echo "$as_me:$LINENO: error: Can not link to python" >&5
2724
echo "$as_me: error: Can not link to python" >&2;}
2725
{ (exit 1); exit 1; }; }
2733
# (actually this check already just happened above)
2734
echo "$as_me:$LINENO: checking what libraries Python was linked with" >&5
2735
echo $ECHO_N "checking what libraries Python was linked with... $ECHO_C" >&6
2736
PY_LIBS="${PyPYTHONLIBS} ${PyLIBS} ${PyMODLIBS}"
2738
## XXX this is a small work around for a weird RedHat problem
2739
## erase -lieee from library list
2740
if test -f /etc/redhat-release; then
2741
PY_LIBS="`echo $PY_LIBS | sed s/-lieee//`"
2744
LIBS="${LIBS} ${PY_LIBS}"
2745
echo "$as_me:$LINENO: result: $PY_LIBS" >&5
2746
echo "${ECHO_T}$PY_LIBS" >&6
2748
echo "$as_me:$LINENO: checking linker flags used to link Python" >&5
2749
echo $ECHO_N "checking linker flags used to link Python... $ECHO_C" >&6
2751
PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
2752
PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
2753
LDFLAGS="${LDFLAGS} ${PyLFS} ${PyLDFLAGS}"
2754
LDFLAGS="${LDFLAGS} ${PY_LDFLAGS}"
2755
echo "$as_me:$LINENO: result: $PY_LDFLAGS" >&5
2756
echo "${ECHO_T}$PY_LDFLAGS" >&6
2758
echo "$as_me:$LINENO: checking where Python include files are" >&5
2759
echo $ECHO_N "checking where Python include files are... $ECHO_C" >&6
2761
PY_INCLUDES="-I${PyEXEC_INSTALLDIR}/include/python${PyVERSION}"
2762
INCLUDES="${INCLUDES} ${AP_INCLUDES} ${PY_INCLUDES}"
2763
echo "$as_me:$LINENO: result: $PY_INCLUDES" >&5
2764
echo "${ECHO_T}$PY_INCLUDES" >&6
2766
# this for the test.py script
2768
TEST_SERVER_ROOT="`pwd`/test"
2770
MOD_PYTHON_SO="`pwd`/src/mod_python.so"
2772
# get the mod_python version
2774
MP_VERSION=`awk '/MPV_STRING/ {print $3}' src/include/mpversion.h`
2775
MP_VERSION=`echo $MP_VERSION | sed s/\\"//g`
2777
ac_config_files="$ac_config_files Makefile src/Makefile Doc/Makefile test/testconf.py dist/setup.py dist/Makefile"
2778
cat >confcache <<\_ACEOF
2779
# This file is a shell script that caches the results of configure
2780
# tests run on this system so they can be shared between configure
2781
# scripts and configure runs, see configure's option --config-cache.
2782
# It is not useful on other systems. If it contains results you don't
2783
# want to keep, you may remove or edit it.
2785
# config.status only pays attention to the cache file if you give it
2786
# the --recheck option to rerun configure.
2788
# `ac_cv_env_foo' variables (set or unset) will be overriden when
2789
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2794
# The following way of writing the cache mishandles newlines in values,
2795
# but we know of no workaround that is simple, portable, and efficient.
2796
# So, don't put newlines in cache variables' values.
2797
# Ultrix sh set writes to stderr and can't be redirected directly,
2798
# and sets the high bit in the cache file unless we assign to the vars.
2801
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2803
# `set' does not quote correctly, so add quotes (double-quote
2804
# substitution turns \\\\ into \\, and sed turns \\ into \).
2807
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2810
# `set' quotes correctly as required by POSIX, so do not add quotes.
2812
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2819
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2821
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2823
if cmp -s $cache_file confcache; then :; else
2824
if test -w $cache_file; then
2825
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2826
cat confcache >$cache_file
2828
echo "not updating unwritable cache $cache_file"
2833
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2834
# Let make expand exec_prefix.
2835
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2837
# VPATH may cause trouble with some makes, so we remove $(srcdir),
2838
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2839
# trailing colons and then remove the whole line if VPATH becomes empty
2840
# (actually we leave an empty line to preserve line numbers).
2841
if test "x$srcdir" = x.; then
2842
ac_vpsub='/^[ ]*VPATH[ ]*=/{
2843
s/:*\$(srcdir):*/:/;
2844
s/:*\${srcdir}:*/:/;
2846
s/^\([^=]*=[ ]*\):*/\1/;
2852
# Transform confdefs.h into DEFS.
2853
# Protect against shell expansion while executing Makefile rules.
2854
# Protect against Makefile macro expansion.
2856
# If the first sed substitution is executed (which looks for macros that
2857
# take arguments), then we branch to the quote section. Otherwise,
2858
# look for a macro that doesn't take arguments.
2859
cat >confdef2opt.sed <<\_ACEOF
2862
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2864
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2868
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2874
# We use echo to avoid assuming a particular line-breaking character.
2875
# The extra dot is to prevent the shell from consuming trailing
2876
# line-breaks from the sub-command output. A line-break within
2877
# single-quotes doesn't work because, if this script is created in a
2878
# platform that uses two characters for line-breaks (e.g., DOS), tr
2880
ac_LF_and_DOT=`echo; echo .`
2881
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2882
rm -f confdef2opt.sed
2886
: ${CONFIG_STATUS=./config.status}
2887
ac_clean_files_save=$ac_clean_files
2888
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2889
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2890
echo "$as_me: creating $CONFIG_STATUS" >&6;}
2891
cat >$CONFIG_STATUS <<_ACEOF
2893
# Generated by $as_me.
2894
# Run this file to recreate the current configuration.
2895
# Compiler output produced by configure, useful for debugging
2896
# configure, is in config.log if it exists.
2899
SHELL=\${CONFIG_SHELL-$SHELL}
2902
cat >>$CONFIG_STATUS <<\_ACEOF
2904
## --------------------- ##
2905
## M4sh Initialization. ##
2906
## --------------------- ##
2908
# Be Bourne compatible
2909
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2912
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2917
# Support unset when possible.
2918
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2924
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
2925
{ $as_unset LANG || test "${LANG+set}" != set; } ||
2926
{ LANG=C; export LANG; }
2927
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
2928
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
2929
{ LC_ALL=C; export LC_ALL; }
2930
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
2931
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
2932
{ LC_TIME=C; export LC_TIME; }
2933
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
2934
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
2935
{ LC_CTYPE=C; export LC_CTYPE; }
2936
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
2937
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
2938
{ LANGUAGE=C; export LANGUAGE; }
2939
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
2940
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
2941
{ LC_COLLATE=C; export LC_COLLATE; }
2942
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
2943
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
2944
{ LC_NUMERIC=C; export LC_NUMERIC; }
2945
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
2946
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
2947
{ LC_MESSAGES=C; export LC_MESSAGES; }
2950
# Name of the executable.
2951
as_me=`(basename "$0") 2>/dev/null ||
2952
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2953
X"$0" : 'X\(//\)$' \| \
2954
X"$0" : 'X\(/\)$' \| \
2955
. : '\(.\)' 2>/dev/null ||
2957
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2958
/^X\/\(\/\/\)$/{ s//\1/; q; }
2959
/^X\/\(\/\).*/{ s//\1/; q; }
2962
# PATH needs CR, and LINENO needs CR and PATH.
2963
# Avoid depending upon Character Ranges.
2964
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2965
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2966
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2967
as_cr_digits='0123456789'
2968
as_cr_alnum=$as_cr_Letters$as_cr_digits
2970
# The user is always right.
2971
if test "${PATH_SEPARATOR+set}" != set; then
2972
echo "#! /bin/sh" >conftest.sh
2973
echo "exit 0" >>conftest.sh
2974
chmod +x conftest.sh
2975
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
2986
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2987
test "x$as_lineno_1" != "x$as_lineno_2" &&
2988
test "x$as_lineno_3" = "x$as_lineno_2" || {
2989
# Find who we are. Look in the path if we contain no path at all
2992
*[\\/]* ) as_myself=$0 ;;
2993
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997
test -z "$as_dir" && as_dir=.
2998
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3003
# We did not find ourselves, most probably we were run as `sh COMMAND'
3004
# in which case we are not to be found in the path.
3005
if test "x$as_myself" = x; then
3008
if test ! -f "$as_myself"; then
3009
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3010
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3011
{ (exit 1); exit 1; }; }
3013
case $CONFIG_SHELL in
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3019
test -z "$as_dir" && as_dir=.
3020
for as_base in sh bash ksh sh5; do
3023
if ("$as_dir/$as_base" -c '
3026
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3027
test "x$as_lineno_1" != "x$as_lineno_2" &&
3028
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3029
CONFIG_SHELL=$as_dir/$as_base
3031
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3039
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3040
# uniformly replaced by the line number. The first 'sed' inserts a
3041
# line-number line before each line; the second 'sed' does the real
3042
# work. The second script uses 'N' to pair each line-number line
3043
# with the numbered line, and appends trailing '-' during
3044
# substitution so that $LINENO is not a special case at line end.
3045
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3046
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3047
sed '=' <$as_myself |
3052
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3055
s,^['$as_cr_digits']*\n,,
3057
chmod +x $as_me.lineno ||
3058
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3059
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3060
{ (exit 1); exit 1; }; }
3062
# Don't try to exec as it changes $[0], causing all sort of problems
3063
# (the dirname of $[0] is not the place where we might find the
3064
# original and so on. Autoconf is especially sensible to this).
3066
# Exit status is that of the last command.
3071
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3072
*c*,-n*) ECHO_N= ECHO_C='
3074
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3075
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3078
if expr a : '\(a\)' >/dev/null 2>&1; then
3084
rm -f conf$$ conf$$.exe conf$$.file
3086
if ln -s conf$$.file conf$$ 2>/dev/null; then
3087
# We could just check for DJGPP; but this test a) works b) is more generic
3088
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3089
if test -f conf$$.exe; then
3090
# Don't use ln at all; we don't have any links
3095
elif ln conf$$.file conf$$ 2>/dev/null; then
3100
rm -f conf$$ conf$$.exe conf$$.file
3102
as_executable_p="test -f"
3104
# Sed expression to map a string onto a valid CPP name.
3105
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3107
# Sed expression to map a string onto a valid variable name.
3108
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3112
# We need space, tab and new line, in precisely that order.
3118
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3122
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3123
# report actual input values of CONFIG_FILES etc. instead of their
3124
# values after options handling. Logging --version etc. is OK.
3128
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3129
## Running $as_me. ##
3134
This file was extended by $as_me, which was
3135
generated by GNU Autoconf 2.53. Invocation command line was
3137
CONFIG_FILES = $CONFIG_FILES
3138
CONFIG_HEADERS = $CONFIG_HEADERS
3139
CONFIG_LINKS = $CONFIG_LINKS
3140
CONFIG_COMMANDS = $CONFIG_COMMANDS
3144
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3148
# Files that config.status was made for.
3149
if test -n "$ac_config_files"; then
3150
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3153
if test -n "$ac_config_headers"; then
3154
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3157
if test -n "$ac_config_links"; then
3158
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3161
if test -n "$ac_config_commands"; then
3162
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3165
cat >>$CONFIG_STATUS <<\_ACEOF
3168
\`$as_me' instantiates files from templates according to the
3169
current configuration.
3171
Usage: $0 [OPTIONS] [FILE]...
3173
-h, --help print this help, then exit
3174
-V, --version print version number, then exit
3175
-d, --debug don't remove temporary files
3176
--recheck update $as_me by reconfiguring in the same conditions
3177
--file=FILE[:TEMPLATE]
3178
instantiate the configuration file FILE
3180
Configuration files:
3183
Report bugs to <bug-autoconf@gnu.org>."
3186
cat >>$CONFIG_STATUS <<_ACEOF
3189
configured by $0, generated by GNU Autoconf 2.53,
3190
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3192
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3193
Free Software Foundation, Inc.
3194
This config.status script is free software; the Free Software Foundation
3195
gives unlimited permission to copy, distribute and modify it."
3200
cat >>$CONFIG_STATUS <<\_ACEOF
3201
# If no file are specified by the user, then we need to provide default
3202
# value. By we need to know if files were specified by the user.
3208
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3209
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3211
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3215
*) # This is not an option, so the user has probably given explicit
3217
ac_need_defaults=false;;
3221
# Handling of the options.
3223
cat >>$CONFIG_STATUS <<_ACEOF
3224
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3225
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3226
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3228
cat >>$CONFIG_STATUS <<\_ACEOF
3229
--version | --vers* | -V )
3230
echo "$ac_cs_version"; exit 0 ;;
3232
# Conflict between --help and --header
3233
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3234
Try \`$0 --help' for more information." >&5
3235
echo "$as_me: error: ambiguous option: $1
3236
Try \`$0 --help' for more information." >&2;}
3237
{ (exit 1); exit 1; }; };;
3238
--help | --hel | -h )
3239
echo "$ac_cs_usage"; exit 0 ;;
3240
--debug | --d* | -d )
3242
--file | --fil | --fi | --f )
3244
CONFIG_FILES="$CONFIG_FILES $1"
3245
ac_need_defaults=false;;
3246
--header | --heade | --head | --hea )
3248
CONFIG_HEADERS="$CONFIG_HEADERS $1"
3249
ac_need_defaults=false;;
3252
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3253
Try \`$0 --help' for more information." >&5
3254
echo "$as_me: error: unrecognized option: $1
3255
Try \`$0 --help' for more information." >&2;}
3256
{ (exit 1); exit 1; }; } ;;
3258
*) ac_config_targets="$ac_config_targets $1" ;;
3270
cat >>$CONFIG_STATUS <<\_ACEOF
3271
for ac_config_target in $ac_config_targets
3273
case "$ac_config_target" in
3274
# Handling of arguments.
3275
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3276
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3277
"Doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
3278
"test/testconf.py" ) CONFIG_FILES="$CONFIG_FILES test/testconf.py" ;;
3279
"dist/setup.py" ) CONFIG_FILES="$CONFIG_FILES dist/setup.py" ;;
3280
"dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
3281
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3282
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3283
{ (exit 1); exit 1; }; };;
3287
# If the user did not use the arguments to specify the items to instantiate,
3288
# then the envvar interface is used. Set only those that are not.
3289
# We use the long form for the default assignment because of an extremely
3290
# bizarre bug on SunOS 4.1.3.
3291
if $ac_need_defaults; then
3292
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3295
# Create a temporary directory, and hook for its removal unless debugging.
3298
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3299
trap '{ (exit 1); exit 1; }' 1 2 13 15
3302
# Create a (secure) tmp directory for tmp files.
3305
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3306
test -n "$tmp" && test -d "$tmp"
3309
tmp=$TMPDIR/cs$$-$RANDOM
3310
(umask 077 && mkdir $tmp)
3313
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3314
{ (exit 1); exit 1; }
3319
cat >>$CONFIG_STATUS <<_ACEOF
3322
# CONFIG_FILES section.
3325
# No need to generate the scripts if there are no CONFIG_FILES.
3326
# This happens for instance when ./config.status config.h
3327
if test -n "\$CONFIG_FILES"; then
3328
# Protect against being on the right side of a sed subst in config.status.
3329
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3330
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3331
s,@SHELL@,$SHELL,;t t
3332
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3333
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3334
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3335
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3336
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3337
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3338
s,@exec_prefix@,$exec_prefix,;t t
3339
s,@prefix@,$prefix,;t t
3340
s,@program_transform_name@,$program_transform_name,;t t
3341
s,@bindir@,$bindir,;t t
3342
s,@sbindir@,$sbindir,;t t
3343
s,@libexecdir@,$libexecdir,;t t
3344
s,@datadir@,$datadir,;t t
3345
s,@sysconfdir@,$sysconfdir,;t t
3346
s,@sharedstatedir@,$sharedstatedir,;t t
3347
s,@localstatedir@,$localstatedir,;t t
3348
s,@libdir@,$libdir,;t t
3349
s,@includedir@,$includedir,;t t
3350
s,@oldincludedir@,$oldincludedir,;t t
3351
s,@infodir@,$infodir,;t t
3352
s,@mandir@,$mandir,;t t
3353
s,@build_alias@,$build_alias,;t t
3354
s,@host_alias@,$host_alias,;t t
3355
s,@target_alias@,$target_alias,;t t
3357
s,@ECHO_C@,$ECHO_C,;t t
3358
s,@ECHO_N@,$ECHO_N,;t t
3359
s,@ECHO_T@,$ECHO_T,;t t
3362
s,@CFLAGS@,$CFLAGS,;t t
3363
s,@LDFLAGS@,$LDFLAGS,;t t
3364
s,@CPPFLAGS@,$CPPFLAGS,;t t
3365
s,@ac_ct_CC@,$ac_ct_CC,;t t
3366
s,@EXEEXT@,$EXEEXT,;t t
3367
s,@OBJEXT@,$OBJEXT,;t t
3369
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3370
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3371
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3372
s,@SET_MAKE@,$SET_MAKE,;t t
3376
s,@LIBEXECDIR@,$LIBEXECDIR,;t t
3377
s,@SOLARIS_HACKS@,$SOLARIS_HACKS,;t t
3378
s,@HTTPD@,$HTTPD,;t t
3379
s,@AP_SRC@,$AP_SRC,;t t
3380
s,@AP_SRC_OWN@,$AP_SRC_OWN,;t t
3381
s,@AP_SRC_GRP@,$AP_SRC_GRP,;t t
3382
s,@STATIC@,$STATIC,;t t
3383
s,@PYTHON_BIN@,$PYTHON_BIN,;t t
3384
s,@PY_STD_LIB@,$PY_STD_LIB,;t t
3385
s,@INCLUDES@,$INCLUDES,;t t
3386
s,@TEST_SERVER_ROOT@,$TEST_SERVER_ROOT,;t t
3387
s,@MOD_PYTHON_SO@,$MOD_PYTHON_SO,;t t
3388
s,@MP_VERSION@,$MP_VERSION,;t t
3393
cat >>$CONFIG_STATUS <<\_ACEOF
3394
# Split the substitutions into bite-sized pieces for seds with
3395
# small command number limits, like on Digital OSF/1 and HP-UX.
3397
ac_sed_frag=1 # Number of current file.
3398
ac_beg=1 # First line for current file.
3399
ac_end=$ac_max_sed_lines # Line after last line for current file.
3402
while $ac_more_lines; do
3403
if test $ac_beg -gt 1; then
3404
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3406
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3408
if test ! -s $tmp/subs.frag; then
3411
# The purpose of the label and of the branching condition is to
3412
# speed up the sed processing (if there are no `@' at all, there
3413
# is no need to browse any of the substitutions).
3414
# These are the two extra sed commands mentioned above.
3416
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3417
if test -z "$ac_sed_cmds"; then
3418
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3420
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3422
ac_sed_frag=`expr $ac_sed_frag + 1`
3424
ac_end=`expr $ac_end + $ac_max_sed_lines`
3427
if test -z "$ac_sed_cmds"; then
3430
fi # test -n "$CONFIG_FILES"
3433
cat >>$CONFIG_STATUS <<\_ACEOF
3434
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3435
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3437
- | *:- | *:-:* ) # input from stdin
3439
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3440
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3441
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3442
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3443
* ) ac_file_in=$ac_file.in ;;
3446
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3447
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3448
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3449
X"$ac_file" : 'X\(//\)[^/]' \| \
3450
X"$ac_file" : 'X\(//\)$' \| \
3451
X"$ac_file" : 'X\(/\)' \| \
3452
. : '\(.\)' 2>/dev/null ||
3454
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3455
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3456
/^X\(\/\/\)$/{ s//\1/; q; }
3457
/^X\(\/\).*/{ s//\1/; q; }
3460
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
3464
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3465
case $as_mkdir_dir in
3466
# Skip DOS drivespec
3467
?:) as_incr_dir=$as_mkdir_dir ;;
3469
as_incr_dir=$as_incr_dir/$as_mkdir_dir
3470
test -d "$as_incr_dir" ||
3471
mkdir "$as_incr_dir" ||
3472
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
3473
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
3474
{ (exit 1); exit 1; }; }
3481
if test "$ac_dir" != .; then
3482
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3483
# A "../" for each directory in $ac_dir_suffix.
3484
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3486
ac_dir_suffix= ac_top_builddir=
3490
.) # No --srcdir option. We are building in place.
3492
if test -z "$ac_top_builddir"; then
3495
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3497
[\\/]* | ?:[\\/]* ) # Absolute path.
3498
ac_srcdir=$srcdir$ac_dir_suffix;
3499
ac_top_srcdir=$srcdir ;;
3501
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3502
ac_top_srcdir=$ac_top_builddir$srcdir ;;
3504
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3506
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3507
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
3508
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3509
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3513
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3514
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3517
if test x"$ac_file" != x-; then
3518
{ echo "$as_me:$LINENO: creating $ac_file" >&5
3519
echo "$as_me: creating $ac_file" >&6;}
3522
# Let's still pretend it is `configure' which instantiates (i.e., don't
3523
# use $as_me), people would be surprised to read:
3524
# /* config.h. Generated by config.status. */
3525
if test x"$ac_file" = x-; then
3528
configure_input="$ac_file. "
3530
configure_input=$configure_input"Generated from `echo $ac_file_in |
3531
sed 's,.*/,,'` by configure."
3533
# First look for the input files in the build tree, otherwise in the
3535
ac_file_inputs=`IFS=:
3536
for f in $ac_file_in; do
3538
-) echo $tmp/stdin ;;
3540
# Absolute (can't be DOS-style, as IFS=:)
3541
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3542
echo "$as_me: error: cannot find input file: $f" >&2;}
3543
{ (exit 1); exit 1; }; }
3546
if test -f "$f"; then
3549
elif test -f "$srcdir/$f"; then
3554
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3555
echo "$as_me: error: cannot find input file: $f" >&2;}
3556
{ (exit 1); exit 1; }; }
3559
done` || { (exit 1); exit 1; }
3561
cat >>$CONFIG_STATUS <<_ACEOF
3565
cat >>$CONFIG_STATUS <<\_ACEOF
3567
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3568
s,@configure_input@,$configure_input,;t t
3569
s,@srcdir@,$ac_srcdir,;t t
3570
s,@abs_srcdir@,$ac_abs_srcdir,;t t
3571
s,@top_srcdir@,$ac_top_srcdir,;t t
3572
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3573
s,@builddir@,$ac_builddir,;t t
3574
s,@abs_builddir@,$ac_abs_builddir,;t t
3575
s,@top_builddir@,$ac_top_builddir,;t t
3576
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3577
s,@INSTALL@,$ac_INSTALL,;t t
3578
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3580
if test x"$ac_file" != x-; then
3581
mv $tmp/out $ac_file
3590
cat >>$CONFIG_STATUS <<\_ACEOF
3592
{ (exit 0); exit 0; }
3594
chmod +x $CONFIG_STATUS
3595
ac_clean_files=$ac_clean_files_save
3598
# configure is writing to config.log, and then calls config.status.
3599
# config.status does its own redirection, appending to config.log.
3600
# Unfortunately, on DOS this fails, as config.log is still kept open
3601
# by configure, so config.status won't be able to write to it; its
3602
# output is simply discarded. So we exec the FD to /dev/null,
3603
# effectively closing config.log, so it can be properly (re)opened and
3604
# appended to by config.status. When coming back to configure, we
3605
# need to make the FD available again.
3606
if test "$no_create" != yes; then
3609
$SHELL $CONFIG_STATUS || ac_cs_success=false
3611
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
3612
# would make configure fail if this is the last instruction.
3613
$ac_cs_success || { (exit 1); exit 1; }