~ubuntu-branches/ubuntu/hardy/libapache2-mod-python/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-16 12:00:15 UTC
  • Revision ID: james.westby@ubuntu.com-20070116120015-ki1ahx4impm31im7
Tags: 3.2.10-3ubuntu1
Provide libapache2-mod-python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
 
3
# Generated by GNU Autoconf 2.61.
4
4
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
7
# This configure script is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy, distribute and modify it.
8
9
## --------------------- ##
9
10
## M4sh Initialization.  ##
10
11
## --------------------- ##
11
12
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
 
13
# Be more Bourne compatible
22
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
23
52
 
24
53
# Support unset when possible.
25
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
58
fi
30
59
 
31
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
32
94
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
34
98
PS1='$ '
35
99
PS2='> '
36
100
PS4='+ '
44
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
109
    eval $as_var=C; export $as_var
46
110
  else
47
 
    $as_unset $as_var
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48
112
  fi
49
113
done
50
114
 
51
115
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
118
  as_expr=expr
54
119
else
55
120
  as_expr=false
56
121
fi
57
122
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
124
  as_basename=basename
60
125
else
61
126
  as_basename=false
63
128
 
64
129
 
65
130
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
131
as_me=`$as_basename -- "$0" ||
67
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
133
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
135
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
130
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
223
do
133
224
  IFS=$as_save_IFS
134
225
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
 
226
  case $as_dir in
137
227
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
152
232
done
153
 
;;
154
 
  esac
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
427
 
156
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
162
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
165
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
166
447
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
450
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
451
      s/-\n.*//
173
452
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
 
453
  chmod +x "$as_me.lineno" ||
175
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
455
   { (exit 1); exit 1; }; }
177
456
 
178
457
  # Don't try to exec as it changes $[0], causing all sort of problems
179
458
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
182
461
  # Exit status is that of the last command.
183
462
  exit
184
463
}
185
464
 
186
465
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
192
481
esac
193
482
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
485
  as_expr=expr
196
486
else
197
487
  as_expr=false
198
488
fi
199
489
 
200
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
201
497
echo >conf$$.file
202
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207
505
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
506
elif ln conf$$.file conf$$ 2>/dev/null; then
212
507
  as_ln_s=ln
213
508
else
214
509
  as_ln_s='cp -p'
215
510
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
217
513
 
218
514
if mkdir -p . 2>/dev/null; then
219
515
  as_mkdir_p=:
222
518
  as_mkdir_p=false
223
519
fi
224
520
 
225
 
as_executable_p="test -f"
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
226
543
 
227
544
# Sed expression to map a string onto a valid CPP name.
228
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
549
 
233
550
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
 
551
 
 
552
exec 7<&0 </dev/null 6>&1
243
553
 
244
554
# Name of the host.
245
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
556
# so uname gets run too.
247
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
558
 
249
 
exec 6>&1
250
 
 
251
559
#
252
560
# Initializations.
253
561
#
254
562
ac_default_prefix=/usr/local
 
563
ac_clean_files=
255
564
ac_config_libobj_dir=.
 
565
LIBOBJS=
256
566
cross_compiling=no
257
567
subdirs=
258
568
MFLAGS=
259
569
MAKEFLAGS=
260
570
SHELL=${CONFIG_SHELL-/bin/sh}
261
571
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
 
 
267
572
# Identity of this package.
268
573
PACKAGE_NAME=
269
574
PACKAGE_TARNAME=
272
577
PACKAGE_BUGREPORT=
273
578
 
274
579
ac_unique_file="src/mod_python.c"
275
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE APXS DSO ALL LIBEXECDIR SOLARIS_HACKS HTTPD AP_SRC AP_SRC_OWN AP_SRC_GRP STATIC PYTHON_BIN PY_STD_LIB INCLUDES TEST_SERVER_ROOT MOD_PYTHON_SO MP_VERSION PYTHON_SRC MUTEX_DIR MAX_LOCKS LEX LIBOBJS LTLIBOBJS'
 
580
ac_subst_vars='SHELL
 
581
PATH_SEPARATOR
 
582
PACKAGE_NAME
 
583
PACKAGE_TARNAME
 
584
PACKAGE_VERSION
 
585
PACKAGE_STRING
 
586
PACKAGE_BUGREPORT
 
587
exec_prefix
 
588
prefix
 
589
program_transform_name
 
590
bindir
 
591
sbindir
 
592
libexecdir
 
593
datarootdir
 
594
datadir
 
595
sysconfdir
 
596
sharedstatedir
 
597
localstatedir
 
598
includedir
 
599
oldincludedir
 
600
docdir
 
601
infodir
 
602
htmldir
 
603
dvidir
 
604
pdfdir
 
605
psdir
 
606
libdir
 
607
localedir
 
608
mandir
 
609
DEFS
 
610
ECHO_C
 
611
ECHO_N
 
612
ECHO_T
 
613
LIBS
 
614
build_alias
 
615
host_alias
 
616
target_alias
 
617
CC
 
618
CFLAGS
 
619
LDFLAGS
 
620
CPPFLAGS
 
621
ac_ct_CC
 
622
EXEEXT
 
623
OBJEXT
 
624
AR
 
625
INSTALL_PROGRAM
 
626
INSTALL_SCRIPT
 
627
INSTALL_DATA
 
628
SET_MAKE
 
629
APXS
 
630
DSO
 
631
ALL
 
632
LIBEXECDIR
 
633
SOLARIS_HACKS
 
634
HTTPD
 
635
AP_SRC
 
636
AP_SRC_OWN
 
637
AP_SRC_GRP
 
638
STATIC
 
639
PYTHON_BIN
 
640
PY_STD_LIB
 
641
INCLUDES
 
642
TEST_SERVER_ROOT
 
643
MOD_PYTHON_SO
 
644
MP_VERSION
 
645
PYTHON_SRC
 
646
MUTEX_DIR
 
647
MAX_LOCKS
 
648
LEX
 
649
LIBOBJS
 
650
LTLIBOBJS'
276
651
ac_subst_files=''
 
652
      ac_precious_vars='build_alias
 
653
host_alias
 
654
target_alias
 
655
CC
 
656
CFLAGS
 
657
LDFLAGS
 
658
LIBS
 
659
CPPFLAGS'
 
660
 
277
661
 
278
662
# Initialize some variables set by options.
279
663
ac_init_help=
300
684
# and all the variables that are supposed to be based on exec_prefix
301
685
# by default will actually change.
302
686
# Use braces instead of parens because sh, perl, etc. also accept them.
 
687
# (The list follows the same order as the GNU Coding Standards.)
303
688
bindir='${exec_prefix}/bin'
304
689
sbindir='${exec_prefix}/sbin'
305
690
libexecdir='${exec_prefix}/libexec'
306
 
datadir='${prefix}/share'
 
691
datarootdir='${prefix}/share'
 
692
datadir='${datarootdir}'
307
693
sysconfdir='${prefix}/etc'
308
694
sharedstatedir='${prefix}/com'
309
695
localstatedir='${prefix}/var'
310
 
libdir='${exec_prefix}/lib'
311
696
includedir='${prefix}/include'
312
697
oldincludedir='/usr/include'
313
 
infodir='${prefix}/info'
314
 
mandir='${prefix}/man'
 
698
docdir='${datarootdir}/doc/${PACKAGE}'
 
699
infodir='${datarootdir}/info'
 
700
htmldir='${docdir}'
 
701
dvidir='${docdir}'
 
702
pdfdir='${docdir}'
 
703
psdir='${docdir}'
 
704
libdir='${exec_prefix}/lib'
 
705
localedir='${datarootdir}/locale'
 
706
mandir='${datarootdir}/man'
315
707
 
316
708
ac_prev=
 
709
ac_dashdash=
317
710
for ac_option
318
711
do
319
712
  # If the previous option needs an argument, assign it.
320
713
  if test -n "$ac_prev"; then
321
 
    eval "$ac_prev=\$ac_option"
 
714
    eval $ac_prev=\$ac_option
322
715
    ac_prev=
323
716
    continue
324
717
  fi
325
718
 
326
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
719
  case $ac_option in
 
720
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
721
  *)    ac_optarg=yes ;;
 
722
  esac
327
723
 
328
724
  # Accept the important Cygnus configure options, so we can diagnose typos.
329
725
 
330
 
  case $ac_option in
 
726
  case $ac_dashdash$ac_option in
 
727
  --)
 
728
    ac_dashdash=yes ;;
331
729
 
332
730
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333
731
    ac_prev=bindir ;;
349
747
  --config-cache | -C)
350
748
    cache_file=config.cache ;;
351
749
 
352
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
750
  -datadir | --datadir | --datadi | --datad)
353
751
    ac_prev=datadir ;;
354
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355
 
  | --da=*)
 
752
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
356
753
    datadir=$ac_optarg ;;
357
754
 
 
755
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
756
  | --dataroo | --dataro | --datar)
 
757
    ac_prev=datarootdir ;;
 
758
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
759
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
760
    datarootdir=$ac_optarg ;;
 
761
 
358
762
  -disable-* | --disable-*)
359
763
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
764
    # Reject names that are not valid shell variable names.
361
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
765
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
362
766
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
767
   { (exit 1); exit 1; }; }
364
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365
 
    eval "enable_$ac_feature=no" ;;
 
768
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
769
    eval enable_$ac_feature=no ;;
 
770
 
 
771
  -docdir | --docdir | --docdi | --doc | --do)
 
772
    ac_prev=docdir ;;
 
773
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
774
    docdir=$ac_optarg ;;
 
775
 
 
776
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
777
    ac_prev=dvidir ;;
 
778
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
779
    dvidir=$ac_optarg ;;
366
780
 
367
781
  -enable-* | --enable-*)
368
782
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
783
    # Reject names that are not valid shell variable names.
370
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
784
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
371
785
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
786
   { (exit 1); exit 1; }; }
373
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374
 
    case $ac_option in
375
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376
 
      *) ac_optarg=yes ;;
377
 
    esac
378
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
787
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
788
    eval enable_$ac_feature=\$ac_optarg ;;
379
789
 
380
790
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
791
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
402
812
  -host=* | --host=* | --hos=* | --ho=*)
403
813
    host_alias=$ac_optarg ;;
404
814
 
 
815
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
816
    ac_prev=htmldir ;;
 
817
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
818
  | --ht=*)
 
819
    htmldir=$ac_optarg ;;
 
820
 
405
821
  -includedir | --includedir | --includedi | --included | --include \
406
822
  | --includ | --inclu | --incl | --inc)
407
823
    ac_prev=includedir ;;
426
842
  | --libexe=* | --libex=* | --libe=*)
427
843
    libexecdir=$ac_optarg ;;
428
844
 
 
845
  -localedir | --localedir | --localedi | --localed | --locale)
 
846
    ac_prev=localedir ;;
 
847
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
848
    localedir=$ac_optarg ;;
 
849
 
429
850
  -localstatedir | --localstatedir | --localstatedi | --localstated \
430
 
  | --localstate | --localstat | --localsta | --localst \
431
 
  | --locals | --local | --loca | --loc | --lo)
 
851
  | --localstate | --localstat | --localsta | --localst | --locals)
432
852
    ac_prev=localstatedir ;;
433
853
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
854
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
436
855
    localstatedir=$ac_optarg ;;
437
856
 
438
857
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497
916
  | --progr-tra=* | --program-tr=* | --program-t=*)
498
917
    program_transform_name=$ac_optarg ;;
499
918
 
 
919
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
920
    ac_prev=pdfdir ;;
 
921
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
922
    pdfdir=$ac_optarg ;;
 
923
 
 
924
  -psdir | --psdir | --psdi | --psd | --ps)
 
925
    ac_prev=psdir ;;
 
926
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
927
    psdir=$ac_optarg ;;
 
928
 
500
929
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
930
  | -silent | --silent | --silen | --sile | --sil)
502
931
    silent=yes ;;
549
978
  -with-* | --with-*)
550
979
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
980
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
981
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
553
982
      { echo "$as_me: error: invalid package name: $ac_package" >&2
554
983
   { (exit 1); exit 1; }; }
555
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
556
 
    case $ac_option in
557
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558
 
      *) ac_optarg=yes ;;
559
 
    esac
560
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
984
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
985
    eval with_$ac_package=\$ac_optarg ;;
561
986
 
562
987
  -without-* | --without-*)
563
988
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
989
    # Reject names that are not valid shell variable names.
565
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
990
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
566
991
      { echo "$as_me: error: invalid package name: $ac_package" >&2
567
992
   { (exit 1); exit 1; }; }
568
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
569
 
    eval "with_$ac_package=no" ;;
 
993
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
994
    eval with_$ac_package=no ;;
570
995
 
571
996
  --x)
572
997
    # Obsolete; use --with-x.
597
1022
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
1023
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
1024
   { (exit 1); exit 1; }; }
600
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
 
    eval "$ac_envvar='$ac_optarg'"
 
1025
    eval $ac_envvar=\$ac_optarg
602
1026
    export $ac_envvar ;;
603
1027
 
604
1028
  *)
618
1042
   { (exit 1); exit 1; }; }
619
1043
fi
620
1044
 
621
 
# Be sure to have absolute paths.
622
 
for ac_var in exec_prefix prefix
623
 
do
624
 
  eval ac_val=$`echo $ac_var`
625
 
  case $ac_val in
626
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628
 
   { (exit 1); exit 1; }; };;
629
 
  esac
630
 
done
631
 
 
632
 
# Be sure to have absolute paths.
633
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634
 
              localstatedir libdir includedir oldincludedir infodir mandir
635
 
do
636
 
  eval ac_val=$`echo $ac_var`
637
 
  case $ac_val in
638
 
    [\\/$]* | ?:[\\/]* ) ;;
639
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640
 
   { (exit 1); exit 1; }; };;
641
 
  esac
 
1045
# Be sure to have absolute directory names.
 
1046
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1047
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1048
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1049
                libdir localedir mandir
 
1050
do
 
1051
  eval ac_val=\$$ac_var
 
1052
  case $ac_val in
 
1053
    [\\/$]* | ?:[\\/]* )  continue;;
 
1054
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1055
  esac
 
1056
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1057
   { (exit 1); exit 1; }; }
642
1058
done
643
1059
 
644
1060
# There might be people who depend on the old broken behavior: `$host'
665
1081
test "$silent" = yes && exec 6>/dev/null
666
1082
 
667
1083
 
 
1084
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1085
ac_ls_di=`ls -di .` &&
 
1086
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1087
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1088
   { (exit 1); exit 1; }; }
 
1089
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1090
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1091
   { (exit 1); exit 1; }; }
 
1092
 
 
1093
 
668
1094
# Find the source files, if location was not specified.
669
1095
if test -z "$srcdir"; then
670
1096
  ac_srcdir_defaulted=yes
671
 
  # Try the directory containing this script, then its parent.
672
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1097
  # Try the directory containing this script, then the parent directory.
 
1098
  ac_confdir=`$as_dirname -- "$0" ||
673
1099
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
1100
         X"$0" : 'X\(//\)[^/]' \| \
675
1101
         X"$0" : 'X\(//\)$' \| \
676
 
         X"$0" : 'X\(/\)' \| \
677
 
         .     : '\(.\)' 2>/dev/null ||
 
1102
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
678
1103
echo X"$0" |
679
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681
 
          /^X\(\/\/\)$/{ s//\1/; q; }
682
 
          /^X\(\/\).*/{ s//\1/; q; }
683
 
          s/.*/./; q'`
 
1104
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1105
            s//\1/
 
1106
            q
 
1107
          }
 
1108
          /^X\(\/\/\)[^/].*/{
 
1109
            s//\1/
 
1110
            q
 
1111
          }
 
1112
          /^X\(\/\/\)$/{
 
1113
            s//\1/
 
1114
            q
 
1115
          }
 
1116
          /^X\(\/\).*/{
 
1117
            s//\1/
 
1118
            q
 
1119
          }
 
1120
          s/.*/./; q'`
684
1121
  srcdir=$ac_confdir
685
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1122
  if test ! -r "$srcdir/$ac_unique_file"; then
686
1123
    srcdir=..
687
1124
  fi
688
1125
else
689
1126
  ac_srcdir_defaulted=no
690
1127
fi
691
 
if test ! -r $srcdir/$ac_unique_file; then
692
 
  if test "$ac_srcdir_defaulted" = yes; then
693
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694
 
   { (exit 1); exit 1; }; }
695
 
  else
696
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697
 
   { (exit 1); exit 1; }; }
698
 
  fi
699
 
fi
700
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702
 
   { (exit 1); exit 1; }; }
703
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704
 
ac_env_build_alias_set=${build_alias+set}
705
 
ac_env_build_alias_value=$build_alias
706
 
ac_cv_env_build_alias_set=${build_alias+set}
707
 
ac_cv_env_build_alias_value=$build_alias
708
 
ac_env_host_alias_set=${host_alias+set}
709
 
ac_env_host_alias_value=$host_alias
710
 
ac_cv_env_host_alias_set=${host_alias+set}
711
 
ac_cv_env_host_alias_value=$host_alias
712
 
ac_env_target_alias_set=${target_alias+set}
713
 
ac_env_target_alias_value=$target_alias
714
 
ac_cv_env_target_alias_set=${target_alias+set}
715
 
ac_cv_env_target_alias_value=$target_alias
716
 
ac_env_CC_set=${CC+set}
717
 
ac_env_CC_value=$CC
718
 
ac_cv_env_CC_set=${CC+set}
719
 
ac_cv_env_CC_value=$CC
720
 
ac_env_CFLAGS_set=${CFLAGS+set}
721
 
ac_env_CFLAGS_value=$CFLAGS
722
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
723
 
ac_cv_env_CFLAGS_value=$CFLAGS
724
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
 
ac_env_LDFLAGS_value=$LDFLAGS
726
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
 
ac_env_CPPFLAGS_value=$CPPFLAGS
730
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
1128
if test ! -r "$srcdir/$ac_unique_file"; then
 
1129
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1130
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1131
   { (exit 1); exit 1; }; }
 
1132
fi
 
1133
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1134
ac_abs_confdir=`(
 
1135
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1136
   { (exit 1); exit 1; }; }
 
1137
        pwd)`
 
1138
# When building in place, set srcdir=.
 
1139
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1140
  srcdir=.
 
1141
fi
 
1142
# Remove unnecessary trailing slashes from srcdir.
 
1143
# Double slashes in file names in object file debugging info
 
1144
# mess up M-x gdb in Emacs.
 
1145
case $srcdir in
 
1146
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1147
esac
 
1148
for ac_var in $ac_precious_vars; do
 
1149
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1150
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1151
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1152
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1153
done
732
1154
 
733
1155
#
734
1156
# Report the --help message.
757
1179
  -n, --no-create         do not create output files
758
1180
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
759
1181
 
760
 
_ACEOF
761
 
 
762
 
  cat <<_ACEOF
763
1182
Installation directories:
764
1183
  --prefix=PREFIX         install architecture-independent files in PREFIX
765
1184
                          [$ac_default_prefix]
777
1196
  --bindir=DIR           user executables [EPREFIX/bin]
778
1197
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
779
1198
  --libexecdir=DIR       program executables [EPREFIX/libexec]
780
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
781
1199
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
782
1200
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
783
1201
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
784
1202
  --libdir=DIR           object code libraries [EPREFIX/lib]
785
1203
  --includedir=DIR       C header files [PREFIX/include]
786
1204
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
787
 
  --infodir=DIR          info documentation [PREFIX/info]
788
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1205
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1206
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1207
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1208
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1209
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1210
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1211
  --htmldir=DIR          html documentation [DOCDIR]
 
1212
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1213
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1214
  --psdir=DIR            ps documentation [DOCDIR]
789
1215
_ACEOF
790
1216
 
791
1217
  cat <<\_ACEOF
816
1242
  CFLAGS      C compiler flags
817
1243
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
818
1244
              nonstandard directory <lib dir>
819
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
820
 
              headers in a nonstandard directory <include dir>
 
1245
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1246
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1247
              you have headers in a nonstandard directory <include dir>
821
1248
 
822
1249
Use these variables to override the choices made by `configure' or to help
823
1250
it to find libraries and programs with nonstandard names/locations.
824
1251
 
825
1252
_ACEOF
 
1253
ac_status=$?
826
1254
fi
827
1255
 
828
1256
if test "$ac_init_help" = "recursive"; then
829
1257
  # If there are subdirs, report their specific --help.
830
 
  ac_popdir=`pwd`
831
1258
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
832
 
    test -d $ac_dir || continue
 
1259
    test -d "$ac_dir" || continue
833
1260
    ac_builddir=.
834
1261
 
835
 
if test "$ac_dir" != .; then
 
1262
case "$ac_dir" in
 
1263
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1264
*)
836
1265
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
837
 
  # A "../" for each directory in $ac_dir_suffix.
838
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
839
 
else
840
 
  ac_dir_suffix= ac_top_builddir=
841
 
fi
 
1266
  # A ".." for each directory in $ac_dir_suffix.
 
1267
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1268
  case $ac_top_builddir_sub in
 
1269
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1270
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1271
  esac ;;
 
1272
esac
 
1273
ac_abs_top_builddir=$ac_pwd
 
1274
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1275
# for backward compatibility:
 
1276
ac_top_builddir=$ac_top_build_prefix
842
1277
 
843
1278
case $srcdir in
844
 
  .)  # No --srcdir option.  We are building in place.
 
1279
  .)  # We are building in place.
845
1280
    ac_srcdir=.
846
 
    if test -z "$ac_top_builddir"; then
847
 
       ac_top_srcdir=.
848
 
    else
849
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
850
 
    fi ;;
851
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1281
    ac_top_srcdir=$ac_top_builddir_sub
 
1282
    ac_abs_top_srcdir=$ac_pwd ;;
 
1283
  [\\/]* | ?:[\\/]* )  # Absolute name.
852
1284
    ac_srcdir=$srcdir$ac_dir_suffix;
853
 
    ac_top_srcdir=$srcdir ;;
854
 
  *) # Relative path.
855
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
856
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
857
 
esac
858
 
 
859
 
# Do not use `cd foo && pwd` to compute absolute paths, because
860
 
# the directories may not exist.
861
 
case `pwd` in
862
 
.) ac_abs_builddir="$ac_dir";;
863
 
*)
864
 
  case "$ac_dir" in
865
 
  .) ac_abs_builddir=`pwd`;;
866
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
867
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
868
 
  esac;;
869
 
esac
870
 
case $ac_abs_builddir in
871
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
872
 
*)
873
 
  case ${ac_top_builddir}. in
874
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
875
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
876
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
877
 
  esac;;
878
 
esac
879
 
case $ac_abs_builddir in
880
 
.) ac_abs_srcdir=$ac_srcdir;;
881
 
*)
882
 
  case $ac_srcdir in
883
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
884
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
885
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
886
 
  esac;;
887
 
esac
888
 
case $ac_abs_builddir in
889
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
890
 
*)
891
 
  case $ac_top_srcdir in
892
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
893
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
894
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
895
 
  esac;;
896
 
esac
897
 
 
898
 
    cd $ac_dir
899
 
    # Check for guested configure; otherwise get Cygnus style configure.
900
 
    if test -f $ac_srcdir/configure.gnu; then
901
 
      echo
902
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
903
 
    elif test -f $ac_srcdir/configure; then
904
 
      echo
905
 
      $SHELL $ac_srcdir/configure  --help=recursive
906
 
    elif test -f $ac_srcdir/configure.ac ||
907
 
           test -f $ac_srcdir/configure.in; then
908
 
      echo
909
 
      $ac_configure --help
 
1285
    ac_top_srcdir=$srcdir
 
1286
    ac_abs_top_srcdir=$srcdir ;;
 
1287
  *) # Relative name.
 
1288
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1289
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1290
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1291
esac
 
1292
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1293
 
 
1294
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1295
    # Check for guested configure.
 
1296
    if test -f "$ac_srcdir/configure.gnu"; then
 
1297
      echo &&
 
1298
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1299
    elif test -f "$ac_srcdir/configure"; then
 
1300
      echo &&
 
1301
      $SHELL "$ac_srcdir/configure" --help=recursive
910
1302
    else
911
1303
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
912
 
    fi
913
 
    cd "$ac_popdir"
 
1304
    fi || ac_status=$?
 
1305
    cd "$ac_pwd" || { ac_status=$?; break; }
914
1306
  done
915
1307
fi
916
1308
 
917
 
test -n "$ac_init_help" && exit 0
 
1309
test -n "$ac_init_help" && exit $ac_status
918
1310
if $ac_init_version; then
919
1311
  cat <<\_ACEOF
 
1312
configure
 
1313
generated by GNU Autoconf 2.61
920
1314
 
921
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1315
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1316
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
922
1317
This configure script is free software; the Free Software Foundation
923
1318
gives unlimited permission to copy, distribute and modify it.
924
1319
_ACEOF
925
 
  exit 0
 
1320
  exit
926
1321
fi
927
 
exec 5>config.log
928
 
cat >&5 <<_ACEOF
 
1322
cat >config.log <<_ACEOF
929
1323
This file contains any messages produced by compilers while
930
1324
running configure, to aid debugging if configure makes a mistake.
931
1325
 
932
1326
It was created by $as_me, which was
933
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1327
generated by GNU Autoconf 2.61.  Invocation command line was
934
1328
 
935
1329
  $ $0 $@
936
1330
 
937
1331
_ACEOF
 
1332
exec 5>>config.log
938
1333
{
939
1334
cat <<_ASUNAME
940
1335
## --------- ##
953
1348
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
954
1349
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
955
1350
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1351
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
957
1352
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
958
1353
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
959
1354
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
967
1362
  test -z "$as_dir" && as_dir=.
968
1363
  echo "PATH: $as_dir"
969
1364
done
 
1365
IFS=$as_save_IFS
970
1366
 
971
1367
} >&5
972
1368
 
988
1384
ac_configure_args=
989
1385
ac_configure_args0=
990
1386
ac_configure_args1=
991
 
ac_sep=
992
1387
ac_must_keep_next=false
993
1388
for ac_pass in 1 2
994
1389
do
999
1394
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000
1395
    | -silent | --silent | --silen | --sile | --sil)
1001
1396
      continue ;;
1002
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1397
    *\'*)
1003
1398
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1004
1399
    esac
1005
1400
    case $ac_pass in
1021
1416
          -* ) ac_must_keep_next=true ;;
1022
1417
        esac
1023
1418
      fi
1024
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1025
 
      # Get rid of the leading space.
1026
 
      ac_sep=" "
 
1419
      ac_configure_args="$ac_configure_args '$ac_arg'"
1027
1420
      ;;
1028
1421
    esac
1029
1422
  done
1034
1427
# When interrupted or exit'd, cleanup temporary files, and complete
1035
1428
# config.log.  We remove comments because anyway the quotes in there
1036
1429
# would cause problems or look ugly.
1037
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1038
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1430
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1431
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1039
1432
trap 'exit_status=$?
1040
1433
  # Save into config.log some information that might help in debugging.
1041
1434
  {
1048
1441
_ASBOX
1049
1442
    echo
1050
1443
    # The following way of writing the cache mishandles newlines in values,
1051
 
{
 
1444
(
 
1445
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1446
    eval ac_val=\$$ac_var
 
1447
    case $ac_val in #(
 
1448
    *${as_nl}*)
 
1449
      case $ac_var in #(
 
1450
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1451
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1452
      esac
 
1453
      case $ac_var in #(
 
1454
      _ | IFS | as_nl) ;; #(
 
1455
      *) $as_unset $ac_var ;;
 
1456
      esac ;;
 
1457
    esac
 
1458
  done
1052
1459
  (set) 2>&1 |
1053
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1054
 
    *ac_space=\ *)
 
1460
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1461
    *${as_nl}ac_space=\ *)
1055
1462
      sed -n \
1056
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1057
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058
 
      ;;
 
1463
        "s/'\''/'\''\\\\'\'''\''/g;
 
1464
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1465
      ;; #(
1059
1466
    *)
1060
 
      sed -n \
1061
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1467
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1062
1468
      ;;
1063
 
    esac;
1064
 
}
 
1469
    esac |
 
1470
    sort
 
1471
)
1065
1472
    echo
1066
1473
 
1067
1474
    cat <<\_ASBOX
1072
1479
    echo
1073
1480
    for ac_var in $ac_subst_vars
1074
1481
    do
1075
 
      eval ac_val=$`echo $ac_var`
1076
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1482
      eval ac_val=\$$ac_var
 
1483
      case $ac_val in
 
1484
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1485
      esac
 
1486
      echo "$ac_var='\''$ac_val'\''"
1077
1487
    done | sort
1078
1488
    echo
1079
1489
 
1080
1490
    if test -n "$ac_subst_files"; then
1081
1491
      cat <<\_ASBOX
1082
 
## ------------- ##
1083
 
## Output files. ##
1084
 
## ------------- ##
 
1492
## ------------------- ##
 
1493
## File substitutions. ##
 
1494
## ------------------- ##
1085
1495
_ASBOX
1086
1496
      echo
1087
1497
      for ac_var in $ac_subst_files
1088
1498
      do
1089
 
        eval ac_val=$`echo $ac_var`
1090
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1499
        eval ac_val=\$$ac_var
 
1500
        case $ac_val in
 
1501
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1502
        esac
 
1503
        echo "$ac_var='\''$ac_val'\''"
1091
1504
      done | sort
1092
1505
      echo
1093
1506
    fi
1099
1512
## ----------- ##
1100
1513
_ASBOX
1101
1514
      echo
1102
 
      sed "/^$/d" confdefs.h | sort
 
1515
      cat confdefs.h
1103
1516
      echo
1104
1517
    fi
1105
1518
    test "$ac_signal" != 0 &&
1106
1519
      echo "$as_me: caught signal $ac_signal"
1107
1520
    echo "$as_me: exit $exit_status"
1108
1521
  } >&5
1109
 
  rm -f core *.core &&
1110
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1522
  rm -f core *.core core.conftest.* &&
 
1523
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1111
1524
    exit $exit_status
1112
 
     ' 0
 
1525
' 0
1113
1526
for ac_signal in 1 2 13 15; do
1114
1527
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115
1528
done
1116
1529
ac_signal=0
1117
1530
 
1118
1531
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1119
 
rm -rf conftest* confdefs.h
1120
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1121
 
echo >confdefs.h
 
1532
rm -f -r conftest* confdefs.h
1122
1533
 
1123
1534
# Predefined preprocessor variables.
1124
1535
 
1149
1560
 
1150
1561
# Let the site file select an alternate cache file if it wants to.
1151
1562
# Prefer explicitly selected file to automatically selected ones.
1152
 
if test -z "$CONFIG_SITE"; then
1153
 
  if test "x$prefix" != xNONE; then
1154
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155
 
  else
1156
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1157
 
  fi
 
1563
if test -n "$CONFIG_SITE"; then
 
1564
  set x "$CONFIG_SITE"
 
1565
elif test "x$prefix" != xNONE; then
 
1566
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1567
else
 
1568
  set x "$ac_default_prefix/share/config.site" \
 
1569
        "$ac_default_prefix/etc/config.site"
1158
1570
fi
1159
 
for ac_site_file in $CONFIG_SITE; do
 
1571
shift
 
1572
for ac_site_file
 
1573
do
1160
1574
  if test -r "$ac_site_file"; then
1161
1575
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162
1576
echo "$as_me: loading site script $ac_site_file" >&6;}
1172
1586
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173
1587
echo "$as_me: loading cache $cache_file" >&6;}
1174
1588
    case $cache_file in
1175
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1176
 
      *)                      . ./$cache_file;;
 
1589
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1590
      *)                      . "./$cache_file";;
1177
1591
    esac
1178
1592
  fi
1179
1593
else
1185
1599
# Check that the precious variables saved in the cache have kept the same
1186
1600
# value.
1187
1601
ac_cache_corrupted=false
1188
 
for ac_var in `(set) 2>&1 |
1189
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1602
for ac_var in $ac_precious_vars; do
1190
1603
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191
1604
  eval ac_new_set=\$ac_env_${ac_var}_set
1192
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1605
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1606
  eval ac_new_val=\$ac_env_${ac_var}_value
1194
1607
  case $ac_old_set,$ac_new_set in
1195
1608
    set,)
1196
1609
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1215
1628
  # Pass precious variables to config.status.
1216
1629
  if test "$ac_new_set" = set; then
1217
1630
    case $ac_new_val in
1218
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1631
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220
1632
    *) ac_arg=$ac_var=$ac_new_val ;;
1221
1633
    esac
1222
1634
    case " $ac_configure_args " in
1233
1645
   { (exit 1); exit 1; }; }
1234
1646
fi
1235
1647
 
 
1648
 
 
1649
 
 
1650
 
 
1651
 
 
1652
 
 
1653
 
 
1654
 
 
1655
 
 
1656
 
 
1657
 
 
1658
 
 
1659
 
 
1660
 
 
1661
 
 
1662
 
 
1663
 
1236
1664
ac_ext=c
1237
1665
ac_cpp='$CPP $CPPFLAGS'
1238
1666
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1241
1669
 
1242
1670
 
1243
1671
 
1244
 
 
1245
 
 
1246
 
 
1247
 
 
1248
 
 
1249
 
 
1250
 
 
1251
 
 
1252
 
 
1253
 
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
1672
# includes
1262
1673
INCLUDES="-I`pwd`/src/include"
1263
1674
 
1269
1680
if test -n "$ac_tool_prefix"; then
1270
1681
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1271
1682
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1272
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1273
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1683
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1274
1685
if test "${ac_cv_prog_CC+set}" = set; then
1275
1686
  echo $ECHO_N "(cached) $ECHO_C" >&6
1276
1687
else
1283
1694
  IFS=$as_save_IFS
1284
1695
  test -z "$as_dir" && as_dir=.
1285
1696
  for ac_exec_ext in '' $ac_executable_extensions; do
1286
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1287
1698
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1288
1699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1289
1700
    break 2
1290
1701
  fi
1291
1702
done
1292
1703
done
 
1704
IFS=$as_save_IFS
1293
1705
 
1294
1706
fi
1295
1707
fi
1296
1708
CC=$ac_cv_prog_CC
1297
1709
if test -n "$CC"; then
1298
 
  echo "$as_me:$LINENO: result: $CC" >&5
1299
 
echo "${ECHO_T}$CC" >&6
 
1710
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1711
echo "${ECHO_T}$CC" >&6; }
1300
1712
else
1301
 
  echo "$as_me:$LINENO: result: no" >&5
1302
 
echo "${ECHO_T}no" >&6
 
1713
  { echo "$as_me:$LINENO: result: no" >&5
 
1714
echo "${ECHO_T}no" >&6; }
1303
1715
fi
 
1716
 
1304
1717
 
1305
1718
fi
1306
1719
if test -z "$ac_cv_prog_CC"; then
1307
1720
  ac_ct_CC=$CC
1308
1721
  # Extract the first word of "gcc", so it can be a program name with args.
1309
1722
set dummy gcc; ac_word=$2
1310
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1311
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1723
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1724
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1312
1725
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1313
1726
  echo $ECHO_N "(cached) $ECHO_C" >&6
1314
1727
else
1321
1734
  IFS=$as_save_IFS
1322
1735
  test -z "$as_dir" && as_dir=.
1323
1736
  for ac_exec_ext in '' $ac_executable_extensions; do
1324
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1737
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1325
1738
    ac_cv_prog_ac_ct_CC="gcc"
1326
1739
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1327
1740
    break 2
1328
1741
  fi
1329
1742
done
1330
1743
done
 
1744
IFS=$as_save_IFS
1331
1745
 
1332
1746
fi
1333
1747
fi
1334
1748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1335
1749
if test -n "$ac_ct_CC"; then
1336
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1337
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
1750
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1751
echo "${ECHO_T}$ac_ct_CC" >&6; }
1338
1752
else
1339
 
  echo "$as_me:$LINENO: result: no" >&5
1340
 
echo "${ECHO_T}no" >&6
 
1753
  { echo "$as_me:$LINENO: result: no" >&5
 
1754
echo "${ECHO_T}no" >&6; }
1341
1755
fi
1342
1756
 
1343
 
  CC=$ac_ct_CC
 
1757
  if test "x$ac_ct_CC" = x; then
 
1758
    CC=""
 
1759
  else
 
1760
    case $cross_compiling:$ac_tool_warned in
 
1761
yes:)
 
1762
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1763
whose name does not start with the host triplet.  If you think this
 
1764
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1765
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1766
whose name does not start with the host triplet.  If you think this
 
1767
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1768
ac_tool_warned=yes ;;
 
1769
esac
 
1770
    CC=$ac_ct_CC
 
1771
  fi
1344
1772
else
1345
1773
  CC="$ac_cv_prog_CC"
1346
1774
fi
1347
1775
 
1348
1776
if test -z "$CC"; then
1349
 
  if test -n "$ac_tool_prefix"; then
1350
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1777
          if test -n "$ac_tool_prefix"; then
 
1778
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1351
1779
set dummy ${ac_tool_prefix}cc; ac_word=$2
1352
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1353
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1780
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1354
1782
if test "${ac_cv_prog_CC+set}" = set; then
1355
1783
  echo $ECHO_N "(cached) $ECHO_C" >&6
1356
1784
else
1363
1791
  IFS=$as_save_IFS
1364
1792
  test -z "$as_dir" && as_dir=.
1365
1793
  for ac_exec_ext in '' $ac_executable_extensions; do
1366
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1367
1795
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1368
1796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1369
1797
    break 2
1370
1798
  fi
1371
1799
done
1372
1800
done
 
1801
IFS=$as_save_IFS
1373
1802
 
1374
1803
fi
1375
1804
fi
1376
1805
CC=$ac_cv_prog_CC
1377
1806
if test -n "$CC"; then
1378
 
  echo "$as_me:$LINENO: result: $CC" >&5
1379
 
echo "${ECHO_T}$CC" >&6
1380
 
else
1381
 
  echo "$as_me:$LINENO: result: no" >&5
1382
 
echo "${ECHO_T}no" >&6
1383
 
fi
1384
 
 
1385
 
fi
1386
 
if test -z "$ac_cv_prog_CC"; then
1387
 
  ac_ct_CC=$CC
1388
 
  # Extract the first word of "cc", so it can be a program name with args.
1389
 
set dummy cc; ac_word=$2
1390
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1391
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1393
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1394
 
else
1395
 
  if test -n "$ac_ct_CC"; then
1396
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1397
 
else
1398
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399
 
for as_dir in $PATH
1400
 
do
1401
 
  IFS=$as_save_IFS
1402
 
  test -z "$as_dir" && as_dir=.
1403
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1404
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405
 
    ac_cv_prog_ac_ct_CC="cc"
1406
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1407
 
    break 2
 
1807
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1808
echo "${ECHO_T}$CC" >&6; }
 
1809
else
 
1810
  { echo "$as_me:$LINENO: result: no" >&5
 
1811
echo "${ECHO_T}no" >&6; }
 
1812
fi
 
1813
 
 
1814
 
1408
1815
  fi
1409
 
done
1410
 
done
1411
 
 
1412
 
fi
1413
 
fi
1414
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1415
 
if test -n "$ac_ct_CC"; then
1416
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1417
 
echo "${ECHO_T}$ac_ct_CC" >&6
1418
 
else
1419
 
  echo "$as_me:$LINENO: result: no" >&5
1420
 
echo "${ECHO_T}no" >&6
1421
 
fi
1422
 
 
1423
 
  CC=$ac_ct_CC
1424
 
else
1425
 
  CC="$ac_cv_prog_CC"
1426
 
fi
1427
 
 
1428
1816
fi
1429
1817
if test -z "$CC"; then
1430
1818
  # Extract the first word of "cc", so it can be a program name with args.
1431
1819
set dummy cc; ac_word=$2
1432
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1433
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1820
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1434
1822
if test "${ac_cv_prog_CC+set}" = set; then
1435
1823
  echo $ECHO_N "(cached) $ECHO_C" >&6
1436
1824
else
1444
1832
  IFS=$as_save_IFS
1445
1833
  test -z "$as_dir" && as_dir=.
1446
1834
  for ac_exec_ext in '' $ac_executable_extensions; do
1447
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1448
1836
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1449
1837
       ac_prog_rejected=yes
1450
1838
       continue
1455
1843
  fi
1456
1844
done
1457
1845
done
 
1846
IFS=$as_save_IFS
1458
1847
 
1459
1848
if test $ac_prog_rejected = yes; then
1460
1849
  # We found a bogon in the path, so make sure we never use it.
1472
1861
fi
1473
1862
CC=$ac_cv_prog_CC
1474
1863
if test -n "$CC"; then
1475
 
  echo "$as_me:$LINENO: result: $CC" >&5
1476
 
echo "${ECHO_T}$CC" >&6
 
1864
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1865
echo "${ECHO_T}$CC" >&6; }
1477
1866
else
1478
 
  echo "$as_me:$LINENO: result: no" >&5
1479
 
echo "${ECHO_T}no" >&6
 
1867
  { echo "$as_me:$LINENO: result: no" >&5
 
1868
echo "${ECHO_T}no" >&6; }
1480
1869
fi
 
1870
 
1481
1871
 
1482
1872
fi
1483
1873
if test -z "$CC"; then
1484
1874
  if test -n "$ac_tool_prefix"; then
1485
 
  for ac_prog in cl
 
1875
  for ac_prog in cl.exe
1486
1876
  do
1487
1877
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1488
1878
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1489
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1490
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1491
1881
if test "${ac_cv_prog_CC+set}" = set; then
1492
1882
  echo $ECHO_N "(cached) $ECHO_C" >&6
1493
1883
else
1500
1890
  IFS=$as_save_IFS
1501
1891
  test -z "$as_dir" && as_dir=.
1502
1892
  for ac_exec_ext in '' $ac_executable_extensions; do
1503
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1504
1894
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1505
1895
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506
1896
    break 2
1507
1897
  fi
1508
1898
done
1509
1899
done
 
1900
IFS=$as_save_IFS
1510
1901
 
1511
1902
fi
1512
1903
fi
1513
1904
CC=$ac_cv_prog_CC
1514
1905
if test -n "$CC"; then
1515
 
  echo "$as_me:$LINENO: result: $CC" >&5
1516
 
echo "${ECHO_T}$CC" >&6
 
1906
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1907
echo "${ECHO_T}$CC" >&6; }
1517
1908
else
1518
 
  echo "$as_me:$LINENO: result: no" >&5
1519
 
echo "${ECHO_T}no" >&6
 
1909
  { echo "$as_me:$LINENO: result: no" >&5
 
1910
echo "${ECHO_T}no" >&6; }
1520
1911
fi
1521
1912
 
 
1913
 
1522
1914
    test -n "$CC" && break
1523
1915
  done
1524
1916
fi
1525
1917
if test -z "$CC"; then
1526
1918
  ac_ct_CC=$CC
1527
 
  for ac_prog in cl
 
1919
  for ac_prog in cl.exe
1528
1920
do
1529
1921
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1530
1922
set dummy $ac_prog; ac_word=$2
1531
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1532
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1533
1925
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1534
1926
  echo $ECHO_N "(cached) $ECHO_C" >&6
1535
1927
else
1542
1934
  IFS=$as_save_IFS
1543
1935
  test -z "$as_dir" && as_dir=.
1544
1936
  for ac_exec_ext in '' $ac_executable_extensions; do
1545
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1937
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1546
1938
    ac_cv_prog_ac_ct_CC="$ac_prog"
1547
1939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548
1940
    break 2
1549
1941
  fi
1550
1942
done
1551
1943
done
 
1944
IFS=$as_save_IFS
1552
1945
 
1553
1946
fi
1554
1947
fi
1555
1948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1556
1949
if test -n "$ac_ct_CC"; then
1557
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1558
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
1950
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1951
echo "${ECHO_T}$ac_ct_CC" >&6; }
1559
1952
else
1560
 
  echo "$as_me:$LINENO: result: no" >&5
1561
 
echo "${ECHO_T}no" >&6
 
1953
  { echo "$as_me:$LINENO: result: no" >&5
 
1954
echo "${ECHO_T}no" >&6; }
1562
1955
fi
1563
1956
 
 
1957
 
1564
1958
  test -n "$ac_ct_CC" && break
1565
1959
done
1566
1960
 
1567
 
  CC=$ac_ct_CC
 
1961
  if test "x$ac_ct_CC" = x; then
 
1962
    CC=""
 
1963
  else
 
1964
    case $cross_compiling:$ac_tool_warned in
 
1965
yes:)
 
1966
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1967
whose name does not start with the host triplet.  If you think this
 
1968
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1969
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1970
whose name does not start with the host triplet.  If you think this
 
1971
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1972
ac_tool_warned=yes ;;
 
1973
esac
 
1974
    CC=$ac_ct_CC
 
1975
  fi
1568
1976
fi
1569
1977
 
1570
1978
fi
1577
1985
   { (exit 1); exit 1; }; }
1578
1986
 
1579
1987
# Provide some information about the compiler.
1580
 
echo "$as_me:$LINENO:" \
1581
 
     "checking for C compiler version" >&5
 
1988
echo "$as_me:$LINENO: checking for C compiler version" >&5
1582
1989
ac_compiler=`set X $ac_compile; echo $2`
1583
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1584
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1585
 
  ac_status=$?
1586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1587
 
  (exit $ac_status); }
1588
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1589
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1590
 
  ac_status=$?
1591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1592
 
  (exit $ac_status); }
1593
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1594
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1990
{ (ac_try="$ac_compiler --version >&5"
 
1991
case "(($ac_try" in
 
1992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1993
  *) ac_try_echo=$ac_try;;
 
1994
esac
 
1995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
1996
  (eval "$ac_compiler --version >&5") 2>&5
 
1997
  ac_status=$?
 
1998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1999
  (exit $ac_status); }
 
2000
{ (ac_try="$ac_compiler -v >&5"
 
2001
case "(($ac_try" in
 
2002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2003
  *) ac_try_echo=$ac_try;;
 
2004
esac
 
2005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2006
  (eval "$ac_compiler -v >&5") 2>&5
 
2007
  ac_status=$?
 
2008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2009
  (exit $ac_status); }
 
2010
{ (ac_try="$ac_compiler -V >&5"
 
2011
case "(($ac_try" in
 
2012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2013
  *) ac_try_echo=$ac_try;;
 
2014
esac
 
2015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2016
  (eval "$ac_compiler -V >&5") 2>&5
1595
2017
  ac_status=$?
1596
2018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597
2019
  (exit $ac_status); }
1616
2038
# Try to create an executable without -o first, disregard a.out.
1617
2039
# It will help us diagnose broken compilers, and finding out an intuition
1618
2040
# of exeext.
1619
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1620
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2041
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2042
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1621
2043
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1622
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1623
 
  (eval $ac_link_default) 2>&5
 
2044
#
 
2045
# List of possible output files, starting from the most likely.
 
2046
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2047
# only as a last resort.  b.out is created by i960 compilers.
 
2048
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2049
#
 
2050
# The IRIX 6 linker writes into existing files which may not be
 
2051
# executable, retaining their permissions.  Remove them first so a
 
2052
# subsequent execution test works.
 
2053
ac_rmfiles=
 
2054
for ac_file in $ac_files
 
2055
do
 
2056
  case $ac_file in
 
2057
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2058
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2059
  esac
 
2060
done
 
2061
rm -f $ac_rmfiles
 
2062
 
 
2063
if { (ac_try="$ac_link_default"
 
2064
case "(($ac_try" in
 
2065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2066
  *) ac_try_echo=$ac_try;;
 
2067
esac
 
2068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2069
  (eval "$ac_link_default") 2>&5
1624
2070
  ac_status=$?
1625
2071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626
2072
  (exit $ac_status); }; then
1627
 
  # Find the output, starting from the most likely.  This scheme is
1628
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1629
 
# resort.
1630
 
 
1631
 
# Be careful to initialize this variable, since it used to be cached.
1632
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1633
 
ac_cv_exeext=
1634
 
# b.out is created by i960 compilers.
1635
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2073
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2074
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2075
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2076
# so that the user can short-circuit this test for compilers unknown to
 
2077
# Autoconf.
 
2078
for ac_file in $ac_files ''
1636
2079
do
1637
2080
  test -f "$ac_file" || continue
1638
2081
  case $ac_file in
1639
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1640
 
        ;;
1641
 
    conftest.$ac_ext )
1642
 
        # This is the source file.
 
2082
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1643
2083
        ;;
1644
2084
    [ab].out )
1645
2085
        # We found the default executable, but exeext='' is most
1646
2086
        # certainly right.
1647
2087
        break;;
1648
2088
    *.* )
1649
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1650
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1651
 
        # but it would be cool to find out if it's true.  Does anybody
1652
 
        # maintain Libtool? --akim.
1653
 
        export ac_cv_exeext
 
2089
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2090
        then :; else
 
2091
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2092
        fi
 
2093
        # We set ac_cv_exeext here because the later test for it is not
 
2094
        # safe: cross compilers may not add the suffix if given an `-o'
 
2095
        # argument, so we may need to know it at that point already.
 
2096
        # Even if this section looks crufty: it has the advantage of
 
2097
        # actually working.
1654
2098
        break;;
1655
2099
    * )
1656
2100
        break;;
1657
2101
  esac
1658
2102
done
 
2103
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2104
 
1659
2105
else
 
2106
  ac_file=''
 
2107
fi
 
2108
 
 
2109
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2110
echo "${ECHO_T}$ac_file" >&6; }
 
2111
if test -z "$ac_file"; then
1660
2112
  echo "$as_me: failed program was:" >&5
1661
2113
sed 's/^/| /' conftest.$ac_ext >&5
1662
2114
 
1668
2120
fi
1669
2121
 
1670
2122
ac_exeext=$ac_cv_exeext
1671
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1672
 
echo "${ECHO_T}$ac_file" >&6
1673
2123
 
1674
 
# Check the compiler produces executables we can run.  If not, either
 
2124
# Check that the compiler produces executables we can run.  If not, either
1675
2125
# the compiler is broken, or we cross compile.
1676
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1677
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2126
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2127
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1678
2128
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1679
2129
# If not cross compiling, check that we can run a simple program.
1680
2130
if test "$cross_compiling" != yes; then
1681
2131
  if { ac_try='./$ac_file'
1682
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1683
 
  (eval $ac_try) 2>&5
 
2132
  { (case "(($ac_try" in
 
2133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2134
  *) ac_try_echo=$ac_try;;
 
2135
esac
 
2136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2137
  (eval "$ac_try") 2>&5
1684
2138
  ac_status=$?
1685
2139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686
2140
  (exit $ac_status); }; }; then
1699
2153
    fi
1700
2154
  fi
1701
2155
fi
1702
 
echo "$as_me:$LINENO: result: yes" >&5
1703
 
echo "${ECHO_T}yes" >&6
 
2156
{ echo "$as_me:$LINENO: result: yes" >&5
 
2157
echo "${ECHO_T}yes" >&6; }
1704
2158
 
1705
2159
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1706
2160
ac_clean_files=$ac_clean_files_save
1707
 
# Check the compiler produces executables we can run.  If not, either
 
2161
# Check that the compiler produces executables we can run.  If not, either
1708
2162
# the compiler is broken, or we cross compile.
1709
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1710
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1711
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1712
 
echo "${ECHO_T}$cross_compiling" >&6
 
2163
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2164
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2165
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2166
echo "${ECHO_T}$cross_compiling" >&6; }
1713
2167
 
1714
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1715
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1716
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1717
 
  (eval $ac_link) 2>&5
 
2168
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2169
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2170
if { (ac_try="$ac_link"
 
2171
case "(($ac_try" in
 
2172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2173
  *) ac_try_echo=$ac_try;;
 
2174
esac
 
2175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2176
  (eval "$ac_link") 2>&5
1718
2177
  ac_status=$?
1719
2178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720
2179
  (exit $ac_status); }; then
1725
2184
for ac_file in conftest.exe conftest conftest.*; do
1726
2185
  test -f "$ac_file" || continue
1727
2186
  case $ac_file in
1728
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2187
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1729
2188
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1730
 
          export ac_cv_exeext
1731
2189
          break;;
1732
2190
    * ) break;;
1733
2191
  esac
1741
2199
fi
1742
2200
 
1743
2201
rm -f conftest$ac_cv_exeext
1744
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1745
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2202
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2203
echo "${ECHO_T}$ac_cv_exeext" >&6; }
1746
2204
 
1747
2205
rm -f conftest.$ac_ext
1748
2206
EXEEXT=$ac_cv_exeext
1749
2207
ac_exeext=$EXEEXT
1750
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1751
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2208
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2209
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1752
2210
if test "${ac_cv_objext+set}" = set; then
1753
2211
  echo $ECHO_N "(cached) $ECHO_C" >&6
1754
2212
else
1768
2226
}
1769
2227
_ACEOF
1770
2228
rm -f conftest.o conftest.obj
1771
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1772
 
  (eval $ac_compile) 2>&5
 
2229
if { (ac_try="$ac_compile"
 
2230
case "(($ac_try" in
 
2231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2232
  *) ac_try_echo=$ac_try;;
 
2233
esac
 
2234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2235
  (eval "$ac_compile") 2>&5
1773
2236
  ac_status=$?
1774
2237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775
2238
  (exit $ac_status); }; then
1776
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2239
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2240
  test -f "$ac_file" || continue;
1777
2241
  case $ac_file in
1778
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2242
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1779
2243
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1780
2244
       break;;
1781
2245
  esac
1793
2257
 
1794
2258
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1795
2259
fi
1796
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1797
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
2260
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2261
echo "${ECHO_T}$ac_cv_objext" >&6; }
1798
2262
OBJEXT=$ac_cv_objext
1799
2263
ac_objext=$OBJEXT
1800
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1801
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2264
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2265
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1802
2266
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1803
2267
  echo $ECHO_N "(cached) $ECHO_C" >&6
1804
2268
else
1821
2285
}
1822
2286
_ACEOF
1823
2287
rm -f conftest.$ac_objext
1824
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825
 
  (eval $ac_compile) 2>conftest.er1
 
2288
if { (ac_try="$ac_compile"
 
2289
case "(($ac_try" in
 
2290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2291
  *) ac_try_echo=$ac_try;;
 
2292
esac
 
2293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2294
  (eval "$ac_compile") 2>conftest.er1
1826
2295
  ac_status=$?
1827
2296
  grep -v '^ *+' conftest.er1 >conftest.err
1828
2297
  rm -f conftest.er1
1829
2298
  cat conftest.err >&5
1830
2299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831
 
  (exit $ac_status); } &&
1832
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834
 
  (eval $ac_try) 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
 
2300
  (exit $ac_status); } && {
 
2301
         test -z "$ac_c_werror_flag" ||
 
2302
         test ! -s conftest.err
 
2303
       } && test -s conftest.$ac_objext; then
1844
2304
  ac_compiler_gnu=yes
1845
2305
else
1846
2306
  echo "$as_me: failed program was:" >&5
1847
2307
sed 's/^/| /' conftest.$ac_ext >&5
1848
2308
 
1849
 
ac_compiler_gnu=no
 
2309
        ac_compiler_gnu=no
1850
2310
fi
1851
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2311
 
 
2312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852
2313
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1853
2314
 
1854
2315
fi
1855
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1856
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2316
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2317
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1857
2318
GCC=`test $ac_compiler_gnu = yes && echo yes`
1858
2319
ac_test_CFLAGS=${CFLAGS+set}
1859
2320
ac_save_CFLAGS=$CFLAGS
1860
 
CFLAGS="-g"
1861
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1862
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2321
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2322
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1863
2323
if test "${ac_cv_prog_cc_g+set}" = set; then
1864
2324
  echo $ECHO_N "(cached) $ECHO_C" >&6
1865
2325
else
1866
 
  cat >conftest.$ac_ext <<_ACEOF
1867
 
/* confdefs.h.  */
1868
 
_ACEOF
1869
 
cat confdefs.h >>conftest.$ac_ext
1870
 
cat >>conftest.$ac_ext <<_ACEOF
1871
 
/* end confdefs.h.  */
1872
 
 
1873
 
int
1874
 
main ()
1875
 
{
1876
 
 
1877
 
  ;
1878
 
  return 0;
1879
 
}
1880
 
_ACEOF
1881
 
rm -f conftest.$ac_objext
1882
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1883
 
  (eval $ac_compile) 2>conftest.er1
1884
 
  ac_status=$?
1885
 
  grep -v '^ *+' conftest.er1 >conftest.err
1886
 
  rm -f conftest.er1
1887
 
  cat conftest.err >&5
1888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889
 
  (exit $ac_status); } &&
1890
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892
 
  (eval $ac_try) 2>&5
1893
 
  ac_status=$?
1894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895
 
  (exit $ac_status); }; } &&
1896
 
         { ac_try='test -s conftest.$ac_objext'
1897
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898
 
  (eval $ac_try) 2>&5
1899
 
  ac_status=$?
1900
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901
 
  (exit $ac_status); }; }; then
1902
 
  ac_cv_prog_cc_g=yes
1903
 
else
1904
 
  echo "$as_me: failed program was:" >&5
1905
 
sed 's/^/| /' conftest.$ac_ext >&5
1906
 
 
1907
 
ac_cv_prog_cc_g=no
1908
 
fi
1909
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1910
 
fi
1911
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1912
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2326
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2327
   ac_c_werror_flag=yes
 
2328
   ac_cv_prog_cc_g=no
 
2329
   CFLAGS="-g"
 
2330
   cat >conftest.$ac_ext <<_ACEOF
 
2331
/* confdefs.h.  */
 
2332
_ACEOF
 
2333
cat confdefs.h >>conftest.$ac_ext
 
2334
cat >>conftest.$ac_ext <<_ACEOF
 
2335
/* end confdefs.h.  */
 
2336
 
 
2337
int
 
2338
main ()
 
2339
{
 
2340
 
 
2341
  ;
 
2342
  return 0;
 
2343
}
 
2344
_ACEOF
 
2345
rm -f conftest.$ac_objext
 
2346
if { (ac_try="$ac_compile"
 
2347
case "(($ac_try" in
 
2348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2349
  *) ac_try_echo=$ac_try;;
 
2350
esac
 
2351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2352
  (eval "$ac_compile") 2>conftest.er1
 
2353
  ac_status=$?
 
2354
  grep -v '^ *+' conftest.er1 >conftest.err
 
2355
  rm -f conftest.er1
 
2356
  cat conftest.err >&5
 
2357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2358
  (exit $ac_status); } && {
 
2359
         test -z "$ac_c_werror_flag" ||
 
2360
         test ! -s conftest.err
 
2361
       } && test -s conftest.$ac_objext; then
 
2362
  ac_cv_prog_cc_g=yes
 
2363
else
 
2364
  echo "$as_me: failed program was:" >&5
 
2365
sed 's/^/| /' conftest.$ac_ext >&5
 
2366
 
 
2367
        CFLAGS=""
 
2368
      cat >conftest.$ac_ext <<_ACEOF
 
2369
/* confdefs.h.  */
 
2370
_ACEOF
 
2371
cat confdefs.h >>conftest.$ac_ext
 
2372
cat >>conftest.$ac_ext <<_ACEOF
 
2373
/* end confdefs.h.  */
 
2374
 
 
2375
int
 
2376
main ()
 
2377
{
 
2378
 
 
2379
  ;
 
2380
  return 0;
 
2381
}
 
2382
_ACEOF
 
2383
rm -f conftest.$ac_objext
 
2384
if { (ac_try="$ac_compile"
 
2385
case "(($ac_try" in
 
2386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2387
  *) ac_try_echo=$ac_try;;
 
2388
esac
 
2389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2390
  (eval "$ac_compile") 2>conftest.er1
 
2391
  ac_status=$?
 
2392
  grep -v '^ *+' conftest.er1 >conftest.err
 
2393
  rm -f conftest.er1
 
2394
  cat conftest.err >&5
 
2395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2396
  (exit $ac_status); } && {
 
2397
         test -z "$ac_c_werror_flag" ||
 
2398
         test ! -s conftest.err
 
2399
       } && test -s conftest.$ac_objext; then
 
2400
  :
 
2401
else
 
2402
  echo "$as_me: failed program was:" >&5
 
2403
sed 's/^/| /' conftest.$ac_ext >&5
 
2404
 
 
2405
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2406
         CFLAGS="-g"
 
2407
         cat >conftest.$ac_ext <<_ACEOF
 
2408
/* confdefs.h.  */
 
2409
_ACEOF
 
2410
cat confdefs.h >>conftest.$ac_ext
 
2411
cat >>conftest.$ac_ext <<_ACEOF
 
2412
/* end confdefs.h.  */
 
2413
 
 
2414
int
 
2415
main ()
 
2416
{
 
2417
 
 
2418
  ;
 
2419
  return 0;
 
2420
}
 
2421
_ACEOF
 
2422
rm -f conftest.$ac_objext
 
2423
if { (ac_try="$ac_compile"
 
2424
case "(($ac_try" in
 
2425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2426
  *) ac_try_echo=$ac_try;;
 
2427
esac
 
2428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2429
  (eval "$ac_compile") 2>conftest.er1
 
2430
  ac_status=$?
 
2431
  grep -v '^ *+' conftest.er1 >conftest.err
 
2432
  rm -f conftest.er1
 
2433
  cat conftest.err >&5
 
2434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2435
  (exit $ac_status); } && {
 
2436
         test -z "$ac_c_werror_flag" ||
 
2437
         test ! -s conftest.err
 
2438
       } && test -s conftest.$ac_objext; then
 
2439
  ac_cv_prog_cc_g=yes
 
2440
else
 
2441
  echo "$as_me: failed program was:" >&5
 
2442
sed 's/^/| /' conftest.$ac_ext >&5
 
2443
 
 
2444
 
 
2445
fi
 
2446
 
 
2447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2448
fi
 
2449
 
 
2450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2451
fi
 
2452
 
 
2453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2454
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2455
fi
 
2456
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2457
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1913
2458
if test "$ac_test_CFLAGS" = set; then
1914
2459
  CFLAGS=$ac_save_CFLAGS
1915
2460
elif test $ac_cv_prog_cc_g = yes; then
1925
2470
    CFLAGS=
1926
2471
  fi
1927
2472
fi
1928
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1929
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1930
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2473
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2474
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2475
if test "${ac_cv_prog_cc_c89+set}" = set; then
1931
2476
  echo $ECHO_N "(cached) $ECHO_C" >&6
1932
2477
else
1933
 
  ac_cv_prog_cc_stdc=no
 
2478
  ac_cv_prog_cc_c89=no
1934
2479
ac_save_CC=$CC
1935
2480
cat >conftest.$ac_ext <<_ACEOF
1936
2481
/* confdefs.h.  */
1964
2509
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1965
2510
   function prototypes and stuff, but not '\xHH' hex character constants.
1966
2511
   These don't provoke an error unfortunately, instead are silently treated
1967
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
2512
   as 'x'.  The following induces an error, until -std is added to get
1968
2513
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1969
2514
   array size at least.  It's necessary to write '\x00'==0 to get something
1970
 
   that's true only with -std1.  */
 
2515
   that's true only with -std.  */
1971
2516
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1972
2517
 
 
2518
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2519
   inside strings and character constants.  */
 
2520
#define FOO(x) 'x'
 
2521
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2522
 
1973
2523
int test (int i, double x);
1974
2524
struct s1 {int (*f) (int a);};
1975
2525
struct s2 {int (*f) (double a);};
1984
2534
  return 0;
1985
2535
}
1986
2536
_ACEOF
1987
 
# Don't try gcc -ansi; that turns off useful extensions and
1988
 
# breaks some systems' header files.
1989
 
# AIX                   -qlanglvl=ansi
1990
 
# Ultrix and OSF/1      -std1
1991
 
# HP-UX 10.20 and later -Ae
1992
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
1993
 
# SVR4                  -Xc -D__EXTENSIONS__
1994
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2537
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2538
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1995
2539
do
1996
2540
  CC="$ac_save_CC $ac_arg"
1997
2541
  rm -f conftest.$ac_objext
1998
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999
 
  (eval $ac_compile) 2>conftest.er1
 
2542
if { (ac_try="$ac_compile"
 
2543
case "(($ac_try" in
 
2544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2545
  *) ac_try_echo=$ac_try;;
 
2546
esac
 
2547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2548
  (eval "$ac_compile") 2>conftest.er1
2000
2549
  ac_status=$?
2001
2550
  grep -v '^ *+' conftest.er1 >conftest.err
2002
2551
  rm -f conftest.er1
2003
2552
  cat conftest.err >&5
2004
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005
 
  (exit $ac_status); } &&
2006
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2007
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008
 
  (eval $ac_try) 2>&5
2009
 
  ac_status=$?
2010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011
 
  (exit $ac_status); }; } &&
2012
 
         { ac_try='test -s conftest.$ac_objext'
2013
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014
 
  (eval $ac_try) 2>&5
2015
 
  ac_status=$?
2016
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017
 
  (exit $ac_status); }; }; then
2018
 
  ac_cv_prog_cc_stdc=$ac_arg
2019
 
break
 
2554
  (exit $ac_status); } && {
 
2555
         test -z "$ac_c_werror_flag" ||
 
2556
         test ! -s conftest.err
 
2557
       } && test -s conftest.$ac_objext; then
 
2558
  ac_cv_prog_cc_c89=$ac_arg
2020
2559
else
2021
2560
  echo "$as_me: failed program was:" >&5
2022
2561
sed 's/^/| /' conftest.$ac_ext >&5
2023
2562
 
 
2563
 
2024
2564
fi
2025
 
rm -f conftest.err conftest.$ac_objext
 
2565
 
 
2566
rm -f core conftest.err conftest.$ac_objext
 
2567
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2026
2568
done
2027
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
2569
rm -f conftest.$ac_ext
2028
2570
CC=$ac_save_CC
2029
2571
 
2030
2572
fi
2031
 
 
2032
 
case "x$ac_cv_prog_cc_stdc" in
2033
 
  x|xno)
2034
 
    echo "$as_me:$LINENO: result: none needed" >&5
2035
 
echo "${ECHO_T}none needed" >&6 ;;
 
2573
# AC_CACHE_VAL
 
2574
case "x$ac_cv_prog_cc_c89" in
 
2575
  x)
 
2576
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2577
echo "${ECHO_T}none needed" >&6; } ;;
 
2578
  xno)
 
2579
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2580
echo "${ECHO_T}unsupported" >&6; } ;;
2036
2581
  *)
2037
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2038
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2039
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2582
    CC="$CC $ac_cv_prog_cc_c89"
 
2583
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2584
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2040
2585
esac
2041
2586
 
2042
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2043
 
# in C++ we need to declare it.  In case someone uses the same compiler
2044
 
# for both compiling C and C++ we need to have the C++ compiler decide
2045
 
# the declaration of exit, since it's the most demanding environment.
2046
 
cat >conftest.$ac_ext <<_ACEOF
2047
 
#ifndef __cplusplus
2048
 
  choke me
2049
 
#endif
2050
 
_ACEOF
2051
 
rm -f conftest.$ac_objext
2052
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053
 
  (eval $ac_compile) 2>conftest.er1
2054
 
  ac_status=$?
2055
 
  grep -v '^ *+' conftest.er1 >conftest.err
2056
 
  rm -f conftest.er1
2057
 
  cat conftest.err >&5
2058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059
 
  (exit $ac_status); } &&
2060
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2061
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062
 
  (eval $ac_try) 2>&5
2063
 
  ac_status=$?
2064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065
 
  (exit $ac_status); }; } &&
2066
 
         { ac_try='test -s conftest.$ac_objext'
2067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068
 
  (eval $ac_try) 2>&5
2069
 
  ac_status=$?
2070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071
 
  (exit $ac_status); }; }; then
2072
 
  for ac_declaration in \
2073
 
   '' \
2074
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2075
 
   'extern "C" void std::exit (int); using std::exit;' \
2076
 
   'extern "C" void exit (int) throw ();' \
2077
 
   'extern "C" void exit (int);' \
2078
 
   'void exit (int);'
2079
 
do
2080
 
  cat >conftest.$ac_ext <<_ACEOF
2081
 
/* confdefs.h.  */
2082
 
_ACEOF
2083
 
cat confdefs.h >>conftest.$ac_ext
2084
 
cat >>conftest.$ac_ext <<_ACEOF
2085
 
/* end confdefs.h.  */
2086
 
$ac_declaration
2087
 
#include <stdlib.h>
2088
 
int
2089
 
main ()
2090
 
{
2091
 
exit (42);
2092
 
  ;
2093
 
  return 0;
2094
 
}
2095
 
_ACEOF
2096
 
rm -f conftest.$ac_objext
2097
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098
 
  (eval $ac_compile) 2>conftest.er1
2099
 
  ac_status=$?
2100
 
  grep -v '^ *+' conftest.er1 >conftest.err
2101
 
  rm -f conftest.er1
2102
 
  cat conftest.err >&5
2103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
 
  (exit $ac_status); } &&
2105
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2106
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107
 
  (eval $ac_try) 2>&5
2108
 
  ac_status=$?
2109
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110
 
  (exit $ac_status); }; } &&
2111
 
         { ac_try='test -s conftest.$ac_objext'
2112
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113
 
  (eval $ac_try) 2>&5
2114
 
  ac_status=$?
2115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116
 
  (exit $ac_status); }; }; then
2117
 
  :
2118
 
else
2119
 
  echo "$as_me: failed program was:" >&5
2120
 
sed 's/^/| /' conftest.$ac_ext >&5
2121
 
 
2122
 
continue
2123
 
fi
2124
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2125
 
  cat >conftest.$ac_ext <<_ACEOF
2126
 
/* confdefs.h.  */
2127
 
_ACEOF
2128
 
cat confdefs.h >>conftest.$ac_ext
2129
 
cat >>conftest.$ac_ext <<_ACEOF
2130
 
/* end confdefs.h.  */
2131
 
$ac_declaration
2132
 
int
2133
 
main ()
2134
 
{
2135
 
exit (42);
2136
 
  ;
2137
 
  return 0;
2138
 
}
2139
 
_ACEOF
2140
 
rm -f conftest.$ac_objext
2141
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142
 
  (eval $ac_compile) 2>conftest.er1
2143
 
  ac_status=$?
2144
 
  grep -v '^ *+' conftest.er1 >conftest.err
2145
 
  rm -f conftest.er1
2146
 
  cat conftest.err >&5
2147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148
 
  (exit $ac_status); } &&
2149
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151
 
  (eval $ac_try) 2>&5
2152
 
  ac_status=$?
2153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
 
  (exit $ac_status); }; } &&
2155
 
         { ac_try='test -s conftest.$ac_objext'
2156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157
 
  (eval $ac_try) 2>&5
2158
 
  ac_status=$?
2159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
 
  (exit $ac_status); }; }; then
2161
 
  break
2162
 
else
2163
 
  echo "$as_me: failed program was:" >&5
2164
 
sed 's/^/| /' conftest.$ac_ext >&5
2165
 
 
2166
 
fi
2167
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168
 
done
2169
 
rm -f conftest*
2170
 
if test -n "$ac_declaration"; then
2171
 
  echo '#ifdef __cplusplus' >>confdefs.h
2172
 
  echo $ac_declaration      >>confdefs.h
2173
 
  echo '#endif'             >>confdefs.h
2174
 
fi
2175
 
 
2176
 
else
2177
 
  echo "$as_me: failed program was:" >&5
2178
 
sed 's/^/| /' conftest.$ac_ext >&5
2179
 
 
2180
 
fi
2181
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2587
 
2182
2588
ac_ext=c
2183
2589
ac_cpp='$CPP $CPPFLAGS'
2184
2590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190
2596
do
2191
2597
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2192
2598
set dummy $ac_prog; ac_word=$2
2193
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2194
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2599
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195
2601
if test "${ac_cv_prog_AR+set}" = set; then
2196
2602
  echo $ECHO_N "(cached) $ECHO_C" >&6
2197
2603
else
2204
2610
  IFS=$as_save_IFS
2205
2611
  test -z "$as_dir" && as_dir=.
2206
2612
  for ac_exec_ext in '' $ac_executable_extensions; do
2207
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2613
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208
2614
    ac_cv_prog_AR="$ac_prog"
2209
2615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210
2616
    break 2
2211
2617
  fi
2212
2618
done
2213
2619
done
 
2620
IFS=$as_save_IFS
2214
2621
 
2215
2622
fi
2216
2623
fi
2217
2624
AR=$ac_cv_prog_AR
2218
2625
if test -n "$AR"; then
2219
 
  echo "$as_me:$LINENO: result: $AR" >&5
2220
 
echo "${ECHO_T}$AR" >&6
 
2626
  { echo "$as_me:$LINENO: result: $AR" >&5
 
2627
echo "${ECHO_T}$AR" >&6; }
2221
2628
else
2222
 
  echo "$as_me:$LINENO: result: no" >&5
2223
 
echo "${ECHO_T}no" >&6
 
2629
  { echo "$as_me:$LINENO: result: no" >&5
 
2630
echo "${ECHO_T}no" >&6; }
2224
2631
fi
2225
2632
 
 
2633
 
2226
2634
  test -n "$AR" && break
2227
2635
done
2228
2636
test -n "$AR" || AR="ar"
2229
2637
 
2230
2638
ac_aux_dir=
2231
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2232
 
  if test -f $ac_dir/install-sh; then
 
2639
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2640
  if test -f "$ac_dir/install-sh"; then
2233
2641
    ac_aux_dir=$ac_dir
2234
2642
    ac_install_sh="$ac_aux_dir/install-sh -c"
2235
2643
    break
2236
 
  elif test -f $ac_dir/install.sh; then
 
2644
  elif test -f "$ac_dir/install.sh"; then
2237
2645
    ac_aux_dir=$ac_dir
2238
2646
    ac_install_sh="$ac_aux_dir/install.sh -c"
2239
2647
    break
2240
 
  elif test -f $ac_dir/shtool; then
 
2648
  elif test -f "$ac_dir/shtool"; then
2241
2649
    ac_aux_dir=$ac_dir
2242
2650
    ac_install_sh="$ac_aux_dir/shtool install -c"
2243
2651
    break
2244
2652
  fi
2245
2653
done
2246
2654
if test -z "$ac_aux_dir"; then
2247
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2248
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2655
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2656
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2249
2657
   { (exit 1); exit 1; }; }
2250
2658
fi
2251
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2252
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2253
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2659
 
 
2660
# These three variables are undocumented and unsupported,
 
2661
# and are intended to be withdrawn in a future Autoconf release.
 
2662
# They can cause serious problems if a builder's source tree is in a directory
 
2663
# whose full name contains unusual characters.
 
2664
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2665
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2666
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2667
 
2254
2668
 
2255
2669
# Find a good install program.  We prefer a C program (faster),
2256
2670
# so one script is as good as another.  But avoid the broken or
2265
2679
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266
2680
# OS/2's system install, which has a completely different semantic
2267
2681
# ./install, which can be erroneously created by make from ./install.sh.
2268
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2269
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2682
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2683
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2270
2684
if test -z "$INSTALL"; then
2271
2685
if test "${ac_cv_path_install+set}" = set; then
2272
2686
  echo $ECHO_N "(cached) $ECHO_C" >&6
2288
2702
    # by default.
2289
2703
    for ac_prog in ginstall scoinst install; do
2290
2704
      for ac_exec_ext in '' $ac_executable_extensions; do
2291
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2705
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2292
2706
          if test $ac_prog = install &&
2293
2707
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294
2708
            # AIX install.  It has an incompatible calling convention.
2307
2721
    ;;
2308
2722
esac
2309
2723
done
 
2724
IFS=$as_save_IFS
2310
2725
 
2311
2726
 
2312
2727
fi
2313
2728
  if test "${ac_cv_path_install+set}" = set; then
2314
2729
    INSTALL=$ac_cv_path_install
2315
2730
  else
2316
 
    # As a last resort, use the slow shell script.  We don't cache a
2317
 
    # path for INSTALL within a source directory, because that will
 
2731
    # As a last resort, use the slow shell script.  Don't cache a
 
2732
    # value for INSTALL within a source directory, because that will
2318
2733
    # break other packages using the cache if that directory is
2319
 
    # removed, or if the path is relative.
 
2734
    # removed, or if the value is a relative name.
2320
2735
    INSTALL=$ac_install_sh
2321
2736
  fi
2322
2737
fi
2323
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2324
 
echo "${ECHO_T}$INSTALL" >&6
 
2738
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2739
echo "${ECHO_T}$INSTALL" >&6; }
2325
2740
 
2326
2741
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2327
2742
# It thinks the first close brace ends the variable substitution.
2331
2746
 
2332
2747
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2333
2748
 
2334
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2335
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2336
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2337
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2749
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2750
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2751
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2752
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2338
2753
  echo $ECHO_N "(cached) $ECHO_C" >&6
2339
2754
else
2340
2755
  cat >conftest.make <<\_ACEOF
 
2756
SHELL = /bin/sh
2341
2757
all:
2342
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2758
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2343
2759
_ACEOF
2344
2760
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2345
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2346
 
if test -n "$ac_maketemp"; then
2347
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2348
 
else
2349
 
  eval ac_cv_prog_make_${ac_make}_set=no
2350
 
fi
 
2761
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2762
  *@@@%%%=?*=@@@%%%*)
 
2763
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2764
  *)
 
2765
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2766
esac
2351
2767
rm -f conftest.make
2352
2768
fi
2353
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2354
 
  echo "$as_me:$LINENO: result: yes" >&5
2355
 
echo "${ECHO_T}yes" >&6
 
2769
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2770
  { echo "$as_me:$LINENO: result: yes" >&5
 
2771
echo "${ECHO_T}yes" >&6; }
2356
2772
  SET_MAKE=
2357
2773
else
2358
 
  echo "$as_me:$LINENO: result: no" >&5
2359
 
echo "${ECHO_T}no" >&6
 
2774
  { echo "$as_me:$LINENO: result: no" >&5
 
2775
echo "${ECHO_T}no" >&6; }
2360
2776
  SET_MAKE="MAKE=${MAKE-make}"
2361
2777
fi
2362
2778
 
2363
2779
 
2364
2780
 
2365
2781
 
2366
 
echo "$as_me:$LINENO: checking for main in -lm" >&5
2367
 
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
 
2782
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
 
2783
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
2368
2784
if test "${ac_cv_lib_m_main+set}" = set; then
2369
2785
  echo $ECHO_N "(cached) $ECHO_C" >&6
2370
2786
else
2381
2797
int
2382
2798
main ()
2383
2799
{
2384
 
main ();
 
2800
return main ();
2385
2801
  ;
2386
2802
  return 0;
2387
2803
}
2388
2804
_ACEOF
2389
2805
rm -f conftest.$ac_objext conftest$ac_exeext
2390
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391
 
  (eval $ac_link) 2>conftest.er1
 
2806
if { (ac_try="$ac_link"
 
2807
case "(($ac_try" in
 
2808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2809
  *) ac_try_echo=$ac_try;;
 
2810
esac
 
2811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2812
  (eval "$ac_link") 2>conftest.er1
2392
2813
  ac_status=$?
2393
2814
  grep -v '^ *+' conftest.er1 >conftest.err
2394
2815
  rm -f conftest.er1
2395
2816
  cat conftest.err >&5
2396
2817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397
 
  (exit $ac_status); } &&
2398
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400
 
  (eval $ac_try) 2>&5
2401
 
  ac_status=$?
2402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403
 
  (exit $ac_status); }; } &&
2404
 
         { ac_try='test -s conftest$ac_exeext'
2405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406
 
  (eval $ac_try) 2>&5
2407
 
  ac_status=$?
2408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
 
  (exit $ac_status); }; }; then
 
2818
  (exit $ac_status); } && {
 
2819
         test -z "$ac_c_werror_flag" ||
 
2820
         test ! -s conftest.err
 
2821
       } && test -s conftest$ac_exeext &&
 
2822
       $as_test_x conftest$ac_exeext; then
2410
2823
  ac_cv_lib_m_main=yes
2411
2824
else
2412
2825
  echo "$as_me: failed program was:" >&5
2413
2826
sed 's/^/| /' conftest.$ac_ext >&5
2414
2827
 
2415
 
ac_cv_lib_m_main=no
 
2828
        ac_cv_lib_m_main=no
2416
2829
fi
2417
 
rm -f conftest.err conftest.$ac_objext \
 
2830
 
 
2831
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2418
2832
      conftest$ac_exeext conftest.$ac_ext
2419
2833
LIBS=$ac_check_lib_save_LIBS
2420
2834
fi
2421
 
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2422
 
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
 
2835
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
2836
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
2423
2837
if test $ac_cv_lib_m_main = yes; then
2424
2838
  cat >>confdefs.h <<_ACEOF
2425
2839
#define HAVE_LIBM 1
2431
2845
 
2432
2846
 
2433
2847
 
2434
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2435
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
2848
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
2849
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2436
2850
if test "${ac_cv_c_const+set}" = set; then
2437
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
2438
2852
else
2450
2864
#ifndef __cplusplus
2451
2865
  /* Ultrix mips cc rejects this.  */
2452
2866
  typedef int charset[2];
2453
 
  const charset x;
 
2867
  const charset cs;
2454
2868
  /* SunOS 4.1.1 cc rejects this.  */
2455
 
  char const *const *ccp;
2456
 
  char **p;
 
2869
  char const *const *pcpcc;
 
2870
  char **ppc;
2457
2871
  /* NEC SVR4.0.2 mips cc rejects this.  */
2458
2872
  struct point {int x, y;};
2459
2873
  static struct point const zero = {0,0};
2462
2876
     an arm of an if-expression whose if-part is not a constant
2463
2877
     expression */
2464
2878
  const char *g = "string";
2465
 
  ccp = &g + (g ? g-g : 0);
 
2879
  pcpcc = &g + (g ? g-g : 0);
2466
2880
  /* HPUX 7.0 cc rejects these. */
2467
 
  ++ccp;
2468
 
  p = (char**) ccp;
2469
 
  ccp = (char const *const *) p;
 
2881
  ++pcpcc;
 
2882
  ppc = (char**) pcpcc;
 
2883
  pcpcc = (char const *const *) ppc;
2470
2884
  { /* SCO 3.2v4 cc rejects this.  */
2471
2885
    char *t;
2472
2886
    char const *s = 0 ? (char *) 0 : (char const *) 0;
2473
2887
 
2474
2888
    *t++ = 0;
 
2889
    if (s) return 0;
2475
2890
  }
2476
2891
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2477
2892
    int x[] = {25, 17};
2490
2905
  }
2491
2906
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2492
2907
    const int foo = 10;
 
2908
    if (!foo) return 0;
2493
2909
  }
 
2910
  return !cs[0] && !zero.x;
2494
2911
#endif
2495
2912
 
2496
2913
  ;
2498
2915
}
2499
2916
_ACEOF
2500
2917
rm -f conftest.$ac_objext
2501
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502
 
  (eval $ac_compile) 2>conftest.er1
 
2918
if { (ac_try="$ac_compile"
 
2919
case "(($ac_try" in
 
2920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2921
  *) ac_try_echo=$ac_try;;
 
2922
esac
 
2923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2924
  (eval "$ac_compile") 2>conftest.er1
2503
2925
  ac_status=$?
2504
2926
  grep -v '^ *+' conftest.er1 >conftest.err
2505
2927
  rm -f conftest.er1
2506
2928
  cat conftest.err >&5
2507
2929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
 
  (exit $ac_status); } &&
2509
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2510
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511
 
  (eval $ac_try) 2>&5
2512
 
  ac_status=$?
2513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
 
  (exit $ac_status); }; } &&
2515
 
         { ac_try='test -s conftest.$ac_objext'
2516
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517
 
  (eval $ac_try) 2>&5
2518
 
  ac_status=$?
2519
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520
 
  (exit $ac_status); }; }; then
 
2930
  (exit $ac_status); } && {
 
2931
         test -z "$ac_c_werror_flag" ||
 
2932
         test ! -s conftest.err
 
2933
       } && test -s conftest.$ac_objext; then
2521
2934
  ac_cv_c_const=yes
2522
2935
else
2523
2936
  echo "$as_me: failed program was:" >&5
2524
2937
sed 's/^/| /' conftest.$ac_ext >&5
2525
2938
 
2526
 
ac_cv_c_const=no
2527
 
fi
2528
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529
 
fi
2530
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2531
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
2939
        ac_cv_c_const=no
 
2940
fi
 
2941
 
 
2942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2943
fi
 
2944
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
2945
echo "${ECHO_T}$ac_cv_c_const" >&6; }
2532
2946
if test $ac_cv_c_const = no; then
2533
2947
 
2534
2948
cat >>confdefs.h <<\_ACEOF
2539
2953
 
2540
2954
 
2541
2955
### humor lowers blood pressure
2542
 
echo "$as_me:$LINENO: checking your blood pressure" >&5
2543
 
echo $ECHO_N "checking your blood pressure... $ECHO_C" >&6
2544
 
echo "$as_me:$LINENO: result: a bit high, but we can proceed" >&5
2545
 
echo "${ECHO_T}a bit high, but we can proceed" >&6
 
2956
{ echo "$as_me:$LINENO: checking your blood pressure" >&5
 
2957
echo $ECHO_N "checking your blood pressure... $ECHO_C" >&6; }
 
2958
{ echo "$as_me:$LINENO: result: a bit high, but we can proceed" >&5
 
2959
echo "${ECHO_T}a bit high, but we can proceed" >&6; }
2546
2960
 
2547
2961
## The goal is to find apxs
2548
2962
{ echo "$as_me:$LINENO: checking whether apxs is available..." >&5
2552
2966
 
2553
2967
 
2554
2968
# check for --with-apxs
2555
 
echo "$as_me:$LINENO: checking for --with-apxs" >&5
2556
 
echo $ECHO_N "checking for --with-apxs... $ECHO_C" >&6
 
2969
{ echo "$as_me:$LINENO: checking for --with-apxs" >&5
 
2970
echo $ECHO_N "checking for --with-apxs... $ECHO_C" >&6; }
2557
2971
 
2558
 
# Check whether --with-apxs or --without-apxs was given.
 
2972
# Check whether --with-apxs was given.
2559
2973
if test "${with_apxs+set}" = set; then
2560
 
  withval="$with_apxs"
2561
 
 
 
2974
  withval=$with_apxs;
2562
2975
  if test -x "$withval"
2563
2976
  then
2564
 
    echo "$as_me:$LINENO: result: $withval executable, good" >&5
2565
 
echo "${ECHO_T}$withval executable, good" >&6
 
2977
    { echo "$as_me:$LINENO: result: $withval executable, good" >&5
 
2978
echo "${ECHO_T}$withval executable, good" >&6; }
2566
2979
    APXS=$withval
2567
2980
  else
2568
2981
    echo
2572
2985
  fi
2573
2986
 
2574
2987
else
2575
 
  echo "$as_me:$LINENO: result: no" >&5
2576
 
echo "${ECHO_T}no" >&6
2577
 
fi;
 
2988
  { echo "$as_me:$LINENO: result: no" >&5
 
2989
echo "${ECHO_T}no" >&6; }
 
2990
fi
 
2991
 
2578
2992
 
2579
2993
# if no apxs found yet, check /usr/local/apache/sbin
2580
2994
# since it's the default Apache location
2581
2995
if test -z "$APXS"; then
2582
 
  echo "$as_me:$LINENO: checking for apxs in /usr/local/apache/sbin" >&5
2583
 
echo $ECHO_N "checking for apxs in /usr/local/apache/sbin... $ECHO_C" >&6
 
2996
  { echo "$as_me:$LINENO: checking for apxs in /usr/local/apache/sbin" >&5
 
2997
echo $ECHO_N "checking for apxs in /usr/local/apache/sbin... $ECHO_C" >&6; }
2584
2998
  if test -x /usr/local/apache/sbin/apxs; then
2585
2999
    APXS=/usr/local/apache/sbin/apxs
2586
 
    echo "$as_me:$LINENO: result: found, we'll use this. Use --with-apxs to specify another." >&5
2587
 
echo "${ECHO_T}found, we'll use this. Use --with-apxs to specify another." >&6
 
3000
    { echo "$as_me:$LINENO: result: found, we'll use this. Use --with-apxs to specify another." >&5
 
3001
echo "${ECHO_T}found, we'll use this. Use --with-apxs to specify another." >&6; }
2588
3002
  else
2589
 
    echo "$as_me:$LINENO: result: no" >&5
2590
 
echo "${ECHO_T}no" >&6
 
3003
    { echo "$as_me:$LINENO: result: no" >&5
 
3004
echo "${ECHO_T}no" >&6; }
2591
3005
  fi
2592
3006
fi
2593
3007
 
2594
3008
# second last resort
2595
3009
if test -z "$APXS"; then
2596
 
  echo "$as_me:$LINENO: checking for apxs in your PATH" >&5
2597
 
echo $ECHO_N "checking for apxs in your PATH... $ECHO_C" >&6
 
3010
  { echo "$as_me:$LINENO: checking for apxs in your PATH" >&5
 
3011
echo $ECHO_N "checking for apxs in your PATH... $ECHO_C" >&6; }
2598
3012
  # Extract the first word of "apxs", so it can be a program name with args.
2599
3013
set dummy apxs; ac_word=$2
2600
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2601
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3014
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602
3016
if test "${ac_cv_path_APXS+set}" = set; then
2603
3017
  echo $ECHO_N "(cached) $ECHO_C" >&6
2604
3018
else
2613
3027
  IFS=$as_save_IFS
2614
3028
  test -z "$as_dir" && as_dir=.
2615
3029
  for ac_exec_ext in '' $ac_executable_extensions; do
2616
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3030
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617
3031
    ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2618
3032
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619
3033
    break 2
2620
3034
  fi
2621
3035
done
2622
3036
done
 
3037
IFS=$as_save_IFS
2623
3038
 
2624
3039
  ;;
2625
3040
esac
2626
3041
fi
2627
3042
APXS=$ac_cv_path_APXS
2628
 
 
2629
3043
if test -n "$APXS"; then
2630
 
  echo "$as_me:$LINENO: result: $APXS" >&5
2631
 
echo "${ECHO_T}$APXS" >&6
 
3044
  { echo "$as_me:$LINENO: result: $APXS" >&5
 
3045
echo "${ECHO_T}$APXS" >&6; }
2632
3046
else
2633
 
  echo "$as_me:$LINENO: result: no" >&5
2634
 
echo "${ECHO_T}no" >&6
 
3047
  { echo "$as_me:$LINENO: result: no" >&5
 
3048
echo "${ECHO_T}no" >&6; }
2635
3049
fi
2636
3050
 
 
3051
 
2637
3052
  if test -n "$APXS"; then
2638
 
    echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
2639
 
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6
 
3053
    { echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
 
3054
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6; }
2640
3055
  fi
2641
3056
fi
2642
3057
 
2644
3059
# some linux distributions use apxs2 for apache2 installations,
2645
3060
# so check for apxs2 before we give up.
2646
3061
if test -z "$APXS"; then
2647
 
  echo "$as_me:$LINENO: checking for apxs2 in your PATH" >&5
2648
 
echo $ECHO_N "checking for apxs2 in your PATH... $ECHO_C" >&6
 
3062
  { echo "$as_me:$LINENO: checking for apxs2 in your PATH" >&5
 
3063
echo $ECHO_N "checking for apxs2 in your PATH... $ECHO_C" >&6; }
2649
3064
  # Extract the first word of "apxs2", so it can be a program name with args.
2650
3065
set dummy apxs2; ac_word=$2
2651
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2652
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3066
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653
3068
if test "${ac_cv_path_APXS+set}" = set; then
2654
3069
  echo $ECHO_N "(cached) $ECHO_C" >&6
2655
3070
else
2664
3079
  IFS=$as_save_IFS
2665
3080
  test -z "$as_dir" && as_dir=.
2666
3081
  for ac_exec_ext in '' $ac_executable_extensions; do
2667
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3082
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668
3083
    ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2669
3084
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670
3085
    break 2
2671
3086
  fi
2672
3087
done
2673
3088
done
 
3089
IFS=$as_save_IFS
2674
3090
 
2675
3091
  ;;
2676
3092
esac
2677
3093
fi
2678
3094
APXS=$ac_cv_path_APXS
2679
 
 
2680
3095
if test -n "$APXS"; then
2681
 
  echo "$as_me:$LINENO: result: $APXS" >&5
2682
 
echo "${ECHO_T}$APXS" >&6
 
3096
  { echo "$as_me:$LINENO: result: $APXS" >&5
 
3097
echo "${ECHO_T}$APXS" >&6; }
2683
3098
else
2684
 
  echo "$as_me:$LINENO: result: no" >&5
2685
 
echo "${ECHO_T}no" >&6
 
3099
  { echo "$as_me:$LINENO: result: no" >&5
 
3100
echo "${ECHO_T}no" >&6; }
2686
3101
fi
2687
3102
 
 
3103
 
2688
3104
  if test -n "$APXS"; then
2689
 
    echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
2690
 
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6
 
3105
    { echo "$as_me:$LINENO: result: found $APXS, we'll use this. Use --with-apxs to specify another." >&5
 
3106
echo "${ECHO_T}found $APXS, we'll use this. Use --with-apxs to specify another." >&6; }
2691
3107
  fi
2692
3108
fi
2693
3109
 
2707
3123
  ALL="dso"
2708
3124
 
2709
3125
  # check Apache version
2710
 
  echo "$as_me:$LINENO: checking Apache version" >&5
2711
 
echo $ECHO_N "checking Apache version... $ECHO_C" >&6
2712
 
  HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
2713
 
  ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
2714
 
  echo "$as_me:$LINENO: result: $ver" >&5
2715
 
echo "${ECHO_T}$ver" >&6
 
3126
# peterh: Remove apache version check for debian package, since we don't
 
3127
# want to build-depend on apache2.
 
3128
#  AC_MSG_CHECKING(Apache version)
 
3129
#  HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
 
3130
#  ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
 
3131
#  AC_MSG_RESULT($ver)
2716
3132
 
2717
3133
  # make sure version begins with 2
2718
 
  if test -z "`echo $ver | egrep \^2`"; then
2719
 
    { { echo "$as_me:$LINENO: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&5
2720
 
echo "$as_me: error: This version of mod_python only works with Apache 2. The one you have seems to be $ver." >&2;}
2721
 
   { (exit 1); exit 1; }; }
2722
 
  fi
 
3134
#  if test -z "`echo $ver | egrep \^2`"; then
 
3135
#    AC_MSG_ERROR([This version of mod_python only works with Apache 2. The one you have seems to be $ver.])
 
3136
#  fi
2723
3137
 
2724
3138
  # determine LIBEXEC
2725
 
  echo "$as_me:$LINENO: checking for Apache libexec directory" >&5
2726
 
echo $ECHO_N "checking for Apache libexec directory... $ECHO_C" >&6
 
3139
  { echo "$as_me:$LINENO: checking for Apache libexec directory" >&5
 
3140
echo $ECHO_N "checking for Apache libexec directory... $ECHO_C" >&6; }
2727
3141
  LIBEXECDIR=`${APXS} -q LIBEXECDIR`
2728
 
  echo "$as_me:$LINENO: result: $LIBEXECDIR" >&5
2729
 
echo "${ECHO_T}$LIBEXECDIR" >&6
 
3142
  { echo "$as_me:$LINENO: result: $LIBEXECDIR" >&5
 
3143
echo "${ECHO_T}$LIBEXECDIR" >&6; }
2730
3144
 
2731
3145
  # determine INCLUDES
2732
 
  echo "$as_me:$LINENO: checking for Apache include directory" >&5
2733
 
echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6
 
3146
  { echo "$as_me:$LINENO: checking for Apache include directory" >&5
 
3147
echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6; }
2734
3148
  AP_INCLUDES="-I`${APXS} -q INCLUDEDIR`"
2735
 
  echo "$as_me:$LINENO: result: $AP_INCLUDES" >&5
2736
 
echo "${ECHO_T}$AP_INCLUDES" >&6
 
3149
  { echo "$as_me:$LINENO: result: $AP_INCLUDES" >&5
 
3150
echo "${ECHO_T}$AP_INCLUDES" >&6; }
2737
3151
 
2738
3152
    if test "`uname`" = "SunOS"; then
2739
 
    echo "$as_me:$LINENO: checking for gcc on Solaris possible missing _eprintf problem" >&5
2740
 
echo $ECHO_N "checking for gcc on Solaris possible missing _eprintf problem... $ECHO_C" >&6
 
3153
    { echo "$as_me:$LINENO: checking for gcc on Solaris possible missing _eprintf problem" >&5
 
3154
echo $ECHO_N "checking for gcc on Solaris possible missing _eprintf problem... $ECHO_C" >&6; }
2741
3155
    if test "$CC" = "gcc"; then
2742
3156
      SOLARIS_HACKS="_eprintf.o _floatdidf.o _muldi3.o"
2743
3157
    fi
2744
 
    echo "$as_me:$LINENO: result: \"done\"" >&5
2745
 
echo "${ECHO_T}\"done\"" >&6
 
3158
    { echo "$as_me:$LINENO: result: \"done\"" >&5
 
3159
echo "${ECHO_T}\"done\"" >&6; }
2746
3160
  fi
2747
3161
 
2748
3162
fi
2754
3168
## static is disabled, thus no --with-apache
2755
3169
##AC_MSG_CHECKING(for --with-apache)
2756
3170
 
2757
 
# Check whether --with-apache or --without-apache was given.
 
3171
# Check whether --with-apache was given.
2758
3172
if test "${with_apache+set}" = set; then
2759
 
  withval="$with_apache"
2760
 
 
 
3173
  withval=$with_apache;
2761
3174
 
2762
3175
  # temporarily disable static on 2.0 until I figure out how to
2763
3176
  # do it right
2773
3186
   { (exit 1); exit 1; }; }
2774
3187
  fi
2775
3188
 
2776
 
  echo "$as_me:$LINENO: result: $AP_SRC" >&5
2777
 
echo "${ECHO_T}$AP_SRC" >&6
 
3189
  { echo "$as_me:$LINENO: result: $AP_SRC" >&5
 
3190
echo "${ECHO_T}$AP_SRC" >&6; }
2778
3191
  AP_INCLUDES="-I${AP_SRC}/src/include -I${AP_SRC}/src/os/unix"
2779
3192
 
2780
3193
  # note who owns the apache source directory
2781
3194
  AP_SRC_OWN="`ls -ld $AP_SRC | awk '{print $3}'`"
2782
3195
  AP_SRC_GRP="`ls -ld $AP_SRC | awk '{print $4}'`"
2783
3196
 
2784
 
fi;
 
3197
fi
 
3198
 
2785
3199
##AC_MSG_RESULT(no))
2786
3200
 
2787
3201
 
2800
3214
fi
2801
3215
 
2802
3216
 
2803
 
echo "$as_me:$LINENO: checking for --with-python" >&5
2804
 
echo $ECHO_N "checking for --with-python... $ECHO_C" >&6
 
3217
{ echo "$as_me:$LINENO: checking for --with-python" >&5
 
3218
echo $ECHO_N "checking for --with-python... $ECHO_C" >&6; }
2805
3219
 
2806
 
# Check whether --with-python or --without-python was given.
 
3220
# Check whether --with-python was given.
2807
3221
if test "${with_python+set}" = set; then
2808
 
  withval="$with_python"
2809
 
 
 
3222
  withval=$with_python;
2810
3223
  PYTHON_BIN="$withval"
2811
 
  echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
2812
 
echo "${ECHO_T}$PYTHON_BIN" >&6
 
3224
  { echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
 
3225
echo "${ECHO_T}$PYTHON_BIN" >&6; }
2813
3226
 
2814
3227
else
2815
 
  echo "$as_me:$LINENO: result: no" >&5
2816
 
echo "${ECHO_T}no" >&6
2817
 
fi;
 
3228
  { echo "$as_me:$LINENO: result: no" >&5
 
3229
echo "${ECHO_T}no" >&6; }
 
3230
fi
 
3231
 
2818
3232
 
2819
3233
# check for Python executable
2820
3234
if test -z "$PYTHON_BIN"; then
2821
3235
  # Extract the first word of "python", so it can be a program name with args.
2822
3236
set dummy python; ac_word=$2
2823
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2824
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3237
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825
3239
if test "${ac_cv_path_PYTHON_BIN+set}" = set; then
2826
3240
  echo $ECHO_N "(cached) $ECHO_C" >&6
2827
3241
else
2836
3250
  IFS=$as_save_IFS
2837
3251
  test -z "$as_dir" && as_dir=.
2838
3252
  for ac_exec_ext in '' $ac_executable_extensions; do
2839
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3253
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840
3254
    ac_cv_path_PYTHON_BIN="$as_dir/$ac_word$ac_exec_ext"
2841
3255
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842
3256
    break 2
2843
3257
  fi
2844
3258
done
2845
3259
done
 
3260
IFS=$as_save_IFS
2846
3261
 
2847
3262
  ;;
2848
3263
esac
2849
3264
fi
2850
3265
PYTHON_BIN=$ac_cv_path_PYTHON_BIN
2851
 
 
2852
3266
if test -n "$PYTHON_BIN"; then
2853
 
  echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
2854
 
echo "${ECHO_T}$PYTHON_BIN" >&6
 
3267
  { echo "$as_me:$LINENO: result: $PYTHON_BIN" >&5
 
3268
echo "${ECHO_T}$PYTHON_BIN" >&6; }
2855
3269
else
2856
 
  echo "$as_me:$LINENO: result: no" >&5
2857
 
echo "${ECHO_T}no" >&6
 
3270
  { echo "$as_me:$LINENO: result: no" >&5
 
3271
echo "${ECHO_T}no" >&6; }
2858
3272
fi
2859
3273
 
 
3274
 
2860
3275
  if test -z "$PYTHON_BIN"; then
2861
3276
    { { echo "$as_me:$LINENO: error: python binary not found in path" >&5
2862
3277
echo "$as_me: error: python binary not found in path" >&2;}
2865
3280
fi
2866
3281
 
2867
3282
# find out python version
2868
 
echo "$as_me:$LINENO: checking Python version" >&5
2869
 
echo $ECHO_N "checking Python version... $ECHO_C" >&6
 
3283
{ echo "$as_me:$LINENO: checking Python version" >&5
 
3284
echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
2870
3285
PyVERSION=`$PYTHON_BIN -c 'import sys; print sys.version[:3]'`
2871
3286
PyMAJVERSION=`$PYTHON_BIN -c 'import sys; print sys.version[:1]'`
2872
 
echo "$as_me:$LINENO: result: $PyVERSION" >&5
2873
 
echo "${ECHO_T}$PyVERSION" >&6
 
3287
{ echo "$as_me:$LINENO: result: $PyVERSION" >&5
 
3288
echo "${ECHO_T}$PyVERSION" >&6; }
2874
3289
 
2875
3290
# make sure Python is version 2
2876
3291
if test "$PyMAJVERSION" != "2"; then
2880
3295
fi
2881
3296
 
2882
3297
# find out compiled in install prefix
2883
 
echo "$as_me:$LINENO: checking Python install prefix" >&5
2884
 
echo $ECHO_N "checking Python install prefix... $ECHO_C" >&6
 
3298
{ echo "$as_me:$LINENO: checking Python install prefix" >&5
 
3299
echo $ECHO_N "checking Python install prefix... $ECHO_C" >&6; }
2885
3300
PyEXEC_INSTALLDIR=`$PYTHON_BIN -c "import sys; print sys.exec_prefix"`
2886
 
echo "$as_me:$LINENO: result: $PyEXEC_INSTALLDIR" >&5
2887
 
echo "${ECHO_T}$PyEXEC_INSTALLDIR" >&6
 
3301
{ echo "$as_me:$LINENO: result: $PyEXEC_INSTALLDIR" >&5
 
3302
echo "${ECHO_T}$PyEXEC_INSTALLDIR" >&6; }
2888
3303
 
2889
3304
# this is where the Python libraries will get installed
2890
3305
 
2891
 
echo "$as_me:$LINENO: checking checking where python libraries are installed" >&5
2892
 
echo $ECHO_N "checking checking where python libraries are installed... $ECHO_C" >&6
 
3306
{ echo "$as_me:$LINENO: checking checking where python libraries are installed" >&5
 
3307
echo $ECHO_N "checking checking where python libraries are installed... $ECHO_C" >&6; }
2893
3308
PY_STD_LIB=`$PYTHON_BIN -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=1)'`
2894
 
echo "$as_me:$LINENO: result: $PY_STD_LIB" >&5
2895
 
echo "${ECHO_T}$PY_STD_LIB" >&6
 
3309
{ echo "$as_me:$LINENO: result: $PY_STD_LIB" >&5
 
3310
echo "${ECHO_T}$PY_STD_LIB" >&6; }
2896
3311
# set python std library variable
2897
3312
 
2898
3313
 
2914
3329
else
2915
3330
  LDFLAGS="${LDFLAGS} -L${PyLIBPL}"
2916
3331
  as_ac_Lib=`echo "ac_cv_lib_python${PyVERSION}''_Py_NewInterpreter" | $as_tr_sh`
2917
 
echo "$as_me:$LINENO: checking for Py_NewInterpreter in -lpython${PyVERSION}" >&5
2918
 
echo $ECHO_N "checking for Py_NewInterpreter in -lpython${PyVERSION}... $ECHO_C" >&6
2919
 
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
3332
{ echo "$as_me:$LINENO: checking for Py_NewInterpreter in -lpython${PyVERSION}" >&5
 
3333
echo $ECHO_N "checking for Py_NewInterpreter in -lpython${PyVERSION}... $ECHO_C" >&6; }
 
3334
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
2920
3335
  echo $ECHO_N "(cached) $ECHO_C" >&6
2921
3336
else
2922
3337
  ac_check_lib_save_LIBS=$LIBS
2928
3343
cat >>conftest.$ac_ext <<_ACEOF
2929
3344
/* end confdefs.h.  */
2930
3345
 
2931
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
3346
/* Override any GCC internal prototype to avoid an error.
 
3347
   Use char because int might match the return type of a GCC
 
3348
   builtin and then its argument prototype would still apply.  */
2932
3349
#ifdef __cplusplus
2933
3350
extern "C"
2934
3351
#endif
2935
 
/* We use char because int might match the return type of a gcc2
2936
 
   builtin and then its argument prototype would still apply.  */
2937
3352
char Py_NewInterpreter ();
2938
3353
int
2939
3354
main ()
2940
3355
{
2941
 
Py_NewInterpreter ();
 
3356
return Py_NewInterpreter ();
2942
3357
  ;
2943
3358
  return 0;
2944
3359
}
2945
3360
_ACEOF
2946
3361
rm -f conftest.$ac_objext conftest$ac_exeext
2947
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2948
 
  (eval $ac_link) 2>conftest.er1
 
3362
if { (ac_try="$ac_link"
 
3363
case "(($ac_try" in
 
3364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3365
  *) ac_try_echo=$ac_try;;
 
3366
esac
 
3367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3368
  (eval "$ac_link") 2>conftest.er1
2949
3369
  ac_status=$?
2950
3370
  grep -v '^ *+' conftest.er1 >conftest.err
2951
3371
  rm -f conftest.er1
2952
3372
  cat conftest.err >&5
2953
3373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954
 
  (exit $ac_status); } &&
2955
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2956
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957
 
  (eval $ac_try) 2>&5
2958
 
  ac_status=$?
2959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960
 
  (exit $ac_status); }; } &&
2961
 
         { ac_try='test -s conftest$ac_exeext'
2962
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963
 
  (eval $ac_try) 2>&5
2964
 
  ac_status=$?
2965
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966
 
  (exit $ac_status); }; }; then
 
3374
  (exit $ac_status); } && {
 
3375
         test -z "$ac_c_werror_flag" ||
 
3376
         test ! -s conftest.err
 
3377
       } && test -s conftest$ac_exeext &&
 
3378
       $as_test_x conftest$ac_exeext; then
2967
3379
  eval "$as_ac_Lib=yes"
2968
3380
else
2969
3381
  echo "$as_me: failed program was:" >&5
2970
3382
sed 's/^/| /' conftest.$ac_ext >&5
2971
3383
 
2972
 
eval "$as_ac_Lib=no"
 
3384
        eval "$as_ac_Lib=no"
2973
3385
fi
2974
 
rm -f conftest.err conftest.$ac_objext \
 
3386
 
 
3387
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2975
3388
      conftest$ac_exeext conftest.$ac_ext
2976
3389
LIBS=$ac_check_lib_save_LIBS
2977
3390
fi
2978
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2979
 
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
3391
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
3392
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3393
echo "${ECHO_T}$ac_res" >&6; }
2980
3394
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2981
3395
   PyPYTHONLIBS="-lpython${PyVERSION}"
2982
3396
else
2995
3409
LIBS="$save_LIBS"
2996
3410
 
2997
3411
# (actually this check already just happened above)
2998
 
echo "$as_me:$LINENO: checking what libraries Python was linked with" >&5
2999
 
echo $ECHO_N "checking what libraries Python was linked with... $ECHO_C" >&6
 
3412
{ echo "$as_me:$LINENO: checking what libraries Python was linked with" >&5
 
3413
echo $ECHO_N "checking what libraries Python was linked with... $ECHO_C" >&6; }
3000
3414
PY_LIBS="${PyPYTHONLIBS} ${PyLIBS} ${PyMODLIBS}"
3001
3415
 
3002
3416
## XXX this is a small work around for a weird RedHat problem
3006
3420
fi
3007
3421
 
3008
3422
LIBS="${LIBS} ${PY_LIBS}"
3009
 
echo "$as_me:$LINENO: result: $PY_LIBS" >&5
3010
 
echo "${ECHO_T}$PY_LIBS" >&6
 
3423
{ echo "$as_me:$LINENO: result: $PY_LIBS" >&5
 
3424
echo "${ECHO_T}$PY_LIBS" >&6; }
3011
3425
 
3012
 
echo "$as_me:$LINENO: checking linker flags used to link Python" >&5
3013
 
echo $ECHO_N "checking linker flags used to link Python... $ECHO_C" >&6
 
3426
{ echo "$as_me:$LINENO: checking linker flags used to link Python" >&5
 
3427
echo $ECHO_N "checking linker flags used to link Python... $ECHO_C" >&6; }
3014
3428
 
3015
3429
PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' '   '`
3016
3430
PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' '   '`
3017
3431
LDFLAGS="${LDFLAGS} ${PyLFS} ${PyLDFLAGS}"
3018
3432
LDFLAGS="${LDFLAGS} ${PY_LDFLAGS}"
3019
 
echo "$as_me:$LINENO: result: $PY_LDFLAGS" >&5
3020
 
echo "${ECHO_T}$PY_LDFLAGS" >&6
 
3433
{ echo "$as_me:$LINENO: result: $PY_LDFLAGS" >&5
 
3434
echo "${ECHO_T}$PY_LDFLAGS" >&6; }
3021
3435
 
3022
 
echo "$as_me:$LINENO: checking where Python include files are" >&5
3023
 
echo $ECHO_N "checking where Python include files are... $ECHO_C" >&6
 
3436
{ echo "$as_me:$LINENO: checking where Python include files are" >&5
 
3437
echo $ECHO_N "checking where Python include files are... $ECHO_C" >&6; }
3024
3438
 
3025
3439
PY_INCLUDES="-I${PyEXEC_INSTALLDIR}/include/python${PyVERSION}"
3026
3440
INCLUDES="${INCLUDES} ${AP_INCLUDES} ${PY_INCLUDES}"
3027
 
echo "$as_me:$LINENO: result: $PY_INCLUDES" >&5
3028
 
echo "${ECHO_T}$PY_INCLUDES" >&6
 
3441
{ echo "$as_me:$LINENO: result: $PY_INCLUDES" >&5
 
3442
echo "${ECHO_T}$PY_INCLUDES" >&6; }
3029
3443
 
3030
3444
# this for the test.py script
3031
3445
 
3041
3455
# get --with-python-src. The python src is required to generate the documentation
3042
3456
# It is not required to compile or install mod_python itself
3043
3457
 
3044
 
echo "$as_me:$LINENO: checking for --with-python-src" >&5
3045
 
echo $ECHO_N "checking for --with-python-src... $ECHO_C" >&6
 
3458
{ echo "$as_me:$LINENO: checking for --with-python-src" >&5
 
3459
echo $ECHO_N "checking for --with-python-src... $ECHO_C" >&6; }
3046
3460
 
3047
 
# Check whether --with-python-src or --without-python-src was given.
 
3461
# Check whether --with-python-src was given.
3048
3462
if test "${with_python_src+set}" = set; then
3049
 
  withval="$with_python_src"
3050
 
 
 
3463
  withval=$with_python_src;
3051
3464
  PYTHON_SRC="$withval"
3052
 
  echo "$as_me:$LINENO: result: $PYTHON_SRC" >&5
3053
 
echo "${ECHO_T}$PYTHON_SRC" >&6
 
3465
  { echo "$as_me:$LINENO: result: $PYTHON_SRC" >&5
 
3466
echo "${ECHO_T}$PYTHON_SRC" >&6; }
3054
3467
 
3055
3468
else
3056
 
  echo "$as_me:$LINENO: result: no" >&5
3057
 
echo "${ECHO_T}no" >&6
3058
 
fi;
 
3469
  { echo "$as_me:$LINENO: result: no" >&5
 
3470
echo "${ECHO_T}no" >&6; }
 
3471
fi
 
3472
 
3059
3473
if test -z "$PYTHON_SRC"; then
3060
3474
  PYTHON_SRC=""
3061
3475
fi
3062
3476
 
3063
3477
# configure the MUTEX_DIR for location of mutex locks
3064
3478
 
3065
 
echo "$as_me:$LINENO: checking for --with-mutex-dir" >&5
3066
 
echo $ECHO_N "checking for --with-mutex-dir... $ECHO_C" >&6
 
3479
{ echo "$as_me:$LINENO: checking for --with-mutex-dir" >&5
 
3480
echo $ECHO_N "checking for --with-mutex-dir... $ECHO_C" >&6; }
3067
3481
 
3068
 
# Check whether --with-mutex-dir or --without-mutex-dir was given.
 
3482
# Check whether --with-mutex-dir was given.
3069
3483
if test "${with_mutex_dir+set}" = set; then
3070
 
  withval="$with_mutex_dir"
3071
 
 
 
3484
  withval=$with_mutex_dir;
3072
3485
  MUTEX_DIR="$withval"
3073
 
  echo "$as_me:$LINENO: result: $MUTEX_DIR" >&5
3074
 
echo "${ECHO_T}$MUTEX_DIR" >&6
 
3486
  { echo "$as_me:$LINENO: result: $MUTEX_DIR" >&5
 
3487
echo "${ECHO_T}$MUTEX_DIR" >&6; }
3075
3488
 
3076
3489
else
3077
 
  echo "$as_me:$LINENO: result: no" >&5
3078
 
echo "${ECHO_T}no" >&6
3079
 
fi;
 
3490
  { echo "$as_me:$LINENO: result: no" >&5
 
3491
echo "${ECHO_T}no" >&6; }
 
3492
fi
 
3493
 
3080
3494
 
3081
3495
if test -z "$MUTEX_DIR"; then
3082
3496
  MUTEX_DIR="/tmp"
3083
3497
fi
3084
3498
# TODO - check if MUTEX_DIR is an absolute path
3085
 
echo "$as_me:$LINENO: result: Using MUTEX_DIR $MUTEX_DIR" >&5
3086
 
echo "${ECHO_T}Using MUTEX_DIR $MUTEX_DIR" >&6
 
3499
{ echo "$as_me:$LINENO: result: Using MUTEX_DIR $MUTEX_DIR" >&5
 
3500
echo "${ECHO_T}Using MUTEX_DIR $MUTEX_DIR" >&6; }
3087
3501
 
3088
3502
# configure the MAX_LOCKS for number of mutex locks
3089
3503
 
3090
 
echo "$as_me:$LINENO: checking for --with-max-locks" >&5
3091
 
echo $ECHO_N "checking for --with-max-locks... $ECHO_C" >&6
 
3504
{ echo "$as_me:$LINENO: checking for --with-max-locks" >&5
 
3505
echo $ECHO_N "checking for --with-max-locks... $ECHO_C" >&6; }
3092
3506
 
3093
 
# Check whether --with-max-locks or --without-max-locks was given.
 
3507
# Check whether --with-max-locks was given.
3094
3508
if test "${with_max_locks+set}" = set; then
3095
 
  withval="$with_max_locks"
3096
 
 
 
3509
  withval=$with_max_locks;
3097
3510
  MAX_LOCKS="$withval"
3098
 
  echo "$as_me:$LINENO: result: $MAX_LOCKS" >&5
3099
 
echo "${ECHO_T}$MAX_LOCKS" >&6
 
3511
  { echo "$as_me:$LINENO: result: $MAX_LOCKS" >&5
 
3512
echo "${ECHO_T}$MAX_LOCKS" >&6; }
3100
3513
 
3101
3514
else
3102
 
  echo "$as_me:$LINENO: result: no" >&5
3103
 
echo "${ECHO_T}no" >&6
3104
 
fi;
 
3515
  { echo "$as_me:$LINENO: result: no" >&5
 
3516
echo "${ECHO_T}no" >&6; }
 
3517
fi
 
3518
 
3105
3519
 
3106
3520
if test -z "$MAX_LOCKS"; then
3107
3521
  MAX_LOCKS="8"
3108
3522
fi
3109
 
echo "$as_me:$LINENO: result: Using $MAX_LOCKS MAX_LOCKS." >&5
3110
 
echo "${ECHO_T}Using $MAX_LOCKS MAX_LOCKS." >&6
 
3523
{ echo "$as_me:$LINENO: result: Using $MAX_LOCKS MAX_LOCKS." >&5
 
3524
echo "${ECHO_T}Using $MAX_LOCKS MAX_LOCKS." >&6; }
3111
3525
 
3112
3526
# Check for correct flex version
3113
3527
# Requires flex 2.5.31 for reentrant support
3114
3528
# See README for more details
3115
3529
 
3116
3530
 
3117
 
echo "$as_me:$LINENO: checking for --with-flex" >&5
3118
 
echo $ECHO_N "checking for --with-flex... $ECHO_C" >&6
 
3531
{ echo "$as_me:$LINENO: checking for --with-flex" >&5
 
3532
echo $ECHO_N "checking for --with-flex... $ECHO_C" >&6; }
3119
3533
 
3120
 
# Check whether --with-flex or --without-flex was given.
 
3534
# Check whether --with-flex was given.
3121
3535
if test "${with_flex+set}" = set; then
3122
 
  withval="$with_flex"
3123
 
 
 
3536
  withval=$with_flex;
3124
3537
  LEX="$withval"
3125
 
  echo "$as_me:$LINENO: result: $LEX" >&5
3126
 
echo "${ECHO_T}$LEX" >&6
 
3538
  { echo "$as_me:$LINENO: result: $LEX" >&5
 
3539
echo "${ECHO_T}$LEX" >&6; }
3127
3540
 
3128
3541
else
3129
 
  echo "$as_me:$LINENO: result: no" >&5
3130
 
echo "${ECHO_T}no" >&6
3131
 
fi;
 
3542
  { echo "$as_me:$LINENO: result: no" >&5
 
3543
echo "${ECHO_T}no" >&6; }
 
3544
fi
 
3545
 
3132
3546
 
3133
3547
# check for flex executable
3134
3548
if test -z "$LEX"; then
3135
3549
  # Extract the first word of "flex", so it can be a program name with args.
3136
3550
set dummy flex; ac_word=$2
3137
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3138
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3551
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3139
3553
if test "${ac_cv_path_LEX+set}" = set; then
3140
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
3141
3555
else
3150
3564
  IFS=$as_save_IFS
3151
3565
  test -z "$as_dir" && as_dir=.
3152
3566
  for ac_exec_ext in '' $ac_executable_extensions; do
3153
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154
3568
    ac_cv_path_LEX="$as_dir/$ac_word$ac_exec_ext"
3155
3569
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156
3570
    break 2
3157
3571
  fi
3158
3572
done
3159
3573
done
 
3574
IFS=$as_save_IFS
3160
3575
 
3161
3576
  ;;
3162
3577
esac
3163
3578
fi
3164
3579
LEX=$ac_cv_path_LEX
3165
 
 
3166
3580
if test -n "$LEX"; then
3167
 
  echo "$as_me:$LINENO: result: $LEX" >&5
3168
 
echo "${ECHO_T}$LEX" >&6
 
3581
  { echo "$as_me:$LINENO: result: $LEX" >&5
 
3582
echo "${ECHO_T}$LEX" >&6; }
3169
3583
else
3170
 
  echo "$as_me:$LINENO: result: no" >&5
3171
 
echo "${ECHO_T}no" >&6
 
3584
  { echo "$as_me:$LINENO: result: no" >&5
 
3585
echo "${ECHO_T}no" >&6; }
3172
3586
fi
 
3587
 
3173
3588
 
3174
3589
fi
3175
3590
 
3176
3591
if test "$LEX" && test -x "$LEX"; then
3177
 
  echo "$as_me:$LINENO: result: found $LEX, we'll use this. Use --with-flex to specify another." >&5
3178
 
echo "${ECHO_T}found $LEX, we'll use this. Use --with-flex to specify another." >&6
 
3592
  { echo "$as_me:$LINENO: result: found $LEX, we'll use this. Use --with-flex to specify another." >&5
 
3593
echo "${ECHO_T}found $LEX, we'll use this. Use --with-flex to specify another." >&6; }
3179
3594
 
3180
 
  echo "$as_me:$LINENO: checking flex version" >&5
3181
 
echo $ECHO_N "checking flex version... $ECHO_C" >&6
 
3595
  { echo "$as_me:$LINENO: checking flex version" >&5
 
3596
echo $ECHO_N "checking flex version... $ECHO_C" >&6; }
3182
3597
  FlexVERSION=`$LEX --version | sed 's/version//g' | awk '/flex/ {print $2}'`
3183
3598
  Flex_MAJOR=`echo $FlexVERSION| awk -F .  '{print $1}'`
3184
3599
  Flex_MINOR=`echo $FlexVERSION| awk -F .  '{print $2}'`
3185
3600
  Flex_PATCH=`echo $FlexVERSION| awk -F .  '{print $3}'`
3186
3601
 
3187
3602
  if test "$Flex_MAJOR" -eq "2" && test "$Flex_MINOR" -eq "5" && test "$Flex_PATCH" -ge "31"; then
3188
 
    echo "$as_me:$LINENO: result: $FlexVERSION. Good" >&5
3189
 
echo "${ECHO_T}$FlexVERSION. Good" >&6
 
3603
    { echo "$as_me:$LINENO: result: $FlexVERSION. Good" >&5
 
3604
echo "${ECHO_T}$FlexVERSION. Good" >&6; }
3190
3605
  else
3191
3606
    { echo "$as_me:$LINENO: WARNING: Flex version $FlexVERSION found.
3192
3607
    Version 2.5.31 or greater is required.  You can generally ignore this
3213
3628
  See the README for more information." >&2;}
3214
3629
fi
3215
3630
 
3216
 
                                                                      ac_config_files="$ac_config_files Makefile src/Makefile Doc/Makefile src/include/mod_python.h test/testconf.py dist/setup.py dist/Makefile"
 
3631
ac_config_files="$ac_config_files Makefile src/Makefile Doc/Makefile src/include/mod_python.h test/testconf.py dist/setup.py dist/Makefile"
 
3632
 
3217
3633
cat >confcache <<\_ACEOF
3218
3634
# This file is a shell script that caches the results of configure
3219
3635
# tests run on this system so they can be shared between configure
3232
3648
 
3233
3649
# The following way of writing the cache mishandles newlines in values,
3234
3650
# but we know of no workaround that is simple, portable, and efficient.
3235
 
# So, don't put newlines in cache variables' values.
 
3651
# So, we kill variables containing newlines.
3236
3652
# Ultrix sh set writes to stderr and can't be redirected directly,
3237
3653
# and sets the high bit in the cache file unless we assign to the vars.
3238
 
{
 
3654
(
 
3655
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
3656
    eval ac_val=\$$ac_var
 
3657
    case $ac_val in #(
 
3658
    *${as_nl}*)
 
3659
      case $ac_var in #(
 
3660
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
3661
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
3662
      esac
 
3663
      case $ac_var in #(
 
3664
      _ | IFS | as_nl) ;; #(
 
3665
      *) $as_unset $ac_var ;;
 
3666
      esac ;;
 
3667
    esac
 
3668
  done
 
3669
 
3239
3670
  (set) 2>&1 |
3240
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3241
 
    *ac_space=\ *)
 
3671
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
3672
    *${as_nl}ac_space=\ *)
3242
3673
      # `set' does not quote correctly, so add quotes (double-quote
3243
3674
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3244
3675
      sed -n \
3245
3676
        "s/'/'\\\\''/g;
3246
3677
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3247
 
      ;;
 
3678
      ;; #(
3248
3679
    *)
3249
3680
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3250
 
      sed -n \
3251
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3681
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3252
3682
      ;;
3253
 
    esac;
3254
 
} |
 
3683
    esac |
 
3684
    sort
 
3685
) |
3255
3686
  sed '
 
3687
     /^ac_cv_env_/b end
3256
3688
     t clear
3257
 
     : clear
 
3689
     :clear
3258
3690
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3259
3691
     t end
3260
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3261
 
     : end' >>confcache
3262
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3263
 
  if test -w $cache_file; then
3264
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3692
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3693
     :end' >>confcache
 
3694
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
3695
  if test -w "$cache_file"; then
 
3696
    test "x$cache_file" != "x/dev/null" &&
 
3697
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
3698
echo "$as_me: updating cache $cache_file" >&6;}
3265
3699
    cat confcache >$cache_file
3266
3700
  else
3267
 
    echo "not updating unwritable cache $cache_file"
 
3701
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
3702
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3268
3703
  fi
3269
3704
fi
3270
3705
rm -f confcache
3273
3708
# Let make expand exec_prefix.
3274
3709
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3275
3710
 
3276
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3277
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3278
 
# trailing colons and then remove the whole line if VPATH becomes empty
3279
 
# (actually we leave an empty line to preserve line numbers).
3280
 
if test "x$srcdir" = x.; then
3281
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3282
 
s/:*\$(srcdir):*/:/;
3283
 
s/:*\${srcdir}:*/:/;
3284
 
s/:*@srcdir@:*/:/;
3285
 
s/^\([^=]*=[     ]*\):*/\1/;
3286
 
s/:*$//;
3287
 
s/^[^=]*=[       ]*$//;
3288
 
}'
3289
 
fi
3290
 
 
3291
3711
# Transform confdefs.h into DEFS.
3292
3712
# Protect against shell expansion while executing Makefile rules.
3293
3713
# Protect against Makefile macro expansion.
3294
3714
#
3295
3715
# If the first sed substitution is executed (which looks for macros that
3296
 
# take arguments), then we branch to the quote section.  Otherwise,
 
3716
# take arguments), then branch to the quote section.  Otherwise,
3297
3717
# look for a macro that doesn't take arguments.
3298
 
cat >confdef2opt.sed <<\_ACEOF
 
3718
ac_script='
3299
3719
t clear
3300
 
: clear
3301
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3302
 
t quote
3303
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3304
 
t quote
3305
 
d
3306
 
: quote
3307
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3308
 
s,\[,\\&,g
3309
 
s,\],\\&,g
3310
 
s,\$,$$,g
3311
 
p
3312
 
_ACEOF
3313
 
# We use echo to avoid assuming a particular line-breaking character.
3314
 
# The extra dot is to prevent the shell from consuming trailing
3315
 
# line-breaks from the sub-command output.  A line-break within
3316
 
# single-quotes doesn't work because, if this script is created in a
3317
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
3318
 
# would break.
3319
 
ac_LF_and_DOT=`echo; echo .`
3320
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3321
 
rm -f confdef2opt.sed
 
3720
:clear
 
3721
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
3722
t quote
 
3723
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
3724
t quote
 
3725
b any
 
3726
:quote
 
3727
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
3728
s/\[/\\&/g
 
3729
s/\]/\\&/g
 
3730
s/\$/$$/g
 
3731
H
 
3732
:any
 
3733
${
 
3734
        g
 
3735
        s/^\n//
 
3736
        s/\n/ /g
 
3737
        p
 
3738
}
 
3739
'
 
3740
DEFS=`sed -n "$ac_script" confdefs.h`
3322
3741
 
3323
3742
 
3324
3743
ac_libobjs=
3325
3744
ac_ltlibobjs=
3326
3745
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3327
3746
  # 1. Remove the extension, and $U if already installed.
3328
 
  ac_i=`echo "$ac_i" |
3329
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3330
 
  # 2. Add them.
3331
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3332
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
3747
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
3748
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
3749
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
3750
  #    will be set to the directory where LIBOBJS objects are built.
 
3751
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
3752
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3333
3753
done
3334
3754
LIBOBJS=$ac_libobjs
3335
3755
 
3360
3780
## M4sh Initialization.  ##
3361
3781
## --------------------- ##
3362
3782
 
3363
 
# Be Bourne compatible
 
3783
# Be more Bourne compatible
 
3784
DUALCASE=1; export DUALCASE # for MKS sh
3364
3785
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3365
3786
  emulate sh
3366
3787
  NULLCMD=:
3367
3788
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3368
3789
  # is contrary to our usage.  Disable this feature.
3369
3790
  alias -g '${1+"$@"}'='"$@"'
3370
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3371
 
  set -o posix
3372
 
fi
3373
 
DUALCASE=1; export DUALCASE # for MKS sh
 
3791
  setopt NO_GLOB_SUBST
 
3792
else
 
3793
  case `(set -o) 2>/dev/null` in
 
3794
  *posix*) set -o posix ;;
 
3795
esac
 
3796
 
 
3797
fi
 
3798
 
 
3799
 
 
3800
 
 
3801
 
 
3802
# PATH needs CR
 
3803
# Avoid depending upon Character Ranges.
 
3804
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
3805
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
3806
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
3807
as_cr_digits='0123456789'
 
3808
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
3809
 
 
3810
# The user is always right.
 
3811
if test "${PATH_SEPARATOR+set}" != set; then
 
3812
  echo "#! /bin/sh" >conf$$.sh
 
3813
  echo  "exit 0"   >>conf$$.sh
 
3814
  chmod +x conf$$.sh
 
3815
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3816
    PATH_SEPARATOR=';'
 
3817
  else
 
3818
    PATH_SEPARATOR=:
 
3819
  fi
 
3820
  rm -f conf$$.sh
 
3821
fi
3374
3822
 
3375
3823
# Support unset when possible.
3376
3824
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3380
3828
fi
3381
3829
 
3382
3830
 
 
3831
# IFS
 
3832
# We need space, tab and new line, in precisely that order.  Quoting is
 
3833
# there to prevent editors from complaining about space-tab.
 
3834
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
3835
# splitting by setting IFS to empty value.)
 
3836
as_nl='
 
3837
'
 
3838
IFS=" ""        $as_nl"
 
3839
 
 
3840
# Find who we are.  Look in the path if we contain no directory separator.
 
3841
case $0 in
 
3842
  *[\\/]* ) as_myself=$0 ;;
 
3843
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3844
for as_dir in $PATH
 
3845
do
 
3846
  IFS=$as_save_IFS
 
3847
  test -z "$as_dir" && as_dir=.
 
3848
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
3849
done
 
3850
IFS=$as_save_IFS
 
3851
 
 
3852
     ;;
 
3853
esac
 
3854
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
3855
# in which case we are not to be found in the path.
 
3856
if test "x$as_myself" = x; then
 
3857
  as_myself=$0
 
3858
fi
 
3859
if test ! -f "$as_myself"; then
 
3860
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
3861
  { (exit 1); exit 1; }
 
3862
fi
 
3863
 
3383
3864
# Work around bugs in pre-3.0 UWIN ksh.
3384
 
$as_unset ENV MAIL MAILPATH
 
3865
for as_var in ENV MAIL MAILPATH
 
3866
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
3867
done
3385
3868
PS1='$ '
3386
3869
PS2='> '
3387
3870
PS4='+ '
3395
3878
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3396
3879
    eval $as_var=C; export $as_var
3397
3880
  else
3398
 
    $as_unset $as_var
 
3881
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3399
3882
  fi
3400
3883
done
3401
3884
 
3402
3885
# Required to use basename.
3403
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3886
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
3887
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3404
3888
  as_expr=expr
3405
3889
else
3406
3890
  as_expr=false
3407
3891
fi
3408
3892
 
3409
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
3893
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3410
3894
  as_basename=basename
3411
3895
else
3412
3896
  as_basename=false
3414
3898
 
3415
3899
 
3416
3900
# Name of the executable.
3417
 
as_me=`$as_basename "$0" ||
 
3901
as_me=`$as_basename -- "$0" ||
3418
3902
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3419
3903
         X"$0" : 'X\(//\)$' \| \
3420
 
         X"$0" : 'X\(/\)$' \| \
3421
 
         .     : '\(.\)' 2>/dev/null ||
 
3904
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3422
3905
echo X/"$0" |
3423
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3424
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
3425
 
          /^X\/\(\/\).*/{ s//\1/; q; }
3426
 
          s/.*/./; q'`
3427
 
 
3428
 
 
3429
 
# PATH needs CR, and LINENO needs CR and PATH.
3430
 
# Avoid depending upon Character Ranges.
3431
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3432
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3433
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3434
 
as_cr_digits='0123456789'
3435
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
3436
 
 
3437
 
# The user is always right.
3438
 
if test "${PATH_SEPARATOR+set}" != set; then
3439
 
  echo "#! /bin/sh" >conf$$.sh
3440
 
  echo  "exit 0"   >>conf$$.sh
3441
 
  chmod +x conf$$.sh
3442
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3443
 
    PATH_SEPARATOR=';'
3444
 
  else
3445
 
    PATH_SEPARATOR=:
3446
 
  fi
3447
 
  rm -f conf$$.sh
3448
 
fi
3449
 
 
3450
 
 
3451
 
  as_lineno_1=$LINENO
3452
 
  as_lineno_2=$LINENO
3453
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3454
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3455
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3456
 
  # Find who we are.  Look in the path if we contain no path at all
3457
 
  # relative or not.
3458
 
  case $0 in
3459
 
    *[\\/]* ) as_myself=$0 ;;
3460
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461
 
for as_dir in $PATH
3462
 
do
3463
 
  IFS=$as_save_IFS
3464
 
  test -z "$as_dir" && as_dir=.
3465
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3466
 
done
3467
 
 
3468
 
       ;;
3469
 
  esac
3470
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
3471
 
  # in which case we are not to be found in the path.
3472
 
  if test "x$as_myself" = x; then
3473
 
    as_myself=$0
3474
 
  fi
3475
 
  if test ! -f "$as_myself"; then
3476
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3477
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3478
 
   { (exit 1); exit 1; }; }
3479
 
  fi
3480
 
  case $CONFIG_SHELL in
3481
 
  '')
3482
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3484
 
do
3485
 
  IFS=$as_save_IFS
3486
 
  test -z "$as_dir" && as_dir=.
3487
 
  for as_base in sh bash ksh sh5; do
3488
 
         case $as_dir in
3489
 
         /*)
3490
 
           if ("$as_dir/$as_base" -c '
3491
 
  as_lineno_1=$LINENO
3492
 
  as_lineno_2=$LINENO
3493
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3494
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3495
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3496
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3497
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3498
 
             CONFIG_SHELL=$as_dir/$as_base
3499
 
             export CONFIG_SHELL
3500
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3501
 
           fi;;
3502
 
         esac
3503
 
       done
3504
 
done
3505
 
;;
3506
 
  esac
 
3906
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
3907
            s//\1/
 
3908
            q
 
3909
          }
 
3910
          /^X\/\(\/\/\)$/{
 
3911
            s//\1/
 
3912
            q
 
3913
          }
 
3914
          /^X\/\(\/\).*/{
 
3915
            s//\1/
 
3916
            q
 
3917
          }
 
3918
          s/.*/./; q'`
 
3919
 
 
3920
# CDPATH.
 
3921
$as_unset CDPATH
 
3922
 
 
3923
 
 
3924
 
 
3925
  as_lineno_1=$LINENO
 
3926
  as_lineno_2=$LINENO
 
3927
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3928
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3507
3929
 
3508
3930
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3509
3931
  # uniformly replaced by the line number.  The first 'sed' inserts a
3510
 
  # line-number line before each line; the second 'sed' does the real
3511
 
  # work.  The second script uses 'N' to pair each line-number line
3512
 
  # with the numbered line, and appends trailing '-' during
3513
 
  # substitution so that $LINENO is not a special case at line end.
 
3932
  # line-number line after each line using $LINENO; the second 'sed'
 
3933
  # does the real work.  The second script uses 'N' to pair each
 
3934
  # line-number line with the line containing $LINENO, and appends
 
3935
  # trailing '-' during substitution so that $LINENO is not a special
 
3936
  # case at line end.
3514
3937
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3515
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3516
 
  sed '=' <$as_myself |
 
3938
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
3939
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
3940
  sed -n '
 
3941
    p
 
3942
    /[$]LINENO/=
 
3943
  ' <$as_myself |
3517
3944
    sed '
 
3945
      s/[$]LINENO.*/&-/
 
3946
      t lineno
 
3947
      b
 
3948
      :lineno
3518
3949
      N
3519
 
      s,$,-,
3520
 
      : loop
3521
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
3950
      :loop
 
3951
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3522
3952
      t loop
3523
 
      s,-$,,
3524
 
      s,^['$as_cr_digits']*\n,,
 
3953
      s/-\n.*//
3525
3954
    ' >$as_me.lineno &&
3526
 
  chmod +x $as_me.lineno ||
3527
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3528
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
3955
  chmod +x "$as_me.lineno" ||
 
3956
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3529
3957
   { (exit 1); exit 1; }; }
3530
3958
 
3531
3959
  # Don't try to exec as it changes $[0], causing all sort of problems
3532
3960
  # (the dirname of $[0] is not the place where we might find the
3533
 
  # original and so on.  Autoconf is especially sensible to this).
3534
 
  . ./$as_me.lineno
 
3961
  # original and so on.  Autoconf is especially sensitive to this).
 
3962
  . "./$as_me.lineno"
3535
3963
  # Exit status is that of the last command.
3536
3964
  exit
3537
3965
}
3538
3966
 
3539
3967
 
3540
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3541
 
  *c*,-n*) ECHO_N= ECHO_C='
3542
 
' ECHO_T='      ' ;;
3543
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3544
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
3968
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
3969
  as_dirname=dirname
 
3970
else
 
3971
  as_dirname=false
 
3972
fi
 
3973
 
 
3974
ECHO_C= ECHO_N= ECHO_T=
 
3975
case `echo -n x` in
 
3976
-n*)
 
3977
  case `echo 'x\c'` in
 
3978
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
3979
  *)   ECHO_C='\c';;
 
3980
  esac;;
 
3981
*)
 
3982
  ECHO_N='-n';;
3545
3983
esac
3546
3984
 
3547
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3985
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
3986
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3548
3987
  as_expr=expr
3549
3988
else
3550
3989
  as_expr=false
3551
3990
fi
3552
3991
 
3553
3992
rm -f conf$$ conf$$.exe conf$$.file
 
3993
if test -d conf$$.dir; then
 
3994
  rm -f conf$$.dir/conf$$.file
 
3995
else
 
3996
  rm -f conf$$.dir
 
3997
  mkdir conf$$.dir
 
3998
fi
3554
3999
echo >conf$$.file
3555
4000
if ln -s conf$$.file conf$$ 2>/dev/null; then
3556
 
  # We could just check for DJGPP; but this test a) works b) is more generic
3557
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3558
 
  if test -f conf$$.exe; then
3559
 
    # Don't use ln at all; we don't have any links
 
4001
  as_ln_s='ln -s'
 
4002
  # ... but there are two gotchas:
 
4003
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
4004
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
4005
  # In both cases, we have to default to `cp -p'.
 
4006
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3560
4007
    as_ln_s='cp -p'
3561
 
  else
3562
 
    as_ln_s='ln -s'
3563
 
  fi
3564
4008
elif ln conf$$.file conf$$ 2>/dev/null; then
3565
4009
  as_ln_s=ln
3566
4010
else
3567
4011
  as_ln_s='cp -p'
3568
4012
fi
3569
 
rm -f conf$$ conf$$.exe conf$$.file
 
4013
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
4014
rmdir conf$$.dir 2>/dev/null
3570
4015
 
3571
4016
if mkdir -p . 2>/dev/null; then
3572
4017
  as_mkdir_p=:
3575
4020
  as_mkdir_p=false
3576
4021
fi
3577
4022
 
3578
 
as_executable_p="test -f"
 
4023
if test -x / >/dev/null 2>&1; then
 
4024
  as_test_x='test -x'
 
4025
else
 
4026
  if ls -dL / >/dev/null 2>&1; then
 
4027
    as_ls_L_option=L
 
4028
  else
 
4029
    as_ls_L_option=
 
4030
  fi
 
4031
  as_test_x='
 
4032
    eval sh -c '\''
 
4033
      if test -d "$1"; then
 
4034
        test -d "$1/.";
 
4035
      else
 
4036
        case $1 in
 
4037
        -*)set "./$1";;
 
4038
        esac;
 
4039
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
4040
        ???[sx]*):;;*)false;;esac;fi
 
4041
    '\'' sh
 
4042
  '
 
4043
fi
 
4044
as_executable_p=$as_test_x
3579
4045
 
3580
4046
# Sed expression to map a string onto a valid CPP name.
3581
4047
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3584
4050
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3585
4051
 
3586
4052
 
3587
 
# IFS
3588
 
# We need space, tab and new line, in precisely that order.
3589
 
as_nl='
3590
 
'
3591
 
IFS="   $as_nl"
3592
 
 
3593
 
# CDPATH.
3594
 
$as_unset CDPATH
3595
 
 
3596
4053
exec 6>&1
3597
4054
 
3598
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4055
# Save the log message, to keep $[0] and so on meaningful, and to
3599
4056
# report actual input values of CONFIG_FILES etc. instead of their
3600
 
# values after options handling.  Logging --version etc. is OK.
3601
 
exec 5>>config.log
3602
 
{
3603
 
  echo
3604
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3605
 
## Running $as_me. ##
3606
 
_ASBOX
3607
 
} >&5
3608
 
cat >&5 <<_CSEOF
3609
 
 
 
4057
# values after options handling.
 
4058
ac_log="
3610
4059
This file was extended by $as_me, which was
3611
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
4060
generated by GNU Autoconf 2.61.  Invocation command line was
3612
4061
 
3613
4062
  CONFIG_FILES    = $CONFIG_FILES
3614
4063
  CONFIG_HEADERS  = $CONFIG_HEADERS
3616
4065
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3617
4066
  $ $0 $@
3618
4067
 
3619
 
_CSEOF
3620
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3621
 
echo >&5
 
4068
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
4069
"
 
4070
 
3622
4071
_ACEOF
3623
4072
 
 
4073
cat >>$CONFIG_STATUS <<_ACEOF
3624
4074
# Files that config.status was made for.
3625
 
if test -n "$ac_config_files"; then
3626
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3627
 
fi
3628
 
 
3629
 
if test -n "$ac_config_headers"; then
3630
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3631
 
fi
3632
 
 
3633
 
if test -n "$ac_config_links"; then
3634
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3635
 
fi
3636
 
 
3637
 
if test -n "$ac_config_commands"; then
3638
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3639
 
fi
 
4075
config_files="$ac_config_files"
 
4076
 
 
4077
_ACEOF
3640
4078
 
3641
4079
cat >>$CONFIG_STATUS <<\_ACEOF
3642
 
 
3643
4080
ac_cs_usage="\
3644
4081
\`$as_me' instantiates files from templates according to the
3645
4082
current configuration.
3647
4084
Usage: $0 [OPTIONS] [FILE]...
3648
4085
 
3649
4086
  -h, --help       print this help, then exit
3650
 
  -V, --version    print version number, then exit
 
4087
  -V, --version    print version number and configuration settings, then exit
3651
4088
  -q, --quiet      do not print progress messages
3652
4089
  -d, --debug      don't remove temporary files
3653
4090
      --recheck    update $as_me by reconfiguring in the same conditions
3658
4095
$config_files
3659
4096
 
3660
4097
Report bugs to <bug-autoconf@gnu.org>."
 
4098
 
3661
4099
_ACEOF
3662
 
 
3663
4100
cat >>$CONFIG_STATUS <<_ACEOF
3664
4101
ac_cs_version="\\
3665
4102
config.status
3666
 
configured by $0, generated by GNU Autoconf 2.59,
3667
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4103
configured by $0, generated by GNU Autoconf 2.61,
 
4104
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3668
4105
 
3669
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
4106
Copyright (C) 2006 Free Software Foundation, Inc.
3670
4107
This config.status script is free software; the Free Software Foundation
3671
4108
gives unlimited permission to copy, distribute and modify it."
3672
 
srcdir=$srcdir
3673
 
INSTALL="$INSTALL"
 
4109
 
 
4110
ac_pwd='$ac_pwd'
 
4111
srcdir='$srcdir'
 
4112
INSTALL='$INSTALL'
3674
4113
_ACEOF
3675
4114
 
3676
4115
cat >>$CONFIG_STATUS <<\_ACEOF
3681
4120
do
3682
4121
  case $1 in
3683
4122
  --*=*)
3684
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3685
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4123
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
4124
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3686
4125
    ac_shift=:
3687
4126
    ;;
3688
 
  -*)
 
4127
  *)
3689
4128
    ac_option=$1
3690
4129
    ac_optarg=$2
3691
4130
    ac_shift=shift
3692
4131
    ;;
3693
 
  *) # This is not an option, so the user has probably given explicit
3694
 
     # arguments.
3695
 
     ac_option=$1
3696
 
     ac_need_defaults=false;;
3697
4132
  esac
3698
4133
 
3699
4134
  case $ac_option in
3700
4135
  # Handling of the options.
3701
 
_ACEOF
3702
 
cat >>$CONFIG_STATUS <<\_ACEOF
3703
4136
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3704
4137
    ac_cs_recheck=: ;;
3705
 
  --version | --vers* | -V )
3706
 
    echo "$ac_cs_version"; exit 0 ;;
3707
 
  --he | --h)
3708
 
    # Conflict between --help and --header
3709
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3710
 
Try \`$0 --help' for more information." >&5
3711
 
echo "$as_me: error: ambiguous option: $1
3712
 
Try \`$0 --help' for more information." >&2;}
3713
 
   { (exit 1); exit 1; }; };;
3714
 
  --help | --hel | -h )
3715
 
    echo "$ac_cs_usage"; exit 0 ;;
3716
 
  --debug | --d* | -d )
 
4138
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
4139
    echo "$ac_cs_version"; exit ;;
 
4140
  --debug | --debu | --deb | --de | --d | -d )
3717
4141
    debug=: ;;
3718
4142
  --file | --fil | --fi | --f )
3719
4143
    $ac_shift
3720
4144
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3721
4145
    ac_need_defaults=false;;
3722
 
  --header | --heade | --head | --hea )
3723
 
    $ac_shift
3724
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3725
 
    ac_need_defaults=false;;
 
4146
  --he | --h |  --help | --hel | -h )
 
4147
    echo "$ac_cs_usage"; exit ;;
3726
4148
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3727
4149
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3728
4150
    ac_cs_silent=: ;;
3729
4151
 
3730
4152
  # This is an error.
3731
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3732
 
Try \`$0 --help' for more information." >&5
3733
 
echo "$as_me: error: unrecognized option: $1
3734
 
Try \`$0 --help' for more information." >&2;}
 
4153
  -*) { echo "$as_me: error: unrecognized option: $1
 
4154
Try \`$0 --help' for more information." >&2
3735
4155
   { (exit 1); exit 1; }; } ;;
3736
4156
 
3737
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4157
  *) ac_config_targets="$ac_config_targets $1"
 
4158
     ac_need_defaults=false ;;
3738
4159
 
3739
4160
  esac
3740
4161
  shift
3750
4171
_ACEOF
3751
4172
cat >>$CONFIG_STATUS <<_ACEOF
3752
4173
if \$ac_cs_recheck; then
3753
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3754
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
4174
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
4175
  CONFIG_SHELL=$SHELL
 
4176
  export CONFIG_SHELL
 
4177
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3755
4178
fi
3756
4179
 
3757
4180
_ACEOF
3758
 
 
3759
 
 
3760
 
 
3761
 
 
3762
 
 
3763
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
4181
cat >>$CONFIG_STATUS <<\_ACEOF
 
4182
exec 5>>config.log
 
4183
{
 
4184
  echo
 
4185
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4186
## Running $as_me. ##
 
4187
_ASBOX
 
4188
  echo "$ac_log"
 
4189
} >&5
 
4190
 
 
4191
_ACEOF
 
4192
cat >>$CONFIG_STATUS <<_ACEOF
 
4193
_ACEOF
 
4194
 
 
4195
cat >>$CONFIG_STATUS <<\_ACEOF
 
4196
 
 
4197
# Handling of arguments.
3764
4198
for ac_config_target in $ac_config_targets
3765
4199
do
3766
 
  case "$ac_config_target" in
3767
 
  # Handling of arguments.
3768
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3769
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3770
 
  "Doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
3771
 
  "src/include/mod_python.h" ) CONFIG_FILES="$CONFIG_FILES src/include/mod_python.h" ;;
3772
 
  "test/testconf.py" ) CONFIG_FILES="$CONFIG_FILES test/testconf.py" ;;
3773
 
  "dist/setup.py" ) CONFIG_FILES="$CONFIG_FILES dist/setup.py" ;;
3774
 
  "dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
 
4200
  case $ac_config_target in
 
4201
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4202
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
4203
    "Doc/Makefile") CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
 
4204
    "src/include/mod_python.h") CONFIG_FILES="$CONFIG_FILES src/include/mod_python.h" ;;
 
4205
    "test/testconf.py") CONFIG_FILES="$CONFIG_FILES test/testconf.py" ;;
 
4206
    "dist/setup.py") CONFIG_FILES="$CONFIG_FILES dist/setup.py" ;;
 
4207
    "dist/Makefile") CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
 
4208
 
3775
4209
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3776
4210
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3777
4211
   { (exit 1); exit 1; }; };;
3778
4212
  esac
3779
4213
done
3780
4214
 
 
4215
 
3781
4216
# If the user did not use the arguments to specify the items to instantiate,
3782
4217
# then the envvar interface is used.  Set only those that are not.
3783
4218
# We use the long form for the default assignment because of an extremely
3787
4222
fi
3788
4223
 
3789
4224
# Have a temporary directory for convenience.  Make it in the build tree
3790
 
# simply because there is no reason to put it here, and in addition,
 
4225
# simply because there is no reason against having it here, and in addition,
3791
4226
# creating and moving files from /tmp can sometimes cause problems.
3792
 
# Create a temporary directory, and hook for its removal unless debugging.
 
4227
# Hook for its removal unless debugging.
 
4228
# Note that there is a small window in which the directory will not be cleaned:
 
4229
# after its creation but before its name has been assigned to `$tmp'.
3793
4230
$debug ||
3794
4231
{
3795
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4232
  tmp=
 
4233
  trap 'exit_status=$?
 
4234
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
4235
' 0
3796
4236
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3797
4237
}
3798
 
 
3799
4238
# Create a (secure) tmp directory for tmp files.
3800
4239
 
3801
4240
{
3802
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4241
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3803
4242
  test -n "$tmp" && test -d "$tmp"
3804
4243
}  ||
3805
4244
{
3806
 
  tmp=./confstat$$-$RANDOM
3807
 
  (umask 077 && mkdir $tmp)
 
4245
  tmp=./conf$$-$RANDOM
 
4246
  (umask 077 && mkdir "$tmp")
3808
4247
} ||
3809
4248
{
3810
4249
   echo "$me: cannot create a temporary directory in ." >&2
3811
4250
   { (exit 1); exit 1; }
3812
4251
}
3813
4252
 
3814
 
_ACEOF
3815
 
 
3816
 
cat >>$CONFIG_STATUS <<_ACEOF
3817
 
 
3818
4253
#
3819
 
# CONFIG_FILES section.
 
4254
# Set up the sed scripts for CONFIG_FILES section.
3820
4255
#
3821
4256
 
3822
4257
# No need to generate the scripts if there are no CONFIG_FILES.
3823
4258
# This happens for instance when ./config.status config.h
3824
 
if test -n "\$CONFIG_FILES"; then
3825
 
  # Protect against being on the right side of a sed subst in config.status.
3826
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3827
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3828
 
s,@SHELL@,$SHELL,;t t
3829
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3830
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3831
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3832
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3833
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3834
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3835
 
s,@exec_prefix@,$exec_prefix,;t t
3836
 
s,@prefix@,$prefix,;t t
3837
 
s,@program_transform_name@,$program_transform_name,;t t
3838
 
s,@bindir@,$bindir,;t t
3839
 
s,@sbindir@,$sbindir,;t t
3840
 
s,@libexecdir@,$libexecdir,;t t
3841
 
s,@datadir@,$datadir,;t t
3842
 
s,@sysconfdir@,$sysconfdir,;t t
3843
 
s,@sharedstatedir@,$sharedstatedir,;t t
3844
 
s,@localstatedir@,$localstatedir,;t t
3845
 
s,@libdir@,$libdir,;t t
3846
 
s,@includedir@,$includedir,;t t
3847
 
s,@oldincludedir@,$oldincludedir,;t t
3848
 
s,@infodir@,$infodir,;t t
3849
 
s,@mandir@,$mandir,;t t
3850
 
s,@build_alias@,$build_alias,;t t
3851
 
s,@host_alias@,$host_alias,;t t
3852
 
s,@target_alias@,$target_alias,;t t
3853
 
s,@DEFS@,$DEFS,;t t
3854
 
s,@ECHO_C@,$ECHO_C,;t t
3855
 
s,@ECHO_N@,$ECHO_N,;t t
3856
 
s,@ECHO_T@,$ECHO_T,;t t
3857
 
s,@LIBS@,$LIBS,;t t
3858
 
s,@CC@,$CC,;t t
3859
 
s,@CFLAGS@,$CFLAGS,;t t
3860
 
s,@LDFLAGS@,$LDFLAGS,;t t
3861
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
3862
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
3863
 
s,@EXEEXT@,$EXEEXT,;t t
3864
 
s,@OBJEXT@,$OBJEXT,;t t
3865
 
s,@AR@,$AR,;t t
3866
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3867
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3868
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3869
 
s,@SET_MAKE@,$SET_MAKE,;t t
3870
 
s,@APXS@,$APXS,;t t
3871
 
s,@DSO@,$DSO,;t t
3872
 
s,@ALL@,$ALL,;t t
3873
 
s,@LIBEXECDIR@,$LIBEXECDIR,;t t
3874
 
s,@SOLARIS_HACKS@,$SOLARIS_HACKS,;t t
3875
 
s,@HTTPD@,$HTTPD,;t t
3876
 
s,@AP_SRC@,$AP_SRC,;t t
3877
 
s,@AP_SRC_OWN@,$AP_SRC_OWN,;t t
3878
 
s,@AP_SRC_GRP@,$AP_SRC_GRP,;t t
3879
 
s,@STATIC@,$STATIC,;t t
3880
 
s,@PYTHON_BIN@,$PYTHON_BIN,;t t
3881
 
s,@PY_STD_LIB@,$PY_STD_LIB,;t t
3882
 
s,@INCLUDES@,$INCLUDES,;t t
3883
 
s,@TEST_SERVER_ROOT@,$TEST_SERVER_ROOT,;t t
3884
 
s,@MOD_PYTHON_SO@,$MOD_PYTHON_SO,;t t
3885
 
s,@MP_VERSION@,$MP_VERSION,;t t
3886
 
s,@PYTHON_SRC@,$PYTHON_SRC,;t t
3887
 
s,@MUTEX_DIR@,$MUTEX_DIR,;t t
3888
 
s,@MAX_LOCKS@,$MAX_LOCKS,;t t
3889
 
s,@LEX@,$LEX,;t t
3890
 
s,@LIBOBJS@,$LIBOBJS,;t t
3891
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3892
 
CEOF
3893
 
 
3894
 
_ACEOF
3895
 
 
3896
 
  cat >>$CONFIG_STATUS <<\_ACEOF
3897
 
  # Split the substitutions into bite-sized pieces for seds with
3898
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
3899
 
  ac_max_sed_lines=48
3900
 
  ac_sed_frag=1 # Number of current file.
3901
 
  ac_beg=1 # First line for current file.
3902
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3903
 
  ac_more_lines=:
3904
 
  ac_sed_cmds=
3905
 
  while $ac_more_lines; do
3906
 
    if test $ac_beg -gt 1; then
3907
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3908
 
    else
3909
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3910
 
    fi
3911
 
    if test ! -s $tmp/subs.frag; then
3912
 
      ac_more_lines=false
3913
 
    else
3914
 
      # The purpose of the label and of the branching condition is to
3915
 
      # speed up the sed processing (if there are no `@' at all, there
3916
 
      # is no need to browse any of the substitutions).
3917
 
      # These are the two extra sed commands mentioned above.
3918
 
      (echo ':t
3919
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3920
 
      if test -z "$ac_sed_cmds"; then
3921
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3922
 
      else
3923
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3924
 
      fi
3925
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
3926
 
      ac_beg=$ac_end
3927
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
3928
 
    fi
3929
 
  done
3930
 
  if test -z "$ac_sed_cmds"; then
3931
 
    ac_sed_cmds=cat
 
4259
if test -n "$CONFIG_FILES"; then
 
4260
 
 
4261
_ACEOF
 
4262
 
 
4263
 
 
4264
 
 
4265
ac_delim='%!_!# '
 
4266
for ac_last_try in false false false false false :; do
 
4267
  cat >conf$$subs.sed <<_ACEOF
 
4268
SHELL!$SHELL$ac_delim
 
4269
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
4270
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
4271
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
4272
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
4273
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
4274
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
4275
exec_prefix!$exec_prefix$ac_delim
 
4276
prefix!$prefix$ac_delim
 
4277
program_transform_name!$program_transform_name$ac_delim
 
4278
bindir!$bindir$ac_delim
 
4279
sbindir!$sbindir$ac_delim
 
4280
libexecdir!$libexecdir$ac_delim
 
4281
datarootdir!$datarootdir$ac_delim
 
4282
datadir!$datadir$ac_delim
 
4283
sysconfdir!$sysconfdir$ac_delim
 
4284
sharedstatedir!$sharedstatedir$ac_delim
 
4285
localstatedir!$localstatedir$ac_delim
 
4286
includedir!$includedir$ac_delim
 
4287
oldincludedir!$oldincludedir$ac_delim
 
4288
docdir!$docdir$ac_delim
 
4289
infodir!$infodir$ac_delim
 
4290
htmldir!$htmldir$ac_delim
 
4291
dvidir!$dvidir$ac_delim
 
4292
pdfdir!$pdfdir$ac_delim
 
4293
psdir!$psdir$ac_delim
 
4294
libdir!$libdir$ac_delim
 
4295
localedir!$localedir$ac_delim
 
4296
mandir!$mandir$ac_delim
 
4297
DEFS!$DEFS$ac_delim
 
4298
ECHO_C!$ECHO_C$ac_delim
 
4299
ECHO_N!$ECHO_N$ac_delim
 
4300
ECHO_T!$ECHO_T$ac_delim
 
4301
LIBS!$LIBS$ac_delim
 
4302
build_alias!$build_alias$ac_delim
 
4303
host_alias!$host_alias$ac_delim
 
4304
target_alias!$target_alias$ac_delim
 
4305
CC!$CC$ac_delim
 
4306
CFLAGS!$CFLAGS$ac_delim
 
4307
LDFLAGS!$LDFLAGS$ac_delim
 
4308
CPPFLAGS!$CPPFLAGS$ac_delim
 
4309
ac_ct_CC!$ac_ct_CC$ac_delim
 
4310
EXEEXT!$EXEEXT$ac_delim
 
4311
OBJEXT!$OBJEXT$ac_delim
 
4312
AR!$AR$ac_delim
 
4313
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
4314
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
4315
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
4316
SET_MAKE!$SET_MAKE$ac_delim
 
4317
APXS!$APXS$ac_delim
 
4318
DSO!$DSO$ac_delim
 
4319
ALL!$ALL$ac_delim
 
4320
LIBEXECDIR!$LIBEXECDIR$ac_delim
 
4321
SOLARIS_HACKS!$SOLARIS_HACKS$ac_delim
 
4322
HTTPD!$HTTPD$ac_delim
 
4323
AP_SRC!$AP_SRC$ac_delim
 
4324
AP_SRC_OWN!$AP_SRC_OWN$ac_delim
 
4325
AP_SRC_GRP!$AP_SRC_GRP$ac_delim
 
4326
STATIC!$STATIC$ac_delim
 
4327
PYTHON_BIN!$PYTHON_BIN$ac_delim
 
4328
PY_STD_LIB!$PY_STD_LIB$ac_delim
 
4329
INCLUDES!$INCLUDES$ac_delim
 
4330
TEST_SERVER_ROOT!$TEST_SERVER_ROOT$ac_delim
 
4331
MOD_PYTHON_SO!$MOD_PYTHON_SO$ac_delim
 
4332
MP_VERSION!$MP_VERSION$ac_delim
 
4333
PYTHON_SRC!$PYTHON_SRC$ac_delim
 
4334
MUTEX_DIR!$MUTEX_DIR$ac_delim
 
4335
MAX_LOCKS!$MAX_LOCKS$ac_delim
 
4336
LEX!$LEX$ac_delim
 
4337
LIBOBJS!$LIBOBJS$ac_delim
 
4338
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
4339
_ACEOF
 
4340
 
 
4341
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
 
4342
    break
 
4343
  elif $ac_last_try; then
 
4344
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
4345
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
4346
   { (exit 1); exit 1; }; }
 
4347
  else
 
4348
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3932
4349
  fi
 
4350
done
 
4351
 
 
4352
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
4353
if test -n "$ac_eof"; then
 
4354
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
4355
  ac_eof=`expr $ac_eof + 1`
 
4356
fi
 
4357
 
 
4358
cat >>$CONFIG_STATUS <<_ACEOF
 
4359
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
4360
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
4361
_ACEOF
 
4362
sed '
 
4363
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
4364
s/^/s,@/; s/!/@,|#_!!_#|/
 
4365
:n
 
4366
t n
 
4367
s/'"$ac_delim"'$/,g/; t
 
4368
s/$/\\/; p
 
4369
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
4370
' >>$CONFIG_STATUS <conf$$subs.sed
 
4371
rm -f conf$$subs.sed
 
4372
cat >>$CONFIG_STATUS <<_ACEOF
 
4373
:end
 
4374
s/|#_!!_#|//g
 
4375
CEOF$ac_eof
 
4376
_ACEOF
 
4377
 
 
4378
 
 
4379
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
4380
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
4381
# trailing colons and then remove the whole line if VPATH becomes empty
 
4382
# (actually we leave an empty line to preserve line numbers).
 
4383
if test "x$srcdir" = x.; then
 
4384
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
4385
s/:*\$(srcdir):*/:/
 
4386
s/:*\${srcdir}:*/:/
 
4387
s/:*@srcdir@:*/:/
 
4388
s/^\([^=]*=[     ]*\):*/\1/
 
4389
s/:*$//
 
4390
s/^[^=]*=[       ]*$//
 
4391
}'
 
4392
fi
 
4393
 
 
4394
cat >>$CONFIG_STATUS <<\_ACEOF
3933
4395
fi # test -n "$CONFIG_FILES"
3934
4396
 
3935
 
_ACEOF
3936
 
cat >>$CONFIG_STATUS <<\_ACEOF
3937
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3938
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3939
 
  case $ac_file in
3940
 
  - | *:- | *:-:* ) # input from stdin
3941
 
        cat >$tmp/stdin
3942
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3943
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3944
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3945
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3946
 
  * )   ac_file_in=$ac_file.in ;;
3947
 
  esac
3948
 
 
3949
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3950
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4397
 
 
4398
for ac_tag in  :F $CONFIG_FILES
 
4399
do
 
4400
  case $ac_tag in
 
4401
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
4402
  esac
 
4403
  case $ac_mode$ac_tag in
 
4404
  :[FHL]*:*);;
 
4405
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
4406
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
4407
   { (exit 1); exit 1; }; };;
 
4408
  :[FH]-) ac_tag=-:-;;
 
4409
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
4410
  esac
 
4411
  ac_save_IFS=$IFS
 
4412
  IFS=:
 
4413
  set x $ac_tag
 
4414
  IFS=$ac_save_IFS
 
4415
  shift
 
4416
  ac_file=$1
 
4417
  shift
 
4418
 
 
4419
  case $ac_mode in
 
4420
  :L) ac_source=$1;;
 
4421
  :[FH])
 
4422
    ac_file_inputs=
 
4423
    for ac_f
 
4424
    do
 
4425
      case $ac_f in
 
4426
      -) ac_f="$tmp/stdin";;
 
4427
      *) # Look for the file first in the build tree, then in the source tree
 
4428
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
4429
         # because $ac_f cannot contain `:'.
 
4430
         test -f "$ac_f" ||
 
4431
           case $ac_f in
 
4432
           [\\/$]*) false;;
 
4433
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
4434
           esac ||
 
4435
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
4436
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
4437
   { (exit 1); exit 1; }; };;
 
4438
      esac
 
4439
      ac_file_inputs="$ac_file_inputs $ac_f"
 
4440
    done
 
4441
 
 
4442
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4443
    # use $as_me), people would be surprised to read:
 
4444
    #    /* config.h.  Generated by config.status.  */
 
4445
    configure_input="Generated from "`IFS=:
 
4446
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
4447
    if test x"$ac_file" != x-; then
 
4448
      configure_input="$ac_file.  $configure_input"
 
4449
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4450
echo "$as_me: creating $ac_file" >&6;}
 
4451
    fi
 
4452
 
 
4453
    case $ac_tag in
 
4454
    *:-:* | *:-) cat >"$tmp/stdin";;
 
4455
    esac
 
4456
    ;;
 
4457
  esac
 
4458
 
 
4459
  ac_dir=`$as_dirname -- "$ac_file" ||
3951
4460
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3952
4461
         X"$ac_file" : 'X\(//\)[^/]' \| \
3953
4462
         X"$ac_file" : 'X\(//\)$' \| \
3954
 
         X"$ac_file" : 'X\(/\)' \| \
3955
 
         .     : '\(.\)' 2>/dev/null ||
 
4463
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3956
4464
echo X"$ac_file" |
3957
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3958
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3959
 
          /^X\(\/\/\)$/{ s//\1/; q; }
3960
 
          /^X\(\/\).*/{ s//\1/; q; }
3961
 
          s/.*/./; q'`
3962
 
  { if $as_mkdir_p; then
3963
 
    mkdir -p "$ac_dir"
3964
 
  else
3965
 
    as_dir="$ac_dir"
 
4465
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4466
            s//\1/
 
4467
            q
 
4468
          }
 
4469
          /^X\(\/\/\)[^/].*/{
 
4470
            s//\1/
 
4471
            q
 
4472
          }
 
4473
          /^X\(\/\/\)$/{
 
4474
            s//\1/
 
4475
            q
 
4476
          }
 
4477
          /^X\(\/\).*/{
 
4478
            s//\1/
 
4479
            q
 
4480
          }
 
4481
          s/.*/./; q'`
 
4482
  { as_dir="$ac_dir"
 
4483
  case $as_dir in #(
 
4484
  -*) as_dir=./$as_dir;;
 
4485
  esac
 
4486
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3966
4487
    as_dirs=
3967
 
    while test ! -d "$as_dir"; do
3968
 
      as_dirs="$as_dir $as_dirs"
3969
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4488
    while :; do
 
4489
      case $as_dir in #(
 
4490
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
4491
      *) as_qdir=$as_dir;;
 
4492
      esac
 
4493
      as_dirs="'$as_qdir' $as_dirs"
 
4494
      as_dir=`$as_dirname -- "$as_dir" ||
3970
4495
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3971
4496
         X"$as_dir" : 'X\(//\)[^/]' \| \
3972
4497
         X"$as_dir" : 'X\(//\)$' \| \
3973
 
         X"$as_dir" : 'X\(/\)' \| \
3974
 
         .     : '\(.\)' 2>/dev/null ||
 
4498
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3975
4499
echo X"$as_dir" |
3976
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3977
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3978
 
          /^X\(\/\/\)$/{ s//\1/; q; }
3979
 
          /^X\(\/\).*/{ s//\1/; q; }
3980
 
          s/.*/./; q'`
 
4500
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4501
            s//\1/
 
4502
            q
 
4503
          }
 
4504
          /^X\(\/\/\)[^/].*/{
 
4505
            s//\1/
 
4506
            q
 
4507
          }
 
4508
          /^X\(\/\/\)$/{
 
4509
            s//\1/
 
4510
            q
 
4511
          }
 
4512
          /^X\(\/\).*/{
 
4513
            s//\1/
 
4514
            q
 
4515
          }
 
4516
          s/.*/./; q'`
 
4517
      test -d "$as_dir" && break
3981
4518
    done
3982
 
    test ! -n "$as_dirs" || mkdir $as_dirs
3983
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3984
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4519
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
4520
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
4521
echo "$as_me: error: cannot create directory $as_dir" >&2;}
3985
4522
   { (exit 1); exit 1; }; }; }
3986
 
 
3987
4523
  ac_builddir=.
3988
4524
 
3989
 
if test "$ac_dir" != .; then
 
4525
case "$ac_dir" in
 
4526
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
4527
*)
3990
4528
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3991
 
  # A "../" for each directory in $ac_dir_suffix.
3992
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3993
 
else
3994
 
  ac_dir_suffix= ac_top_builddir=
3995
 
fi
 
4529
  # A ".." for each directory in $ac_dir_suffix.
 
4530
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
4531
  case $ac_top_builddir_sub in
 
4532
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
4533
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
4534
  esac ;;
 
4535
esac
 
4536
ac_abs_top_builddir=$ac_pwd
 
4537
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
4538
# for backward compatibility:
 
4539
ac_top_builddir=$ac_top_build_prefix
3996
4540
 
3997
4541
case $srcdir in
3998
 
  .)  # No --srcdir option.  We are building in place.
 
4542
  .)  # We are building in place.
3999
4543
    ac_srcdir=.
4000
 
    if test -z "$ac_top_builddir"; then
4001
 
       ac_top_srcdir=.
4002
 
    else
4003
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4004
 
    fi ;;
4005
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4544
    ac_top_srcdir=$ac_top_builddir_sub
 
4545
    ac_abs_top_srcdir=$ac_pwd ;;
 
4546
  [\\/]* | ?:[\\/]* )  # Absolute name.
4006
4547
    ac_srcdir=$srcdir$ac_dir_suffix;
4007
 
    ac_top_srcdir=$srcdir ;;
4008
 
  *) # Relative path.
4009
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4010
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4011
 
esac
4012
 
 
4013
 
# Do not use `cd foo && pwd` to compute absolute paths, because
4014
 
# the directories may not exist.
4015
 
case `pwd` in
4016
 
.) ac_abs_builddir="$ac_dir";;
4017
 
*)
4018
 
  case "$ac_dir" in
4019
 
  .) ac_abs_builddir=`pwd`;;
4020
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4021
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4022
 
  esac;;
4023
 
esac
4024
 
case $ac_abs_builddir in
4025
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4026
 
*)
4027
 
  case ${ac_top_builddir}. in
4028
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
4029
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4030
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4031
 
  esac;;
4032
 
esac
4033
 
case $ac_abs_builddir in
4034
 
.) ac_abs_srcdir=$ac_srcdir;;
4035
 
*)
4036
 
  case $ac_srcdir in
4037
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
4038
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4039
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4040
 
  esac;;
4041
 
esac
4042
 
case $ac_abs_builddir in
4043
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4044
 
*)
4045
 
  case $ac_top_srcdir in
4046
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4047
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4048
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4049
 
  esac;;
4050
 
esac
4051
 
 
 
4548
    ac_top_srcdir=$srcdir
 
4549
    ac_abs_top_srcdir=$srcdir ;;
 
4550
  *) # Relative name.
 
4551
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
4552
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
4553
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
4554
esac
 
4555
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
4556
 
 
4557
 
 
4558
  case $ac_mode in
 
4559
  :F)
 
4560
  #
 
4561
  # CONFIG_FILE
 
4562
  #
4052
4563
 
4053
4564
  case $INSTALL in
4054
4565
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4055
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
4566
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4056
4567
  esac
4057
 
 
4058
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4059
 
  # use $as_me), people would be surprised to read:
4060
 
  #    /* config.h.  Generated by config.status.  */
4061
 
  if test x"$ac_file" = x-; then
4062
 
    configure_input=
4063
 
  else
4064
 
    configure_input="$ac_file.  "
4065
 
  fi
4066
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
4067
 
                                     sed 's,.*/,,'` by configure."
4068
 
 
4069
 
  # First look for the input files in the build tree, otherwise in the
4070
 
  # src tree.
4071
 
  ac_file_inputs=`IFS=:
4072
 
    for f in $ac_file_in; do
4073
 
      case $f in
4074
 
      -) echo $tmp/stdin ;;
4075
 
      [\\/$]*)
4076
 
         # Absolute (can't be DOS-style, as IFS=:)
4077
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4078
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4079
 
   { (exit 1); exit 1; }; }
4080
 
         echo "$f";;
4081
 
      *) # Relative
4082
 
         if test -f "$f"; then
4083
 
           # Build tree
4084
 
           echo "$f"
4085
 
         elif test -f "$srcdir/$f"; then
4086
 
           # Source tree
4087
 
           echo "$srcdir/$f"
4088
 
         else
4089
 
           # /dev/null tree
4090
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4091
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4092
 
   { (exit 1); exit 1; }; }
4093
 
         fi;;
4094
 
      esac
4095
 
    done` || { (exit 1); exit 1; }
4096
 
 
4097
 
  if test x"$ac_file" != x-; then
4098
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
4099
 
echo "$as_me: creating $ac_file" >&6;}
4100
 
    rm -f "$ac_file"
4101
 
  fi
4102
 
_ACEOF
 
4568
_ACEOF
 
4569
 
 
4570
cat >>$CONFIG_STATUS <<\_ACEOF
 
4571
# If the template does not know about datarootdir, expand it.
 
4572
# FIXME: This hack should be removed a few years after 2.60.
 
4573
ac_datarootdir_hack=; ac_datarootdir_seen=
 
4574
 
 
4575
case `sed -n '/datarootdir/ {
 
4576
  p
 
4577
  q
 
4578
}
 
4579
/@datadir@/p
 
4580
/@docdir@/p
 
4581
/@infodir@/p
 
4582
/@localedir@/p
 
4583
/@mandir@/p
 
4584
' $ac_file_inputs` in
 
4585
*datarootdir*) ac_datarootdir_seen=yes;;
 
4586
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
4587
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
4588
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
4589
_ACEOF
 
4590
cat >>$CONFIG_STATUS <<_ACEOF
 
4591
  ac_datarootdir_hack='
 
4592
  s&@datadir@&$datadir&g
 
4593
  s&@docdir@&$docdir&g
 
4594
  s&@infodir@&$infodir&g
 
4595
  s&@localedir@&$localedir&g
 
4596
  s&@mandir@&$mandir&g
 
4597
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
4598
esac
 
4599
_ACEOF
 
4600
 
 
4601
# Neutralize VPATH when `$srcdir' = `.'.
 
4602
# Shell code in configure.ac might set extrasub.
 
4603
# FIXME: do we really want to maintain this feature?
4103
4604
cat >>$CONFIG_STATUS <<_ACEOF
4104
4605
  sed "$ac_vpsub
4105
4606
$extrasub
4107
4608
cat >>$CONFIG_STATUS <<\_ACEOF
4108
4609
:t
4109
4610
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4110
 
s,@configure_input@,$configure_input,;t t
4111
 
s,@srcdir@,$ac_srcdir,;t t
4112
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4113
 
s,@top_srcdir@,$ac_top_srcdir,;t t
4114
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4115
 
s,@builddir@,$ac_builddir,;t t
4116
 
s,@abs_builddir@,$ac_abs_builddir,;t t
4117
 
s,@top_builddir@,$ac_top_builddir,;t t
4118
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4119
 
s,@INSTALL@,$ac_INSTALL,;t t
4120
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4121
 
  rm -f $tmp/stdin
4122
 
  if test x"$ac_file" != x-; then
4123
 
    mv $tmp/out $ac_file
4124
 
  else
4125
 
    cat $tmp/out
4126
 
    rm -f $tmp/out
4127
 
  fi
4128
 
 
4129
 
done
4130
 
_ACEOF
4131
 
 
4132
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
4611
s&@configure_input@&$configure_input&;t t
 
4612
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
4613
s&@srcdir@&$ac_srcdir&;t t
 
4614
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
4615
s&@top_srcdir@&$ac_top_srcdir&;t t
 
4616
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
4617
s&@builddir@&$ac_builddir&;t t
 
4618
s&@abs_builddir@&$ac_abs_builddir&;t t
 
4619
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
4620
s&@INSTALL@&$ac_INSTALL&;t t
 
4621
$ac_datarootdir_hack
 
4622
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
 
4623
 
 
4624
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
4625
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
4626
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
4627
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
4628
which seems to be undefined.  Please make sure it is defined." >&5
 
4629
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
4630
which seems to be undefined.  Please make sure it is defined." >&2;}
 
4631
 
 
4632
  rm -f "$tmp/stdin"
 
4633
  case $ac_file in
 
4634
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
4635
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
4636
  esac
 
4637
 ;;
 
4638
 
 
4639
 
 
4640
 
 
4641
  esac
 
4642
 
 
4643
done # for ac_tag
 
4644
 
4133
4645
 
4134
4646
{ (exit 0); exit 0; }
4135
4647
_ACEOF