~ubuntu-branches/ubuntu/dapper/libapache2-mod-python/dapper-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-09-06 20:27:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040906202757-yzpyu1bcabgpjtiu
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.53.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
if expr a : '\(a\)' >/dev/null 2>&1; then
 
11
  as_expr=expr
 
12
else
 
13
  as_expr=false
 
14
fi
 
15
 
 
16
 
 
17
## --------------------- ##
 
18
## M4sh Initialization.  ##
 
19
## --------------------- ##
 
20
 
 
21
# Be Bourne compatible
 
22
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
23
  emulate sh
 
24
  NULLCMD=:
 
25
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
26
  set -o posix
 
27
fi
 
28
 
 
29
# NLS nuisances.
 
30
# Support unset when possible.
 
31
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
32
  as_unset=unset
 
33
else
 
34
  as_unset=false
 
35
fi
 
36
 
 
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; }
 
61
 
 
62
 
 
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 ||
 
69
echo X/"$0" |
 
70
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
71
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
72
          /^X\/\(\/\).*/{ s//\1/; q; }
 
73
          s/.*/./; q'`
 
74
 
 
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
 
82
 
 
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
 
87
  chmod +x conftest.sh
 
88
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
89
    PATH_SEPARATOR=';'
 
90
  else
 
91
    PATH_SEPARATOR=:
 
92
  fi
 
93
  rm -f conftest.sh
 
94
fi
 
95
 
 
96
 
 
97
  as_lineno_1=$LINENO
 
98
  as_lineno_2=$LINENO
 
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
 
103
  # relative or not.
 
104
  case $0 in
 
105
    *[\\/]* ) as_myself=$0 ;;
 
106
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
107
for as_dir in $PATH
 
108
do
 
109
  IFS=$as_save_IFS
 
110
  test -z "$as_dir" && as_dir=.
 
111
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
112
done
 
113
 
 
114
       ;;
 
115
  esac
 
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
 
119
    as_myself=$0
 
120
  fi
 
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; }; }
 
124
  fi
 
125
  case $CONFIG_SHELL in
 
126
  '')
 
127
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
128
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
129
do
 
130
  IFS=$as_save_IFS
 
131
  test -z "$as_dir" && as_dir=.
 
132
  for as_base in sh bash ksh sh5; do
 
133
         case $as_dir in
 
134
         /*)
 
135
           if ("$as_dir/$as_base" -c '
 
136
  as_lineno_1=$LINENO
 
137
  as_lineno_2=$LINENO
 
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
 
142
             export CONFIG_SHELL
 
143
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
144
           fi;;
 
145
         esac
 
146
       done
 
147
done
 
148
;;
 
149
  esac
 
150
 
 
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 |
 
160
    sed '
 
161
      N
 
162
      s,$,-,
 
163
      : loop
 
164
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
165
      t loop
 
166
      s,-$,,
 
167
      s,^['$as_cr_digits']*\n,,
 
168
    ' >$as_me.lineno &&
 
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; }; }
 
172
 
 
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).
 
176
  . ./$as_me.lineno
 
177
  # Exit status is that of the last command.
 
178
  exit
 
179
}
 
180
 
 
181
 
 
182
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
183
  *c*,-n*) ECHO_N= ECHO_C='
 
184
' ECHO_T='      ' ;;
 
185
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
186
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
187
esac
 
188
 
 
189
if expr a : '\(a\)' >/dev/null 2>&1; then
 
190
  as_expr=expr
 
191
else
 
192
  as_expr=false
 
193
fi
 
194
 
 
195
rm -f conf$$ conf$$.exe conf$$.file
 
196
echo >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
 
202
    as_ln_s='cp -p'
 
203
  else
 
204
    as_ln_s='ln -s'
 
205
  fi
 
206
elif ln conf$$.file conf$$ 2>/dev/null; then
 
207
  as_ln_s=ln
 
208
else
 
209
  as_ln_s='cp -p'
 
210
fi
 
211
rm -f conf$$ conf$$.exe conf$$.file
 
212
 
 
213
as_executable_p="test -f"
 
214
 
 
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"
 
217
 
 
218
# Sed expression to map a string onto a valid variable name.
 
219
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
220
 
 
221
 
 
222
# IFS
 
223
# We need space, tab and new line, in precisely that order.
 
224
as_nl='
 
225
'
 
226
IFS="   $as_nl"
 
227
 
 
228
# CDPATH.
 
229
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
230
 
 
231
 
 
232
# Name of the host.
 
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`
 
236
 
 
237
exec 6>&1
 
238
 
 
239
#
 
240
# Initializations.
 
241
#
 
242
ac_default_prefix=/usr/local
 
243
cross_compiling=no
 
244
subdirs=
 
245
MFLAGS=
 
246
MAKEFLAGS=
 
247
SHELL=${CONFIG_SHELL-/bin/sh}
 
248
 
 
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}
 
253
 
 
254
# Identity of this package.
 
255
PACKAGE_NAME=
 
256
PACKAGE_TARNAME=
 
257
PACKAGE_VERSION=
 
258
PACKAGE_STRING=
 
259
PACKAGE_BUGREPORT=
 
260
 
 
261
ac_unique_file="src/mod_python.c"
 
262
 
 
263
# Initialize some variables set by options.
 
264
ac_init_help=
 
265
ac_init_version=false
 
266
# The variables have the same names as the options, with
 
267
# dashes changed to underlines.
 
268
cache_file=/dev/null
 
269
exec_prefix=NONE
 
270
no_create=
 
271
no_recursion=
 
272
prefix=NONE
 
273
program_prefix=NONE
 
274
program_suffix=NONE
 
275
program_transform_name=s,x,x,
 
276
silent=
 
277
site=
 
278
srcdir=
 
279
verbose=
 
280
x_includes=NONE
 
281
x_libraries=NONE
 
282
 
 
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'
 
300
 
 
301
ac_prev=
 
302
for ac_option
 
303
do
 
304
  # If the previous option needs an argument, assign it.
 
305
  if test -n "$ac_prev"; then
 
306
    eval "$ac_prev=\$ac_option"
 
307
    ac_prev=
 
308
    continue
 
309
  fi
 
310
 
 
311
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
312
 
 
313
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
314
 
 
315
  case $ac_option in
 
316
 
 
317
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
318
    ac_prev=bindir ;;
 
319
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
320
    bindir=$ac_optarg ;;
 
321
 
 
322
  -build | --build | --buil | --bui | --bu)
 
323
    ac_prev=build_alias ;;
 
324
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
325
    build_alias=$ac_optarg ;;
 
326
 
 
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 ;;
 
333
 
 
334
  --config-cache | -C)
 
335
    cache_file=config.cache ;;
 
336
 
 
337
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
338
    ac_prev=datadir ;;
 
339
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
340
  | --da=*)
 
341
    datadir=$ac_optarg ;;
 
342
 
 
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" ;;
 
351
 
 
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'`
 
359
    case $ac_option in
 
360
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
361
      *) ac_optarg=yes ;;
 
362
    esac
 
363
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
364
 
 
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 ;;
 
373
 
 
374
  -gas | --gas | --ga | --g)
 
375
    # Obsolete; use --with-gas.
 
376
    with_gas=yes ;;
 
377
 
 
378
  -help | --help | --hel | --he | -h)
 
379
    ac_init_help=long ;;
 
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 ;;
 
384
 
 
385
  -host | --host | --hos | --ho)
 
386
    ac_prev=host_alias ;;
 
387
  -host=* | --host=* | --hos=* | --ho=*)
 
388
    host_alias=$ac_optarg ;;
 
389
 
 
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 ;;
 
396
 
 
397
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
398
    ac_prev=infodir ;;
 
399
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
400
    infodir=$ac_optarg ;;
 
401
 
 
402
  -libdir | --libdir | --libdi | --libd)
 
403
    ac_prev=libdir ;;
 
404
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
405
    libdir=$ac_optarg ;;
 
406
 
 
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 ;;
 
413
 
 
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 ;;
 
422
 
 
423
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
424
    ac_prev=mandir ;;
 
425
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
426
    mandir=$ac_optarg ;;
 
427
 
 
428
  -nfp | --nfp | --nf)
 
429
    # Obsolete; use --without-fp.
 
430
    with_fp=no ;;
 
431
 
 
432
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
433
  | --no-cr | --no-c | -n)
 
434
    no_create=yes ;;
 
435
 
 
436
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
437
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
438
    no_recursion=yes ;;
 
439
 
 
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 ;;
 
448
 
 
449
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
450
    ac_prev=prefix ;;
 
451
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
452
    prefix=$ac_optarg ;;
 
453
 
 
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 ;;
 
460
 
 
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 ;;
 
467
 
 
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 ;;
 
484
 
 
485
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
486
  | -silent | --silent | --silen | --sile | --sil)
 
487
    silent=yes ;;
 
488
 
 
489
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
490
    ac_prev=sbindir ;;
 
491
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
492
  | --sbi=* | --sb=*)
 
493
    sbindir=$ac_optarg ;;
 
494
 
 
495
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
496
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
497
  | --sharedst | --shareds | --shared | --share | --shar \
 
498
  | --sha | --sh)
 
499
    ac_prev=sharedstatedir ;;
 
500
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
501
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
502
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
503
  | --sha=* | --sh=*)
 
504
    sharedstatedir=$ac_optarg ;;
 
505
 
 
506
  -site | --site | --sit)
 
507
    ac_prev=site ;;
 
508
  -site=* | --site=* | --sit=*)
 
509
    site=$ac_optarg ;;
 
510
 
 
511
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
512
    ac_prev=srcdir ;;
 
513
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
514
    srcdir=$ac_optarg ;;
 
515
 
 
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 ;;
 
522
 
 
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 ;;
 
527
 
 
528
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
529
    verbose=yes ;;
 
530
 
 
531
  -version | --version | --versio | --versi | --vers | -V)
 
532
    ac_init_version=: ;;
 
533
 
 
534
  -with-* | --with-*)
 
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'`
 
541
    case $ac_option in
 
542
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
543
      *) ac_optarg=yes ;;
 
544
    esac
 
545
    eval "with_$ac_package='$ac_optarg'" ;;
 
546
 
 
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" ;;
 
555
 
 
556
  --x)
 
557
    # Obsolete; use --with-x.
 
558
    with_x=yes ;;
 
559
 
 
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 ;;
 
566
 
 
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 ;;
 
573
 
 
574
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
575
Try \`$0 --help' for more information." >&2
 
576
   { (exit 1); exit 1; }; }
 
577
    ;;
 
578
 
 
579
  *=*)
 
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'"
 
587
    export $ac_envvar ;;
 
588
 
 
589
  *)
 
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}
 
595
    ;;
 
596
 
 
597
  esac
 
598
done
 
599
 
 
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; }; }
 
604
fi
 
605
 
 
606
# Be sure to have absolute paths.
 
607
for ac_var in exec_prefix prefix
 
608
do
 
609
  eval ac_val=$`echo $ac_var`
 
610
  case $ac_val in
 
611
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
612
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
613
   { (exit 1); exit 1; }; };;
 
614
  esac
 
615
done
 
616
 
 
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
 
620
do
 
621
  eval ac_val=$`echo $ac_var`
 
622
  case $ac_val in
 
623
    [\\/$]* | ?:[\\/]* ) ;;
 
624
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
625
   { (exit 1); exit 1; }; };;
 
626
  esac
 
627
done
 
628
 
 
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.
 
632
build=$build_alias
 
633
host=$host_alias
 
634
target=$target_alias
 
635
 
 
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
 
643
    cross_compiling=yes
 
644
  fi
 
645
fi
 
646
 
 
647
ac_tool_prefix=
 
648
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
649
 
 
650
test "$silent" = yes && exec 6>/dev/null
 
651
 
 
652
 
 
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 ||
 
663
echo X"$0" |
 
664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
665
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
666
          /^X\(\/\/\)$/{ s//\1/; q; }
 
667
          /^X\(\/\).*/{ s//\1/; q; }
 
668
          s/.*/./; q'`
 
669
  srcdir=$ac_confdir
 
670
  if test ! -r $srcdir/$ac_unique_file; then
 
671
    srcdir=..
 
672
  fi
 
673
else
 
674
  ac_srcdir_defaulted=no
 
675
fi
 
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; }; }
 
680
  else
 
681
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
682
   { (exit 1); exit 1; }; }
 
683
  fi
 
684
fi
 
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}
 
699
ac_env_CC_value=$CC
 
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
 
714
 
 
715
#
 
716
# Report the --help message.
 
717
#
 
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.
 
721
  cat <<_ACEOF
 
722
\`configure' configures this package to adapt to many kinds of systems.
 
723
 
 
724
Usage: $0 [OPTION]... [VAR=VALUE]...
 
725
 
 
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.
 
728
 
 
729
Defaults for the options are specified in brackets.
 
730
 
 
731
Configuration:
 
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 \`..']
 
741
 
 
742
_ACEOF
 
743
 
 
744
  cat <<_ACEOF
 
745
Installation directories:
 
746
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
747
                          [$ac_default_prefix]
 
748
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
749
                          [PREFIX]
 
750
 
 
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'.
 
755
 
 
756
For better control, use the options below.
 
757
 
 
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]
 
771
_ACEOF
 
772
 
 
773
  cat <<\_ACEOF
 
774
_ACEOF
 
775
fi
 
776
 
 
777
if test -n "$ac_init_help"; then
 
778
 
 
779
  cat <<\_ACEOF
 
780
 
 
781
Optional Packages:
 
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
 
787
 
 
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>
 
795
 
 
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.
 
798
 
 
799
_ACEOF
 
800
fi
 
801
 
 
802
if test "$ac_init_help" = "recursive"; then
 
803
  # If there are subdirs, report their specific --help.
 
804
  ac_popdir=`pwd`
 
805
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
806
    test -d $ac_dir || continue
 
807
    ac_builddir=.
 
808
 
 
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'`
 
813
else
 
814
  ac_dir_suffix= ac_top_builddir=
 
815
fi
 
816
 
 
817
case $srcdir in
 
818
  .)  # No --srcdir option.  We are building in place.
 
819
    ac_srcdir=.
 
820
    if test -z "$ac_top_builddir"; then
 
821
       ac_top_srcdir=.
 
822
    else
 
823
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
824
    fi ;;
 
825
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
826
    ac_srcdir=$srcdir$ac_dir_suffix;
 
827
    ac_top_srcdir=$srcdir ;;
 
828
  *) # Relative path.
 
829
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
830
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
831
esac
 
832
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
833
# absolute.
 
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`
 
838
 
 
839
    cd $ac_dir
 
840
    # Check for guested configure; otherwise get Cygnus style configure.
 
841
    if test -f $ac_srcdir/configure.gnu; then
 
842
      echo
 
843
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
844
    elif test -f $ac_srcdir/configure; then
 
845
      echo
 
846
      $SHELL $ac_srcdir/configure  --help=recursive
 
847
    elif test -f $ac_srcdir/configure.ac ||
 
848
           test -f $ac_srcdir/configure.in; then
 
849
      echo
 
850
      $ac_configure --help
 
851
    else
 
852
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
853
    fi
 
854
    cd $ac_popdir
 
855
  done
 
856
fi
 
857
 
 
858
test -n "$ac_init_help" && exit 0
 
859
if $ac_init_version; then
 
860
  cat <<\_ACEOF
 
861
 
 
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.
 
866
_ACEOF
 
867
  exit 0
 
868
fi
 
869
exec 5>config.log
 
870
cat >&5 <<_ACEOF
 
871
This file contains any messages produced by compilers while
 
872
running configure, to aid debugging if configure makes a mistake.
 
873
 
 
874
It was created by $as_me, which was
 
875
generated by GNU Autoconf 2.53.  Invocation command line was
 
876
 
 
877
  $ $0 $@
 
878
 
 
879
_ACEOF
 
880
{
 
881
cat <<_ASUNAME
 
882
## --------- ##
 
883
## Platform. ##
 
884
## --------- ##
 
885
 
 
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`
 
891
 
 
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`
 
894
 
 
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`
 
902
 
 
903
_ASUNAME
 
904
 
 
905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
906
for as_dir in $PATH
 
907
do
 
908
  IFS=$as_save_IFS
 
909
  test -z "$as_dir" && as_dir=.
 
910
  echo "PATH: $as_dir"
 
911
done
 
912
 
 
913
} >&5
 
914
 
 
915
cat >&5 <<_ACEOF
 
916
 
 
917
 
 
918
## ----------- ##
 
919
## Core tests. ##
 
920
## ----------- ##
 
921
 
 
922
_ACEOF
 
923
 
 
924
 
 
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.
 
928
ac_configure_args=
 
929
ac_sep=
 
930
for ac_arg
 
931
do
 
932
  case $ac_arg in
 
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)
 
937
    continue ;;
 
938
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
939
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
940
  esac
 
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'"
 
944
       ac_sep=" " ;;
 
945
  esac
 
946
  # Get rid of the leading space.
 
947
done
 
948
 
 
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.
 
954
trap 'exit_status=$?
 
955
  # Save into config.log some information that might help in debugging.
 
956
  {
 
957
    echo
 
958
    cat <<\_ASBOX
 
959
## ---------------- ##
 
960
## Cache variables. ##
 
961
## ---------------- ##
 
962
_ASBOX
 
963
    echo
 
964
    # The following way of writing the cache mishandles newlines in values,
 
965
{
 
966
  (set) 2>&1 |
 
967
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
968
    *ac_space=\ *)
 
969
      sed -n \
 
970
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
971
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
972
      ;;
 
973
    *)
 
974
      sed -n \
 
975
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
976
      ;;
 
977
    esac;
 
978
}
 
979
    echo
 
980
    if test -s confdefs.h; then
 
981
      cat <<\_ASBOX
 
982
## ----------- ##
 
983
## confdefs.h. ##
 
984
## ----------- ##
 
985
_ASBOX
 
986
      echo
 
987
      sed "/^$/d" confdefs.h
 
988
      echo
 
989
    fi
 
990
    test "$ac_signal" != 0 &&
 
991
      echo "$as_me: caught signal $ac_signal"
 
992
    echo "$as_me: exit $exit_status"
 
993
  } >&5
 
994
  rm -f core core.* *.core &&
 
995
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
996
    exit $exit_status
 
997
     ' 0
 
998
for ac_signal in 1 2 13 15; do
 
999
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1000
done
 
1001
ac_signal=0
 
1002
 
 
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.
 
1006
echo >confdefs.h
 
1007
 
 
1008
# Predefined preprocessor variables.
 
1009
 
 
1010
cat >>confdefs.h <<_ACEOF
 
1011
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1012
_ACEOF
 
1013
 
 
1014
 
 
1015
cat >>confdefs.h <<_ACEOF
 
1016
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1017
_ACEOF
 
1018
 
 
1019
 
 
1020
cat >>confdefs.h <<_ACEOF
 
1021
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1022
_ACEOF
 
1023
 
 
1024
 
 
1025
cat >>confdefs.h <<_ACEOF
 
1026
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1027
_ACEOF
 
1028
 
 
1029
 
 
1030
cat >>confdefs.h <<_ACEOF
 
1031
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1032
_ACEOF
 
1033
 
 
1034
 
 
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"
 
1040
  else
 
1041
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1042
  fi
 
1043
fi
 
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
 
1049
    . "$ac_site_file"
 
1050
  fi
 
1051
done
 
1052
 
 
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;}
 
1059
    case $cache_file in
 
1060
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1061
      *)                      . ./$cache_file;;
 
1062
    esac
 
1063
  fi
 
1064
else
 
1065
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1066
echo "$as_me: creating cache $cache_file" >&6;}
 
1067
  >$cache_file
 
1068
fi
 
1069
 
 
1070
# Check that the precious variables saved in the cache have kept the same
 
1071
# value.
 
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
 
1080
    set,)
 
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=: ;;
 
1084
    ,set)
 
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=: ;;
 
1088
    ,);;
 
1089
    *)
 
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=:
 
1098
      fi;;
 
1099
  esac
 
1100
  # Pass precious variables to config.status.
 
1101
  if test "$ac_new_set" = set; then
 
1102
    case $ac_new_val in
 
1103
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1104
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1105
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1106
    esac
 
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'" ;;
 
1110
    esac
 
1111
  fi
 
1112
done
 
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; }; }
 
1119
fi
 
1120
 
 
1121
ac_ext=c
 
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
 
1126
 
 
1127
 
 
1128
 
 
1129
 
 
1130
 
 
1131
 
 
1132
 
 
1133
 
 
1134
 
 
1135
 
 
1136
 
 
1137
 
 
1138
 
 
1139
 
 
1140
 
 
1141
 
 
1142
 
 
1143
 
 
1144
 
 
1145
# includes
 
1146
INCLUDES="-I`pwd`/src/include"
 
1147
 
 
1148
ac_ext=c
 
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
 
1160
else
 
1161
  if test -n "$CC"; then
 
1162
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1163
else
 
1164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1165
for as_dir in $PATH
 
1166
do
 
1167
  IFS=$as_save_IFS
 
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
 
1173
    break 2
 
1174
  fi
 
1175
done
 
1176
done
 
1177
 
 
1178
fi
 
1179
fi
 
1180
CC=$ac_cv_prog_CC
 
1181
if test -n "$CC"; then
 
1182
  echo "$as_me:$LINENO: result: $CC" >&5
 
1183
echo "${ECHO_T}$CC" >&6
 
1184
else
 
1185
  echo "$as_me:$LINENO: result: no" >&5
 
1186
echo "${ECHO_T}no" >&6
 
1187
fi
 
1188
 
 
1189
fi
 
1190
if test -z "$ac_cv_prog_CC"; then
 
1191
  ac_ct_CC=$CC
 
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
 
1198
else
 
1199
  if test -n "$ac_ct_CC"; then
 
1200
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1201
else
 
1202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1203
for as_dir in $PATH
 
1204
do
 
1205
  IFS=$as_save_IFS
 
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
 
1211
    break 2
 
1212
  fi
 
1213
done
 
1214
done
 
1215
 
 
1216
fi
 
1217
fi
 
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
 
1222
else
 
1223
  echo "$as_me:$LINENO: result: no" >&5
 
1224
echo "${ECHO_T}no" >&6
 
1225
fi
 
1226
 
 
1227
  CC=$ac_ct_CC
 
1228
else
 
1229
  CC="$ac_cv_prog_CC"
 
1230
fi
 
1231
 
 
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
 
1240
else
 
1241
  if test -n "$CC"; then
 
1242
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1243
else
 
1244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1245
for as_dir in $PATH
 
1246
do
 
1247
  IFS=$as_save_IFS
 
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
 
1253
    break 2
 
1254
  fi
 
1255
done
 
1256
done
 
1257
 
 
1258
fi
 
1259
fi
 
1260
CC=$ac_cv_prog_CC
 
1261
if test -n "$CC"; then
 
1262
  echo "$as_me:$LINENO: result: $CC" >&5
 
1263
echo "${ECHO_T}$CC" >&6
 
1264
else
 
1265
  echo "$as_me:$LINENO: result: no" >&5
 
1266
echo "${ECHO_T}no" >&6
 
1267
fi
 
1268
 
 
1269
fi
 
1270
if test -z "$ac_cv_prog_CC"; then
 
1271
  ac_ct_CC=$CC
 
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
 
1278
else
 
1279
  if test -n "$ac_ct_CC"; then
 
1280
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1281
else
 
1282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1283
for as_dir in $PATH
 
1284
do
 
1285
  IFS=$as_save_IFS
 
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
 
1291
    break 2
 
1292
  fi
 
1293
done
 
1294
done
 
1295
 
 
1296
fi
 
1297
fi
 
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
 
1302
else
 
1303
  echo "$as_me:$LINENO: result: no" >&5
 
1304
echo "${ECHO_T}no" >&6
 
1305
fi
 
1306
 
 
1307
  CC=$ac_ct_CC
 
1308
else
 
1309
  CC="$ac_cv_prog_CC"
 
1310
fi
 
1311
 
 
1312
fi
 
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
 
1320
else
 
1321
  if test -n "$CC"; then
 
1322
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1323
else
 
1324
  ac_prog_rejected=no
 
1325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1326
for as_dir in $PATH
 
1327
do
 
1328
  IFS=$as_save_IFS
 
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
 
1334
       continue
 
1335
     fi
 
1336
    ac_cv_prog_CC="cc"
 
1337
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1338
    break 2
 
1339
  fi
 
1340
done
 
1341
done
 
1342
 
 
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
 
1346
  shift
 
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.
 
1351
    shift
 
1352
    set dummy "$as_dir/$ac_word" ${1+"$@"}
 
1353
    shift
 
1354
    ac_cv_prog_CC="$@"
 
1355
  fi
 
1356
fi
 
1357
fi
 
1358
fi
 
1359
CC=$ac_cv_prog_CC
 
1360
if test -n "$CC"; then
 
1361
  echo "$as_me:$LINENO: result: $CC" >&5
 
1362
echo "${ECHO_T}$CC" >&6
 
1363
else
 
1364
  echo "$as_me:$LINENO: result: no" >&5
 
1365
echo "${ECHO_T}no" >&6
 
1366
fi
 
1367
 
 
1368
fi
 
1369
if test -z "$CC"; then
 
1370
  if test -n "$ac_tool_prefix"; then
 
1371
  for ac_prog in cl
 
1372
  do
 
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
 
1379
else
 
1380
  if test -n "$CC"; then
 
1381
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1382
else
 
1383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1384
for as_dir in $PATH
 
1385
do
 
1386
  IFS=$as_save_IFS
 
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
 
1392
    break 2
 
1393
  fi
 
1394
done
 
1395
done
 
1396
 
 
1397
fi
 
1398
fi
 
1399
CC=$ac_cv_prog_CC
 
1400
if test -n "$CC"; then
 
1401
  echo "$as_me:$LINENO: result: $CC" >&5
 
1402
echo "${ECHO_T}$CC" >&6
 
1403
else
 
1404
  echo "$as_me:$LINENO: result: no" >&5
 
1405
echo "${ECHO_T}no" >&6
 
1406
fi
 
1407
 
 
1408
    test -n "$CC" && break
 
1409
  done
 
1410
fi
 
1411
if test -z "$CC"; then
 
1412
  ac_ct_CC=$CC
 
1413
  for ac_prog in cl
 
1414
do
 
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
 
1421
else
 
1422
  if test -n "$ac_ct_CC"; then
 
1423
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1424
else
 
1425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1426
for as_dir in $PATH
 
1427
do
 
1428
  IFS=$as_save_IFS
 
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
 
1434
    break 2
 
1435
  fi
 
1436
done
 
1437
done
 
1438
 
 
1439
fi
 
1440
fi
 
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
 
1445
else
 
1446
  echo "$as_me:$LINENO: result: no" >&5
 
1447
echo "${ECHO_T}no" >&6
 
1448
fi
 
1449
 
 
1450
  test -n "$ac_ct_CC" && break
 
1451
done
 
1452
 
 
1453
  CC=$ac_ct_CC
 
1454
fi
 
1455
 
 
1456
fi
 
1457
 
 
1458
 
 
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; }; }
 
1462
 
 
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
 
1469
  ac_status=$?
 
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
 
1474
  ac_status=$?
 
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
 
1479
  ac_status=$?
 
1480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1481
  (exit $ac_status); }
 
1482
 
 
1483
cat >conftest.$ac_ext <<_ACEOF
 
1484
#line $LINENO "configure"
 
1485
#include "confdefs.h"
 
1486
 
 
1487
#ifdef F77_DUMMY_MAIN
 
1488
#  ifdef __cplusplus
 
1489
     extern "C"
 
1490
#  endif
 
1491
   int F77_DUMMY_MAIN() { return 1; }
 
1492
#endif
 
1493
int
 
1494
main ()
 
1495
{
 
1496
 
 
1497
  ;
 
1498
  return 0;
 
1499
}
 
1500
_ACEOF
 
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
 
1505
# of exeext.
 
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
 
1511
  ac_status=$?
 
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
 
1516
# resort.
 
1517
 
 
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.
 
1520
ac_cv_exeext=
 
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
 
1524
  case $ac_file in
 
1525
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
 
1526
    a.out ) # We found the default executable, but exeext='' is most
 
1527
            # certainly right.
 
1528
            break;;
 
1529
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1530
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
1531
          export ac_cv_exeext
 
1532
          break;;
 
1533
    * ) break;;
 
1534
  esac
 
1535
done
 
1536
else
 
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; }; }
 
1542
fi
 
1543
 
 
1544
ac_exeext=$ac_cv_exeext
 
1545
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1546
echo "${ECHO_T}$ac_file" >&6
 
1547
 
 
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
 
1557
  (eval $ac_try) 2>&5
 
1558
  ac_status=$?
 
1559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1560
  (exit $ac_status); }; }; then
 
1561
    cross_compiling=no
 
1562
  else
 
1563
    if test "$cross_compiling" = maybe; then
 
1564
        cross_compiling=yes
 
1565
    else
 
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; }; }
 
1571
    fi
 
1572
  fi
 
1573
fi
 
1574
echo "$as_me:$LINENO: result: yes" >&5
 
1575
echo "${ECHO_T}yes" >&6
 
1576
 
 
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
 
1585
 
 
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
 
1590
  ac_status=$?
 
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
 
1596
# `rm'.
 
1597
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
1598
  case $ac_file in
 
1599
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1600
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1601
          export ac_cv_exeext
 
1602
          break;;
 
1603
    * ) break;;
 
1604
  esac
 
1605
done
 
1606
else
 
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; }; }
 
1610
fi
 
1611
 
 
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
 
1615
 
 
1616
rm -f conftest.$ac_ext
 
1617
EXEEXT=$ac_cv_exeext
 
1618
ac_exeext=$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
 
1623
else
 
1624
  cat >conftest.$ac_ext <<_ACEOF
 
1625
#line $LINENO "configure"
 
1626
#include "confdefs.h"
 
1627
 
 
1628
#ifdef F77_DUMMY_MAIN
 
1629
#  ifdef __cplusplus
 
1630
     extern "C"
 
1631
#  endif
 
1632
   int F77_DUMMY_MAIN() { return 1; }
 
1633
#endif
 
1634
int
 
1635
main ()
 
1636
{
 
1637
 
 
1638
  ;
 
1639
  return 0;
 
1640
}
 
1641
_ACEOF
 
1642
rm -f conftest.o conftest.obj
 
1643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1644
  (eval $ac_compile) 2>&5
 
1645
  ac_status=$?
 
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
 
1649
  case $ac_file in
 
1650
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1651
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1652
       break;;
 
1653
  esac
 
1654
done
 
1655
else
 
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; }; }
 
1661
fi
 
1662
 
 
1663
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1664
fi
 
1665
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1666
echo "${ECHO_T}$ac_cv_objext" >&6
 
1667
OBJEXT=$ac_cv_objext
 
1668
ac_objext=$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
 
1673
else
 
1674
  cat >conftest.$ac_ext <<_ACEOF
 
1675
#line $LINENO "configure"
 
1676
#include "confdefs.h"
 
1677
 
 
1678
#ifdef F77_DUMMY_MAIN
 
1679
#  ifdef __cplusplus
 
1680
     extern "C"
 
1681
#  endif
 
1682
   int F77_DUMMY_MAIN() { return 1; }
 
1683
#endif
 
1684
int
 
1685
main ()
 
1686
{
 
1687
#ifndef __GNUC__
 
1688
       choke me
 
1689
#endif
 
1690
 
 
1691
  ;
 
1692
  return 0;
 
1693
}
 
1694
_ACEOF
 
1695
rm -f conftest.$ac_objext
 
1696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1697
  (eval $ac_compile) 2>&5
 
1698
  ac_status=$?
 
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
 
1703
  (eval $ac_try) 2>&5
 
1704
  ac_status=$?
 
1705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1706
  (exit $ac_status); }; }; then
 
1707
  ac_compiler_gnu=yes
 
1708
else
 
1709
  echo "$as_me: failed program was:" >&5
 
1710
cat conftest.$ac_ext >&5
 
1711
ac_compiler_gnu=no
 
1712
fi
 
1713
rm -f conftest.$ac_objext conftest.$ac_ext
 
1714
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1715
 
 
1716
fi
 
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
 
1722
CFLAGS="-g"
 
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
 
1727
else
 
1728
  cat >conftest.$ac_ext <<_ACEOF
 
1729
#line $LINENO "configure"
 
1730
#include "confdefs.h"
 
1731
 
 
1732
#ifdef F77_DUMMY_MAIN
 
1733
#  ifdef __cplusplus
 
1734
     extern "C"
 
1735
#  endif
 
1736
   int F77_DUMMY_MAIN() { return 1; }
 
1737
#endif
 
1738
int
 
1739
main ()
 
1740
{
 
1741
 
 
1742
  ;
 
1743
  return 0;
 
1744
}
 
1745
_ACEOF
 
1746
rm -f conftest.$ac_objext
 
1747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1748
  (eval $ac_compile) 2>&5
 
1749
  ac_status=$?
 
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
 
1754
  (eval $ac_try) 2>&5
 
1755
  ac_status=$?
 
1756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1757
  (exit $ac_status); }; }; then
 
1758
  ac_cv_prog_cc_g=yes
 
1759
else
 
1760
  echo "$as_me: failed program was:" >&5
 
1761
cat conftest.$ac_ext >&5
 
1762
ac_cv_prog_cc_g=no
 
1763
fi
 
1764
rm -f conftest.$ac_objext conftest.$ac_ext
 
1765
fi
 
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
 
1772
    CFLAGS="-g -O2"
 
1773
  else
 
1774
    CFLAGS="-g"
 
1775
  fi
 
1776
else
 
1777
  if test "$GCC" = yes; then
 
1778
    CFLAGS="-O2"
 
1779
  else
 
1780
    CFLAGS=
 
1781
  fi
 
1782
fi
 
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
 
1788
#ifndef __cplusplus
 
1789
  choke me
 
1790
#endif
 
1791
_ACEOF
 
1792
rm -f conftest.$ac_objext
 
1793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1794
  (eval $ac_compile) 2>&5
 
1795
  ac_status=$?
 
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
 
1800
  (eval $ac_try) 2>&5
 
1801
  ac_status=$?
 
1802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1803
  (exit $ac_status); }; }; then
 
1804
  for ac_declaration in \
 
1805
   ''\
 
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);' \
 
1811
   'void exit (int);'
 
1812
do
 
1813
  cat >conftest.$ac_ext <<_ACEOF
 
1814
#line $LINENO "configure"
 
1815
#include "confdefs.h"
 
1816
#include <stdlib.h>
 
1817
$ac_declaration
 
1818
#ifdef F77_DUMMY_MAIN
 
1819
#  ifdef __cplusplus
 
1820
     extern "C"
 
1821
#  endif
 
1822
   int F77_DUMMY_MAIN() { return 1; }
 
1823
#endif
 
1824
int
 
1825
main ()
 
1826
{
 
1827
exit (42);
 
1828
  ;
 
1829
  return 0;
 
1830
}
 
1831
_ACEOF
 
1832
rm -f conftest.$ac_objext
 
1833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1834
  (eval $ac_compile) 2>&5
 
1835
  ac_status=$?
 
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
 
1840
  (eval $ac_try) 2>&5
 
1841
  ac_status=$?
 
1842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1843
  (exit $ac_status); }; }; then
 
1844
  :
 
1845
else
 
1846
  echo "$as_me: failed program was:" >&5
 
1847
cat conftest.$ac_ext >&5
 
1848
continue
 
1849
fi
 
1850
rm -f conftest.$ac_objext conftest.$ac_ext
 
1851
  cat >conftest.$ac_ext <<_ACEOF
 
1852
#line $LINENO "configure"
 
1853
#include "confdefs.h"
 
1854
$ac_declaration
 
1855
#ifdef F77_DUMMY_MAIN
 
1856
#  ifdef __cplusplus
 
1857
     extern "C"
 
1858
#  endif
 
1859
   int F77_DUMMY_MAIN() { return 1; }
 
1860
#endif
 
1861
int
 
1862
main ()
 
1863
{
 
1864
exit (42);
 
1865
  ;
 
1866
  return 0;
 
1867
}
 
1868
_ACEOF
 
1869
rm -f conftest.$ac_objext
 
1870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1871
  (eval $ac_compile) 2>&5
 
1872
  ac_status=$?
 
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
 
1877
  (eval $ac_try) 2>&5
 
1878
  ac_status=$?
 
1879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1880
  (exit $ac_status); }; }; then
 
1881
  break
 
1882
else
 
1883
  echo "$as_me: failed program was:" >&5
 
1884
cat conftest.$ac_ext >&5
 
1885
fi
 
1886
rm -f conftest.$ac_objext conftest.$ac_ext
 
1887
done
 
1888
rm -f conftest*
 
1889
if test -n "$ac_declaration"; then
 
1890
  echo '#ifdef __cplusplus' >>confdefs.h
 
1891
  echo $ac_declaration      >>confdefs.h
 
1892
  echo '#endif'             >>confdefs.h
 
1893
fi
 
1894
 
 
1895
else
 
1896
  echo "$as_me: failed program was:" >&5
 
1897
cat conftest.$ac_ext >&5
 
1898
fi
 
1899
rm -f conftest.$ac_objext conftest.$ac_ext
 
1900
ac_ext=c
 
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
 
1905
 
 
1906
 
 
1907
for ac_prog in ar aal
 
1908
do
 
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
 
1915
else
 
1916
  if test -n "$AR"; then
 
1917
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
1918
else
 
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1920
for as_dir in $PATH
 
1921
do
 
1922
  IFS=$as_save_IFS
 
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
 
1928
    break 2
 
1929
  fi
 
1930
done
 
1931
done
 
1932
 
 
1933
fi
 
1934
fi
 
1935
AR=$ac_cv_prog_AR
 
1936
if test -n "$AR"; then
 
1937
  echo "$as_me:$LINENO: result: $AR" >&5
 
1938
echo "${ECHO_T}$AR" >&6
 
1939
else
 
1940
  echo "$as_me:$LINENO: result: no" >&5
 
1941
echo "${ECHO_T}no" >&6
 
1942
fi
 
1943
 
 
1944
  test -n "$AR" && break
 
1945
done
 
1946
test -n "$AR" || AR="ar"
 
1947
 
 
1948
ac_aux_dir=
 
1949
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1950
  if test -f $ac_dir/install-sh; then
 
1951
    ac_aux_dir=$ac_dir
 
1952
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1953
    break
 
1954
  elif test -f $ac_dir/install.sh; then
 
1955
    ac_aux_dir=$ac_dir
 
1956
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1957
    break
 
1958
  elif test -f $ac_dir/shtool; then
 
1959
    ac_aux_dir=$ac_dir
 
1960
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1961
    break
 
1962
  fi
 
1963
done
 
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; }; }
 
1968
fi
 
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.
 
1972
 
 
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
 
1979
# AIX /bin/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
 
1990
else
 
1991
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1992
for as_dir in $PATH
 
1993
do
 
1994
  IFS=$as_save_IFS
 
1995
  test -z "$as_dir" && as_dir=.
 
1996
  # Account for people who put trailing slashes in PATH elements.
 
1997
case $as_dir/ in
 
1998
  ./ | .// | /cC/* | \
 
1999
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2000
  /usr/ucb/* ) ;;
 
2001
  *)
 
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
 
2004
    # by default.
 
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.
 
2011
            :
 
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.
 
2015
            :
 
2016
          else
 
2017
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2018
            break 3
 
2019
          fi
 
2020
        fi
 
2021
      done
 
2022
    done
 
2023
    ;;
 
2024
esac
 
2025
done
 
2026
 
 
2027
 
 
2028
fi
 
2029
  if test "${ac_cv_path_install+set}" = set; then
 
2030
    INSTALL=$ac_cv_path_install
 
2031
  else
 
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
 
2037
  fi
 
2038
fi
 
2039
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2040
echo "${ECHO_T}$INSTALL" >&6
 
2041
 
 
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}'
 
2045
 
 
2046
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2047
 
 
2048
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2049
 
 
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
 
2055
else
 
2056
  cat >conftest.make <<\_ACEOF
 
2057
all:
 
2058
        @echo 'ac_maketemp="${MAKE}"'
 
2059
_ACEOF
 
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
 
2064
else
 
2065
  eval ac_cv_prog_make_${ac_make}_set=no
 
2066
fi
 
2067
rm -f conftest.make
 
2068
fi
 
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
 
2072
  SET_MAKE=
 
2073
else
 
2074
  echo "$as_me:$LINENO: result: no" >&5
 
2075
echo "${ECHO_T}no" >&6
 
2076
  SET_MAKE="MAKE=${MAKE-make}"
 
2077
fi
 
2078
 
 
2079
 
 
2080
 
 
2081
 
 
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
 
2086
else
 
2087
  ac_check_lib_save_LIBS=$LIBS
 
2088
LIBS="-lm  $LIBS"
 
2089
cat >conftest.$ac_ext <<_ACEOF
 
2090
#line $LINENO "configure"
 
2091
#include "confdefs.h"
 
2092
 
 
2093
 
 
2094
#ifdef F77_DUMMY_MAIN
 
2095
#  ifdef __cplusplus
 
2096
     extern "C"
 
2097
#  endif
 
2098
   int F77_DUMMY_MAIN() { return 1; }
 
2099
#endif
 
2100
int
 
2101
main ()
 
2102
{
 
2103
main ();
 
2104
  ;
 
2105
  return 0;
 
2106
}
 
2107
_ACEOF
 
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
 
2111
  ac_status=$?
 
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
 
2116
  (eval $ac_try) 2>&5
 
2117
  ac_status=$?
 
2118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2119
  (exit $ac_status); }; }; then
 
2120
  ac_cv_lib_m_main=yes
 
2121
else
 
2122
  echo "$as_me: failed program was:" >&5
 
2123
cat conftest.$ac_ext >&5
 
2124
ac_cv_lib_m_main=no
 
2125
fi
 
2126
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2127
LIBS=$ac_check_lib_save_LIBS
 
2128
fi
 
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
 
2133
#define HAVE_LIBM 1
 
2134
_ACEOF
 
2135
 
 
2136
  LIBS="-lm $LIBS"
 
2137
 
 
2138
fi
 
2139
 
 
2140
 
 
2141
 
 
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
 
2146
else
 
2147
  ac_cv_prog_cc_stdc=no
 
2148
ac_save_CC=$CC
 
2149
cat >conftest.$ac_ext <<_ACEOF
 
2150
#line $LINENO "configure"
 
2151
#include "confdefs.h"
 
2152
#include <stdarg.h>
 
2153
#include <stdio.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)
 
2160
     char **p;
 
2161
     int i;
 
2162
{
 
2163
  return p[i];
 
2164
}
 
2165
static char *f (char * (*g) (char **, int), char **p, ...)
 
2166
{
 
2167
  char *s;
 
2168
  va_list v;
 
2169
  va_start (v,p);
 
2170
  s = g (p, va_arg (v,int));
 
2171
  va_end (v);
 
2172
  return s;
 
2173
}
 
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);
 
2178
int argc;
 
2179
char **argv;
 
2180
#ifdef F77_DUMMY_MAIN
 
2181
#  ifdef __cplusplus
 
2182
     extern "C"
 
2183
#  endif
 
2184
   int F77_DUMMY_MAIN() { return 1; }
 
2185
#endif
 
2186
int
 
2187
main ()
 
2188
{
 
2189
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2190
  ;
 
2191
  return 0;
 
2192
}
 
2193
_ACEOF
 
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__"
 
2202
do
 
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
 
2207
  ac_status=$?
 
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
 
2212
  (eval $ac_try) 2>&5
 
2213
  ac_status=$?
 
2214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2215
  (exit $ac_status); }; }; then
 
2216
  ac_cv_prog_cc_stdc=$ac_arg
 
2217
break
 
2218
else
 
2219
  echo "$as_me: failed program was:" >&5
 
2220
cat conftest.$ac_ext >&5
 
2221
fi
 
2222
rm -f conftest.$ac_objext
 
2223
done
 
2224
rm -f conftest.$ac_ext conftest.$ac_objext
 
2225
CC=$ac_save_CC
 
2226
 
 
2227
fi
 
2228
 
 
2229
case "x$ac_cv_prog_cc_stdc" in
 
2230
  x|xno)
 
2231
    echo "$as_me:$LINENO: result: none needed" >&5
 
2232
echo "${ECHO_T}none needed" >&6 ;;
 
2233
  *)
 
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" ;;
 
2237
esac
 
2238
 
 
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
 
2243
else
 
2244
  cat >conftest.$ac_ext <<_ACEOF
 
2245
#line $LINENO "configure"
 
2246
#include "confdefs.h"
 
2247
 
 
2248
#ifdef F77_DUMMY_MAIN
 
2249
#  ifdef __cplusplus
 
2250
     extern "C"
 
2251
#  endif
 
2252
   int F77_DUMMY_MAIN() { return 1; }
 
2253
#endif
 
2254
int
 
2255
main ()
 
2256
{
 
2257
/* FIXME: Include the comments suggested by Paul. */
 
2258
#ifndef __cplusplus
 
2259
  /* Ultrix mips cc rejects this.  */
 
2260
  typedef int charset[2];
 
2261
  const charset x;
 
2262
  /* SunOS 4.1.1 cc rejects this.  */
 
2263
  char const *const *ccp;
 
2264
  char **p;
 
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
 
2271
     expression */
 
2272
  const char *g = "string";
 
2273
  ccp = &g + (g ? g-g : 0);
 
2274
  /* HPUX 7.0 cc rejects these. */
 
2275
  ++ccp;
 
2276
  p = (char**) ccp;
 
2277
  ccp = (char const *const *) p;
 
2278
  { /* SCO 3.2v4 cc rejects this.  */
 
2279
    char *t;
 
2280
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
2281
 
 
2282
    *t++ = 0;
 
2283
  }
 
2284
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
2285
    int x[] = {25, 17};
 
2286
    const int *foo = &x[0];
 
2287
    ++foo;
 
2288
  }
 
2289
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
2290
    typedef const int *iptr;
 
2291
    iptr p = 0;
 
2292
    ++p;
 
2293
  }
 
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;
 
2298
  }
 
2299
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
2300
    const int foo = 10;
 
2301
  }
 
2302
#endif
 
2303
 
 
2304
  ;
 
2305
  return 0;
 
2306
}
 
2307
_ACEOF
 
2308
rm -f conftest.$ac_objext
 
2309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2310
  (eval $ac_compile) 2>&5
 
2311
  ac_status=$?
 
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
 
2316
  (eval $ac_try) 2>&5
 
2317
  ac_status=$?
 
2318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2319
  (exit $ac_status); }; }; then
 
2320
  ac_cv_c_const=yes
 
2321
else
 
2322
  echo "$as_me: failed program was:" >&5
 
2323
cat conftest.$ac_ext >&5
 
2324
ac_cv_c_const=no
 
2325
fi
 
2326
rm -f conftest.$ac_objext conftest.$ac_ext
 
2327
fi
 
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
 
2331
 
 
2332
cat >>confdefs.h <<\_ACEOF
 
2333
#define const
 
2334
_ACEOF
 
2335
 
 
2336
fi
 
2337
 
 
2338
 
 
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
 
2344
 
 
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;}
 
2348
 
 
2349
 
 
2350
 
 
2351
 
 
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
 
2355
 
 
2356
# Check whether --with-apxs or --without-apxs was given.
 
2357
if test "${with_apxs+set}" = set; then
 
2358
  withval="$with_apxs"
 
2359
 
 
2360
  if test -x "$withval"
 
2361
  then
 
2362
    echo "$as_me:$LINENO: result: $withval executable, good" >&5
 
2363
echo "${ECHO_T}$withval executable, good" >&6
 
2364
    APXS=$withval
 
2365
  else
 
2366
    echo
 
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; }; }
 
2370
  fi
 
2371
 
 
2372
else
 
2373
  echo "$as_me:$LINENO: result: no" >&5
 
2374
echo "${ECHO_T}no" >&6
 
2375
fi;
 
2376
 
 
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
 
2386
  else
 
2387
    echo "$as_me:$LINENO: result: no" >&5
 
2388
echo "${ECHO_T}no" >&6
 
2389
  fi
 
2390
fi
 
2391
 
 
2392
# last resort
 
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
 
2402
else
 
2403
  case $APXS in
 
2404
  [\\/]* | ?:[\\/]*)
 
2405
  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
 
2406
  ;;
 
2407
  *)
 
2408
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2409
for as_dir in $PATH
 
2410
do
 
2411
  IFS=$as_save_IFS
 
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
 
2417
    break 2
 
2418
  fi
 
2419
done
 
2420
done
 
2421
 
 
2422
  ;;
 
2423
esac
 
2424
fi
 
2425
APXS=$ac_cv_path_APXS
 
2426
 
 
2427
if test -n "$APXS"; then
 
2428
  echo "$as_me:$LINENO: result: $APXS" >&5
 
2429
echo "${ECHO_T}$APXS" >&6
 
2430
else
 
2431
  echo "$as_me:$LINENO: result: no" >&5
 
2432
echo "${ECHO_T}no" >&6
 
2433
fi
 
2434
 
 
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
 
2438
  fi
 
2439
fi
 
2440
 
 
2441
# if apxs was still not found, then no DSO
 
2442
 
 
2443
 
 
2444
 
 
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;}
 
2450
  DSO="no_dso"
 
2451
  ALL="static"
 
2452
else
 
2453
  DSO="do_dso"
 
2454
  ALL="dso"
 
2455
 
 
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
 
2463
 
 
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; }; }
 
2469
  fi
 
2470
 
 
2471
  # determine LIBEXEC
 
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
 
2477
 
 
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
 
2484
 
 
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"
 
2490
    fi
 
2491
    echo "$as_me:$LINENO: result: \"done\"" >&5
 
2492
echo "${ECHO_T}\"done\"" >&6
 
2493
  fi
 
2494
 
 
2495
fi
 
2496
 
 
2497
# check for --with-apache
 
2498
 
 
2499
 
 
2500
 
 
2501
## static is disabled, thus no --with-apache
 
2502
##AC_MSG_CHECKING(for --with-apache)
 
2503
 
 
2504
# Check whether --with-apache or --without-apache was given.
 
2505
if test "${with_apache+set}" = set; then
 
2506
  withval="$with_apache"
 
2507
 
 
2508
 
 
2509
  # temporarily disable static on 2.0 until I figure out how to
 
2510
  # do it right
 
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; }; }
 
2514
 
 
2515
  AP_SRC=`cd $withval; pwd`
 
2516
 
 
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; }; }
 
2521
  fi
 
2522
 
 
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"
 
2526
 
 
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}'`"
 
2530
 
 
2531
fi;
 
2532
##AC_MSG_RESULT(no))
 
2533
 
 
2534
 
 
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.])
 
2538
  STATIC="no_static"
 
2539
else
 
2540
  STATIC="do_static"
 
2541
fi
 
2542
 
 
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; }; }
 
2547
fi
 
2548
 
 
2549
 
 
2550
echo "$as_me:$LINENO: checking for --with-python" >&5
 
2551
echo $ECHO_N "checking for --with-python... $ECHO_C" >&6
 
2552
 
 
2553
# Check whether --with-python or --without-python was given.
 
2554
if test "${with_python+set}" = set; then
 
2555
  withval="$with_python"
 
2556
 
 
2557
  PYTHON_BIN="$withval"
 
2558
  echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
 
2559
echo "${ECHO_T}$PYTHON_BIN" >&6
 
2560
 
 
2561
else
 
2562
  echo "$as_me:$LINENO: result: no" >&5
 
2563
echo "${ECHO_T}no" >&6
 
2564
fi;
 
2565
 
 
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
 
2574
else
 
2575
  case $PYTHON_BIN in
 
2576
  [\\/]* | ?:[\\/]*)
 
2577
  ac_cv_path_PYTHON_BIN="$PYTHON_BIN" # Let the user override the test with a path.
 
2578
  ;;
 
2579
  *)
 
2580
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2581
for as_dir in $PATH
 
2582
do
 
2583
  IFS=$as_save_IFS
 
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
 
2589
    break 2
 
2590
  fi
 
2591
done
 
2592
done
 
2593
 
 
2594
  ;;
 
2595
esac
 
2596
fi
 
2597
PYTHON_BIN=$ac_cv_path_PYTHON_BIN
 
2598
 
 
2599
if test -n "$PYTHON_BIN"; then
 
2600
  echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
 
2601
echo "${ECHO_T}$PYTHON_BIN" >&6
 
2602
else
 
2603
  echo "$as_me:$LINENO: result: no" >&5
 
2604
echo "${ECHO_T}no" >&6
 
2605
fi
 
2606
 
 
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; }; }
 
2611
  fi
 
2612
fi
 
2613
 
 
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
 
2621
 
 
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; }; }
 
2627
fi
 
2628
 
 
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
 
2635
 
 
2636
# this is where the Python libraries will get installed
 
2637
 
 
2638
PY_STD_LIB=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION}
 
2639
 
 
2640
# set python std library variable
 
2641
 
 
2642
 
 
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}'`
 
2650
 
 
2651
save_LDFLAGS="$LDFLAGS"
 
2652
save_LIBS="$LIBS"
 
2653
if test "$PyFRAMEWORKDIR" != "no-framework"; then
 
2654
  if test -n "$PyFRAMEWORK"; then
 
2655
    PyPYTHONLIBS="-framework $PyFRAMEWORK"
 
2656
    LDFLAGS="${LDFLAGS} -Wl,-framework,Python"
 
2657
  fi
 
2658
else
 
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
 
2665
else
 
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"
 
2671
 
 
2672
/* Override any gcc2 internal prototype to avoid an error.  */
 
2673
#ifdef __cplusplus
 
2674
extern "C"
 
2675
#endif
 
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
 
2680
#  ifdef __cplusplus
 
2681
     extern "C"
 
2682
#  endif
 
2683
   int F77_DUMMY_MAIN() { return 1; }
 
2684
#endif
 
2685
int
 
2686
main ()
 
2687
{
 
2688
Py_NewInterpreter ();
 
2689
  ;
 
2690
  return 0;
 
2691
}
 
2692
_ACEOF
 
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
 
2696
  ac_status=$?
 
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
 
2701
  (eval $ac_try) 2>&5
 
2702
  ac_status=$?
 
2703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2704
  (exit $ac_status); }; }; then
 
2705
  eval "$as_ac_Lib=yes"
 
2706
else
 
2707
  echo "$as_me: failed program was:" >&5
 
2708
cat conftest.$ac_ext >&5
 
2709
eval "$as_ac_Lib=no"
 
2710
fi
 
2711
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2712
LIBS=$ac_check_lib_save_LIBS
 
2713
fi
 
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}"
 
2718
else
 
2719
   LDFLAGS="$save_LDFLAGS"
 
2720
               if test -f ${PyLIBPL}/libpython${PyVERSION}.a; then
 
2721
                  PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a
 
2722
               else
 
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; }; }
 
2726
               fi
 
2727
 
 
2728
fi
 
2729
 
 
2730
fi
 
2731
LIBS="$save_LIBS"
 
2732
 
 
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}"
 
2737
 
 
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//`"
 
2742
fi
 
2743
 
 
2744
LIBS="${LIBS} ${PY_LIBS}"
 
2745
echo "$as_me:$LINENO: result: $PY_LIBS" >&5
 
2746
echo "${ECHO_T}$PY_LIBS" >&6
 
2747
 
 
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
 
2750
 
 
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
 
2757
 
 
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
 
2760
 
 
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
 
2765
 
 
2766
# this for the test.py script
 
2767
 
 
2768
TEST_SERVER_ROOT="`pwd`/test"
 
2769
 
 
2770
MOD_PYTHON_SO="`pwd`/src/mod_python.so"
 
2771
 
 
2772
# get the mod_python version
 
2773
 
 
2774
MP_VERSION=`awk '/MPV_STRING/ {print $3}' src/include/mpversion.h`
 
2775
MP_VERSION=`echo $MP_VERSION | sed s/\\"//g`
 
2776
 
 
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.
 
2784
#
 
2785
# config.status only pays attention to the cache file if you give it
 
2786
# the --recheck option to rerun configure.
 
2787
#
 
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
 
2790
# following values.
 
2791
 
 
2792
_ACEOF
 
2793
 
 
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.
 
2799
{
 
2800
  (set) 2>&1 |
 
2801
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2802
    *ac_space=\ *)
 
2803
      # `set' does not quote correctly, so add quotes (double-quote
 
2804
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
2805
      sed -n \
 
2806
        "s/'/'\\\\''/g;
 
2807
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2808
      ;;
 
2809
    *)
 
2810
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2811
      sed -n \
 
2812
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2813
      ;;
 
2814
    esac;
 
2815
} |
 
2816
  sed '
 
2817
     t clear
 
2818
     : clear
 
2819
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
2820
     t end
 
2821
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
2822
     : end' >>confcache
 
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
 
2827
  else
 
2828
    echo "not updating unwritable cache $cache_file"
 
2829
  fi
 
2830
fi
 
2831
rm -f confcache
 
2832
 
 
2833
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2834
# Let make expand exec_prefix.
 
2835
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2836
 
 
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}:*/:/;
 
2845
s/:*@srcdir@:*/:/;
 
2846
s/^\([^=]*=[    ]*\):*/\1/;
 
2847
s/:*$//;
 
2848
s/^[^=]*=[      ]*$//;
 
2849
}'
 
2850
fi
 
2851
 
 
2852
# Transform confdefs.h into DEFS.
 
2853
# Protect against shell expansion while executing Makefile rules.
 
2854
# Protect against Makefile macro expansion.
 
2855
#
 
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
 
2860
t clear
 
2861
: clear
 
2862
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
2863
t quote
 
2864
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
2865
t quote
 
2866
d
 
2867
: quote
 
2868
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
2869
s,\[,\\&,g
 
2870
s,\],\\&,g
 
2871
s,\$,$$,g
 
2872
p
 
2873
_ACEOF
 
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
 
2879
# would break.
 
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
 
2883
 
 
2884
 
 
2885
 
 
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
 
2892
#! $SHELL
 
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.
 
2897
 
 
2898
debug=false
 
2899
SHELL=\${CONFIG_SHELL-$SHELL}
 
2900
_ACEOF
 
2901
 
 
2902
cat >>$CONFIG_STATUS <<\_ACEOF
 
2903
 
 
2904
## --------------------- ##
 
2905
## M4sh Initialization.  ##
 
2906
## --------------------- ##
 
2907
 
 
2908
# Be Bourne compatible
 
2909
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
2910
  emulate sh
 
2911
  NULLCMD=:
 
2912
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
2913
  set -o posix
 
2914
fi
 
2915
 
 
2916
# NLS nuisances.
 
2917
# Support unset when possible.
 
2918
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
2919
  as_unset=unset
 
2920
else
 
2921
  as_unset=false
 
2922
fi
 
2923
 
 
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; }
 
2948
 
 
2949
 
 
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 ||
 
2956
echo X/"$0" |
 
2957
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
2958
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
2959
          /^X\/\(\/\).*/{ s//\1/; q; }
 
2960
          s/.*/./; q'`
 
2961
 
 
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
 
2969
 
 
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
 
2976
    PATH_SEPARATOR=';'
 
2977
  else
 
2978
    PATH_SEPARATOR=:
 
2979
  fi
 
2980
  rm -f conftest.sh
 
2981
fi
 
2982
 
 
2983
 
 
2984
  as_lineno_1=$LINENO
 
2985
  as_lineno_2=$LINENO
 
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
 
2990
  # relative or not.
 
2991
  case $0 in
 
2992
    *[\\/]* ) as_myself=$0 ;;
 
2993
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2994
for as_dir in $PATH
 
2995
do
 
2996
  IFS=$as_save_IFS
 
2997
  test -z "$as_dir" && as_dir=.
 
2998
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
2999
done
 
3000
 
 
3001
       ;;
 
3002
  esac
 
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
 
3006
    as_myself=$0
 
3007
  fi
 
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; }; }
 
3012
  fi
 
3013
  case $CONFIG_SHELL in
 
3014
  '')
 
3015
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3016
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
3017
do
 
3018
  IFS=$as_save_IFS
 
3019
  test -z "$as_dir" && as_dir=.
 
3020
  for as_base in sh bash ksh sh5; do
 
3021
         case $as_dir in
 
3022
         /*)
 
3023
           if ("$as_dir/$as_base" -c '
 
3024
  as_lineno_1=$LINENO
 
3025
  as_lineno_2=$LINENO
 
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
 
3030
             export CONFIG_SHELL
 
3031
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
3032
           fi;;
 
3033
         esac
 
3034
       done
 
3035
done
 
3036
;;
 
3037
  esac
 
3038
 
 
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 |
 
3048
    sed '
 
3049
      N
 
3050
      s,$,-,
 
3051
      : loop
 
3052
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
3053
      t loop
 
3054
      s,-$,,
 
3055
      s,^['$as_cr_digits']*\n,,
 
3056
    ' >$as_me.lineno &&
 
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; }; }
 
3061
 
 
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).
 
3065
  . ./$as_me.lineno
 
3066
  # Exit status is that of the last command.
 
3067
  exit
 
3068
}
 
3069
 
 
3070
 
 
3071
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
3072
  *c*,-n*) ECHO_N= ECHO_C='
 
3073
' ECHO_T='      ' ;;
 
3074
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
3075
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
3076
esac
 
3077
 
 
3078
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3079
  as_expr=expr
 
3080
else
 
3081
  as_expr=false
 
3082
fi
 
3083
 
 
3084
rm -f conf$$ conf$$.exe conf$$.file
 
3085
echo >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
 
3091
    as_ln_s='cp -p'
 
3092
  else
 
3093
    as_ln_s='ln -s'
 
3094
  fi
 
3095
elif ln conf$$.file conf$$ 2>/dev/null; then
 
3096
  as_ln_s=ln
 
3097
else
 
3098
  as_ln_s='cp -p'
 
3099
fi
 
3100
rm -f conf$$ conf$$.exe conf$$.file
 
3101
 
 
3102
as_executable_p="test -f"
 
3103
 
 
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"
 
3106
 
 
3107
# Sed expression to map a string onto a valid variable name.
 
3108
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
3109
 
 
3110
 
 
3111
# IFS
 
3112
# We need space, tab and new line, in precisely that order.
 
3113
as_nl='
 
3114
'
 
3115
IFS="   $as_nl"
 
3116
 
 
3117
# CDPATH.
 
3118
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
3119
 
 
3120
exec 6>&1
 
3121
 
 
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.
 
3125
exec 5>>config.log
 
3126
{
 
3127
  echo
 
3128
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
3129
## Running $as_me. ##
 
3130
_ASBOX
 
3131
} >&5
 
3132
cat >&5 <<_CSEOF
 
3133
 
 
3134
This file was extended by $as_me, which was
 
3135
generated by GNU Autoconf 2.53.  Invocation command line was
 
3136
 
 
3137
  CONFIG_FILES    = $CONFIG_FILES
 
3138
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
3139
  CONFIG_LINKS    = $CONFIG_LINKS
 
3140
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
3141
  $ $0 $@
 
3142
 
 
3143
_CSEOF
 
3144
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
3145
echo >&5
 
3146
_ACEOF
 
3147
 
 
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
 
3151
fi
 
3152
 
 
3153
if test -n "$ac_config_headers"; then
 
3154
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
3155
fi
 
3156
 
 
3157
if test -n "$ac_config_links"; then
 
3158
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
3159
fi
 
3160
 
 
3161
if test -n "$ac_config_commands"; then
 
3162
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
3163
fi
 
3164
 
 
3165
cat >>$CONFIG_STATUS <<\_ACEOF
 
3166
 
 
3167
ac_cs_usage="\
 
3168
\`$as_me' instantiates files from templates according to the
 
3169
current configuration.
 
3170
 
 
3171
Usage: $0 [OPTIONS] [FILE]...
 
3172
 
 
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
 
3179
 
 
3180
Configuration files:
 
3181
$config_files
 
3182
 
 
3183
Report bugs to <bug-autoconf@gnu.org>."
 
3184
_ACEOF
 
3185
 
 
3186
cat >>$CONFIG_STATUS <<_ACEOF
 
3187
ac_cs_version="\\
 
3188
config.status
 
3189
configured by $0, generated by GNU Autoconf 2.53,
 
3190
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
3191
 
 
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."
 
3196
srcdir=$srcdir
 
3197
INSTALL="$INSTALL"
 
3198
_ACEOF
 
3199
 
 
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.
 
3203
ac_need_defaults=:
 
3204
while test $# != 0
 
3205
do
 
3206
  case $1 in
 
3207
  --*=*)
 
3208
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
3209
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
3210
    shift
 
3211
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
3212
    shift
 
3213
    ;;
 
3214
  -*);;
 
3215
  *) # This is not an option, so the user has probably given explicit
 
3216
     # arguments.
 
3217
     ac_need_defaults=false;;
 
3218
  esac
 
3219
 
 
3220
  case $1 in
 
3221
  # Handling of the options.
 
3222
_ACEOF
 
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 ;;
 
3227
_ACEOF
 
3228
cat >>$CONFIG_STATUS <<\_ACEOF
 
3229
  --version | --vers* | -V )
 
3230
    echo "$ac_cs_version"; exit 0 ;;
 
3231
  --he | --h)
 
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 )
 
3241
    debug=: ;;
 
3242
  --file | --fil | --fi | --f )
 
3243
    shift
 
3244
    CONFIG_FILES="$CONFIG_FILES $1"
 
3245
    ac_need_defaults=false;;
 
3246
  --header | --heade | --head | --hea )
 
3247
    shift
 
3248
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
3249
    ac_need_defaults=false;;
 
3250
 
 
3251
  # This is an error.
 
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; }; } ;;
 
3257
 
 
3258
  *) ac_config_targets="$ac_config_targets $1" ;;
 
3259
 
 
3260
  esac
 
3261
  shift
 
3262
done
 
3263
 
 
3264
_ACEOF
 
3265
 
 
3266
 
 
3267
 
 
3268
 
 
3269
 
 
3270
cat >>$CONFIG_STATUS <<\_ACEOF
 
3271
for ac_config_target in $ac_config_targets
 
3272
do
 
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; }; };;
 
3284
  esac
 
3285
done
 
3286
 
 
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
 
3293
fi
 
3294
 
 
3295
# Create a temporary directory, and hook for its removal unless debugging.
 
3296
$debug ||
 
3297
{
 
3298
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3299
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3300
}
 
3301
 
 
3302
# Create a (secure) tmp directory for tmp files.
 
3303
: ${TMPDIR=/tmp}
 
3304
{
 
3305
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
3306
  test -n "$tmp" && test -d "$tmp"
 
3307
}  ||
 
3308
{
 
3309
  tmp=$TMPDIR/cs$$-$RANDOM
 
3310
  (umask 077 && mkdir $tmp)
 
3311
} ||
 
3312
{
 
3313
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
3314
   { (exit 1); exit 1; }
 
3315
}
 
3316
 
 
3317
_ACEOF
 
3318
 
 
3319
cat >>$CONFIG_STATUS <<_ACEOF
 
3320
 
 
3321
#
 
3322
# CONFIG_FILES section.
 
3323
#
 
3324
 
 
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
 
3356
s,@DEFS@,$DEFS,;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
 
3360
s,@LIBS@,$LIBS,;t t
 
3361
s,@CC@,$CC,;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
 
3368
s,@AR@,$AR,;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
 
3373
s,@APXS@,$APXS,;t t
 
3374
s,@DSO@,$DSO,;t t
 
3375
s,@ALL@,$ALL,;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
 
3389
CEOF
 
3390
 
 
3391
_ACEOF
 
3392
 
 
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.
 
3396
  ac_max_sed_lines=48
 
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.
 
3400
  ac_more_lines=:
 
3401
  ac_sed_cmds=
 
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
 
3405
    else
 
3406
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
3407
    fi
 
3408
    if test ! -s $tmp/subs.frag; then
 
3409
      ac_more_lines=false
 
3410
    else
 
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.
 
3415
      (echo ':t
 
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"
 
3419
      else
 
3420
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
3421
      fi
 
3422
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
3423
      ac_beg=$ac_end
 
3424
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
3425
    fi
 
3426
  done
 
3427
  if test -z "$ac_sed_cmds"; then
 
3428
    ac_sed_cmds=cat
 
3429
  fi
 
3430
fi # test -n "$CONFIG_FILES"
 
3431
 
 
3432
_ACEOF
 
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".
 
3436
  case $ac_file in
 
3437
  - | *:- | *:-:* ) # input from stdin
 
3438
        cat >$tmp/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 ;;
 
3444
  esac
 
3445
 
 
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 ||
 
3453
echo X"$ac_file" |
 
3454
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3455
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3456
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3457
          /^X\(\/\).*/{ s//\1/; q; }
 
3458
          s/.*/./; q'`
 
3459
  { case "$ac_dir" in
 
3460
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
3461
  *)                      as_incr_dir=.;;
 
3462
esac
 
3463
as_dummy="$ac_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 ;;
 
3468
    *)
 
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; }; }
 
3475
    ;;
 
3476
  esac
 
3477
done; }
 
3478
 
 
3479
  ac_builddir=.
 
3480
 
 
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'`
 
3485
else
 
3486
  ac_dir_suffix= ac_top_builddir=
 
3487
fi
 
3488
 
 
3489
case $srcdir in
 
3490
  .)  # No --srcdir option.  We are building in place.
 
3491
    ac_srcdir=.
 
3492
    if test -z "$ac_top_builddir"; then
 
3493
       ac_top_srcdir=.
 
3494
    else
 
3495
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
3496
    fi ;;
 
3497
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
3498
    ac_srcdir=$srcdir$ac_dir_suffix;
 
3499
    ac_top_srcdir=$srcdir ;;
 
3500
  *) # Relative path.
 
3501
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
3502
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
3503
esac
 
3504
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
3505
# absolute.
 
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`
 
3510
 
 
3511
 
 
3512
  case $INSTALL in
 
3513
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
3514
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
3515
  esac
 
3516
 
 
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;}
 
3520
    rm -f "$ac_file"
 
3521
  fi
 
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
 
3526
    configure_input=
 
3527
  else
 
3528
    configure_input="$ac_file.  "
 
3529
  fi
 
3530
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
3531
                                     sed 's,.*/,,'` by configure."
 
3532
 
 
3533
  # First look for the input files in the build tree, otherwise in the
 
3534
  # src tree.
 
3535
  ac_file_inputs=`IFS=:
 
3536
    for f in $ac_file_in; do
 
3537
      case $f in
 
3538
      -) echo $tmp/stdin ;;
 
3539
      [\\/$]*)
 
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; }; }
 
3544
         echo $f;;
 
3545
      *) # Relative
 
3546
         if test -f "$f"; then
 
3547
           # Build tree
 
3548
           echo $f
 
3549
         elif test -f "$srcdir/$f"; then
 
3550
           # Source tree
 
3551
           echo $srcdir/$f
 
3552
         else
 
3553
           # /dev/null tree
 
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; }; }
 
3557
         fi;;
 
3558
      esac
 
3559
    done` || { (exit 1); exit 1; }
 
3560
_ACEOF
 
3561
cat >>$CONFIG_STATUS <<_ACEOF
 
3562
  sed "$ac_vpsub
 
3563
$extrasub
 
3564
_ACEOF
 
3565
cat >>$CONFIG_STATUS <<\_ACEOF
 
3566
:t
 
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
 
3579
  rm -f $tmp/stdin
 
3580
  if test x"$ac_file" != x-; then
 
3581
    mv $tmp/out $ac_file
 
3582
  else
 
3583
    cat $tmp/out
 
3584
    rm -f $tmp/out
 
3585
  fi
 
3586
 
 
3587
done
 
3588
_ACEOF
 
3589
 
 
3590
cat >>$CONFIG_STATUS <<\_ACEOF
 
3591
 
 
3592
{ (exit 0); exit 0; }
 
3593
_ACEOF
 
3594
chmod +x $CONFIG_STATUS
 
3595
ac_clean_files=$ac_clean_files_save
 
3596
 
 
3597
 
 
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
 
3607
  ac_cs_success=:
 
3608
  exec 5>/dev/null
 
3609
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
3610
  exec 5>>config.log
 
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; }
 
3614
fi
 
3615
 
 
3616
 
 
3617
 
 
3618